
:root {
    --theme-color: #0c567d;
    --text-color: #5ca6cd;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    overflow-x: hidden;
  }
  
  body {
    overflow-x: hidden;
    min-height: 100vh;
  }



.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--theme-color, #20b2aa);
    padding: 10px;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    color: var(--text-color);
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    width: 160px;
    height: 50px;
    object-fit: contain;
    transition: transform 0.3s ease;
}



.header-icons {
    display: flex;
    gap: 20px;
}

.header-icon {
     color: var(--text-color);
    font-size: 20px;
    text-decoration: none;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.header-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.header-icon:active {
    transform: scale(0.95);
}



.categories-menu {
    position: fixed;
    top: 70px;
    right: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    width: 160px;
    height: calc(100vh - 70px);
    z-index: 998;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.08);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    border-radius: 0;
}

.categories-menu.active {
    transform: translateX(0);
    animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.categories-header {
    padding: 25px 30px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    position: relative;
}

.categories-title {
    font-size: 22px;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: 0.3px;
}

.close-categories {
    color: #64748b;
    cursor: pointer;
    font-size: 16px;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-weight: normal;
    background: #f1f5f9;
    border: none;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-categories:hover {
    background-color: #e2e8f0;
    color: #475569;
    transform: scale(1.05);
}


.category-item {
    padding: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    background: transparent;
    border-bottom: 1px solid #f1f5f9;
}

.category-item.active {
    background: #e6f7f6;
    font-weight: 600;
}

.category-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.category-name {
    background: var(--theme-color, #20b2aa);
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    min-width: 32px;
    text-align: center;
    text-transform: capitalize;
}



.main-content {
    margin-top: 50px;
    padding: 20px 20px 20px 20px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    background: white;
    box-shadow: none;
}


.footer {
    margin-top: auto;
}

.footer-links {
    background-color: var(--theme-color, #20b2aa);
    padding: 15px;
    text-align: center;
}

.footer-links a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    font-size: 16px;
    margin: 8px 0;
    transition: opacity 0.3s;
}

.footer-copyright {
    background-color: #1f2937;
    padding: 20px;
    text-align: center;
    color: #fff;
}

.footer-brand {
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-copyright-text {
    color: #9ca3af;
    font-size: 14px;
}


@media (max-width: 768px) {
    .footer-links,
    .footer-copyright {
        padding: 15px;
    }
    
    .footer-brand {
        font-size: 20px;
    }
    
    .footer-copyright-text {
        font-size: 12px;
    }
}







.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-results h3 {
    margin-bottom: 10px;
    color: #333;
}

.no-results p {
    margin: 0;
    color: #666;
}


.category-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 20px 0;
    width: 100%;
}

.section-title {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.section-more {
    background: var(--theme-color, #20b2aa);
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 16px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s;
    min-width: 40px;
    text-align: center;
}

.section-more:hover {
    background: var(--theme-color, #1a9a93);
    color: white;
}

.section-right {
    display: flex;
    align-items: center;
    gap: 15px;
}



.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}


.game-card {
    background: linear-gradient(to bottom, #d1e7f7, white);
    border-radius: 12px;
    padding: 20px 16px 8px 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: visible;
    margin-top: 60px;
    text-decoration: none;
    color: inherit;
}

.game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.game-card img {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    margin-top: -60px;
}

.game-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.3;
    padding: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stars {
    color: var(--theme-color, #20b2aa);
}


.homepage-game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
    padding: 0;
}

.homepage-game-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.homepage-game-rating .stars {
    color: #ffc107;
}




@media (max-width: 768px) {
    .section-header {
        padding: 15px 0;
        flex-direction: row;
        gap: 15px;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .game-card img {
        height: 150px;
    }
    
    .section-right {
        display: flex;
        align-items: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .section-header {
        padding: 10px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .game-card img {
        height: 120px;
    }
    
    
    .section-more {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    
    .categories-menu {
        width: 140px;
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    .categories-header {
        padding: 20px 25px;
    }
    
    .categories-title {
        font-size: 20px;
    }
    

    
    .category-name {
        padding: 5px 10px;
        font-size: 13px;
        min-width: 28px;
    }
    
}







.homepage-game-card {
    background: linear-gradient(to bottom, #d1e7f7, white);
    border-radius: 12px;
    padding: 20px 16px 8px 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: visible;
    margin-top: 60px;
}

.homepage-game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.homepage-game-image {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    margin-top: -60px;
}

.homepage-game-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.3;
    padding: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-section {
    margin: 10px 0 10px 0;
}

.search-bar {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid var(--theme-color, #20b2aa);
    border-radius: 25px;
    padding: 8px 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 5px;
}

.search-btn {
    background: var(--theme-color);
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-btn svg {
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.search-btn svg circle,
.search-btn svg path {
    stroke: var(--text-color);
    fill: none;
}


.game-detail-container {
    background: white;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    min-width: 0;
    overflow: hidden;
}


.main-content.detail-page {
    background: white !important;
    margin-top: 0;
}

.game-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    min-width: 0;
    width: 100%;
    flex-wrap: nowrap;
}

.game-icon {
    width: 110px;
    height: 110px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    flex-shrink: 0;
    background: #f8f8f8;
    border: 2px solid #f0f0f0;
    margin-right: 20px;
}

.game-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
}

.game-title.detail-title {
    font-size: 26px;
    font-weight: bold;
    color: #2c2c2c;
    margin-bottom: 10px;
    line-height: 1.2;
}

.game-category {
    display: inline-block;
    background: #e8e8e8;
    color: #333;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 11px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.game-rating.detail-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
}

.stars.detail-stars {
    color: #FFD700;
    font-size: 16px;
}

.rating-text {
    display: none;
}

.game-description {
    color: #555;
    line-height: 1.5;
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 25px;
}

.play-button-container {
    text-align: center;
}

.play-button {
    background: var(--theme-color);
    color: var(--text-color);
    padding: 18px 40px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    display: inline-block;
    transition: all 0.3s;
    box-shadow: 0 3px 12px rgba(32, 178, 170, 0.1);
}

.play-button:hover {
    background: var(--theme-color, #1a9a93);
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(32, 178, 170, 0.15);
}

.recommended-section {
    margin-bottom: 30px;
}

.recommended-section .section-title {
    font-size: 22px;
    font-weight: bold;
    color: #2c2c2c;
    margin-bottom: 20px;
}

.recommended-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 600px;
}

.recommended-game {
    background: linear-gradient(to bottom, #d1e7f7, white);
    border-radius: 12px;
    padding: 20px 16px 8px 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: visible;
    margin-top: 60px;
    text-decoration: none;
    color: inherit;
}

.recommended-game:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.recommended-game img {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
    margin-top: -60px;
}

.recommended-game h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.3;
    padding: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.recommended-game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666;
    padding: 0;
}

.recommended-game-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.recommended-game-rating .stars {
    color: #ffc107;
}

.recommended-game-downloads {
    color: black;
    font-weight: 500;
}

.header-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-logo {
    height: 50px;
    width: auto;
}

.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 8px;
    border-radius: 8px;
    transition: background-color 0.3s;
    background-color: transparent;
    width: 48px;
    height: 48px;
}

.back-button:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.back-button svg {
    width: 36px;
    height: 36px;
}


.category-header {
    margin-bottom: 5px;
}

.category-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-title {
    font-size: 32px;
    font-weight: bold;
    color: #2c2c2c;
}


#gamesGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}


.privacy-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    line-height: 1.6;
}

.privacy-section {
    margin-bottom: 30px;
}

.privacy-section h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--theme-color, #20b2aa);
    padding-bottom: 10px;
}

.privacy-section h3 {
    color: #555;
    font-size: 18px;
    margin: 20px 0 10px 0;
}

.privacy-section p {
    color: #666;
    margin-bottom: 15px;
}

.privacy-section ul {
    color: #666;
    margin-bottom: 15px;
    padding-left: 20px;
}

.privacy-section li {
    margin-bottom: 8px;
}


.terms-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    line-height: 1.6;
}

.terms-section {
    margin-bottom: 30px;
}

.terms-section h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--theme-color, #20b2aa);
    padding-bottom: 10px;
}

.terms-section h3 {
    color: #555;
    font-size: 18px;
    margin: 20px 0 10px 0;
}

.terms-section p {
    color: #666;
    margin-bottom: 15px;
}

.terms-section ul {
    color: #666;
    margin-bottom: 15px;
    padding-left: 20px;
}

.terms-section li {
    margin-bottom: 8px;
}



@media (max-width: 768px) {
    .game-header {
        flex-direction: row;
        text-align: left;
        gap: 15px;
    }
    
    .game-icon {
        width: 100px;
        height: 100px;
        margin: 0;
        flex-shrink: 0;
    }
    
    .game-title.detail-title {
        font-size: 24px;
    }
    
    .game-description {
        text-align: left;
    }
    
    .game-info {
        align-items: flex-start;
    }
    
    .category-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .category-title {
        font-size: 28px;
    }
    
    #gamesGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .privacy-content {
        padding: 20px;
    }
    
    .privacy-section h2 {
        font-size: 20px;
    }
    
    .terms-content {
        padding: 20px;
    }
    
    .terms-section h2 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .game-detail-container {
        padding: 20px;
    }
    
    .game-header {
        gap: 12px;
    }
    
    .game-title.detail-title {
        font-size: 22px;
    }
    
    .game-icon {
        width: 90px;
        height: 90px;
        flex-shrink: 0;
    }
    
    .game-info {
        align-items: flex-start;
    }
    
    .recommended-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    #gamesGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}


.ads {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  
  .ads>div {
    width: 100%;
    max-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
  }