:root {
    --container: 500px;
}
body {
    background-image: url(../assets/index/bg.png);
    background-size: 100%;
}
#container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: min(100%, var(--container));
    padding: 10px;

    border: 1px solid #5e5e5e;
    outline: 1px solid #dfdfdf;
    background-color: #f3f3f3;
    border-radius: 10px;
}

h3 {
    font-size: 20px;
    font-family: madou;
    background-color: #589fa8;
    color: #f3f3f3;
    padding-left: 4px;
    margin-bottom: 10px;
}

main p {
    font-size: 18px;
    margin-bottom: 5px;
}

main p::before {
    content: "* ";
}

main span {
    color: #313131;
    text-shadow: 0px 1px #e1e1e1;
    font-size: 18px;
    font-weight: bold;
}

main span::before {
    content: ".::";
    color: #bbbbbb;
    float: left;
}

main span::after {
    content: "::.";
    color: #bbbbbb;
    float: right;
}

.flex {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
    flex-wrap: wrap;
}

#chester,
#dolores {
    width: 160px;
    cursor: pointer;
    text-align: center;
}

button {
    width: 100%;
    border: 1px solid;
    height: 30px;
    font-size: 20px;
    cursor: pointer;
    background: #eaeaea;
}

#chester:hover button,
#dolores:hover button {
    background-color: #fbfbfb;
}

#chester img,
#dolores img {
    width: 100%;
    height: auto;
    margin-top: 10px;
    animation-fill-mode: both;
    will-change: transform;
}

#dolores:hover img {
    animation: jump 0.6s ease-out;
}

#chester:hover img {
    animation:
        jump 0.6s ease-out,
        yippee 0.5s ease-in-out infinite;
    animation-delay: 0s, 0.6s;
}

@keyframes jump {
    0%, 100% {
        transform: translateY(0) scale(1, 1);
    }

    15% {
        transform: translateY(10px) scale(1.15, 0.85);
    }

    35% {
        transform: translateY(-12px) scale(0.95, 1.1);
    }

    60% {
        transform: translateY(-6px) scale(1.02, 0.98);
    }

    80% {
        transform: translateY(10px) scale(1.1, 0.9);
    }
}

@keyframes yippee {
    0%, 100% {
        transform: translateY(0) scale(1, 1);
    }

    35% {
        transform: translateY(-8px) scale(0.97, 1.08);
    }

    60% {
        transform: translateY(-4px) scale(1.02, 0.98);
    }

    80% {
        transform: translateY(8px) scale(1.08, 0.92);
    }
}

@media (max-width: 600px) {
    #container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        margin: 20px auto;
    }

    #chester,
    #dolores {
        width: 100%;
        max-width: 240px;
    }
}
footer p {
    text-align: center;
}