:root {
    background-color: #1C0000;
}

* {
    box-sizing: border-box;
    margin-top: 2 px;
    margin-bottom: 2 px;
    padding: 0;
    color: #D6C2B3;
}

/* html, body {
    width: 100%;
    overflow-x: hidden;
} */

.card {
    position: relative;
    width: 100%;
    /* Занимает всю доступную ширину */
    max-width: 440px;
    height: 96dvh;
    margin: 0 auto;
    background-color: #981F24;
    border-radius: 50px;
    display: flex;
    flex-direction: column;
    align-content: center;
    overflow-y: auto;
    overflow-x: hidden;
}

.card-header {
    margin-left: 40px;
    margin-right: 40px;
    margin-top: 60px;
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-family: serif;
    font-weight: 100;
}

.header-title {
    font-size: 22px;
    font-weight: light;
}

.tags-poses {
    padding: 0;
    display: flex;
    flex-direction: row;
    justify-content: start;
    flex-wrap: wrap;
    flex-grow: 0;
    flex-shrink: 0;
    margin-top: 20px;
    margin-left: 40px;
    margin-right: 40px;
    font-family: 'Roboto', Helvetica, Arial;
    font-weight: 300;
    font-size: 13px;
}

.tag {
    border: #D6C2B3 solid 1px;
    border-radius: 12px;
    padding: 2px;
    padding-left: 5px;
    padding-right: 5px;
    margin-right: 5px;
    margin-bottom: 8px;
}

.fig-tag {
     font-weight: 200;
        font-size: 12px;
}

.tag:hover {
    background-color: #D6C2B3;
    color: #981F24;
}

.main-pic {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.main-pic img {
    height: 360px;
    opacity: 0.6;
}

.main-pic img:hover {
    opacity: 1;
    transition: opacity 0.3s ease;
}

.counter-box {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    font-family: 'Roboto', Helvetica, Arial;
    font-weight: 300;
    font-size: 14px;
    align-items: center;
    gap: 10px;
}

/* .icon_maroon {
    width: 24px;
} */

.zag-pose-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.zag-pose {
    font-family: serif;
    font-weight: 200;
    font-size: 24px;
}

.card-footer {
    margin-left: 40px;
    margin-right: 40px;
    margin-bottom: 50px;
    margin-top: auto;
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-family: serif;
    font-weight: 100;
}

.back,
.burger,
.shuffle,
.down,
.forward,
.comment,
.like {
    stroke: #D6C2B3;
    fill: transparent;
    transition: transform 0.3s ease-in-out;
}

.comment:hover,
.forward:hover,
.like:hover {
    /* transform: scale(1.2); */
    cursor: pointer;
    fill: #D6C2B3;
}

.back:hover,
.burger:hover {
    transform: scale(1.2);
    cursor: pointer;
}

.down:hover {
    transform: rotate(180deg);
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.maroonlogo {
    display: block;
    padding: 20px;
    width: 100%;
    fill: #D6C2B3;
    margin: 0 auto;
}

.cross {
    stroke: #D6C2B3;
    cursor: pointer;
}

/* .menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 440px;
    height: 80dvh;
    background-color: rgba(195, 202, 94, 0.8);
    display: none;
}  */

.menu-toggle {
    display: none;
}

.menu {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;

    background-color: rgba(28, 0, 0, 0.9);
    /* Возвращаем полупрозрачный фон для красивого эффекта */
    z-index: 100;
    border-radius: 50px;
    padding: 60px 40px 40px;
    /* Добавляем внутренние отступы для контента меню */

    /* Анимация начинается здесь */
    opacity: 0;
    /* Делаем полностью прозрачным */
    visibility: hidden;
    /* Прячем от кликов */
    transform: translateY(-100%);
    /* Сдвигаем вверх за пределы экрана */
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
    /* Анимация 0.5с */
}

/* 2. Конечное (видимое) состояние меню, когда чекбокс нажат */
.menu-toggle:checked~.menu {
    opacity: 1;
    /* Делаем непрозрачным */
    visibility: visible;
    /* Показываем */
    transform: translateY(0);
    /* Возвращаем на место */
}


/* Когда чекбокс отмечен, скрываем иконку-бургер */
.menu-toggle:checked~.burger-label {
    visibility: hidden;
}

/* --- Стили для иконки крестика внутри меню --- */

.menu-header {
    display: flex;
    justify-content: flex-end;
    /* Размещаем крестик справа */
    margin-bottom: 20px;
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Задает расстояние в 20px между каждым пунктом меню */
}

.menu-link {
    color: #D6C2B3;
    text-decoration: none;
    font-family: 'Roboto', Helvetica, Arial;
    font-weight: 300;
    font-size: 24px;
    padding: 20px;
}