/* General styles */

a {
    color: #0000ff;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    position: relative;
}

body {
    font-family: Arial, sans-serif;
    background-color: #e5e5e5;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: white;
    transition: all 0.7s ease-in-out;
    margin: 0;
    display: flex;
    flex-direction: column;

}

main {
    flex: 1;
}

#bodyArticle {
    background-color: rgba(195, 195, 195, 0.692);
    size: 100%;
    padding: 1.5rem;
}

#bodySection {
    background-color: rgba(0, 0, 0, 0.692);
}

article {
    display: flex;
    flex-direction: column;
}

h1 {
    z-index: 9;
    background-color: transparent;
    text-align: center;
    align-self: center;
    border-radius: 2rem;
    font-size: 2rem;
}

section {
    position: relative;
    align-content: center;
    border-radius: 2rem;
}

/* Button and selector */

button {
    height: 2rem;
    transition: all 0.3s ease-in-out;
    border: solid 2px;
    border-radius: 2rem;
    border-color: cadetblue;
    mix-blend-mode: luminosity;
}

button:hover {
    transform: scale3d(1.02, 1.02, 1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);

}

button[disabled]:hover {
    transform: none;
    box-shadow: none;
}

.loader {
    transform: rotateZ(45deg);
    perspective: 1000px;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    color: #fff;
}

.loader:before,
.loader:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: inherit;
    height: inherit;
    border-radius: 50%;
    transform: rotateX(70deg);
    animation: 1s spin linear infinite;
}

.loader:after {
    color: #FF3D00;
    transform: rotateY(70deg);
    animation-delay: .4s;
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotateZ(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotateZ(360deg);
    }
}

@keyframes rotateccw {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

@keyframes spin {

    0%,
    100% {
        box-shadow: .2em 0px 0 0px currentcolor;
    }

    12% {
        box-shadow: .2em .2em 0 0 currentcolor;
    }

    25% {
        box-shadow: 0 .2em 0 0px currentcolor;
    }

    37% {
        box-shadow: -.2em .2em 0 0 currentcolor;
    }

    50% {
        box-shadow: -.2em 0 0 0 currentcolor;
    }

    62% {
        box-shadow: -.2em -.2em 0 0 currentcolor;
    }

    75% {
        box-shadow: 0px -.2em 0 0 currentcolor;
    }

    87% {
        box-shadow: .2em -.2em 0 0 currentcolor;
    }
}

.selector {
    mix-blend-mode: luminosity;
    display: flex;
    flex-direction: row;
    transition: all .3s ease-in-out;
    align-items: center;
    justify-content: center;
    column-gap: 0.3rem;
    margin: 1rem;
}

#dropdown-selector {
    height: 2rem;
    cursor: auto;
    transition: all .3s ease-in-out;
    border: solid 2px;
    border-radius: 2rem;
    background-color: #e5e5e5;
    border-color: cadetblue;
}

#dropdown-selector:hover {

    transform: scale3d(1.02, 1.02, 1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Weather section */

#weatherInfo {
    align-content: flex-start;
    text-indent: 5rem;
    transition: all 0.3s ease-in-out;
}

.pWeather {
    margin: 0.5rem;
}

/* Forecast section */

.pForecast {
    margin: 1rem;
}

#forecastInfo {
    margin-top: 1rem;
}

#forecastContainer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 1rem;

}

.forecast {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.fDay {
    display: flex;
    flex-direction: column;
    text-align: center;
    margin: auto;
    transition: all 0.3s ease-in-out;
}

.fDay:hover {
    transform: scale3d(1.1, 1.1, 1);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Footer */
footer {
    font-size: medium;
    text-align: center;
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: #353a61;

}

.footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    column-gap: 0.3rem;
    /* position: sticky; */
    bottom: 0;

}