/* Хрустальный лес - атмосферная палитра */

body {
    background: linear-gradient(to bottom, #051428 0%, #072140 50%, #0a2e50 100%);
    color: #e1f2ff;
    font-family: "Montserrat", serif;
}

h1, h2, h3, h4 {
    color: #a4dcff;
    text-shadow: 0 0 10px rgba(164, 220, 255, 0.5);
}

.navbar {
    background: rgba(5, 20, 40, 0.85);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid #4983b7;
}

.navbar a {
    color: #a4dcff;
}

.navbar a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(164, 220, 255, 0.8);
    opacity: 1;
}

.navbar-container .hamburger-lines .line {
    background: #a4dcff;
}

.menu-items {
    background: rgba(5, 20, 40, 0.95);
}

.casino-item {
    background: rgba(28, 40, 65, 0.7);
    border: 1px solid #4983b7;
    box-shadow: 0 0 15px rgba(73, 131, 183, 0.3);
    backdrop-filter: blur(5px);
}

.casino-item h4 {
    color: #a4dcff;
}

.casino-item p {
    color: #cbe6ff;
}

.btn-red {
    background: #5a94d1;
    box-shadow: 0 0 10px rgba(90, 148, 209, 0.5);
}

.btn-white {
    background: #e1f2ff;
    color: #051428;
    box-shadow: 0 0 10px rgba(225, 242, 255, 0.5);
}

.btn-blue {
    background: #2164a6;
    box-shadow: 0 0 10px rgba(33, 100, 166, 0.5);
}

.btn-green {
    background: #4fb0db;
    box-shadow: 0 0 10px rgba(79, 176, 219, 0.5);
}

.btn-light-red {
    background: #7aafed;
    box-shadow: 0 0 10px rgba(122, 175, 237, 0.5);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(164, 220, 255, 0.8);
}

footer {
    border: 1px solid #4983b7;
    background: rgba(10, 46, 80, 0.7);
    box-shadow: 0 0 20px rgba(73, 131, 183, 0.3);
}

.footer-age {
    background: rgba(21, 21, 21, 0.7);
    border-top: 1px solid #4983b7;
}

.footer-links a {
    color: #a4dcff;
}

.footer-links a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(164, 220, 255, 0.8);
}

.modal {
    background: rgba(5, 20, 40, 0.95);
    border: 1px solid #4983b7;
    color: #e1f2ff;
    box-shadow: 0 0 20px rgba(73, 131, 183, 0.5);
}

.modal .age-circle {
    background-color: #2164a6;
}

.modal h2 {
    color: #a4dcff;
}

.modal button {
    background-color: #5a94d1;
    color: #ffffff;
}

.modal button:hover {
    background-color: #7aafed;
}

/* Добавление кристаллических элементов */
.casino-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, rgba(164, 220, 255, 0.1) 25%, transparent 25%,
    transparent 50%, rgba(164, 220, 255, 0.1) 50%, rgba(164, 220, 255, 0.1) 75%,
    transparent 75%, transparent);
    background-size: 100px 100px;
    pointer-events: none;
    z-index: -1;
}

h1::after, h2::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #a4dcff, transparent);
    margin: 10px auto 0;
}

img {
    filter: drop-shadow(0 0 10px rgba(164, 220, 255, 0.5));
}

/* Анимация для подсветки кристаллов */
@keyframes crystal-glow {
    0% { box-shadow: 0 0 10px rgba(164, 220, 255, 0.5); }
    50% { box-shadow: 0 0 20px rgba(164, 220, 255, 0.8); }
    100% { box-shadow: 0 0 10px rgba(164, 220, 255, 0.5); }
}

.casino-item:hover {
    animation: crystal-glow 2s infinite;
    border-color: #a4dcff;
}
/* Хрустальный лес - атмосферная палитра */

@keyframes backgroundShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

body {
    background: linear-gradient(135deg, #051428 0%, #072140 25%, #0a3264 50%, #072140 75%, #051428 100%);
    background-size: 400% 400%;
    animation: backgroundShimmer 30s ease infinite;
    color: #e1f2ff;
    font-family: "Montserrat", serif;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 50 L60 40 L50 30 L40 40 Z' fill='rgba(164, 220, 255, 0.03)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4 {
    color: #a4dcff;
    text-shadow: 0 0 10px rgba(164, 220, 255, 0.5), 0 0 20px rgba(164, 220, 255, 0.3);
}

@keyframes crystalPulse {
    0% { border-color: rgba(73, 131, 183, 0.5); }
    50% { border-color: rgba(164, 220, 255, 0.8); }
    100% { border-color: rgba(73, 131, 183, 0.5); }
}

.navbar {
    background: rgba(5, 20, 40, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #4983b7;
    position: relative;
    z-index: 999;
    animation: crystalPulse 4s infinite;
}

.navbar a {
    color: #a4dcff;
    position: relative;
}

.navbar a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #a4dcff, transparent);
    transition: all 0.5s ease;
}

.navbar a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(164, 220, 255, 0.8), 0 0 20px rgba(164, 220, 255, 0.4);
    opacity: 1;
}

.navbar a:hover::after {
    width: 100%;
    transform: translateX(-50%) scaleX(1);
}

.navbar-container .hamburger-lines .line {
    background: #a4dcff;
}

.menu-items {
    background: rgba(5, 20, 40, 0.95);
}

@keyframes colorShift {
    0% { color: #a4dcff; }
    33% { color: #82d8ff; }
    66% { color: #5fc6ff; }
    100% { color: #a4dcff; }
}

.casino-item {
    background: rgba(28, 40, 65, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid #4983b7;
    box-shadow: 0 0 15px rgba(73, 131, 183, 0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.casino-item::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(164, 220, 255, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    transform: rotate(30deg);
    pointer-events: none;
}

.casino-item:hover::before {
    opacity: 1;
    animation: rotate 10s linear infinite;
}

.casino-item:hover {
    transform: translateY(-5px);
}

.casino-item h4 {
    color: #a4dcff;
    animation: colorShift 6s infinite;
}

.casino-item p {
    color: #cbe6ff;
    position: relative;
    z-index: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes btnGlow {
    0% { box-shadow: 0 0 10px currentColor; }
    50% { box-shadow: 0 0 20px currentColor, 0 0 30px rgba(164, 220, 255, 0.3); }
    100% { box-shadow: 0 0 10px currentColor; }
}

.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    z-index: 1;
    border: none;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn-red {
    background: linear-gradient(135deg, #5a94d1, #4a84c1);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(90, 148, 209, 0.5);
}

.btn-white {
    background: linear-gradient(135deg, #e1f2ff, #d1e2ef);
    color: #051428;
    box-shadow: 0 0 10px rgba(225, 242, 255, 0.5);
}

.btn-blue {
    background: linear-gradient(135deg, #2164a6, #115496);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(33, 100, 166, 0.5);
}

.btn-green {
    background: linear-gradient(135deg, #4fb0db, #3fa0cb);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(79, 176, 219, 0.5);
}

.btn-light-red {
    background: linear-gradient(135deg, #7aafed, #6a9fdd);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 10px rgba(122, 175, 237, 0.5);
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    animation: btnGlow 2s infinite;
    color: #ffffff;
}

footer {
    border: 1px solid #4983b7;
    background: rgba(10, 46, 80, 0.7);
    box-shadow: 0 0 20px rgba(73, 131, 183, 0.3);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #a4dcff, transparent);
    animation: footerGlow 5s infinite;
}

footer::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 300%;
    height: 1px;
    background: linear-gradient(90deg, #051428, #4983b7, #a4dcff, #4983b7, #051428);
    animation: footerWave 10s linear infinite;
}

@keyframes footerGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes footerWave {
    0% { transform: translateX(0); }
    100% { transform: translateX(33.33%); }
}

.footer-age {
    background: rgba(21, 21, 21, 0.7);
    border-top: 1px solid #4983b7;
}

.footer-links a {
    color: #a4dcff;
}

.footer-links a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(164, 220, 255, 0.8);
}

.modal-overlay {
    backdrop-filter: blur(8px);
}

.modal {
    background: rgba(5, 20, 40, 0.8);
    border: 1px solid #4983b7;
    color: #e1f2ff;
    box-shadow: 0 0 20px rgba(73, 131, 183, 0.5), 0 0 40px rgba(164, 220, 255, 0.3);
    backdrop-filter: blur(20px);
    animation: modalAppear 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

@keyframes modalAppear {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal::before {
    content: "";
    position: absolute;
    top: -100px;
    left: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(164, 220, 255, 0.3) 0%, transparent 70%);
    opacity: 0.5;
    animation: modalGlow 5s infinite ease-in-out;
}

@keyframes modalGlow {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.5); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.5; }
}

.modal .age-circle {
    background: linear-gradient(135deg, #2164a6, #5a94d1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(33, 100, 166, 0.7);
}

.modal .age-circle::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
    animation: rotate 10s linear infinite;
}

.modal h2 {
    color: #a4dcff;
    text-shadow: 0 0 10px rgba(164, 220, 255, 0.5);
}

.modal button {
    background: linear-gradient(135deg, #5a94d1, #3174b1);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(90, 148, 209, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.modal button::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.modal button:hover {
    background: linear-gradient(135deg, #7aafed, #5a94d1);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(122, 175, 237, 0.7);
}

.modal button:hover::before {
    left: 100%;
}

/* Добавление кристаллических элементов */
.casino-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, rgba(164, 220, 255, 0.1) 25%, transparent 25%,
    transparent 50%, rgba(164, 220, 255, 0.1) 50%, rgba(164, 220, 255, 0.1) 75%,
    transparent 75%, transparent);
    background-size: 100px 100px;
    pointer-events: none;
    z-index: -1;
}

h1::after, h2::after {
    content: "";
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #a4dcff, transparent);
    margin: 10px auto 0;
}

img {
    filter: drop-shadow(0 0 10px rgba(164, 220, 255, 0.5));
    transition: all 0.5s ease;
}

img:hover {
    filter: drop-shadow(0 0 15px rgba(164, 220, 255, 0.8)) brightness(1.1);
    transform: scale(1.02);
}

/* Дополнительные эпичные эффекты */
h1 {
    position: relative;
    overflow: hidden;
}

h1::before {
    content: attr(data-text);
    position: absolute;
    color: transparent;
    background-image: linear-gradient(90deg, transparent, rgba(164, 220, 255, 0.5), transparent);
    background-clip: text;
    -webkit-background-clip: text;
    background-size: 200% 100%;
    animation: shine 3s infinite;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

@keyframes shine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Эффекты для секций */
section {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

section::before {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(164, 220, 255, 0.1) 0%, transparent 70%);
    top: 10%;
    right: -100px;
    border-radius: 50%;
    filter: blur(20px);
    animation: floatAround 20s infinite alternate ease-in-out;
    z-index: -1;
}

section::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(122, 175, 237, 0.1) 0%, transparent 70%);
    bottom: 10%;
    left: -75px;
    border-radius: 50%;
    filter: blur(15px);
    animation: floatAround 15s infinite alternate-reverse ease-in-out;
    z-index: -1;
}

@keyframes floatAround {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(50px, 25px) rotate(5deg); }
    50% { transform: translate(25px, 50px) rotate(0deg); }
    75% { transform: translate(-25px, 25px) rotate(-5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* Анимация для подсветки кристаллов */
@keyframes crystal-glow {
    0% { box-shadow: 0 0 10px rgba(164, 220, 255, 0.5); }
    50% { box-shadow: 0 0 20px rgba(164, 220, 255, 0.8), 0 0 30px rgba(122, 175, 237, 0.3); }
    100% { box-shadow: 0 0 10px rgba(164, 220, 255, 0.5); }
}

.casino-item:hover {
    animation: crystal-glow 2s infinite;
    border-color: #a4dcff;
    transform: translateY(-5px) scale(1.02);
}