.centered-box-1,
.centered-box-2,
.centered-box-3 {
    min-height: 10vw;
    width: 50vw;
    margin: 30px auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    white-space: nowrap;  /* prevents wrapping */
    text-overflow: ellipsis; /* shows "..." if too long */
}

/* Ensure nav spans full width of the parent box */
.centered-box-1 nav,
.centered-box-1 .nav-wrapper,
.centered-box-2 nav,
.centered-box-2 .nav-,
.centered-box-3 nav,
.centered-box-3 .nav-wrapper {
    padding-left: 16px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-color: #333;
    display: flex;
    align-items: center;      /* vertically center text */
    justify-content: flex-start; /* align text to left */
}

.box-content {
    padding: 2%;
}

.centered-box-3 .box-content {
    white-space: normal !important;
}

.centered-box-2 p {
    font-size: 24px;
}

.centered-box-2 hr {
    margin: 3px 0;   /* reduce vertical spacing */
    border: 0;
    border-top: 1px solid #ccc; /* keep the line visible */
}

.centered-box-2 .box-content p {
    margin: 2px 0;
}

.games-container {
    display: flex;
    justify-content: space-between;
    gap: 30px; /* Space between the two boxes */
    margin: 30px auto;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    max-width: 1200px;
}

.centered-box-1 {
    width: 60%;
    background: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

.centered-box-2 {
    width: 35%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Media Viewer Container */
.media-main-viewer {
    position: relative;
    height: 400px;
    margin: 20px 0;
    overflow: hidden;
    background-color: #000000;
}

.media-main-viewer iframe {
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
    height: 400px !important;
}

/* Image Settings */
.media-main-viewer img {
    width: auto;
    height: 400px !important;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
}

/* Arrows for navigation on the media viewer */
.arrow-left, .arrow-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 36px;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.arrow-left {
    left: 10px;
}

.arrow-right {
    right: 10px;
}

.arrow-right img, .arrow-left img {
    width: 24px;
}

.media-thumbnail-gallery {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    overflow-x: scroll;
}

.thumbnail-container {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-viewer {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.75);
  justify-content: center;
  align-items: center;
}

/* The large image inside overlay */
.image-viewer img {
  min-height: 75vh;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
  image-rendering: pixelated; /* keeps pixels sharp */
}

/* Close button */
.close-viewer {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 48px;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s;
}

.close-viewer:hover {
  color: #ff4444;
}

.media-main-viewer {
    margin-top: 0;        /* remove top margin */
    padding-top: 0;       /* remove top padding */
}

    @media (min-width: 3840px) {

    }
    @media (min-width: 1920px) and (max-width: 2559px) {
        .centered-box-3 {
            width: 75vw;
        }
        .games-container {
            gap: 40px;
        }
    }
    @media (min-width: 1280px) and (max-width: 1919px) {
        .centered-box-1 {
            width: 55%;
            height: 85vh;
        }
        .centered-box-2 {
            width: 40%;
            height: 85vh;
        }
        .centered-box-2 p {
            font-size: 18px;
        }
        .centered-box-3 {
            width: 100%;
        }
        .games-container {
            gap: 30px;
            margin: 0px auto;
            max-width: 800px;
        }
        .media-main-viewer {
            height: 245px;
        }
        .media-main-viewer iframe {
            height: 245px !important;
        }
        .media-main-viewer img {
            height: 245px !important;
        }
    }
    @media (min-width: 0px) and (max-width: 1279px) {
        .centered-box-1 {
            width: 55%;
            height: 95vh;
        }
        .centered-box-2 {
            width: 40%;
            height: 95vh;
        }
        .centered-box-2 p {
            font-size: 14px;
        }
        .centered-box-3 {
            width: 100%;
        }
        .games-container {
            gap: 30px;
            margin: 0px auto;
            max-width: 800px;
        }
        .media-main-viewer {
            height: 225px;
        }
        .media-main-viewer iframe {
            height: 225px !important;
        }
        /* Image Settings */
        .media-main-viewer img {
            height: 225px !important;
        }
        .centered-box-1 .brand-logo {
            padding: 132px 116px !important;
        }
    }