@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

main {
    font-family: 'Poppins', sans-serif;
    justify-items: center;
    display: grid;
    grid-gap: 5px;
    grid-template-areas: 
        "wash-title"
        "pic-box"
        "wash-information"
    }

main ul {     
    list-style: square;
    padding: 0 50px;
}

h1 {
    width: 100%;
    display: block;
    text-align: center;
    background-color: #06719C;
    color: white;
    padding: 15px;
    grid-area: wash-title;
}

h2 {
    padding: 10px;
}

p {
    padding: 10px;
}

#box {
    width:100%;
    grid-area: pic-box;
    display: grid;
    grid-template-areas: 
        "click-here"
        "wear-pictures"
}

#click {
    background: #06719C;
    color: white;
    width: 100%;
    text-align: center;
    padding: 5px 0;
    grid-area: click-here;
}

.wash-facts {
    grid-area: wash-information;
}

.wash-images {
    grid-area: wash-pictures;
}

#hands {
    width: 375px;

}

#spout {
    width: 150px;
    position: absolute;
    left: 35px
}

.turn-on-water {
    animation-name: handle-turn;
    animation-duration: 3s;
    animation-fill-mode: forwards;
}


@keyframes handle-turn {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(359deg);
    }
}

@media only screen and (min-width: 481px) {
    main {
        grid-template-columns: 1fr, 1fr;
        grid-gap: 10px;
        grid-template-areas:
            "wash-title wash-title"
            "wash-pictures wash-information"
    }

    p {
        font-size: 1.5em;
        padding: 10px;
    }

    #hands {
        width: 650px;
        position: relative;
        top: 0px;
        left: 0px
    }
    
    #spout {
        min-width: 200px;
        top: 150px;
        left: 65px;
        z-index: 1;
    }

}