@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,700');


*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    background: url("./images/sara-the-freak-A4UojtraSrw-unsplash.jpg") no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    font-family: Poppins, sans-serif;
    color: white;
    font-size: 2rem;
    min-height: 100vh;
    transition: background-image 1s ease-in-out;
}

.main {
    display: flex;
    flex-grow: 1;
    justify-content: space-around;
}

@keyframes slideinleft {
    from {
        transform: translateX(-10%);
        opacity: 0;
    }

    to {
        transform: translateX(0%);
        opacity: 1;
    }
}

@keyframes slideinright {
    from {
        transform: translateX(10%);
        opacity: 0;
    }

    to {
        transform: translateX(0%);
        opacity: 1;
    }
}

@keyframes slideup {
    from {
        transform: translateY(10%);
        opacity: 0;
    }

    to {
        transform: translateX(0%);
        opacity: 1;
    }
}

@keyframes show {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


.accept-location {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.main-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 5rem 5rem 5rem 10rem;
    font-size: 3rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.main-left input {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
    padding: .8em 1.2em;
    color: inherit;
    border-radius: 12px;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.main-left input:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

::placeholder {
    color: white;
    opacity: 1;
    font-size: 1.2rem;
}

.main-left .city {
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.main-left .description {
    font-size: 1.8rem;
    text-transform: capitalize;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.temperature {
    margin: 1rem 0;
    font-weight: bold;
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.main-left img {
    max-width: 5vw;
}

.main-right {
    display: flex;
    flex-direction: column;
    margin: 7rem 11rem 5rem 5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.main-right img {
    max-width: 2vw;
    margin-right: 1rem;
}

.icons {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 1.2rem;
    padding: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

footer {
    display: flex;
    justify-content: center;
    height: 300px;
    flex-wrap: wrap;
}

.day {
    font-size: 1.2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.day-weather {
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: scale(0.9);
    transition: 0.5s ease all;
    min-height: 300px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    margin-right: 2rem;
}

.day-weather p {
    font-size: 1rem;
}

.day-1,
.day-2,
.day-3,
.day-4,
.day-5 {
    font-size: 1.2rem;
}

.feel {
    opacity: .5;
    transition: .5s all ease;
}

.day-weather:hover {
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.5);
    transform: scale(1);
    transition: .5s all ease;
    background: rgba(255, 255, 255, 0.15);
}

.day-weather:hover .feel {
    opacity: 1;
}

.hide {
    display: none;
}


@media (max-width: 800px) and (orientation: portrait) {
    footer {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
    }

    .main {
        display: flex;
        flex-grow: 1;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .hide {
        display: none;
    }

    .main-left {
        max-height: 100vh;
        margin: 5rem 5rem 5rem 5rem;
    }

    .main-right {
        max-height: 100vh;
    }

    .main-left img {
        min-width: 30vw;
    }

    .icons {
        font-size: 1.5rem;
    }

    .icons img {
        min-width: 20vw;
    }

    .accept-location {
        font-size: 2rem;
        text-align: center;
    }

    .day-weather {
        max-width: 40%;
        font-size: 1rem;
        margin: 0 1rem;
    }

    .day-1,
    .day-2,
    .day-3,
    .day-4,
    .day-5 {
        font-size: 1rem;
    }

    .day-weather:last-child {
        margin-bottom: 1rem;
    }
}