:root {
    --bg-gradient-1: #FDFCFB;
    --bg-gradient-2: #E2D1C3;


    --bg: #FDFCFB;
    --bg-tile: #f5f1ef;/*#FDFCFB90;*/
    --bg-tile-no-opacity:#f5f1ef;
    --text: #1e1e1e;
    --text-light: #ACACAC;

    --accent: #5856D6;
    --text: #000000;
    --red: #FF3B30;
    --yellow: #FFCC00;
    --orange: #FF9500;
    --green: #34C759;
    --purple: #AF52DE;
}


[data-theme="dark"] {
    --bg-gradient-1: #09203F;
    --bg-gradient-2: #537895;

    --bg: #000C13;
    --bg-tile: #29313a;/*#97979780;*/
    --bg-tile-no-opacity: #29313a;
    --text: #e1e1e1;
    --text-light: #ACACAC;

    --accent: #5856D6;
    --red: #FF453A;
    --yellow: #FFD60A;
    --orange: #FF9F0A;
    --green: #30D158;
    --purple: #BF5AF2;
}

@font-face {
    font-family: 'Material Symbols Rounded';
    font-style: normal;
    src: url(/weather/static/MaterialSymbolsRounded.woff2) format('woff'),
    url(/static/MaterialSymbolsRounded.woff2) format('woff2');
  }

.material-symbols-rounded {
    font-family: 'Material Symbols Rounded';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;  /* Preferred icon size */
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
  }


body {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
    color: var(--text);
    background-color: #fff;
}

input {
    border: none;
    border-radius: 50px;
    padding: 15px;
    padding-left: 60px;
    width: 100%;
    font-size: 1em;
    font-family: 'Nunito', sans-serif;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    color: var(--text);
    background-color: var(--bg-tile);

}

input:focus {
    outline: none;
}

input::placeholder {
    color: var(--text-light);
}

select:focus {
    outline: none;
}

select {
    /* no drop down arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

a {
    text-decoration: none;
    color: var(--text-light);
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: start;
    align-items: flex-start;
    gap: 10px;
    width: 1200px;
    max-width: 90vw;
    margin: 0 20px;
    padding-top: 10px;
}

.card {
    width: calc(50% - 6px);
    background-color: var(--bg-tile);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    padding: 0px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 160px;
    color: var(--text);
    text-decoration: none;
    z-index: 2;
}

.tile-item-height {
    height: 100px;
}

.card-double-width {
    width: calc(100% - 2px);
}

#wind-direction-arrow {
    font-size: 1.5em;
}

.card-body {
    width: 100%;
    height: 100%;
    display: flex;
    margin: 15px;
    flex-direction: column;
}

.card-title {
    font-size: 1em;
    margin: 0 0 10px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px;
}

.card-text {
    font-size: 3em;
    margin: 0 0 15px;
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
}

#temperature-val,
#humidity-val {
    font-size: 3em;
}

#weather-val,
#aqi-val,
#energy-val {
    font-size: 1.2em;
}

#air-pressure-val,
#pm-2-5-val,
#wind-speed-val {
    font-size: 2em;
}

#temperature-val-unit,
#humidity-val-unit {
    margin-top: 6px;
    font-size: 1.2em;
}

#air-pressure-val-unit,
#pm-val-unit,
#wind-direction-val,
#wind-speed-val-unit {
    font-size: 1.3em;
}

#temperaturePlot,
#humidityPlot,
#pm-2-5-Plot {
    width: calc(100% - 30px);
    margin: 0;
    padding: 0;
    max-width: 800px;
}

.desktop-only {
    display: none;
}

.mobile-only {
    display: flex;
}

.compass-container {
    position: relative;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    border: 2px dashed var(--text-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    margin-left: 10px;
}

.compass-arrow {
    font-size: 2em;
    transform: rotate(0deg);
}

.compass-label {
    position: absolute;
    font-weight: bold;
    font-size: 0.8em;
    color: var(--text);
    background-color: var(--bg-tile);
    padding: 1px;
    border-radius: 1px;
}

.label-n { top: -10px; left: 50%; transform: translateX(-50%); }
.label-e { right: -6px; top: 50%; transform: translateY(-50%); }
.label-s { bottom: -10px; left: 50%; transform: translateX(-50%); }
.label-w { left: -10px; top: 50%; transform: translateY(-50%); }

.credits-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-direction: column;
    font-size: 0.5em;
    color: var(--text-light);
    margin: 18px 0;
}


@media(min-width: 1000px) {
    #wind-direction-arrow {
        font-size: 2em;
    }

    .card {
        width: calc(25% - 8px);
        min-height: 210px;
    }

    .tile-item-height {
        height: 150px;
    }

    .card-double-width {
        width: calc(50% - 6px);
    }

    #temperature-val,
    #humidity-val {
        font-size: 5em;
    }

    #weather-val,
    #aqi-val,
    #energy-val {
        font-size: 1.7em;
    }

    #air-pressure-val,
    #pm-2-5-val,
    #wind-speed-val {
        font-size: 3.6em;
    }

    #temperature-val-unit,
    #humidity-val-unit {
        margin-top: 10px;
        font-size: 2em;
    }

    #air-pressure-val-unit,
    #pm-val-unit,
    #wind-direction-val,
    #wind-speed-val-unit {
        font-size: 1.8em;
    }

    .desktop-only {
        display: flex;
    }
    
    .mobile-only {
        display: none;
    }

    .compass-container {
        width: 100px;
        height: 100px;
    }

    .compass-arrow {
        font-size: 3em;
    }
    
    .compass-label {
        padding: 2px;
        border-radius: 5px;
    }

    .label-n { top: -12px; left: 50%; transform: translateX(-50%); }
    .label-e { right: -8px; top: 50%; transform: translateY(-50%); }
    .label-s { bottom: -14px; left: 50%; transform: translateX(-50%); }
    .label-w { left: -12px; top: 50%; transform: translateY(-50%); }

    .credits-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        flex-direction: row;
        font-size: 0.7em;
        color: var(--text-light);
        margin: 18px 0;
    }
}

@media(min-width: 2000px) {
    .container {
        max-width: 1800px;
        width: 1800px;
    }

    .desktop-only {
        display: flex;
    }
    
    .mobile-only {
        display: none;
    }
}
