.container {
    /* width: 900px; */
    /* margin: 0 auto; */
    /* text-align: center; */
    margin-top: 21px;
    /* display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column; */
    /* transform: scale(1.1,1.1); */
    /* transform: translate(0%,0%); */
}

.grid-container {
    display: grid;
    width: 800px;
    grid-template-columns: repeat(5, 1fr); /* пять колонок */
    /* grid-auto-rows: 150px; высота рядов */
    grid-auto-rows: 195px; /* высота рядов */
    /* gap: 30px; */
    /* margin-top: 20px; */
}

.card {
    background-color: transparent; /* прозрачная подложка */
    /* border-radius: 10px; */
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
    border: 1px solid #386a6d;
    cursor: pointer;
    position: relative;
    /* overflow: hidden; */
    /* height: 150px;
    width: 150px; */
    width: 232px;
    height: 195px;
    perspective: 1000px; /* глубокая перспектива */
    transform-style: preserve-3d; /* поддержка 3D */
    transition: transform 0.5s ease-in-out; /* плавный переход */
}

.front-face,
.back-face {
    backface-visibility: hidden; /* скрываем обратную сторону */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    text-align: center;
    /* line-height: 150px; */
    line-height: 193px;
    font-size: 2em;
    color: white;
    border-radius: inherit; /* используем внешний радиус */
}

.front-face {
    background-color: green;
    transform: rotateY(180deg); /* закрытая лицевая сторона */
}

.back-face {
    background-color: rgb(11, 62, 81);
    transform: rotateY(0deg); /* открытая обратная сторона */
}

.card.flipped {
    transform: rotateY(180deg); /* полная анимация переворота */
}

.characters {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.draggable {
    font-size: 5em;
    cursor: move;
    /* background-color: lightblue; */
    /* padding: 10px; */
    /* border-radius: 50%; */
    user-select: none;
}