* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f7f7f7;
    color: #333;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.graph {
    aspect-ratio: 3 / 2;
    max-width: 600px;
}


#filters {
    position: fixed;      /* stays at the top even when scrolling */
    top: 0;
    left: 0;
    width: 100%;          /* stretch full screen width */
    height: 60px;         /* adjust to your liking */
    background: #ffffff;  /* solid background so it's not transparent */
    border-bottom: 1px solid #e5e5e5; /* subtle divider */
    display: flex;        /* flex layout for nav items */
    align-items: center;  /* vertically center items */
    justify-content: center; /* space items apart */
    padding: 0 20px;     /* spacing inside */
    z-index: 1000;        /* ensures it's on top of everything */
    box-shadow: 0 2px 6px rgba(0,0,0,0.05); /* soft shadow for depth */
    font-family: 'Inter', sans-serif;
  }
  

#filters button {
    padding: 10px 20px;
    margin:10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #ffffff;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

#filters button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.graphs-container {
    display: grid;
    width: 90%;
    max-width: 1400px;
    max-height: 500px;
    margin: 0 auto;
}

.graphs-container > div:first-child {
    margin-bottom: 20px;
}

#graph-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#graph-popup > div {
    width: 90%;
    height: 90%;
    background-color: #ffffff;
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

#close-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    border: none;
    border-radius: 50%;
    background-color: #ffffff;
    padding: 15px 20px 15px 20px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
}

#close-popup:hover {
    background-color: #f0f0f0;
}
