body {
    background-color: #121212; /* Dark Theme */
    color: #ffffff;
}

.container {
    max-width: 95vw; /* ✅ Expands to 90% of the viewport width */
    width: 100%; /* ✅ Ensures it fills available space */
}

.navbar {
    background-color: #1c1c1c;
}

.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Push image left, content right */
    height: 400px;
    background-size: cover;
    background-position: center;
    margin-top: 25px;
    margin-right: 25px;
    color: white;
    position: relative;
    overflow: hidden;
}


/* Container for the Image (Left Side) */
.hero-image-container {
    flex: 2;  /* Image takes more space */
    display: flex;  /* Enables centering */
    align-items: center;  /* Centers the image vertically */
    justify-content: center;  /* Centers horizontally if needed */
    overflow: hidden;  /* Prevents clipping */
}

.hero-image {
    width: 80%;
    height: 80%;
    object-fit: contain; /* Scales down the image without cropping */
    max-width: none;
}

/* Content on the Right Side */
.hero-content {
    flex: 1; /* Take up the remaining 50% */
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    text-align: left; /* Align text to the left */
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;  /* ✅ Centers arrows vertically */
    justify-content: space-between; /* ✅ Keeps arrows positioned correctly */
    overflow: visible;  /* ✅ Ensures expanded thumbnails aren’t clipped */
}

.carousel-container {
    overflow: visible; /* ✅ Prevents thumbnails from getting clipped */
    display: flex;
    flex-wrap: nowrap;
    width: 95%;
}

.category-section {
    margin-top: 30px;
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.game-carousel {
    display: flex;
    overflow-x: auto;  /* ✅ Enables horizontal scrolling */
    scroll-behavior: smooth; /* ✅ Makes scrolling smooth */
    gap: 10px; /* ✅ Space between thumbnails */
    white-space: nowrap; /* ✅ Prevents wrapping */
    padding-bottom: 10px;
    position: relative;  /* ✅ Ensures absolute positioning inside works */

    /* ✅ Hides scrollbar in Chrome, Safari, Edge */
    scrollbar-width: none; /* ✅ Hides scrollbar in Firefox */
    -ms-overflow-style: none; /* ✅ Hides scrollbar in IE/Edge */
}

/* ✅ Hides scrollbar in Chrome, Safari */
.game-carousel::-webkit-scrollbar {
    display: none;
}


.game-thumbnail {
    flex: 0 0 auto;
    width: 270px;
    height: 152px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease, z-index 0.3s ease;
    text-align: center;
    color: white;
    border-radius: 8px;
    position: relative;  /* ✅ Ensures normal layout positioning */
    z-index: 1; /* ✅ Ensures normal stacking */
}

.game-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.game-title {
    position: absolute;
    bottom: 5px;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 5px;
    font-size: 12px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10; /* ✅ Ensures buttons stay on top */
}

.left-btn {
    left: -40px; /* ✅ Adjust based on spacing */
}

.right-btn {
    right: -40px; /* ✅ Adjust based on spacing */
}

.preview-publish-modal {
    display: none; /* Hide the modal by default */
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%; /* Fullscreen modal */
    height: 100%; /* Fullscreen modal */
    background-color: rgba(0, 0, 0, 0.9); /* Semi-transparent background */

    /* Flexbox to center the content */
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    overflow-y: scroll;
}

.grid-slot.drop-target--active {
  outline: 2px solid var(--accent, #f87666);
  outline-offset: -2px;
}