* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: rgb(197, 59, 82);
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.cup {
    height: 140px;
    width: 180px;
    border: 6px solid black;
    border-radius: 0px 0px 70px 70px;
    box-shadow: 0px 0px 0px 6px black;
    background: url('assets/liquid.jpeg');
    background-size: cover;
    background-repeat: repeat-x;
    background-position: 0px 140px;
    animation: fill 5s infinite;
}

.handle {
    width: 80px;
    height: 70px;
    border: 10px solid black;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 100%;
    margin-left: 20px;
    border-radius: 0px 15px 70px 0px;
    box-shadow: 9px solid wheat;
}

@keyframes fill {
    0% {
        background-position: 0px 140px;
    }

    20% {
        background-position: -450px 100px;
    }

    40% {
        background-position: -900px 50px;
    }

    80% {
        background-position: -1000px 0px;
    }

    100% {
        background-position: 0px 140px;
    }
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .cup {
        height: 120px;
        width: 150px;
        border-radius: 0px 0px 60px 60px;
    }

    .handle {
        width: 60px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .cup {
        height: 100px;
        width: 120px;
        border-radius: 0px 0px 50px 50px;
    }

    .handle {
        width: 50px;
        height: 40px;
    }
}