/* Light Font */
@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins/Poppins-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

/* Medium Font */
@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

/* Bold Font */
@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins/Poppins-Bold.ttf') format('truetype');
    font-weight: 700; /* Bold */
    font-style: normal;
}

:root {
    color: white;
    background: linear-gradient(45deg, rgba(5,0,89,1) 0%, rgba(0,58,175,1) 31%, rgba(0,112,217,1) 53%, rgba(0,212,255,1) 100%);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

* {
    margin: 0;
    padding: 0;
}

body {
    font-weight: 300;
    min-width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
}

header {
    font-size: 1rem;
    z-index: 1000;
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0.2rem;
    text-align: center;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.icon {
    width: auto;
    max-height: 100%;
}

.main-container {
    width: 34.6rem;
    margin: auto;
    margin-top: 5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.current-container {
    width: 100%;
    margin: auto;
    padding: 2rem;
    box-sizing: border-box;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: rgb(0, 0, 0, 0.2);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    border-radius: 3rem;
}

.current-location {
    font-size: 3rem;
    display: flex;
    align-items: end;
    gap: 1rem;
}

.current-location p:nth-of-type(2) {
    font-size: 2rem;
}

.current-weather-image {
    width: 15rem;
    height: 15rem;
    margin-top: -2rem;
}

.current-weather-main {
    font-size: 2rem;
    margin-top: -2.5rem;
}

.current-weather-description {
    font-size: 1.2rem;
    margin-top: 0.4rem;
    margin-bottom: 2rem;
}

.current-weather-degree,
.current-weather-feels-like,
.current-weather-humidity,
.current-weather-wind {
    font-size: 1.3rem;
    width: 9rem;
    height: 1.5rem;
    margin-top: 0.5rem;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    filter: brightness(0) invert(1);
}

.today-container {
    width: 100%;
    margin: auto;
    margin-left: -0.5rem;
    margin-top: 1.5rem;
    padding: 0.5rem;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    overflow: auto;
}

.today {
    padding: 1.5rem 2.7rem;
    background-color: rgb(0, 0, 0, 0.2);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    border-radius: 3rem;
}

.today-time {
    font-size: 1rem;
}

.today-weather-image {
    width: 5em;
    height: 5rem;
    margin: -0.5rem auto;
}

.today-weather-degree,
.today-weather-feels-like,
.today-weather-humidity,
.today-weather-wind {
    font-size: 1rem;
    width: 100%;
    height: 1rem;
    margin-top: 0.5rem;
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    filter: brightness(0) invert(1);
}

.upcoming-container {
    width: 100%;
    margin: 1.5rem auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.upcoming {
    padding: 0 2rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: rgb(0, 0, 0, 0.2);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    border-radius: 3rem;
}

.upcoming-day {
    font-size: 1.3rem;
    width: 6rem;
}

.upcoming-lower-container {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-left: 9rem;
}

.upcoming-weather-degree,
.upcoming-weather-humidity,
.upcoming-weather-wind {
    font-size: 1rem;
    height: 1rem;
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    filter: brightness(0) invert(1);
}

.upcoming-weather-image {
    width: 5rem;
    height: 5rem;
    margin-right: -1.4rem;
}

.cookie-banner {
    position: fixed;
    z-index: 1000;
    top: 50%;
    left: 50%;
    margin: auto;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgb(0, 0, 0, 0.2);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    border-radius: 3rem;
    transform: translate(-50%, -50%);
}

.cookie-content {
    width: 29rem;
    height: 12rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 3rem;
}

.cookie-content p {
    font-size: 1.2rem;
}

.cookie-content button {
    margin-top: 2rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 3rem;
    cursor: pointer;
    background-color: white;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    transition: all ease-in-out 0.1s ;
}

.cookie-content button:hover {
    cursor: pointer;
    transform: scale(1.05);
}

.location-information-container {
    position: fixed;
    z-index: 1000;
    top: 50%;
    left: 50%;
    margin: auto;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgb(0, 0, 0, 0.2);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    border-radius: 3rem;
    transform: translate(-50%, -50%);
}

.location-information {
    width: 34rem;
    height: 12rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 3rem;
}

.location-information p {
    font-size: 1.2rem;
}

.location-information button {
    margin-top: 2rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 3rem;
    cursor: pointer;
    background-color: white;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
    transition: all ease-in-out 0.1s ;
}

.location-information button:hover {
    cursor: pointer;
    transform: scale(1.05);
}

#loading-screen {
    position: absolute;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top: 5px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loading-screen p {
    font-size: 16px;
    margin-top: 15px;
}

@media (max-width: 700px) {
    .main-container {
        position: absolute;
        padding-bottom: 2rem;
        top: -10rem;
        left: 50%;
        transform: translateX(-50%) scale(0.75);
    }

    .cookie-banner, .location-information-container {
        position: absolute;
        top: calc(50%);
        left: 50%;
        transform: translate(-50%, -50%) scale(0.75);
    }
}
@media (max-width: 460px) {
    .main-container {
        position: absolute;
        padding-bottom: 2rem;
        top: -16rem;
        left: 50%;
        transform: translateX(-50%) scale(0.6);
    }

    .cookie-banner, .location-information-container {
        position: absolute;
        top: calc(50%);
        left: 50%;
        transform: translate(-50%, -50%) scale(0.6);
    }
}
@media (max-width: 370px) {
    .main-container {
        position: absolute;
        padding-bottom: 2rem;
        top: -18rem;
        left: 50%;
        transform: translateX(-50%) scale(0.55);
    }

    .cookie-banner, .location-information-container {
        position: absolute;
        top: calc(50%);
        left: 50%;
        transform: translate(-50%, -50%) scale(0.55);
    }
}