/* General Styling */
:root {
    --primary-color: #800020; /* Dark Burgundy */
    --primary-dark: #600018;
    --primary-darker: #400010;
    --accent-color: #FFD700; /* Gold */
    --accent-light: #FFECB3;
    --text-light: #F0F0F0;
    --text-lighter: #D0D0D0;
    --text-muted: #A0A0A0;
    --background-dark: #1A1A1A;
    --background-dark-alt: #0D0D0D;
    --background-dark-light: #2A2A2A;
    --grey-dark: #363636;
    --danger-dark: #8B0000;
    --danger-darker: #6A0000;
}

body {
    background-color: var(--background-dark);
    color: var(--text-light);
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Bulma Overrides */
.title, .subtitle {
    color: var(--text-light);
}
.title.is-1 { font-size: 3.5rem; }
.title.is-2 { font-size: clamp(22px,5vw,40px) !important; }
.title.is-3 { font-size: clamp(20px,5vw,30px) !important; }
.title.is-4 { font-size: clamp(20px,5vw,28px) !important; }
.title.is-5 { font-size: clamp(19px,5vw,26px) !important; }
.subtitle { color: var(--text-lighter); }

.button.is-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}
.button.is-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}
.button.is-primary.is-outlined {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.button.is-primary.is-outlined:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.button.is-warning {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--background-dark);
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}
.button.is-warning:hover {
    background-color: #e6c200;
    border-color: #e6c200;
    transform: translateY(-2px);
}
.button.is-warning.is-outlined {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.button.is-warning.is-outlined:hover {
    background-color: var(--accent-color);
    color: var(--background-dark);
}

.button.is-info {
    background-color: #3273dc; /* Bulma default info */
    border-color: #3273dc;
    color: var(--text-light);
}
.button.is-info:hover {
    background-color: #276cda;
    border-color: #276cda;
}
.button.is-info.is-outlined {
    background-color: transparent;
    border-color: #3273dc;
    color: #3273dc;
}
.button.is-info.is-outlined:hover {
    background-color: #3273dc;
    color: var(--text-light);
}


.has-background-dark { background-color: var(--background-dark) !important; }
.has-background-dark-alt { background-color: var(--background-dark-alt) !important; }
.has-background-dark-light { background-color: var(--background-dark-light) !important; }
.has-background-primary-dark { background-color: var(--primary-dark) !important; }
.has-background-primary-darker { background-color: var(--primary-darker) !important; }
.has-background-dark-grey { background-color: var(--grey-dark) !important; }
.has-background-danger-dark { background-color: var(--danger-dark) !important; }
.has-background-danger-darker { background-color: var(--danger-darker) !important; }

.has-text-white { color: #FFFFFF !important; }
.has-text-white-ter { color: var(--text-lighter) !important; }
.has-text-primary { color: var(--primary-color) !important; }
.has-text-warning { color: var(--accent-color) !important; }
.has-text-warning-light { color: var(--accent-light) !important; }
.has-text-info { color: #3273dc !important; } /* Bulma default info */
.has-text-link { color: #3273dc !important; } /* Bulma default link, often same as info */
.has-text-danger { color: #ff3860 !important; } /* Bulma default danger */


.box {
    background-color: var(--background-dark-light);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.card {
    background-color: var(--background-dark-light);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Age Verification Overlay */
.age-verification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex; /* Ensure flex is applied */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.age-verification-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
}
.age-verification-card {
    background-color: var(--primary-darker);
    border: 2px solid var(--accent-color);
    max-width: 500px;
    width: 90%;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
    animation: fadeInScale 0.5s ease-out;
}
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Top Confirmation Bar */
.top-confirmation-bar {
    background-color: var(--primary-dark);
    color: var(--text-light);
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Navbar */
.navbar {
    background-color: rgba(var(--background-dark), 0.8); /* Semi-transparent */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    padding: 0.5rem 1rem;
}
.navbar-brand .navbar-item img {
    max-height: 2.5rem;
    width: auto;
}
.navbar-burger {
    color: var(--text-light);
}
.navbar-menu {
    background-color: rgba(var(--background-dark), 0.9);
}
@media screen and (min-width: 1024px) {
    .navbar-menu {
        background-color: transparent;
    }
}
.navbar-item {
    color: var(--text-light);
}
.navbar-item:hover {
    background-color: var(--primary-dark);
    color: var(--accent-color);
}
.logo-image {
    height: 40px; /* Adjust as needed */
    width: auto;
}


/* Hero Section */
.hero-bg {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), url('img/uploads/casino-background_13.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-image {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
}
.scroll-indicator {
    display: inline-block;
    animation: bounce 2s infinite;
    color: var(--text-light);
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* How To Play Section */
.how-to-play-card {
    height: 100%; /* Ensure cards are same height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--background-dark-light);
    border: 1px solid var(--primary-dark);
}
.how-to-play-card .material-symbols-outlined {
    font-size: 4rem;
    transition: transform 0.3s ease;
}
.how-to-play-card:hover .material-symbols-outlined {
    transform: scale(1.1);
}

/* Game Selection Section */
.game-of-week {
    background-color: var(--primary-dark);
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    animation: glow-border 4s infinite alternate ease-in-out;
}
@keyframes glow-border {
    0% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.4); }
    50% { box-shadow: 0 0 30px rgba(255, 215, 0, 0.8); }
    100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.4); }
}
.game-of-week .card-image img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}
.game-of-week .play-now-button {
    animation: pulse-glow 2s infinite;
}
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.game-card {
    border: 1px solid var(--primary-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.game-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(var(--primary-color), 0.5);
}
.game-card .card-image img {
    object-fit: contain;
    height: 100%;
    width: 100%;
}
.game-card .card-content {
    min-height: 120px; /* Ensure consistent height for content */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.game-card .card-header-title {
    padding: 0.75rem;
    color: var(--text-light);
}

/* Game Modal */
.game-modal {
    z-index: 9998; /* Below age verification, above other content */
}
.game-modal .modal-background {
    background-color: rgba(0, 0, 0, 0.9);
}
.game-modal .modal-content {
    width: 100vw;
    height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    padding: 0;
    position: relative;
}
.game-modal iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    background-color: var(--background-dark-alt); /* Fallback for iframe content loading */
}
.game-modal .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(var(--primary-color), 0.8);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000; /* Always on top of iframe */
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.game-modal .modal-close::before,
.game-modal .modal-close::after {
    background-color: var(--text-light);
}
.game-modal .modal-close:hover {
    background-color: var(--accent-color);
    transform: rotate(90deg);
}

/* Achievements Section */
.achievement-card {
    background-color: var(--background-dark-light);
    border: 1px solid var(--primary-dark);
    min-height: 180px; /* Ensure consistent height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.achievement-card .material-symbols-outlined {
    font-size: 3.5rem;
    transition: transform 0.3s ease;
}
.achievement-card:hover .material-symbols-outlined {
    transform: rotate(10deg) scale(1.1);
}

/* Daily Challenges Section */
.daily-challenge-box {
    background-color: var(--primary-dark);
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
    padding: 3rem;
    animation: subtle-glow 3s infinite alternate ease-in-out;
}
@keyframes subtle-glow {
    0% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.5); }
    100% { box-shadow: 0 0 35px rgba(255, 215, 0, 0.7); }
}
.countdown-timer {
    font-size: 4rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 5px;
}
.countdown-digit {
    min-width: 80px;
    text-align: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.countdown-separator {
    margin: 0 10px;
}
@media screen and (max-width: 768px) {
    .countdown-timer { font-size: 2.5rem; }
    .countdown-digit { min-width: 50px; }
}

/* Quests Section */
.quest-card {
    background-color: var(--background-dark-light);
    border: 1px solid var(--primary-dark);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.quest-card .progress {
    height: 10px;
    border-radius: 5px;
    background-color: var(--background-dark);
}
.quest-card .progress::-webkit-progress-value { background-color: var(--primary-color); }
.quest-card .progress::-moz-progress-bar { background-color: var(--primary-color); }
.quest-card .progress[value]::-webkit-progress-value {
    transition: width 0.5s ease-in-out;
}
.quest-card .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}
.quest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}


/* FAQ & Social Section */
.faq-accordion .accordion-item {
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.faq-accordion .accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border: none;
    background-color: var(--background-dark-light);
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid var(--primary-dark);
}
.faq-accordion .accordion-header:hover {
    background-color: var(--primary-dark);
}
.faq-accordion .accordion-header .accordion-icon {
    transition: transform 0.3s ease;
}
.faq-accordion .accordion-header.is-active .accordion-icon {
    transform: rotate(45deg);
}
.faq-accordion .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 1.5rem;
    background-color: var(--background-dark-light);
}
.faq-accordion .accordion-content.is-active {
    max-height: 200px; /* Adjust based on content */
    padding: 1rem 1.5rem;
}
.faq-accordion .accordion-content p {
    color: var(--text-lighter);
}

.social-media-box {
    background-color: var(--primary-dark);
    border: 1px solid var(--accent-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.social-icons .social-icon {
    color: var(--text-light);
    transition: transform 0.3s ease, color 0.3s ease;
}
.social-icons .social-icon:hover {
    transform: scale(1.2);
}
.social-icons .social-icon .material-symbols-outlined {
    font-size: 3.5rem;
}
.social-icons .social-icon[aria-label="Facebook"]:hover .material-symbols-outlined { color: #3b5998; }
.social-icons .social-icon[aria-label="Twitter"]:hover .material-symbols-outlined { color: #00acee; }
.social-icons .social-icon[aria-label="Discord"]:hover .material-symbols-outlined { color: #7289da; }


/* Disclaimer Section */
.disclaimer-section {
    padding: 3rem 0;
    background-color: var(--danger-dark);
    border-top: 5px solid var(--accent-color);
    border-bottom: 5px solid var(--accent-color);
}
.disclaimer-content {
    background-color: var(--danger-darker);
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}
.disclaimer-content ul {
    list-style: disc;
    margin-left: 1.5rem;
    color: var(--text-lighter);
}
.disclaimer-content a {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--background-dark-alt);
    padding: 3rem 1.5rem 2rem;
    color: var(--text-light);
}
.footer-logo {
    max-height: 45px;
    width: auto;
}
.footer-links li {
    margin-bottom: 0.5rem;
}
.footer-links a {
    color: var(--text-lighter);
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.game-teaser-card .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--background-dark-light);
    border: 1px solid var(--grey-dark);
}
.game-teaser-card .card:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.game-teaser-card .card-image img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}
.game-teaser-card .card-header-title {
    font-size: 0.8rem;
    justify-content: center;
    padding: 0.5rem;
    color: var(--text-light);
}

.responsible-gaming-logos {
    gap: 20px; /* Space between logos */
}
.footer-partner-logo {
    max-width: 140px; /* Max width for logos */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain;
    margin: 10px 0; /* Vertical margin for wrap */
    transition: transform 0.3s ease;
}
.footer-partner-logo:hover {
    transform: scale(1.05);
}
.footer-partner-logo.is-18-plus {
    max-width: 80px; /* Slightly smaller for 18+ icon */
    filter: brightness(1.2) saturate(1.5); /* Make it pop */
}
@media screen and (max-width: 768px) {
    .footer-partner-logo {
        max-width: 120px;
    }
}


/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: black;
    padding: 1rem;
    z-index: 9997;
    box-shadow: 0 -2px 10px rgb(116 116 116 / 30%);
    display: none; /* Hidden by default, shown by JS */
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.cookie-banner .container {
    width: 100%;
}
@media screen and (min-width: 769px) {
    .cookie-banner {
        flex-direction: row;
        text-align: left;
    }
}

/* Cookie Customization Modal */
.modal-card-head, .modal-card-foot {
    background-color: var(--background-dark-light);
    border-color: var(--primary-dark);
}
.modal-card-body {
    background-color: var(--background-dark);
    padding: 2rem;
}
.modal-card-title {
    color: var(--text-light);
}
.modal-card {
    max-width: 600px;
    width: 90%;
    border-radius: 8px;
    overflow: hidden;
}
.switch[type="checkbox"] + label {
    color: var(--text-light);
}
.switch[type="checkbox"] + label::before {
    background-color: var(--background-dark-alt);
    border: 1px solid var(--grey-dark);
}
.switch[type="checkbox"].is-primary + label::after {
    background-color: var(--primary-color);
}
.switch[type="checkbox"]:checked + label::before {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}
.switch[type="checkbox"]:disabled + label {
    opacity: 0.6;
    cursor: not-allowed;
}
.switch[type="checkbox"]:disabled + label::before {
    background-color: var(--grey-dark) !important;
    border-color: var(--grey-dark) !important;
}
.switch[type="checkbox"]:disabled + label::after {
    background-color: var(--text-muted) !important;
}

/* Scroll to top button (optional, but good for large sites) */
#scroll-to-top {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: var(--text-light);
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.3s ease;
}
#scroll-to-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    color: var(--background-dark);
}

/* Utility classes */
.is-hidden-touch {
    display: none !important;
}
@media screen and (min-width: 769px) {
    .is-hidden-touch {
        display: block !important;
    }
}
.is-hidden-desktop {
    display: none !important;
}
@media screen and (max-width: 1023px) {
    .is-hidden-desktop {
        display: block !important;
    }
}
/* Styling for the consent tunnel grid container */
.consentTunnelGrid {
    padding: 2rem 1.5rem; /* Padding top/bottom and left/right */
    margin: 2rem auto; /* Center the container with vertical margins */
    max-width: 960px; /* Optional: Limit max width for better readability */
    /* Add any other container-specific styles here if needed */
}

/* Heading 1 styles within consent tunnel */
.consentTunnelGrid h1 {
    font-size: 2.5rem; /* Moderately sized heading */
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light); /* Use text light color */
    line-height: 1.2;
}

/* Heading 2 styles within consent tunnel */
.consentTunnelGrid h2 {
    font-size: 2rem;
    margin-top: 1.25rem;
    margin-bottom: 0.9rem;
    color: var(--text-light);
    line-height: 1.3;
}

/* Heading 3 styles within consent tunnel */
.consentTunnelGrid h3 {
    font-size: 1.75rem;
    margin-top: 1rem;
    margin-bottom: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Heading 4 styles within consent tunnel */
.consentTunnelGrid h4 {
    font-size: 1.5rem;
    margin-top: 0.8rem;
    margin-bottom: 0.7rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Heading 5 styles within consent tunnel */
.consentTunnelGrid h5 {
    font-size: 1.25rem;
    margin-top: 0.7rem;
    margin-bottom: 0.6rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Paragraph styles within consent tunnel */
.consentTunnelGrid p {
    font-size: 1rem; /* Base font size for paragraphs */
    margin-bottom: 1rem;
    line-height: 1.7; /* Improved readability for longer texts */
    color: var(--text-lighter); /* Slightly lighter text for paragraphs */
}

/* Unordered list styles within consent tunnel */
.consentTunnelGrid ul {
    list-style-type: disc; /* Standard disc bullets */
    margin-bottom: 1rem;
    padding-left: 1.5rem; /* Indentation for bullets */
    color: var(--text-lighter);
}

/* List item styles within consent tunnel */
.consentTunnelGrid li {
    font-size: 1rem;
    margin-bottom: 0.5rem; /* Spacing between list items */
    line-height: 1.6;
    color: var(--text-lighter);
}

/* Link styles within consent tunnel (optional, but good practice) */
.consentTunnelGrid a {
    color: var(--accent-color); /* Use accent color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}
.consentTunnelGrid a:hover {
    color: var(--primary-color); /* Change color on hover */
}


.navbar-item, .footer-logos {
   display: flex !important;
   flex-wrap: wrap !important;
   align-items: center !important;
   gap: 10px !important;
}

.navbar-item h2, .footer-logos  h2{
   font-size: clamp(18px,2.5vw,25px) !important;
   margin: 0;
   color: var(--accent-color) !important
}

#daily-challenges strong{
    color: #fff !important;
}

.disclaimer-content, .disclaimer-content a{
    color: #ffff !important;
}


.hero h1{
    font-size: clamp(27px,5vw,50px) !important;
}

.hero p{
    font-size: clamp(19px,2.5vw,24px) !important;
}

.buttons{
    justify-content: center;
}

#cookie-policy strong{
    color: #ffff !important;
}

.dop-cs{
    background: var(--accent-color) !important;
    border-radius: 50%;
}