body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    margin: 0;
    padding: 80px 50px;
    background-color: #ffffff;
    font-family: 'Inter', Arial, sans-serif;
    color: #3f3e3e;
    font-size: 18px;
}

h1 {
    font-family: 'Foldit', cursive;
    font-weight: 500;
    font-size: 70px;
    margin-top: 10px;
    margin-bottom: 40px;
}
.description {
    font-size: 18px;
    margin-top: 20px;
    margin-bottom: 40px;
}


@media (max-width: 768px) {
 h1 {
    font-size: 45px;
    }
    body {
        padding: 40px 30px;
    }
}

/* Container for all city weather panels */
#weather-panels-container {
    display: flex;
    flex-wrap: wrap; /* Allow panels to wrap to the next line */
    justify-content: center; /* Center panels horizontally */
    align-items: flex-start; /* Align panels to the top */
    gap: 20px; /* Space between panels */
    max-width: 1200px; /* Limit overall width for better readability */
    padding: 20px;
}

/* Styles for each individual city weather panel */
.city-weather-panel {
    /* Display size of each panel on the webpage (scaled down) */
    width: 300px;  /* Example width (e.g., 1080/3.6) */
    height: 375px; /* Example height (e.g., 1350/3.6) - maintaining 4:5 aspect ratio */
    
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    background-color: rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    color: rgb(0, 0, 0);
    position: relative; /* Essential for positioning canvas and text inside */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Space out location name and button */
    align-items: center;
    padding-top: 15px; /* Add padding to the top for the canvas area */
    padding-bottom: 15px; /* Add padding to the bottom for the button */
    overflow: hidden; /* Hide any content that overflows the panel */
    box-sizing: border-box; /* Include padding in the total width/height */
}

/* Styles for the canvas element within each panel */
.city-weather-panel canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Make canvas fill its parent panel visually */
    height: 100%;
    z-index: 1; /* Canvas as the background layer */
}




/* Legend rows */
.legende {
 margin-bottom: 60px;
 display: grid;
 grid-template-columns: 1fr;
 gap: 8px 16px;
}

.legende h3 {
 grid-column: 1 / -1;
}

@media (min-width: 768px) {
 .legende {
  grid-template-columns: 1fr 1fr;
 }
}

.legend-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.legend-row {
    font-size: 15px;
}


/* Legend rows spacing handled by grid gap */

.copyright {
 font-size: 12px;
}
.copyright a:hover {
    text-decoration: underline;
}



