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

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
}
h1  {
    margin-bottom: 30px;
    font-size: 2.5em;
}
.box {
    position: relative;
    width: 800px;
    height: 210px;
    /*background-color: #000;*/
    border-bottom: 2px solid #555;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.box label {
    position: relative;
    width: 100%;
    height: 33.333%;
    border: 2px solid #555;
    border-bottom: none;
    cursor: pointer;
}
.box label input {
    appearance: none;
    position: relative;
    z-index: 10;
}
.box label i {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 800px;
}
.box label:nth-child(1) i {
    background-image: url(../img/01.png);
    animation: animate 0.5s steps(3) infinite;
}
.box label:nth-child(2) i {
    background-image: url(../img/02.png);
    animation: animate 0.4s steps(3) infinite;
}
.box label:nth-child(3) i {
    background-image: url(../img/03.png);
    animation: animate 0.7s steps(3) infinite;
}
@keyframes animate {
    0% {
        background-position: 0;
    }
    100% {
        background-position: 800px;
    }
}
.box label input:checked ~ i {
    animation-play-state: paused;
}
.reset {
    margin-top: 40px;
    border: none;
    font-size: 1.25em;
    padding: 10px 25px;
    background: #333;
    color: #fff;
    cursor: pointer;
}
.reset:active {
    background: #d63c3c;
    transform: scale(0.95);
}