:root {
    --font-main: "Veradana", sans-serif;
    --font-2: "Arial", sans-serif;

    --background-color: #f1f1f1;
    --footer-color: #a8a8a8;

    --primary-color: #5d7bcf;
    --secondary-color: #296280;
    --accent-color: #2f3f67;
}

html {
    background-color: var(--background-color);
    font-family: var(--font-main);
}

button {
    border: 0;
}

.alert-banner {
    position: fixed;
    width: 50%;
    height: fit-content;
    border-radius: 5px;
    box-shadow: 2px 2px 1.5px black;
    color: white;
    background-color: #58151c;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding: 40px;
    padding-top: 5px;
    justify-self: center;
    line-height: 1.5em;
    z-index: 9;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.close-button {
    width: 32px;
    height: 32px;
    border: 0 none;
    cursor: pointer;
    background-color: transparent;
    float: right;
    position: relative;
    left: 95%;
    top: 10px;
}

.close-button img {
    width: 32px;
    height: 32px;
    background-color: transparent;
}

.title {
    text-align: center;
    padding-top: 15px;
}

.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    place-self: center;
}

.loading img {
    width: 50%;
}

.row-top {
    display: flex;
    flex-direction: row;
    text-align: center;
    align-items: center;
    justify-content: center;
    gap: 1em;
}

.row-top .refreshButton {
    background-color: white;
    box-shadow: 1px 1px 1px black;
    cursor: pointer;
    width: 100px;
    height: 25px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: bold;
    transition: scale 0.6s;
}

.row-top .refreshButton:hover {
    transform: scale(110%);
}

.dropdown {
    position: fixed;
    float: left;
    z-index: 10;
}

.nav-button {
    background-color: var(--primary-color);
    font-family: var(--font-main);
    font-weight: bold;
    padding: 16px;
    cursor: pointer;
    color: white;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    position: fixed;
    font-size: 16px;
}

/* 
.dropdown-button-secondary {
    background-color: #f9f9f9;
    font-family: var(--font-main);
    font-weight: bold;
    padding: 16px;
    cursor: pointer;
    color: black;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    position: fixed;
    font-size: 16px;
    max-width: 200px;
    width: 100%;
} */

.dropdown-content {
    display: none;
    position: inherit;
    right: 0;
    background-color: #f9f9f9;
    width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    overflow-y: scroll;
    height: 75vh;
    /* margin-top: 50px;
    margin-left: 10px; */
}

.dropdown-button {
    position: relative;
    background-color: #f9f9f9;
    font-family: var(--font-main);
    font-weight: bold;
    padding: 16px;
    cursor: pointer;
    color: black;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    position: fixed;
    font-size: 16px;
    width: 200px;
    margin-bottom: 10%;
}

.dropdown-content a {
    color: black;
    padding: 12px 12px;
    text-decoration: none;
    display: block;
    text-overflow: ellipsis;
}

.dropdown-content h4 {
    position: relative;
    left: 10px;
}

/* .dropdown-content-secondary {
    display: none;
    position: fixed;
    right: 0;
    background-color: #f9f9f9;
    width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-button-secondary:hover {
    background-color: #b6acac;
}

.dropdown-button-secondary:hover {
    .dropdown-content-secondary {
        display: block;
    }
} */


.dropdown-content a:hover {
    background-color: #b6acac;
}

.dropdown-content.active {
    display: block;
}

/* .dropdown:hover .dropdown-content {
    display: block;
} */
/* This is buggy because if the user were to accidentally hover off, the links dissapear.
 This is also not friendly for mobile devices. */

.dropdown-button.pressed {
    position: fixed;
    right: 0;
    background-color: #f9f9f9;
    width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown:hover .dropbtn {
    background-color: #3e8e41;
}

.last-updated {
    text-align: center;
}

.main-weather-card {
    background-color: white;
    width: 75vw;
    place-self: center;
    border-radius: 10px;
    box-shadow: 0px 3px 5px 0px black;
    height: fit-content;
    padding-bottom: 5px;
    padding-top: 5px;
    padding-left: 25px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8%;
    justify-content: center;
}

.main-weather-card .temperature {
    font-size: 3em;
    position: relative;
}

.main-weather-card .row {
    display: flex;
    flex-direction: column;
    width: min(20%, 255px);
}

#weatherCondRow {
    display: flex;
    align-items: center;
}

#weatherCondRow #weatherCond {
    font-weight: bold;
    font-size: 1.1rem;
}

#weatherCondRow img {
    width: 50%;
}

#tempRow {
    display: flex;
    text-align: center;
    align-items: center;
}

.main-weather-card .row span {
    font-weight: bold;
    font-size: 1.1rem;
}

.main-weather-card .row .value {
    font-weight: 500;
}

#cardRow {
    display: flex;
    gap: 2%;
    /* align-items: center; */
    justify-content: center;
    padding-bottom: 40px;
}

.small-weather-card {
    width: 25%;
    padding-bottom: 5vh;
    background-color: white;
    box-shadow: 0px 3px 5px 0px black;
    text-align: center;
    border-radius: 10px;
}

.small-weather-card img {
    width: 95%;
    height: auto;
}

.large-weather-card {
    width: 50%;
    height: 30vh;
    padding-bottom: 5vh;
    background-color: white;
    box-shadow: 0px 3px 5px 0px black;
    text-align: center;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.large-weather-card h2 {
    text-align: center;
}

.large-weather-card img {
    position: relative;
    justify-self: center;
    width: 100%;
    height: auto;
    max-width: 350px;
    max-height: 150px;
    margin: 0 auto;
    display: flex;
}

#trafficCamCard {
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#roadCameraRow {
    display: flex;
    flex-direction: row;
    width: 80%;
    gap: 10px;
}

.road-camera-button {
    box-shadow: 2px 2px 2px black;
    background-color: color-mix(in oklch, white 60%, #77828c);
    font-family: var(--font-main);
    font-weight: bold;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 0px 2.5px 2px black;
    width: 100%;
    height: 50px;
    cursor: pointer;
    justify-self: center;
    align-self: center;
    margin-top: 5px;
    transition: scale 0.3s ease;
}

.road-camera-button:hover {
    scale: 110%;
}

#weatherObsCard {
    min-height: fit-content;
}

#weatherObsCard .container {
    background-color: rgb(255, 251, 246);
    height: 100%;

}

#weatherObsRow {
    padding: 16px;

    display: flex;
    flex-direction: column;
    width: 100%;
    list-style-type: none;
    text-align: left;
    line-height: 2.5em;
    font-size: 1.25em;
    border-bottom-right-radius: 5px;
    border-top-right-radius: 5px;
}

#errorAlertEl {
    width: 35%;
    height: fit-content;
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: none;
    color: #58151c;
    background-color: #f1aeb5;
    font-family: Arial;
    display: none;
    padding: 16px;
    align-items: center;
    border-radius: 10px;
    font-size: 11pt;
    overflow: scroll;
}

#errorCloseBtn {
    position: relative;
    left: 0;
    top: 15%;
    height: 15%;
    padding-right: 16px;
    width: 10%
}

footer {
    display: flex;
    width: 100vw;
    height: fit-content;
    padding-bottom: 20px;
    margin-top: 50px;
    font-family: var(--font-2);
    text-align: center;
    background-color: var(--footer-color);
    flex-direction: column;
    align-items: center;
    position: absolute;
    left: 0;
}

/* Media Queries */

@media screen and (max-width: 1024px) {
    .dropdown-content {
        left: 0.6%;
        top: 12%;
    }
}

@media screen and (max-width: 768px) {
    .dropdown-content {
        left: 1%;
        top: 12%;
    }

    .main-weather-card {
        width: 75%;
        display: flex;
        flex-direction: column;
        align-content: center;
        justify-content: center;
        margin: 0 auto;
    }

    .main-weather-card .row {
        width: 100%;
        text-align: center;
    }

    #weatherCondRow img {
        position: relative;
        margin-top: 25px;
        width: 25%;
    }

    #cardRow {
        display: flex;
        flex-direction: column;
        align-items: center;
        row-gap: 50px;
    }

    #cardRow .small-weather-card {
        width: 80%;
        align-items: center;
    }

    #cardRow .large-weather-card {
        width: 80%;
        height: fit-content;
        padding-bottom: 10vh;
    }
}

@media screen and (max-width: 485px) {
    .alert-banner {
        align-items: center;
        justify-content: center;
        flex-direction: column;
        line-height: 2.25em;
        padding-top: 25px;
    }

}

.row-top {
    flex-direction: column;
    gap: 0px;
    padding-bottom: 10px;
}

.main-weather-card .row .value {
    display: block;
    padding-top: 12px;
}

#cardRow .small-weather-card img {
    width: 95%;
    height: auto;
}