@import url('https://fonts.googleapis.com/css2?family=Electrolize&display=swap');

body { 
    color: #4D93AC; 
    background: url(https://www.cbra.systems/map/Rave-Cave/AgVWUTkkRrie7MGZLvUoNA.webp) repeat fixed center; 
    background-size: cover;
}

/* 16:9 Aspect Ratio for YouTube iFrame */
.frame-wrapper {
    width: 50%; /* 50% smaller width */
    max-width: 336px; /* Adjust max-width to match 50% of 672px */
    aspect-ratio: 16 / 9;
    position: relative;
    margin: 0 auto; /* Centering */
}

.frame-wrapper iframe {
      border-radius: 15px; /* Adjust the value to control the roundness */
  overflow: hidden; /* Ensures content doesn't overflow the rounded corners */
    width: 100%;
    height: 100%;
    border: 0;
}


/* Logo Positioning */
.logo {
    position: absolute;
    left: 600px;
    transform: translateX(180px);
    top: 10px;
    z-index: 1;
    opacity: 0.4;
}

/* YouTube Thumbnails */
#ytThumbs {
    position: relative;
    top: -20px; /* Moves thumbnails 10px higher */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
    padding: 20px;
    max-width: 672px;
    margin: 0 auto; /* Centering */
}

.yt-thumbnail {
    text-align: center;
    background: #181818;
    padding: 10px;
    border-radius: 8px;
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
}

.yt-thumbnail {
    height: 118px; /* Adjust the height as needed */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.yt-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
}

.yt-thumbnail:hover {
    transform: scale(1.05);
}

.yt-thumbnail p {
  display: block;
  width: 100%;
  word-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'Electrolize', sans-serif;
}

.yt-thumbnail p::after {
  content: " ..";
}


/* Pagination Buttons */
.pagination {
    text-align: center;
    position: relative;
    top: -82px; /* Moves thumbnails 10px higher */
}

.nav-btn {
    background: #ff4500;
    color: white;
    border: none;
    padding: 10px 20px;
    margin: 5px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
    display: inline-block; /* Always visible if needed */
}

.nav-btn:hover {
    background: #ff2200;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    #ytThumbs {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); 
    }

    .nav-btn {
        font-size: 14px;
        padding: 8px 15px;
    }

    .logo {
        transform: translateX(100px);
    }
}