@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;
}

.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);
}

/* 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;
}

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

/* 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 - 80px) !important; /* Account for navbar height */
}

.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: 2.5rem;
    height: 2.5rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    background: none !important;
    z-index: 100 !important;
}

.carousel-control-prev.custom-control .carousel-control-prev-icon,
.carousel-control-next.custom-control .carousel-control-next-icon {
    filter: brightness(0) saturate(100%) invert(79%) sepia(92%) saturate(352%) hue-rotate(2deg) brightness(97%) contrast(94%);
}

.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;
}

.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;
}

/* Responsive Overrides */
@media (min-width: 769px) and (max-width: 1024px) {
    .carousel-indicators {
        width: 38% !important;
        bottom: 0;
    }
}

@media (max-width: 768px) {
    .home-carousel {
        height: calc(100vh - 60px) !important; /* Smaller navbar on mobile */
    }
    
    /* 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: 40vh; /* Smaller image - only 40% of viewport height */
        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: 60vh; /* More space for content - 60% of viewport height */
        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 */
    }
    
    .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;
    }
    
    .partners-slider {
        gap: 2rem;
    }
    
    /* Game cards mobile styling */
    .games-wrapper .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .game-card {
        height: 300px;
    }
    
    .game-card-content {
        padding: 1rem;
    }
}

/* 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%);
}