
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Roboto", sans-serif;
    text-transform: uppercase;

    background: linear-gradient(#FFADD6, #6BBDDB);

    overflow-x: hidden;
}

/* CONTENT */
#canvasBox {
    width: 100%;
    height: clamp(300px, 50vh, 700px);
    margin-top: auto;
}

canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* SEARCH BOX */
#info-box {
    margin: auto;
    margin-top: 6em;

    display: flex;
    flex-direction: column;
    gap: 1.5em;

    background: rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    padding: 2em;

    width: 90%;
    max-width: 400px;
    height: 300px;

    text-align: left;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.category {
    font-size: 0.8rem;
    opacity: 0.8;
}

input {
    margin-top: 0.5em;
    padding: 0.8em;

    border: none;
    border-radius: 10px;
    outline: none;

    font-size: 1rem;
}

input:focus {
    box-shadow: 0 0 0 2px rgba(255,255,255,0.6);
}


#submitWeather {
    width: 100%;
    padding: 0.8em;
    border-radius: 20px;
    border: none;
    background: rgba(255,255,255,0.8);
    cursor: pointer;
    font-weight: bold;
    transition: 0.2s;
}

#submitWeather:hover {
    background: white;
    transform: scale(1.03);
}

#submitWeather:active {
    transform: scale(0.98);
}
/* TOP BAR */
#top-bar {
    width: 90%;
    margin: 1.5em auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    color: white;
}

#openSearch {
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 10px 15px;
    border-radius: 10px;
    cursor: pointer;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

#location {
    margin: 0;
    font-size: 2rem;
}

#description {
    font-size: 18px;
    margin: 0 0.5em 0 0;
}

/* WEATHER PANEL */
#weather-panel {
    width: 90%;
    max-width: 300px;
    margin: 1em auto;

    padding: 0.5em;

    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
        box-shadow: 0 10px 40px rgba(0,0,0,0.2);

    text-align: center;
    color: white;
}

#degree {
    font-size: 28px;
    font-weight: bold;
}

/* FOOTER */
footer {

    width: 100%;
    height: 100px;
    padding: 4em;

    text-align: center;

    background: #3A5916;
    color: white;

    z-index: 1;

}

/* HIDDEN */
.hidden {
    display: none !important;
}

/* MOBILE FIX (NO vh here 👇) */
@media (max-width: 600px) {

    #top-bar {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    #info-box {
        margin-top: 8em;
    }
}