:root {

    --black: #333232;
    --background: #F6F6F6;
    --background-dark: #E8E8E8;
    --yellow: #FDFF98;
    --orange: #FFCE79;
    --light-blue: #A9E5F0;
    --dark-blue: #A4C2DF;
}

body {
    background: var(--background);
    margin: 0;
    padding: 20px;
    overflow-x: hidden;
}

  #content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }

h1, h2, p {
    margin: 0;
    padding: 0;
    color: var(--black);
}

h1 {
    font-family: "Silkscreen", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 32px;
    margin-top: 3vh;
    margin-bottom: 2vh;
}

h2 {
    font-family: "Aldrich";
    font-size: 20px;
}


p {
    font-family: "Aldrich";
    font-size: 15px;
}

#logo {
    margin-bottom: 5vh;
    align-self: flex-start;
}

.infobox {

    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    font-family: "Aldrich";
    font-size: 20px;
    border: 2px solid var(--black);
    border-radius: 50px;
    padding: 10px 20px;
    color: var(--black);
    text-align: center;
    margin: 0;
    width: fit-content;


}

#buttons { 
    display: flex;
    gap: 10px;
}

.card {
    margin-bottom: 5vh;
}

.box {
    background: var(--background-dark);
    border-radius: 25px;
    margin: 0;
    padding: 10px;
    width: calc(100vw - 60px);
    position: relative;
    height: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.graph {
    margin: 0;
    margin-bottom: 10px;
    padding-top: 20px;
    width: 80vw;
    max-width: 400px;
    position: relative;
    height: auto;
    flex-shrink: 0;

}

.graph canvas {
    width: 100% !important;
    height: auto !important;
  }
  

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0;
    padding: 0;

}

.dropdown {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.plus {
    width: 25px;
    height: auto;
    align-self: flex-end;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.plus.rotated {
    transform: rotate(180deg); /* or keep as-is for consistency */
}


.dropdown-content {
    display: flex;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.dropdown-content.show {
    max-height: 200px; /* Adjust depending on your content's height */
}


#linegraph, #bargraph {
    width: 80vw;
    max-width: 400px;
    height: 300px;
  }
  
  
  h1 {
    font-size: 24px;
    margin-top: 2vh;
    margin-bottom: 2vh;
  }

  h2 {
    font-size: 16px;
  }

  p {
    font-size: 14px;
  }

  .infobox {
    font-size: 16px;
    padding: 8px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  #buttons {
    flex-direction: row;
    gap: 8px;
    align-self: flex-start;
  }

  .box {
    padding: 10px;
    width: 80vw;
    max-width: 400px;
  }

    #data{
      align-self: flex-start;
    }


/* Tablets and Desktop (>601px) */
@media screen and (min-width: 901px) {

    #content {
    max-width: 900px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 18px;
  }

  #logo {
    margin-bottom: 10vh;
  }

  .infobox {
    font-size: 18px;
    padding: 10px 20px;
  }

  .graph {
    width: 400px;
  }

  #linegraph,
  #bargraph {
    max-width: 100%;
    height: 280px;
  }

  #data{
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
  }
}
