@import url("https://fonts.googleapis.com/css2?family=Cinzel+Decorative&display=swap");

body {
    font-family: ui-sans-serif, -apple-system, system-ui, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif, Helvetica, Apple Color Emoji, Arial, Segoe UI Emoji, Segoe UI Symbol;
}

.navbar-brand {
    font-family: "Cinzel Decorative", sans-serif;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.02em;
}

.sidebar-enter {
    transform: translateX(-100%);
}

.sidebar-enter-active {
    transform: translateX(0);
    transition: transform 0.3s ease-in-out;
}

.sidebar-exit {
    transform: translateX(0);
}

.sidebar-exit-active {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

.content-center {
    display: flex;
    justify-content: center;
}

.sidebar-hidden {
    display: none;
}

.main-content-full {
    width: 100%;
}

.toggle-btn-hidden {
    visibility: hidden;
}

#page-main {
    position: relative;
    height: 100vh;
}


.input-card-count .input-group-text,
.input-card-count .form-control {
    border: none;
    background: transparent;
    text-align: center;
}

.input-card-count .input-group-text {
    font-size: 1.5rem;
}

.input-card-count .btn {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    padding: 0;
}

.input-card-count .btn:focus {
    box-shadow: none;
}

.input-card-count .input-group {
    display: flex;
    align-items: center;
}

.input-card-count .input-group .input-group-number {
    width: 50px;
}

.input-centered {
    -moz-appearance: textfield;
    appearance: textfield;
    text-align: center;
}

.input-centered::-webkit-inner-spin-button,
.input-centered::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.button-toggle {
    width: 48px;
    height: 48px;
    margin-top: 90px !important;
}

.mystic-image {
    animation: grayscaleAnimation 3s infinite, pulseAnimation 3s infinite;
}

@keyframes grayscaleAnimation {
    0% {
        filter: grayscale(100%) brightness(1);
    }

    50% {
        filter: grayscale(100%) brightness(1.5);
    }

    100% {
        filter: grayscale(100%) brightness(1);
    }
}

@keyframes pulseAnimation {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.card-img-top {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    /* Скрытие задней стороны для эффекта */
    animation: appear 0.5s ease-in-out forwards;
    /* Применение keyframes анимации */
}

/* Анимация для нормальной карты */
@keyframes appear {
    0% {
        transform: rotateY(90deg);
        /* Начальное состояние: поворот на 90 градусов по Y */
    }

    100% {
        transform: rotateY(0deg);
        /* Конечное состояние: возвращение до исходного положения по Y */
    }
}

/* Анимация для перевернутой карты */
.rotate-x {
    animation: appear-flip 0.5s ease-in-out forwards;
    /* Применение другой keyframes анимации */
}

@keyframes appear-flip {
    0% {
        transform: scaleY(-1) rotateY(90deg);
        /* Начальное состояние: отражение по Y и поворот на 90 градусов по Y */
    }

    100% {
        transform: scaleY(-1) rotateY(0deg);
        /* Конечное состояние: отражение по Y и возвращение до исходного положения по Y */
    }
}

@media (max-width: 767px) {
    #tarot-cards {
        font-size: 0.875rem; 
        line-height: 0.875rem;
    }
}
