.libre-baskerville {
    font-family: 'Libre Baskerville', serif;
    font-optical-sizing: auto;
}

.inter {
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;

    box-sizing: border-box;
    text-decoration: none;
    text-transform: capitalize;
    color: #040406;
}

img {
    width: 100%;
}

body {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    height: 100vh;

    font-family: "Inter", arial, sans-serif;
}

main {
    max-width: 460px;
    margin: 0 auto;
    padding: 18px 14px 0;
}

.header-container,
.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

h1 {
    font-family: 'Libre Baskerville', serif;
    color: white;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.28);

}

.timestamp {
    display: none;
}


/* start header */
header {
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.46);

    border-radius: 0px 0px 20px 20px;
}

.logo {
    width: 62px;
    flex-shrink: 0;
    padding: 4px 0;

    padding-top: 10px;
    padding-bottom: 10px;
}

/* end header */

/* start searchbar */
.search-bar {
    display: flex;
    align-items: center;

    background: rgba(255, 255, 255, 0.32);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.60);
    border-radius: 50px;

    padding: 5px 5px 5px 20px;
    margin-bottom: 16px;
}

.search-bar input.inputcity {
    flex: 1;

    border: none;
    outline: none;
    background: transparent;

    padding: 5px 0;

    font-size: 15px;
}

.search-bar input.inputcity::placeholder {
    font-style: italic;
    color: rgba(105, 101, 99, 0.871);
}

.search-bar button.inputbutton {
    width: 40px;
    height: 40px;

    cursor: pointer;

    padding: 4px;

    background: transparent;
    border: none;
}

/* end searchbar */

/* start location */
.current-location {
    margin-bottom: 8px;
    padding-left: 2px;
    min-height: 20px;
}

.currentcity {
    font-size: 14px;
}

/* end location */

/* start weather-card */
.weather-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}

.weather-card {
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.46);
    border-radius: 18px;
}

.date{
    text-transform: uppercase;
}

/* start today weather-card */
.weather-card.today {
    grid-column: 1 / -1;
    display: grid;
    align-items: start;
    grid-template-columns: 1fr 130px;
    padding: 22px 20px 20px 22px;
}

.weather-card.today .date {
    font-size: 25px;
    font-weight: 700;

    margin-bottom: 8px;
}

.weather-card.today .weathericon {
    grid-row: 1 / 4;
    width: 115px;
    height: 115px;
    align-self: center;
    justify-self: center;
    margin-top: 4px;
}

.weather-card.today .description {
    font-size: 17px;
    font-weight: 400;
    margin-bottom: 6px;
}

.weather-card.today .temp {
    grid-column: 1;
    grid-row: 3;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
}

.weather-card.today .details {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 0;
    margin-top: 18px;
    padding-top: 14px;
}

.weather-card.today .details p {
    font-size: 14px;
    font-weight: 400;
}

.weather-card.today .details .wind,
.weather-card.today .details .humidity {
    text-align: right;
    font-weight: 600;
}
/* end today weather-card */

/* start other weather-card */
.weather-card:not(.today) {
    display: grid;
    grid-template-columns: 1fr 60px;
    padding: 14px 14px 12px 14px;
}

.weather-card:not(.today) .date {
    font-size: 17px;
    margin-bottom: 2px;
}

.weather-card:not(.today) .weathericon {
    grid-row: 1 / 4;

    width: 54px;
    height: 54px;

    align-self: center;
    justify-self: center;
}

.weather-card:not(.today) .description {
    grid-column: 1;
    grid-row: 2;
    font-size: 13px;
    margin-bottom: 3px;
}

.weather-card:not(.today) .temp {
    font-size: 23px;
    font-weight: 700;
}

.weather-card:not(.today) .details {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 0;
    margin-top: 10px;
    padding-top: 9px;
}

.weather-card:not(.today) .details p {
    font-size: 12px;
    font-weight: 400;
}

.weather-card:not(.today) .details .wind,
.weather-card:not(.today) .details .humidity {
    text-align: right;
    font-weight: 600;
    font-size: 12px;
}

/* end weather-card */


/* start footer */

footer {
    margin: 18px auto 0;
    padding: 10px 14px 14px;
    height: 60px;

    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.46);

    border-radius: 20px 20px 0px 0px;
}

.footer-container {
    width: 95%;
    margin: auto;
    padding: 12px 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 2px;
}

.copyright p {
    font-size: 14px;
}

.socials {
    display: flex;
    gap: 12px;
}

.socials img {
    width: 28px;
    height: 28px;
    display: block;
}

/* end footer */

@media (min-width: 800px) {
    
    .header-container {
        justify-content: flex-start;
        padding: 0 40px;
        position: relative;
        height: 110px;
    }

    .logo {
        width: 75px;
        padding: 10px 0;
    }

    h1 {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 45px;
    }

    main {
        max-width: 1100px;
        padding: 40px 40px 0;
    }

    /* start searchbar */
    .search-bar {
        max-width: 1100px;
        margin: 0 auto 40px;
        padding: 8px 8px 8px 28px;
    }

    .search-bar button.inputbutton {
        width: 55px;
        height: 55px;
        padding: 10px;
    }
    /* end searchbar */

    /* start location */
    .current-location {
        margin-bottom: 20px;
    }

    .currentcity {
        font-size: 20px;
        margin-bottom: 12px;
    }
    /* end location */

    /* start weather-card */
    .weather-cards {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 16px;
        max-width: 1100px;
    }

    /* start today weather-card */
    .weather-card.today {
        grid-column: 1;
        grid-row: 1 / 3;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding: 32px 28px 28px 32px;
        min-height: 340px;
    }

    .weather-card.today .date {
        font-size: 30px;
        margin-bottom: 24px;
    }

    .weather-card.today .weathericon {
        width: 130px;
        height: 130px;
        margin: 0 auto 16px 0;
        align-self: unset;
        justify-self: unset;
    }

    .weather-card.today .description {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .weather-card.today .temp {
        font-size: 45px;
    }

    .weather-card.today .details {
        gap: 6px 0;
        padding-top: 20px;

        width: 300px;
    }

    .weather-card.today .details p {
        font-size: 17px;
    }

    .weather-card.today .details .wind,
    .weather-card.today .details .humidity {
        font-size: 17px;
    }
    /* end today weather-card */

    /* start other weather-card */
    .weather-card:not(.today) {
        grid-template-columns: 1fr 70px;
        padding: 18px 18px 16px 20px;
    }

    .weather-card:not(.today) .date {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .weather-card:not(.today) .weathericon {
        grid-column: 2;
        width: 67px;
        height: 67px;
    }

    .weather-card:not(.today) .description {
        font-size: 17px;
    }

    .weather-card:not(.today) .temp {
        font-size: 30px;
    }

    .weather-card:not(.today) .details {
        margin-top: 14px;
        padding-top: 12px;
    }

    .weather-card:not(.today) .details p {
        font-size: 14px;
    }

    .weather-card:not(.today) .details .wind,
    .weather-card:not(.today) .details .humidity {
        font-size: 14px;
    }
    /* end weather-card */

    /* start footer */
    footer {
        margin-top: 40px;
        padding: 0 60px 0;
        height: 64px;
    }

    .footer-container {
        max-width: 1100px;
        margin: 0 auto;
        width: 100%;
        padding: 16px 0 0;
    }

    .copyright p {
        font-size: 17px;
    }

    .socials a {
        width: 50px;
        height: 50px;
    }
}