* {
    font-family: "Handjet", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
}

h2 {
    margin-bottom: 30px;
    font-size: 3.5em;
}

.box {
    position: relative;
    width: 600px;
    height: 200px;
    border: 2px solid #555;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.41);
    cursor: pointer;
}

.box label {
    position: relative;
    width: 100%;
    height: 33.333%;
    border: 2px solid #555;
    border-bottom: none;
}

.box label input {
    position: relative;
    z-index: 10;
    appearance: none;
}

.box label i {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 600px;
    cursor: pointer;
}

.box label:nth-child(1) i {
    background-image: url(upper.jpg);
    animation: animate 1.5s steps(3) infinite;
}

.box label:nth-child(2) i {
    background-image: url(middle.jpg);
    animation: animate 1s steps(3) infinite;
}

.box label:nth-child(3) i {
    background-image: url(bottom.jpg);
    animation: animate 1.2s steps(3) infinite;
}

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

    100% {
        background-position: 600px;
    }
}

.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;
    border-radius: 50px;
    box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.51),
        inset 2px 2px 4px rgba(255, 255, 255, 0.75),
        -5px -5px 30px #fff;
    cursor: pointer;
}

.reset:active {
    background: #d63c3c;
    box-shadow: 5px 5px 30px #d63c3ca4,
        inset 2px 2px 4px rgba(255, 255, 255, 0.75),
        -5px -5px 30px #fff;
    transform: scale(0.95);
}

.rr {
    display: none;
}

.result {
    font-size: 4.5em;
    background: linear-gradient(90deg, rgb(135, 135, 37), rgb(222, 222, 28));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: flex;
}