/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(45deg, #4a4a4a 25%, transparent 25%), 
                linear-gradient(-45deg, #4a4a4a 25%, transparent 25%), 
                linear-gradient(45deg, transparent 75%, #4a4a4a 75%), 
                linear-gradient(-45deg, transparent 75%, #4a4a4a 75%);
    background-size: 30px 30px;
    background-position: 0 0, 0 15px, 15px -15px, -15px 0px;
    background-color: #666;
    min-height: 100vh;
    color: #fff;
}

/* Header Styles */
.header {
    background: #F5F5F5;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.header-content {
    max-width: 1200px;
    margin: 0 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.logo-text {
    background: linear-gradient(45deg, #ffaa00, #ff6600);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.nav-menu {
    display: flex;
    align-items: center;
}

@media screen and (min-width: 1024px) {
    .nav-menu {
        display: flex !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        z-index: auto !important;
        transform: none !important;
        transition: none !important;
    }
}

@media screen and (max-width: 1023px) {
    .nav-menu {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.9);
        justify-content: center;
        align-items: center;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-menu.active {
        display: flex; /* Shown when active on mobile */
        transform: translateX(0);
    }
}

.nav-item {
    color: #584f4f;
    text-decoration: none;
    padding: 8px 8px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 17px;
}

.new-games {
  background: linear-gradient(
    45deg,
    #ff4d4d, #ff9933, #ffcc00, #d41d1d, #33cccc, #3399ff, #9933ff, #ff33cc
  );
  background-size: 600% 600%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: rainbowText 5s linear infinite;
}

@keyframes rainbowText {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}


.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: #000;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Menu Close Button (hidden by default) */
.menu-close {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.menu-close:hover {
    background: rgba(255,255,255,0.2);
}


.main-container {
    max-width: 1400px;
    margin: 20px auto 0;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    padding: 0 20px;
}


.game-section {
    background: #F5F5F5;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    margin-bottom: 30px;
}

.game-container {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.game-iframe-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 57.25%;
    background: linear-gradient(135deg, #333, #555);
    display: none;
}

.game-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}

.game-preview {
    position: relative;
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.game-preview-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px);
    z-index: 1;
}

.game-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

.preview-content {
    text-align: center;
    position: relative;
    z-index: 3;
}

.preview-content h2 {
    font-size: 30px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.preview-content .play-button {
    background: #008aff;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    color: #fff;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin-top: 15px;
}

.preview-content .play-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.game-info-bar {
    background: rgba(0,0,0,0.5);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-name {
    color: #fff;
    font-size: 21px;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.fullscreen-button {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.fullscreen-button:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Game Description */
.game-description {
    background: #F5F5F5;
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.game-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
}

.game-features {
    color: #333;
    line-height: 2.0;
}

.game-features p {
    padding-top: 5px;
    padding-bottom: 5px;
}

.game-features h2 {
    color: #ff6600;
    margin: 10px 0 10px 0;
    font-size: 20px;
}

.game-features ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.game-features li {
    margin-bottom: 5px;
}

.games-card {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    padding-top: 35px;
    padding-bottom: 35px;
}

.pmg {
    padding-top: 30px;
    padding-bottom: 5px;
    font-size: 1.5em;
}

.game-thumb {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #ff6600, #cc5500);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 100px;
}

.game-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.game-thumb::after {
    content: "Game " attr(data-game);
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    background: rgb(104 96 96 / 70%);
    color: #fff;
    padding: 0.5rem;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-thumb:hover::after {
    opacity: 1;
    transform: translateY(0);
}

/* Right Sidebar - Only Game Thumbnails */
.right-sidebar {
    display: flex;
    flex-direction: column;
}

.sidebar-games {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-top: 35px;
    padding-bottom: 35px;
}

.card-masonry {
    aspect-ratio: 1;
    background: #F5F5F5;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 100px;
}

.card-masonry:hover {
    transform: scale(1.05);
}

.card-masonry::after {
    content: attr(data-game);
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    background: rgb(104 96 96 / 70%);
    color: #fff;
    padding: 0.5rem;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-masonry:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.card-title {
    display: none;
}
/* Footer */
.footer {
    background: #F5F5F5;
    margin-top: 40px;
    padding: 35px 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #662900;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ffaa00;
    transform: translateY(-2px);
}

.copyright-text {
    text-align: center;
    color: #662900;
    font-size: 15px;
    margin-top: 25px;
}

@media screen and (max-width: 1023px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .right-sidebar {
        display: none !important;
    }
    
    .games-card {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    
    /* Show menu toggle button */
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none; /* Hidden by default */
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.9);
        justify-content: center;
        align-items: center;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-menu.active {
        display: flex; /* Shown when active */
        transform: translateX(0);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu .nav-item {
        font-size: 24px;
        margin: 15px 0;
        color: #f1eeee;
    }

    .menu-close {
        display: block;
    }

    .header-content {
        padding: 0 10px;
    }

    .logo {
        font-size: 20px;
    }

    .game-section {
        padding: 10px;
    }

    .game-info-bar {
        padding: 10px;
    }

    .game-name {
        font-size: 20px;
    }

    .fullscreen-button {
        padding: 8px 12px;
        font-size: 16px;
    }

    .game-description {
        padding: 15px;
    }

    .footer-links a {
        font-size: 13px;
    }

    .copyright-text {
        font-size: 13px;
    }
}

@media screen and (max-width: 1300px) {
    .games-card {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .games-card {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .games-card {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {

.game-iframe-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 160.78%;
    display: none;
}
}

.findGames {
text-align: center;
}

#findGames {
    padding: 15px;
    margin-top: 20px;
    font-size: 18px;
    border-radius: 10px;
    text-align: center;
}

#searchResults .games-card {
    margin: 10px 0;
}

.load-more-btn {
  display: block;
  margin: 20px auto;
  padding: 18px 30px;
  background-color: #f5f5f5;
  color: #1a1919;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.load-more-btn:hover {
  background-color: #e7e7e7;
  transform: scale(1.05);
}



.creative-slot {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border: 1px dashed #aaa;
  margin: 20px auto;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #555;
  border-radius: 5px;
}

.slot-970x90 {
  max-width: 970px;
  height: 90px;
}

.slot-300x250 {
  max-width: 300px;
  height: 250px;
}