* {
    box-sizing: border-box;
    font-size: 16px;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
}

.body-witcher {
    --title: #310a0b;
    --buttonSelected: #310a0b;
    --fontButton: black;
    --font: black;
    --cardBoarder: black;
    --background: #eaeaea;
    --cardColor: #221f1a;
    --container: rgba(156, 141, 141, 0.5);
    --button: rgba(34, 31, 26, 0.25);
}

.body-wow {
    --title: #9b7052;
    --buttonSelected: #8a4520;
    --fontButton: #130e13;
    --font: #130e13;
    --cardBoarder: #9b7052;
    --background: rgba(222, 138, 92, 0.2);
    --cardColor: #130e13;
    --container: rgba(53, 35, 21, 0.5);
    --button: rgba(223, 206, 111, 0.25);
}

body {
    background-color: var(--background);
    width: 1200px;
    margin: 0 auto;
    color: var(font);
}

header {
    padding-top: 30px;
    padding-bottom: 30px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
}

.timer {
    position: absolute;
    right: 10px;
    display: none;
}

header h1 {
    text-transform: uppercase;
    color: var(--title);
    font-size: 56px;
    letter-spacing: -0.4%;
    font-weight: 700;
}

.finish {
    margin: 0 auto 40px auto;
    padding: 2px;
    border: 1px solid var(--cardBoarder);
    cursor: pointer;
    background-color: var(--background);
    color: var(--title);
    font-size: 14px;
    border-radius: 4px;
    align-items: center;
    opacity: 0.7;
    display: none;
}

.finish:hover {
    opacity: 1;
}

main {
    padding-bottom: 20px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 35px;
    flex-wrap: wrap;
    width: 100%;
}

#root {
    padding-bottom: 20px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 35px;
    flex-wrap: wrap;
    width: 100%;
}

.game-style {
    background-color: var(--container);
    padding: 20px;
    border-radius: 30px;
    width: 100%;
    max-width: 600px;
    display: none;
    flex-direction: column;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
}

.section:last-child {
    margin: 0;
}

.section .title {
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--font);
}

.section .options {
    display: flex;
    width: 100%;
}

.n-cards .options {
    flex-direction: column;
    flex-wrap: wrap;
    gap: 5px;
    height: 125px;
    justify-content: center;
    align-items: center;
}

.n-cards .options button {
    width: 15%;
    margin: 0 2px;
}

.options button {
    width: 100%;
    margin: 0 5px;
    padding: 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    background-color: var(--button);
    color: var(--fontButton);
}

button.selected,
.options .next {
    background-color: var(--buttonSelected);
    color: var(--background);
}

.body-wow button.selected,
.body-wow .options .next {
    background-color: var(--buttonSelected);
    color: var(--font);
}

.disabled-button {
    opacity: 0.25;
    cursor: default;
}

.container {
    height: 146px;
    width: 117px;
    border-radius: 5px;
    position: relative;
    display: none;
    cursor: pointer;
}

.container:hover {
    transform: translateY(-3px);
}

.show {
    display: flex;
}

.show2 {
    display: flex;
}

.sucess {
    opacity: 0.25;
    pointer-events: none;
}

.block {
    pointer-events: none;
}

.card {
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--cardBoarder);
    transform-style: preserve-3d;
    background-color: var(--cardColor);
    width: 100%;
    height: 100%;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    backface-visibility: hidden;
    transition: all 0.5s;
}

.image-front {
    height: 100%;
    width: 100%;
    transform: rotateY(180deg);
}

.body-witcher .image-back {
    background-image: url(https://archive.org/download/GOGTheWitcher3WildHunt/%5B7%5D%20Extras/Profile%20Avatars/Witcher%203%20Wild%20Hunt%2C%20The%20-%20avatar%2018.jpg);
}

.body-wow .image-back {
    background-image: url(https://static.wikia.nocookie.net/wowwiki/images/1/10/Earthwarder.png);
    opacity: 0.9;
    background-size: cover;
}

.image-back {
    height: 100%;
    width: 100%;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    transform: rotateY(0deg);
}

.image-front img {
    height: 100%;
    width: 100%;
    border-radius: 5px;
    object-fit: cover;
}

.marked .image-front,
.sucess .image-front {
    transform: rotateY(0deg);
}

.marked .image-back,
.sucess .image-back {
    transform: rotateY(-180deg);
}

@media (max-width: 1200px) {
    body {
        width: 100%;
    }

    header {
        padding-top: 15px;
        padding-bottom: 15px;
        height: 90px;
    }

    header h1 {
        font-size: 45px;
        letter-spacing: -0.25%;
    }

    main {
        gap: 20px;
    }

    .container:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 650px) {
    header h1 {
        font-size: 36px;
        letter-spacing: -0.15%;
        text-align: center;
    }

    .container:hover {
        transform: translateY(-1px);
    }

    main {
        gap: 10px;
    }
}
