* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-image: url(images/Фон.png);
    background-size: cover;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

.content {
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    min-height: 100vh;
}

.main {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 30px 40px;
    width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.state {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.state__title {
    font-size: 40px;
    text-align: center;
    margin: 15px 0;
}

.board__title {
    font-size: 18px;
}

.board__input {
    width: 100%;
    height: 100%;
    background: transparent;
    outline: none;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 40px;
    font-size: 16px;
    padding: 20px 45px 20px 20px;
    margin: 30px 0;
}

.board__input::placeholder {
    color: black;
}

.board__input:focus {
    border:  2px solid black;
}

.board__button:hover {
    color: rgba(181, 13, 181, 0.7);
}

/* Все кнопки */
.button {
    width: 100%;
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    border-radius: 40px;
    padding: 20px;
    cursor: pointer;
    background: transparent;
}

.button:hover {
    color: rgba(181, 13, 181, 0.7);
}

/* Игровое поле */

.table {
    display: grid;
    min-width: 300px;
    max-width: 1000px;
    margin-bottom: 20px;
    gap: 10px;
}

.card {
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(218, 69, 218, 0.6);
    border-radius: 5px;
    transition: .3s;
    font-size: 30px;
    cursor: pointer;
}

.card:hover {
    background-color: rgba(218, 69, 218, 1);
}

.card.flip {
    background: rgb(225, 18, 132);
    transform: perspective(100px) rotateY(180deg);
    user-select: none;
}

.default-icon {
    display: block;
    pointer-events: none;
}

.flipped-icon {
    display: none;
    pointer-events: none;
}

.card.flip .flipped-icon {
    display: block;
}

.card.flip .default-icon {
    display: none;
}

.card.successfully {
    background: rgb(29, 208, 50);
    transform: scale(0.95);
}