body {
    font-family: 'Poppins', sans-serif;
    background-color: #1a1a2e; /* Dark background */
    color: #e0e0e0; /* Light text */
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from layout issues */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #e94560; /* Primary accent color */
}

/* Responsive Typography for site name and all headings */
.site-title-text {
    font-size: 0.9rem; /* Mobile: < 1rem */
}
h1 {
    font-size: 1rem; /* Mobile: <= 1rem */
}
h2 {
    font-size: 0.95rem;
}
h3 {
    font-size: 0.9rem;
}
h4 {
    font-size: 0.85rem;
}
h5 {
    font-size: 0.8rem;
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) {
    .site-title-text {
        font-size: 1.4rem; /* Tablet: 1.4-1.9rem */
    }
    h1 {
        font-size: 1.9rem; /* Tablet: 1.4-1.9rem */
    }
    h2 {
        font-size: 1.7rem;
    }
    h3 {
        font-size: 1.5rem;
    }
    h4 {
        font-size: 1.3rem;
    }
    h5 {
        font-size: 1.2rem;
    }
}

/* Desktop (>= 1024px) */
@media (min-width: 1024px) {
    .site-title-text {
        font-size: 1.8rem; /* Desktop: 1.3-2.2rem */
    }
    h1 {
        font-size: 2.2rem; /* Desktop: 1.3-2.2rem */
    }
    h2 {
        font-size: 2rem;
    }
    h3 {
        font-size: 1.8rem;
    }
    h4 {
        font-size: 1.6rem;
    }
    h5 {
        font-size: 1.4rem;
    }
}

/* Specific adjustments for Hero H1 to allow it to be larger as a main display title */
@media (min-width: 1024px) {
    .hero-section h1 {
        font-size: 3.5rem !important; /* Larger for hero H1 on desktop */
    }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
    .hero-section h1 {
        font-size: 2.5rem !important; /* Larger for hero H1 on tablet */
    }
}
@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 1.5rem !important; /* Larger for hero H1 on mobile, still fits 2 lines */
    }
}

.text-primary {
    color: #e94560 !important;
}
.bg-primary {
    background-color: #e94560 !important;
}
.btn-primary {
    background-color: #e94560;
    border-color: #e94560;
    color: #fff;
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    white-space: normal;
    word-break: break-word;
    text-align: center;
}
.btn-primary:hover {
    background-color: #d03a51;
    border-color: #d03a51;
    color: #fff;
}
.btn-secondary {
    background-color: #555;
    border-color: #555;
    color: #fff;
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    white-space: normal;
    word-break: break-word;
    text-align: center;
}
.btn-secondary:hover {
    background-color: #444;
    border-color: #444;
    color: #fff;
}

.bg-dark {
    background-color: #1a1a2e !important;
}
.bg-darker {
    background-color: #0f0f1c !important; /* Slightly darker for contrast */
}
.border-primary {
    border-color: #e94560 !important;
}
.border-secondary {
    border-color: #4a4a5e !important;
}

.navbar {
    background-color: #0f0f1c !important;
    border-bottom: 1px solid #2a2a3e;
    z-index: 1030;
}
.navbar-brand {
    color: #e94560;
}
.navbar-nav .nav-link {
    color: #e0e0e0;
    font-weight: 600;
    transition: color 0.3s ease;
    white-space: nowrap;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #e94560;
}
.navbar-toggler {
    border-color: #e94560;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28233, 69, 96, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.offcanvas {
    background-color: #0f0f1c !important;
    color: #e0e0e0;
}
.offcanvas .btn-close {
    filter: invert(1);
}
@media (max-width: 1199.98px) { /* Adjust breakpoint for burger menu */
    .navbar-collapse {
        display: none !important;
    }
    .navbar-toggler {
        display: block !important;
    }
    .offcanvas-body {
        padding: 1.5rem;
    }
    .offcanvas-body .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid #2a2a3e;
    }
    .offcanvas-body .nav-link:last-child {
        border-bottom: none;
    }
}
@media (min-width: 1200px) {
    .navbar-toggler {
        display: none !important;
    }
    .navbar-collapse {
        display: flex !important;
    }
}


/* Hero Section */
.hero-section {
    min-height: 80vh;
    overflow: hidden;
    position: relative;
}
.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 1;
}
.hero-section .carousel-caption {
    position: relative;
    z-index: 2;
    padding-top: 5rem;
    padding-bottom: 5rem;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transform: none;
    width: 100%;
    max-width: 900px;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    z-index: 3;
}
.hero-section .carousel-control-prev-icon,
.hero-section .carousel-control-next-icon {
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.7));
}
.scroll-down-arrow {
    margin-top: 3rem; /* Отступ от заголовка */
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.scroll-down-arrow i {
    font-size: 1.5rem;
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    .hero-section .carousel-caption {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
    .hero-section p {
        font-size: 1rem;
        margin-bottom: 2rem !important;
    }
    .scroll-down-arrow {
        margin-top: 2rem;
    }
}

/* Section Titles */
.section-title {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2.5rem;
    display: inline-block;
    color: #e94560;
    background: linear-gradient(to right, #e94560, #ff7e5f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #e94560;
    border-radius: 2px;
}

/* Virtual Currency Section */
#virtual-currency img {
    max-height: 400px;
    object-fit: cover;
    width: 100%;
}
#virtual-currency .list-unstyled li {
    background-color: #2a2a3e;
    padding: 1rem;
    border-radius: 0.5rem;
    border-left: 5px solid #e94560;
}
#virtual-currency .list-unstyled li:not(:last-child) {
    margin-bottom: 1rem;
}

/* Game Selection */
.game-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: linear-gradient(145deg, #2a2a3e, #1a1a2e);
    border: 1px solid #3a3a4e !important;
}
.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}
.game-card .game-img {
    height: 300px; /* Fixed height for images */
    object-fit: cover;
    width: 100%;
}
.game-card .card-body {
    padding: 1.5rem;
}
.game-card .card-title {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}
.game-card .card-text {
    font-size: 0.95rem;
    color: #c0c0c0;
}
.game-card .social-proof {
    font-size: 0.85rem;
    color: #a0a0a0;
    white-space: nowrap;
}
.game-card .avatar-small {
    width: 30px;
    height: 30px;
    border: 2px solid #e94560;
    object-fit: cover;
}
.game-card .ms-n2 {
    margin-left: -0.75rem !important; /* Overlap avatars */
}
.game-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.game-link:hover .card-title {
    color: #d03a51 !important;
}
.play-game-btn {
    width: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* Game Modal */
.game-iframe-modal .modal-content {
    background-color: rgba(0, 0, 0, 0.9); /* Dark overlay for modal */
}
.game-iframe-modal .modal-header {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1051; /* Above iframe */
    width: auto;
}
.game-iframe-modal .btn-close {
    background: none;
    border: none;
    opacity: 1;
    text-shadow: none;
}
.game-iframe-modal .btn-close:focus {
    outline: none;
    box-shadow: none;
}
.game-iframe-modal iframe {
    width: 100%;
    height: 100%;
    display: block;
}
.modal-open {
    overflow: hidden !important; /* Block scroll under modal */
}

/* Testimonials */
.testimonial-card {
    border-radius: 1.5rem;
    background: linear-gradient(145deg, #2a2a3e, #1a1a2e);
    border: 1px solid #3a3a4e !important;
}
.testimonial-card .avatar-large {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 3px solid #e94560;
}
.testimonial-card .badge {
    font-size: 0.8em;
    padding: 0.4em 0.7em;
    border-radius: 0.3rem;
}
.testimonial-card .card-text {
    font-style: italic;
    color: #c0c0c0;
}

/* About Us Section */
#about-us img {
    max-height: 400px;
    object-fit: cover;
    width: 100%;
}

/* Why Choose Us */
.feature-card {
    border-radius: 1.5rem;
    background: linear-gradient(145deg, #2a2a3e, #1a1a2e);
    border: 1px solid #3a3a4e !important;
}
.feature-card i {
    color: #e94560;
}
.feature-card .card-title {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}
.feature-card .card-text {
    color: #c0c0c0;
}

/* Disclaimer Block */
.disclaimer-container {
    background-color: #2a2a3e;
    border: 2px solid #e94560;
    padding: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
    border-radius: 1rem;
}
.disclaimer-container h3, .disclaimer-container h4 {
    color: #e94560;
}
.disclaimer-container p, .disclaimer-container li {
    font-size: 0.95rem;
    color: #c0c0c0;
}
.disclaimer-container a {
    color: #5bc0de !important; /* Bootstrap info color */
}
.disclaimer-container a:hover {
    text-decoration: underline !important;
}
.text-break {
    word-break: break-all;
}

/* Footer */
footer {
    background-color: #0f0f1c !important;
    border-top: 1px solid #2a2a3e;
}
footer .navbar-brand .site-title-text {
    font-size: 1.5rem; /* Smaller in footer */
}
footer .text-muted {
    color: #a0a0a0 !important;
}
footer .list-unstyled a {
    color: #c0c0c0 !important;
    transition: color 0.3s ease;
    text-decoration: none;
}
footer .list-unstyled a:hover {
    color: #e94560 !important;
    text-decoration: none;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px; /* Uniform height for logos */
}
.footer-logo {
    max-width: 120px; /* Max width for logos */
    height: auto;
    max-height: 40px; /* Ensure logos don't get too tall */
    object-fit: contain;
    filter: brightness(0.8) contrast(1.2); /* Slightly dim for dark theme */
}
.footer-logo-18plus {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: none; /* Keep 18+ icon vibrant */
}
@media (max-width: 767.98px) {
    .footer-logo-link {
        height: 40px;
    }
    .footer-logo {
        max-width: 100px;
        max-height: 30px;
    }
    .footer-logo-18plus {
        width: 30px;
        height: 30px;
    }
}


/* Age Verification Modal */
#ageVerificationModal .modal-content {
    background-color: #0f0f1c !important;
    border: 2px solid #e94560;
}
#ageVerificationModal .modal-title {
    color: #e94560 !important;
    font-size: 1.8rem;
}
#ageVerificationModal .modal-body p {
    color: #c0c0c0;
}
#ageVerificationModal .btn {
    font-size: 1.1rem;
    padding: 0.75rem 1.5rem;
}
@media (max-width: 767.98px) {
    #ageVerificationModal .modal-title {
        font-size: 1.4rem;
    }
    #ageVerificationModal .modal-body p {
        font-size: 0.9rem;
    }
    #ageVerificationModal .btn {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
        width: 100%;
        margin-bottom: 0.5rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}


/* Cookie Banner */
.cookie-banner {
    background-color: #0f0f1c !important;
    border-top: 1px solid #2a2a3e;
    z-index: 1040; /* Above footer, below modals */
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.cookie-banner p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: #c0c0c0;
}
.cookie-banner a {
    color: #5bc0de !important;
    text-decoration: underline;
}
.cookie-banner .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}
@media (max-width: 767.98px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
    .cookie-banner p {
        margin-bottom: 1rem;
    }
    .cookie-banner .d-flex {
        flex-direction: column;
        width: 100%;
    }
    .cookie-banner .btn {
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0.5rem !important;
    }
    .cookie-banner .btn:last-child {
        margin-bottom: 0 !important;
    }
}

/* Cookie Settings Modal */
#cookieSettingsModal .modal-content {
    background-color: #1a1a2e !important;
    border: 1px solid #e94560;
    z-index: 1050; /* Above cookie banner */
}
#cookieSettingsModal .modal-title {
    color: #e94560 !important;
}
#cookieSettingsModal .form-check-label {
    color: #e0e0e0;
    font-weight: 600;
}
#cookieSettingsModal .form-text {
    font-size: 0.8rem;
}
#cookieSettingsModal .form-check-input:checked {
    background-color: #e94560;
    border-color: #e94560;
}
#cookieSettingsModal .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(233, 69, 96, 0.25);
}
/* Styles for the main content frame */
.dataClauseFrame {
    padding-top: 20px;    /* Top padding for the content frame */
    padding-left: 15px;   /* Left padding for the content frame */
    padding-right: 15px;  /* Right padding for the content frame */
}

/* Heading styles within the data clause frame */
.dataClauseFrame h1 {
    font-size: 1.8em;         /* Moderate font size for H1 */
    line-height: 1.2;         /* Line height for readability */
    margin-top: 1.5em;        /* Top margin to separate from preceding content */
    margin-bottom: 0.8em;     /* Bottom margin to separate from following content */
}

.dataClauseFrame h2 {
    font-size: 1.5em;         /* Moderate font size for H2 */
    line-height: 1.2;
    margin-top: 1.4em;
    margin-bottom: 0.7em;
}

.dataClauseFrame h3 {
    font-size: 1.2em;         /* Moderate font size for H3 */
    line-height: 1.3;
    margin-top: 1.3em;
    margin-bottom: 0.6em;
}

.dataClauseFrame h4 {
    font-size: 1.1em;         /* Moderate font size for H4 */
    line-height: 1.3;
    margin-top: 1.2em;
    margin-bottom: 0.5em;
    font-weight: bold;        /* Ensure H4 is bold even if size is close to body text */
}

.dataClauseFrame h5 {
    font-size: 1em;           /* Moderate font size for H5, similar to body text */
    line-height: 1.4;
    margin-top: 1.1em;
    margin-bottom: 0.4em;
    font-weight: bold;        /* Ensure H5 is bold */
}

/* Paragraph styles within the data clause frame */
.dataClauseFrame p {
    font-size: 1em;           /* Default font size for paragraphs */
    line-height: 1.6;         /* Enhanced line height for readability */
    margin-bottom: 1em;       /* Bottom margin to separate paragraphs */
    margin-top: 0;            /* No top margin for paragraphs by default */
    color: #fff !important;
}

/* Unordered list styles within the data clause frame */
.dataClauseFrame ul {
    list-style-type: disc;    /* Default bullet style */
    padding-left: 2em;        /* Indentation for list items */
    margin-top: 1em;          /* Top margin for the list */
    margin-bottom: 1em;       /* Bottom margin for the list */
}

/* List item styles within the data clause frame */
.dataClauseFrame li {
    font-size: 1em;           /* Default font size for list items */
    line-height: 1.6;         /* Enhanced line height for readability */
    margin-bottom: 0.5em;     /* Space between list items */
}


.btn-close.btn-close-white.fs-2{
    filter: invert(1);
}

.modal-content .text-muted{
    color: #fff !important;
}