@font-face {
    font-family: 'Manrope';
    src: url('../fonts/manrope.ttf') format('truetype');
}

.color-yellow {
    color: #EAE443;
}

body {
    font-family: 'Manrope' !important;
    letter-spacing: 1px;
    background-color: black !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main wrapper should take up remaining space */
#main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
}

/* Global Page Container - Consistent Padding */
.page-container {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
}

/* Game Description Section */
.game-description-container {
    padding: 3rem 0;
}

.game-description-content {
    margin-left: 3rem;
    margin-right: 3rem;
    color: white;
}

/* Game Media Carousel Section */
.game-media-carousel-container {
    padding: 0;
    display: flex;
    justify-content: center;
}

.game-media-carousel {
    max-width: 1080px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.game-media-carousel:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(234, 228, 67, 0.2);
}

.game-media-carousel .carousel-inner {
    border-radius: 8px;
}

.game-media-item {
    border-radius: 8px;
    object-fit: cover;
    aspect-ratio: 16/9;
}

.game-carousel-control {
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: none !important;
}

.game-carousel-control.carousel-control-prev,
.game-carousel-control.carousel-control-next {
    width: auto;
    height: auto;
    top: 50%;
    transform: translateY(-50%);
}

.game-carousel-control .carousel-control-prev-icon,
.game-carousel-control .carousel-control-next-icon {
    background-image: none !important;
    filter: none !important;
    width: 3rem !important;
    height: 3rem !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.game-carousel-control .carousel-control-prev-icon::before,
.game-carousel-control .carousel-control-next-icon::before {
    content: '';
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease, background-image 0.3s ease;
}

.game-carousel-control .carousel-control-prev-icon::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23EAE443'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.game-carousel-control .carousel-control-next-icon::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23EAE443'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.game-media-carousel:hover .game-carousel-control {
    opacity: 0.8;
}

.game-carousel-control:hover {
    opacity: 1 !important;
}

.game-carousel-control:hover .carousel-control-prev-icon::before {
    transform: scale(1.3);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFFFFF'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.game-carousel-control:hover .carousel-control-next-icon::before {
    transform: scale(1.3);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFFFFF'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.game-card {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.btn-outline-yellow {
    color: #EAE443;
    border-color: #EAE443;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-yellow:hover,
.btn-outline-yellow:focus {
    background-color: #EAE443;
    color: black;
    border-color: #EAE443;
    text-decoration: none;
}

.btn-outline-white {
    color: white;
    border-color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.btn-outline-white:hover,
.btn-outline-white:focus {
    color: #EAE443;
    border-color: #EAE443;
    text-decoration: none;
}

.divider {
    border-color: #EAE44390 !important;
    border-width: 2px !important;
    border-radius: 2px !important;
    width: 5vw;
}

.uppercase-btn {
    text-transform: uppercase;
}

.navbar-nav .nav-link.active {
    color: rgb(234, 228, 67) !important;
}

.navbar-nav .nav-link:hover {
    color: rgb(234, 228, 67) !important;
}

.nav-link {
    color: #ffffffe1 !important;
}

.navbar-toggler {
    border: none;
    background: transparent !important;
    color: white !important;
}

.navbar-toggler:focus,
.navbar-toggler:focus-visible {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.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%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile-specific styles using Bootstrap responsive utilities */
.offcanvas {
    background-color: black !important;
    z-index: 99999 !important;
    padding-bottom: env(safe-area-inset-bottom, 1rem);
    width: 60vw !important; /* Half screen width on mobile */
    max-width: 300px; /* Maximum width cap */
    border: none !important; /* Remove border */
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.6) !important; /* Add shadow on the left side */
}

/* Hide offcanvas on desktop - only show when Bootstrap activates it */
.offcanvas:not(.show) {
    display: none !important;
}

.offcanvas .navbar-nav.menu-navbar {
    justify-content: flex-start !important;
    align-items: stretch !important;
}

.offcanvas .navbar-nav.menu-navbar .nav-item {
    margin-bottom: 1.5rem;
    text-align: center;
}

.offcanvas .join-button {
    padding-bottom: env(safe-area-inset-bottom, 1rem);
}

.offcanvas .join-button a {
    margin-bottom: env(safe-area-inset-bottom, 0.5rem);
}

/* Footer styles */
.footer {
    font-size: 0.875rem; /* 14px - smaller than default 16px */
    min-height: 60px; /* Match approximate header height for visual consistency */
    margin-top: auto; /* Push footer to bottom */
}

.footer .row {
    min-height: inherit;
}

/* Footer link styles */
.footer-link {
    color: white !important;
    text-decoration: none !important;
    font-size: 0.75rem; /* 12px - smaller on mobile/tablet */
}

.footer-link:hover,
.footer-link:focus {
    color: #EAE443 !important;
    text-decoration: none !important;
}

/* Increase footer link size on larger screens */
@media (min-width: 992px) {
    .footer-link {
        font-size: 0.8125rem; /* 13px - slightly larger on desktop */
    }
}

@media (min-width: 1200px) {
    .footer-link {
        font-size: 0.875rem; /* 14px - match footer size on large desktop */
    }
}

/* Language selector styling */
.language-select {
    background: transparent;
    border: 1px solid #ffffff40;
    color: white;
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
}

.language-select:hover,
.language-select:focus {
    background: transparent;
    border-color: #EAE443;
    color: #EAE443;
}

.dropdown-menu {
    background-color: #1a1a1a;
    border: 1px solid #333;
}

.dropdown-item {
    color: white;
    font-size: 0.875rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: #333;
    color: #EAE443;
}

/* Homepage Carousel Styles */
.home-carousel {
    height: calc(100vh - 90px) !important; /* Account for navbar height */
    max-height: calc(100vh - 90px) !important;
    min-height: 400px;
}

.carousel-inner {
    height: 100%;
}

.carousel-item {
    height: 100%;
    position: relative;
}

.carousel-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.carousel-card-overlay {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    display: flex;
    align-items: center;
    width: 25%;
    z-index: 5;
}

.carousel-card {
    width: 100%;
    height: 100%;
    margin-left: auto;
    background: rgba(0, 0, 0, 0.8);
    border: none;
    position: relative;
}

.carousel-card-body {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 1.5rem;
    z-index: 5;
}

.carousel-content {
    width: 100%;
}

.carousel-content h1 {
    font-weight: bold;
}

.carousel-summary {
    font-size: 1rem;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

.carousel-btn {
    height: 50px;
    text-transform: uppercase;
    width: 100%;
    margin-top: 1.5rem;
}

/* Homepage specific classes */
.carousel-indicator-yellow {
    background-color: #EAE443 !important;
}

.carousel-indicators {
    left: auto !important;
    bottom: 4vh;
    margin-right: 1vw !important;
    width: 23vw !important;
    z-index: 99 !important;
}

.carousel-control-prev.custom-control,
.carousel-control-next.custom-control {
    width: auto;
    height: auto;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    background: none !important;
    z-index: 100 !important;
    filter: none !important;
}

.carousel-control-prev.custom-control .carousel-control-prev-icon,
.carousel-control-next.custom-control .carousel-control-next-icon {
    background-image: none !important;
    filter: none !important;
    width: 3rem !important;
    height: 3rem !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.carousel-control-prev.custom-control .carousel-control-prev-icon::before,
.carousel-control-next.custom-control .carousel-control-next-icon::before {
    content: '';
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease, background-image 0.3s ease;
}

.carousel-control-prev.custom-control .carousel-control-prev-icon::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23EAE443'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next.custom-control .carousel-control-next-icon::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23EAE443'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.carousel-control-prev.custom-control:hover,
.carousel-control-next.custom-control:hover {
    opacity: 1 !important;
}

.carousel-control-prev.custom-control:hover .carousel-control-prev-icon::before {
    transform: scale(1.2);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFFFFF'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next.custom-control:hover .carousel-control-next-icon::before {
    transform: scale(1.2);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFFFFF'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.5));
    pointer-events: none;
}

/* Partners Slider Animation */
.partners-container {
    background-color: black;
    overflow: hidden;
    min-height: 10vh;
    position: relative;
}

.partners-slider {
    display: flex;
    align-items: center;
    height: 10vh;
    gap: 4rem;
    width: fit-content;
    animation: scroll 20s linear infinite;
}

.partners-slider:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.partner-item {
    height: 9vh;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.partner-item img {
    height: 90%;
    object-fit: contain;
}

/* Game Cards Styles */
.games-wrapper .container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
}

.games-wrapper .page-container {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
}

/* Game Detail Hero Section */
.game-detail-hero {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 500px;
    overflow: hidden;
}

.game-detail-bg-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.game-detail-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 10%, rgba(0, 0, 0, 0.4) 20%, transparent 30%, transparent 100%);
    z-index: 2;
}

.game-detail-info-card {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    max-width: 500px;
    z-index: 3;
    color: white;
}

.game-detail-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
}

.game-detail-info-card p {
    margin-bottom: 0.75rem;
}

/* Game Description Section */
.game-description-container {
    padding: 3rem 0;
}

.game-description-content {
    margin-left: 3rem;
    margin-right: 3rem;
    color: white;
}

.game-card {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.game-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.game-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    z-index: 2;
}

.game-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 3;
}

.border-yellow {
    border: 1px solid #eae54350 !important;
    border-radius: 8px !important;
    background-color: transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.border-yellow:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(234, 228, 67, 0.3);
    border-color: #EAE443 !important;
}

.border-yellow h5 {
    color: white;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.border-yellow p {
    color: #cccccc;
    font-size: 0.9rem;
    margin: 0;
}

/* Legal Pages Styles */
.terms-wrapper,
.gdpr-wrapper {
    width: 100%;
    min-height: 93vh;
}

.terms-text,
.gdpr-text {
    color: white;
    margin-left: 3rem;
    margin-right: 3rem;
}

.terms-title,
.gdpr-title {
    color: #EAE443;
    width: 100%;
    text-align: center;
}

/* Responsive Overrides */
@media (min-width: 769px) and (max-width: 1024px) {
    .carousel-card-overlay {
        width: 38%;
    }
    
    .carousel-indicators {
        width: 36% !important;
        bottom: 0;
    }
    
    /* Tablet partner logos - smaller size */
    .partners-container {
        min-height: 8vh;
    }
    
    .partners-slider {
        height: 8vh;
        gap: 3rem;
    }
    
    .partner-item {
        height: 7vh;
    }
    
    /* Tablet game description - justify text */
    .game-description-content {
        text-align: justify;
        text-justify: inter-word;
    }
    
    /* Tablet about text - justify text */
    h4.about-text,
    h4.about-text * {
        text-align: justify !important;
        text-justify: inter-word;
    }
    
    /* Tablet legal text - justify text */
    .terms-text,
    .gdpr-text {
        text-align: justify;
        text-justify: inter-word;
    }
}

@media (max-width: 768px) {
    .home-carousel {
        height: calc(100vh - 60px) !important; /* Smaller navbar on mobile */
        max-height: calc(100vh - 60px) !important;
        min-height: 500px;
    }
    
    /* Mobile carousel layout - smaller image at top, more content space */
    .carousel-item {
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .carousel-media {
        position: relative;
        z-index: 1;
        height: 38vh; /* Image takes 38% of viewport height */
        max-height: 38vh;
        width: 100%;
        object-fit: contain; /* Fit by width, show full image */
        object-position: top; /* Align image to the top */
        background-color: transparent;
    }
    
    .carousel-card-overlay {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        top: auto;
        width: 100%;
        height: calc(62vh - 60px); /* Content takes remaining space */
        max-height: calc(62vh - 60px);
        flex: 1;
        display: flex;
        flex-direction: column;
        z-index: 5;
        margin-top: 0; /* Remove any margin between image and overlay */
        padding-top: 0; /* Remove any padding at top */
        overflow-y: auto; /* Allow scrolling if content is too long */
    }
    
    .carousel-card {
        height: 100%;
        width: 100%;
        margin: 0;
        background: rgba(0, 0, 0, 0.95);
        display: flex;
        flex-direction: column;
    }
    
    .carousel-card-body {
        display: flex;
        align-items: flex-start; /* Align to top instead of center */
        justify-content: flex-start; /* Align to left instead of center */
        height: 100%;
        padding: 1.5rem; /* Reduced padding */
        background: transparent;
        flex: 1;
    }
    
    .carousel-content {
        width: 100%;
        text-align: left; /* Left align text instead of center */
    }
    
    .carousel-content h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .carousel-summary {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .gradient-overlay {
        display: none; /* Remove gradient on mobile since we have solid background */
    }
    
    .carousel-indicators {
        width: 100% !important;
        bottom: 5vh;
        z-index: 10 !important;
        margin: 0 !important;
        justify-content: center;
    }
    
    /* Mobile partner logos - much smaller size */
    .partners-container {
        min-height: 6vh;
    }
    
    .partners-slider {
        height: 6vh;
        gap: 1.5rem;
    }
    
    .partner-item {
        height: 5vh;
    }
    
    /* Game cards mobile styling */
    .games-wrapper .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .game-card {
        height: 300px;
    }
    
    .game-card-content {
        padding: 1rem;
    }

    /* Game Detail Hero Mobile */
    .game-detail-hero {
        height: 60vh;
        min-height: 400px;
    }

    .game-detail-info-card {
        bottom: 1rem;
        left: 1rem;
        max-width: calc(100% - 2rem);
    }

    .game-detail-title {
        font-size: 1.75rem;
    }

    .game-detail-gradient {
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    }

    /* Game Description Mobile */
    .game-description-content {
        margin-left: 1rem;
        margin-right: 1rem;
        text-align: justify;
        text-justify: inter-word;
    }
    
    /* About text Mobile - justify text */
    h4.about-text,
    h4.about-text * {
        text-align: justify !important;
        text-justify: inter-word;
    }
    
    /* Legal text Mobile - justify text and proper margins */
    .terms-text,
    .gdpr-text {
        margin-left: 1rem;
        margin-right: 1rem;
        text-align: justify;
        text-justify: inter-word;
    }

    /* Game Media Carousel Mobile */
    .game-media-carousel-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .game-carousel-control {
        opacity: 0.7;
    }

    /* Global Page Container Mobile */
    .page-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Game Media Modal Styles */
.game-modal-content {
    background-color: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 8px !important;
    overflow: hidden;
}

.game-modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 1060;
    width: 3rem;
    height: 3rem;
    border: none;
    background-color: transparent;
    color: #EAE443;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.game-modal-close:hover {
    transform: scale(1.1) rotate(90deg);
}

.game-modal-carousel {
    height: 100vh;
}

.game-modal-carousel .carousel-inner {
    height: 100%;
    border-radius: 8px;
    position: relative;
}

.game-modal-carousel .carousel-item {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.game-modal-carousel .carousel-item.active {
    opacity: 1;
    position: relative;
}

.game-modal-media {
    width: 100%;
    height: 100vh;
    object-fit: contain;
    border-radius: 8px;
}

.game-modal-control {
    opacity: 0.7;
    transition: opacity 0.3s ease;
    filter: none !important;
}

.game-modal-control.carousel-control-prev,
.game-modal-control.carousel-control-next {
    width: auto;
    height: auto;
}

.game-modal-control.carousel-control-prev {
    left: 2rem;
}

.game-modal-control.carousel-control-next {
    right: 2rem;
}

.game-modal-control .carousel-control-prev-icon,
.game-modal-control .carousel-control-next-icon {
    background-image: none !important;
    filter: none !important;
    width: 5rem !important;
    height: 5rem !important;
    background-color: transparent !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.game-modal-control .carousel-control-prev-icon::before,
.game-modal-control .carousel-control-next-icon::before {
    content: '';
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease, background-image 0.3s ease;
}

.game-modal-control .carousel-control-prev-icon::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23EAE443'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.game-modal-control .carousel-control-next-icon::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23EAE443'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.game-modal-control:hover {
    opacity: 1;
}

.game-modal-control:hover .carousel-control-prev-icon::before,
.game-modal-control:hover .carousel-control-next-icon::before {
    transform: scale(1.2);
}

.game-modal-control:hover .carousel-control-prev-icon::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFFFFF'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.game-modal-control:hover .carousel-control-next-icon::before {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFFFFF'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Mobile adjustments for game modal */
@media (max-width: 768px) {
    .game-modal-close {
        top: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }

    .game-modal-close svg {
        width: 24px;
        height: 24px;
    }

    .game-modal-media {
        border-radius: 0;
    }

    .game-modal-content {
        border-radius: 0 !important;
    }

    .game-modal-carousel .carousel-inner {
        border-radius: 0;
    }
}

/* Cookie Policy Modal Styles */
.legal-modal-cookie .modal-content {
    background-color: black;
    box-shadow: 0 0 10px 1px #EAE44360 !important;
}

.cookie-modal-positioning {
    position: fixed !important;
    bottom: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    max-width: none;
    margin: 0;
}

@media (min-width: 576px) {
    .cookie-modal-positioning {
        left: 1rem;
        right: auto;
        max-width: 400px;
        margin: 0;
    }
}

.legal-modal-cookie-text .modal-content {
    background-color: black;
    box-shadow: 0 0 10px 1px #EAE44370 !important;
    min-height: 50vh;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow-x: auto;
}

.legal-modal-cookie-text .modal-title {
    color: #EAE443;
    width: 100%;
    text-align: center;
}

.modal-divider {
    width: 80%;        
    margin: 0 auto 1rem; 
    border: none;
    border-top: 1.5px solid #EAE443;
}

.legal-modal-cookie .btn-close,
.legal-modal-cookie-text .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}