/* Reset some styles */
html, body {
    width: 100%;
    overflow-x: hidden; /* Prevents horizontal scroll */
    margin: 0;
    padding: 0;
	scroll-behavior: smooth;
}

.video-background {
    position: absolute; /* or 'fixed', depending on your layout */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1; /* Ensure it stays in the background */
}

.video-foreground video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Key property for "zoom in" effect */
    position: absolute;
    top: 0;
    left: 0;
}

/* Overlay with logo and scroll-down arrow */
.overlay {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.scroll-down {
    position: absolute;
    bottom: 20px; /* Adjust based on your layout */
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff; /* Ensure visibility against a dark background */
    font-size: 24px; /* For FontAwesome */
    z-index: 10;
}



.logo {
    max-width: 20%; /* Reduce this value as needed */
    height: auto;
}

/* Ensure landing page covers full viewport height */
#landing {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Section default style */
.section-default {
    padding: 50px 15px;
    background-color: #333; /* Adjust the background color as needed */
    color: #fff; /* Adjust text color as needed */
}

/* Adjustments for navigation */
.navbar {
    background-color: #222; /* Dark background for navbar */
}

@media (max-width: 992px) {
    .logo {
        max-width: 25%; /* Adjust for medium screens */
    }
}

@media (max-width: 768px) {
    .logo {
        max-width: 35%; /* Adjust for small screens */
    }
}

@media (max-width: 576px) {
    .logo {
        max-width: 50%; /* Adjust for extra small screens */
    }
}

#contact {
    background-color: #FFD700; /* Yellow background */
    color: #000000; /* Black text */
    height: 150px; /* Set height to 150px */
    display: flex;
    justify-content: center;
    align-items: center;
}

#contact .fas.fa-envelope {
    font-size: 24px; /* Adjust icon size as needed */
    margin-right: 10px; /* Space between icon and text */
}

.contact-heading, #contact p {
    margin: 0; /* Removes default margins for clean alignment */
    text-align: center; /* Ensures text is centered */
}

.email-icon {
    color: #000000; /* White icon */
    font-size: 24px; /* Adjust the size of the icon as needed */
    margin-right: 15px; /* Adds some space between the icon and the text */
}

/* Ensuring container takes full width of the section */
#contact .container {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-footer {
    background-color: #222;
    color: #fff;
    padding: 20px 0;
}

.site-footer a {
    color: #fff;
    margin: 0 10px;
    font-size: 20px; /* Adjust the size of the icons */
}

.site-footer a:hover {
    color: #FFD700; /* Highlight color when hovering over links */
}

.social-links {
    margin-bottom: 20px;
}

/* Swiper */
.swiper {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 40px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.swiper-slide img {
    height: 80px;
    width: auto;
}

/* Adjustments for Swiper navigation */
.swiper-button-next, .swiper-button-prev {
    color: #fff; /* or any color you prefer */
}

#games .filter-controls {
    margin-bottom: 20px;
}

.games-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.game-item {
    display: flex;
    flex-direction: column;
    background: #333333;
    border: none;
    text-decoration: none;
    color: white;
    width: 100%;
    min-height: 350px;
    overflow: hidden;
    transition: box-shadow 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 15px;
    box-sizing: border-box;
    border-radius: 8px;
}

.game-item:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

#games .filter-controls {
    margin-bottom: 20px;
}

.games-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.game-item {
    display: flex;
    flex-direction: column;
    background: #333333;
    border: none;
    text-decoration: none;
    color: white;
    width: 100%;
    min-height: 350px;
    overflow: hidden;
    transition: box-shadow 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 15px;
    box-sizing: border-box;
    border-radius: 8px;
}

.game-item:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.game-item img {
    width: 100%; /* Full width to match the container */
    height: auto; /* Adjust height to maintain aspect ratio */
    aspect-ratio: 1 / 1; /* Ensures the image remains square */
    object-fit: cover; /* Ensures the image covers the entire area without distortion */
    margin-bottom: 10px;
}


.game-text {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-text h3 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.game-text p {
    font-size: 0.8rem;
    flex-grow: 1; /* Allows text to expand and fill the space */
}

.read-more-btn, .btn-primary.more-info-btn {
    padding: 8px 16px;
    background-color: #4C4C4C;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    margin-top: 10px;
    align-self: center;
}

.read-more-btn:hover, .btn-primary.more-info-btn:hover {
    background-color: #666;
    color: white;
}

.btn.btn-primary.more-info-btn {
    padding: 8px 16px;
    background-color: #4C4C4C;
    color: white; /* Explicitly setting text color */
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    margin-top: 10px;
    align-self: center; /* Centers the button in the available space */
    border: none; /* Removes default border styling */
    transition: background-color 0.3s ease; /* Smooth transition for hover effect */
}

.btn.btn-primary.more-info-btn:hover {
    background-color: #666;
    color: white; /* Ensure color remains white even on hover */
}

.game-text {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-text h3 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.game-text p {
    font-size: 0.8rem;
    flex-grow: 1; /* Allows text to expand and fill the space */
}

.read-more-btn {
    padding: 8px 16px;
    background-color: #4C4C4C;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    margin-top: 10px;
    align-self: center;
}

.read-more-btn:hover {
    background-color: #666;
    color: white;
}


body.modal-open {
    padding-right: 0 !important;
}

/* Modal Custom Styles */
#gameModal .modal-content {
    background-color: #333333; /* Default background, can be overridden dynamically */
    color: #fff; /* Text color */
}

#gameModal .modal-header {
    border-bottom: 1px solid #444; /* Lighter border for the header */
}

#gameModal .modal-title {
    color: #fff; /* Golden color for the game title */
}

#gameModal .close {
    color: #fff;
    opacity: 1; /* Ensure close button is visible */
}

/* Game Banner */
#gameModal .game-banner {
    width: 100%;
    height: 200px; /* Adjust based on your preference */
    background-size: cover;
    background-position: center;
    margin-bottom: 20px; /* Space below the banner */
}

/* Game Details */
#gameModal .game-details {
    margin-bottom: 20px; /* Space between details and the next section */
}

/* Info Box */
#gameModal .info-box {
    padding: 15px;
    background-color: #222; /* Slightly lighter background for contrast */
    margin-bottom: 20px; /* Space between info box and gallery */
    width: 100%; /* Ensures it takes the available width */
    max-width: 310px; /* Max width set to 310px */
}

/* Gallery Styles */
#gameModal .gallery iframe,
#gameModal .gallery img {
    max-width: 100%;
    margin-top: 10px; /* Space between gallery items */
    border-radius: 5px; /* Optional: rounds corners of images and videos */
}

/* Platform Icons */
#gameModal .info-box img {
    width: 24px; /* Size of platform icons */
    height: 24px;
    margin-right: 10px; /* Space between icons */
}

/* Ensuring text and links within the modal are legible */
#gameModal a {
    color: #FFD700; /* Golden color for links */
}

#gameModal p,
#gameModal .info-box {
    color: #ddd; /* Lighter text for better readability */
}

/* Responsive adjustments for the modal dialog width */
@media (min-width: 992px) {
    #gameModal .modal-dialog {
        max-width: 75%; /* Increase modal width on larger screens */
    }
}

@media (max-width: 991px) {
    #gameModal .modal-dialog {
        max-width: 100%; /* Allow the modal to expand fully on smaller screens */
        margin: 10px; /* Adjusted margin for visual padding */
    }
}

/* Ensure the info box is full width as soon as it stacks below the text */
@media (max-width: 992px) {
    #gameModal .info-box {
        max-width: 100%; /* Full width */
        margin-left: 0; /* Reset any left margin */
        margin-right: 0; /* Reset any right margin */
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Creates columns that are at least 200px wide */
    gap: 10px; /* Adds spacing between grid items */
}

.gallery-thumbnail {
    width: 100%; /* Ensures the image fills the container */
    height: auto; /* Maintains the aspect ratio */
    cursor: pointer; /* Indicates the image can be clicked */
    transition: transform 0.3s ease; /* Smooth transform effect on hover */
}

.gallery-thumbnail:hover {
    transform: scale(1.1); /* Slightly enlarges the thumbnail on hover */
}

.fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 1050; /* High z-index to ensure it's above other content */
}

.fullscreen-image {
    max-width: 90%; /* Limits the image size to not overflow the viewport */
    max-height: 90%; /* Maintains the aspect ratio and ensures it fits in the viewport */
}

.close-fullscreen {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.news-item {
    display: flex;
    flex-direction: column;
    background: #333333;
    border: none;
    text-decoration: none;
    color: white;
    width: 100%;
    overflow: hidden;
    transition: box-shadow 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.news-item:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.news-image {
    width: 100%;
    height: 150px; /* Adjusted height */
    object-fit: cover;
}

.news-text {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* This helps push the button to the bottom */
}

.news-text h3 {
    margin-bottom: 5px;
    font-size: 1rem;
}

.news-text p {
    font-size: 0.8rem;
    flex-grow: 1; /* Allows text to expand and fill the space */
}

.read-more-btn {
    padding: 8px 16px;
    background-color: #4C4C4C;
    color: white; /* Explicitly setting text color */
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    margin-top: 10px;
    align-self: center; /* Centers the button in the available space */
}

.read-more-btn:hover {
    background-color: #666;
    color: white; /* Ensure color remains white even on hover */
}


.cookie-consent-container {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(20, 20, 20, 0.95);
    color: white;
    text-align: center;
    padding: 10px;
    z-index: 1000;
    display: none;
}

.cookie-consent-container p {
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.cookie-consent-container button {
    margin-left: 10px;
    padding: 5px 10px;
    color: #fff;
    background-color: #4CAF50;
    border: none;
    cursor: pointer;
}

.cookie-consent-container button:hover {
    background-color: #45a049;
}

.age-verification-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* High z-index to cover other content */
    display: none; /* Hidden by default */
}

.age-verification-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}

.age-verification-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8); /* Increased opacity to 80% */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* High z-index to cover other content */
    display: none; /* Hidden by default */
}

.age-content {
    background: white;
    padding: 20px;
    border-radius: 5px;
    text-align: center;
}
