body {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    background-color: #000;
    background: url('./assets/bg.jpg');
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center;
    backdrop-filter: blur(7px);
    color: #fff;
}

main {
    position: relative;
    width: 900px;
    min-height: 490px;
    background-image: url('https://res.cloudinary.com/dzynqn10l/image/upload/v1633196203/Msc/pokemon-bg_ig4uv3.jpg');
    background-size: 105%;
    background-repeat: no-repeat;
    background-position: 20px center;
    /* border-radius: 30px; */
    /* border: 2px solid #303030; */
}

#pokemon-container {
    height: 355px;
}

#answer {
    display: none;
}

#bg-overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    position: absolute;
    background-color: #dd1716;
    right: 85px;
    width: 222px;
    height: 222px;
    top: 80px;
    border-radius: 50%;
}

#text-overlay {
    position: absolute;
    /* right: 115px; */
    /* top: 150px; */
    background-color: #ffcb02;
    border: solid 7px #2c70ae;
    padding: 20px;
    min-width: 130px;
    font-family: 'Bangers', Arial, sans-serif;
    font-size: 36px;
    letter-spacing: 1.4px;
    color: #3ea2fe;
    text-shadow: 2px 2px #1d366c;
    border-radius: 20px;
    text-align: center;
}

#controls {
    position: relative;
    padding: 20px 40px;
}

button {
    background: #fff;
    border: none;
    color: #3e7ae7;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 36px;
    border-radius: 8px;
    text-transform: uppercase;
    box-shadow: 0px 4px 10px 1px;
    cursor: pointer;
    transition: all .2s ease-out;
}

button:hover {
    box-shadow: 0px 4px 10px 4px;
    background-color: #fff6d1;
}

button.correct,
button.incorrect {
    color: #d9fcd9;
    box-shadow: none;
}

button.correct {
    background: #0dff0d;
}

button.incorrect {
    background: #ea2e25;
}

button:disabled {
    cursor: not-allowed;
}

#play {
    position: absolute;
    top: -56px;
    left: 39px;
}

#pokeball {
    width: 78px;
    margin: 144px 0 0 144px;
    position: absolute;
    visibility: hidden;
    animation: wiggle 1.35s infinite;
}

#pokemon-image {
    margin: 135px 0 0 140px;
    transform: scale(2.5);
    filter: brightness(0);
    transition: filter .5s ease-out;
    position: absolute;
    left: 100px;
    top: 35px;
}

main.fetching #pokeball {
    visibility: visible;
}

main.fetching #pokemon-image {
    visibility: hidden;
    display: none;
}

main.fetching #choices {
    display: none;
}

main.revealed #pokemon-image {
    filter: none;
}

main.revealed #answer {
    display: block;
}

#choices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 12px;
    width: 50%;
}

@keyframes wiggle {
    0% {
        transform: rotate(0deg);
    }

    80% {
        transform: rotate(0deg);
    }

    85% {
        transform: rotate(6deg);
    }

    95% {
        transform: rotate(-6deg);
    }

    100% {
        transform: rotate(0deg);
    }
}