
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&display=swap');

:root {
    
    --primary-color: #a9b4c4;
    --text-primary: #ffffff;
    --text-muted: #999;
    --bg-primary: #ffffff;
}


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

html {
    height: 100%;
    overflow-x: hidden;
  }
  
  body {
    overflow-x: hidden;
    min-height: 100vh;
    font-family: 'Fredoka', sans-serif;
    background-image: url('../bg5.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
  }


.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: transparent;
    padding: 5px 20px;
    z-index: 998;
    box-shadow: none;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    color: var(--text-primary);
    font-size: 24px;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo img {
    width: 160px;
    height: 40px;
    object-fit: contain;
}

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

.header-icon {
    color: var(text-primary);
    font-size: 18px;
    text-decoration: none;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
}

.header-icon svg {
    width: 24px;
    height: 24px;
    display: block;
}

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

.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 5px;
    border-radius: 50%;
    background-color: transparent;
    width: 40px;
    height: 40px;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
}

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

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: calc(997 - 1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.categories-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
    width: 250px;
    max-height: 80vh;
    z-index: 997;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.categories-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.categories-header {
    padding: 20px;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    text-align: center;
}

.categories-title {
    font-size: 20px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.3px;
}

.close-categories {
    color: white;
    cursor: pointer;
    font-size: 20px;
    padding: 0;
    border-radius: 0;
    font-weight: normal;
    background: transparent;
    border: none;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.category-item {
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: transparent;
    border-bottom: 1px solid var(--primary-color);
    transition: background-color 0.2s ease;
}

.category-item:hover,
.category-item.active {
    background: rgba(0, 0, 0, 0.05);
}

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

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

.category-name {
    border: none;
    color: white;
    padding: 0;
    border-radius: 0;
    font-size: 16px;
    font-weight: 400;
    min-width: auto;
    text-align: center;
    text-transform: none;
}


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


.footer {
    margin-top: auto;
    margin: 10px 15px;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
}

.footer-links {
    padding: 10px;
    text-align: center;

}

.footer-links a {
    display: block;
    text-decoration: none;
    font-size: 16px;
    color: white;
}

.footer-copyright {
    padding-bottom: 20px;
    text-align: center;
    color: #1e293b;
}

.footer-copyright-text {
    color: var(--primary-color);
    font-size: 14px;
}


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

.game-grid-three-columns {
    grid-template-columns: repeat(3, 1fr);
}

.game-card {
    padding: 10px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
}

.game-card-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 5px;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 15px;
}

.game-card-title {
    font-size: 12px;
    font-weight: 600;
    color: #2c2c2c;
    margin: 10px 5px;
    line-height: 1.3;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


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

.category-game-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-game-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    background: var(--bg-primary);
    border-radius: 8px;
    padding: 10px;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
    transition: box-shadow 0.3s ease;
}

.category-game-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.category-game-thumbnail {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
}

.category-game-thumbnail img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    display: block;
}

.category-game-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    align-items: center;
    text-align: center;
}

.category-game-title {
    font-size: 15px;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.category-game-rating {
    font-size: 15px;
    color: #ff9800;
    margin: 0;
    letter-spacing: 2px;
}

.category-game-play {
    flex-shrink: 0;
    background: #fc2745;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease;
}

.category-game-play:hover {
    transform: scale(1.05);
}

.category-game-play svg {
    width: 16px;
    height: 16px;
}

.game-list-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease;
}

.game-list-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.game-list-thumbnail {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 5px 0 0 5px;
}

.game-list-thumbnail img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    display: block;
    border-radius: 5px 0 0 5px;
}

.game-list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.game-list-title {
    font-size: 14px;
    font-weight: 600;
    color: #2c2c2c;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-list-description {
    display: none;
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}


.section-header {
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    width: 100%;
    gap: 10px;
}

.section-more {
    background: transparent;
    color: transparent;
    text-decoration: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 0;
}

.section-more svg {
    width: 28px;
    height: 14px;
    display: block;
}

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

.section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

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

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.no-results h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
}


.home-float-button {
    position: fixed;
    bottom: 300px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 997;
    cursor: pointer;
    text-decoration: none;
    font-size: 24px;
    transition: transform 0.2s ease;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
}

.home-float-button:active {
    transform: scale(0.95);
}

.home-float-button svg {
    width: 30px;
    height: 30px;
}

.search-section {
    margin-bottom: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin-bottom 0.3s ease;
}

.search-section.active {
    max-height: 200px;
    opacity: 1;
    margin-bottom: 10px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border: none;
    padding: 0;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
      backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
}

.search-bar input {
    flex: 1;
    border: 1px solid var(--primary-color);
    border-radius: 10px 0 0 10px;
    outline: none;
    font-size: 16px;
    padding: 12px;
    background: transparent;
    color: var(--text-primary);
}

.search-bar input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: var(--primary-color);
    border: none;
    border-left: 1px solid var(--primary-color);
    color: var(--bg-primary);
    padding: 12px 20px;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    
}

.search-btn svg {
    width: 20px;
    height: 20px;
}

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

.popular-games-container {
    position: relative;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.popular-games-wrapper {
    display: flex;
    gap: 15px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: max-content;
}

.popular-games-wrapper::-webkit-scrollbar {
    display: none;
}

.popular-games-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.popular-game-card {
    flex: 0 0 105px;
    border-radius: 8px;
    overflow: visible;
    cursor: pointer;
    position: relative;
    height: 142px;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.popular-game-card-1 .popular-game-play {
    color: #094fd7;
}

.popular-game-card-1 {
    background-image: url('../1.png');
    background-size: contain;
}

.popular-game-card-2 .popular-game-play {
    color: #d75309;
}

.popular-game-card-2 {
    background-image: url('../2.png');
    background-size: contain;
}

.popular-game-card-3 .popular-game-play {
    color: #a109d7;
}
.popular-game-card-3 {
    background-image: url('../3.png');
    background-size: contain;
}

.popular-game-image {
    width: 56px;
    height: 56px;
    margin: 5px 0 0 15px;
    overflow: hidden;
    border-radius: 8px;
}

.popular-game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 2px solid white;
    border-radius: 8px;
}

.popular-game-title {
    padding: 5px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    background: transparent;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.popular-game-type {
    text-align: center;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    padding: 0 5px 8px 5px;
}

.popular-game-play {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    background:  linear-gradient(180deg, #fff, hsla(0, 0%, 100%, .58));
    border-radius: 50px;
    padding: 5px 10px;
    margin: 0 10px;
}

.about-section {
    padding: 10px 0;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
}

.about-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-section h2 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: left;
}

.about-section p {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.game-detail-container {
    margin-bottom: 30px;
    min-width: 0;
    overflow: hidden;
}

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

.game-icon {
    width: 130px;
    height: 130px;
    border-radius: 5px;
    object-fit: cover;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    background: var(--bg-primary);
    margin-right: 15px;
}

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

.game-title {
    font-size: 20px;
    color: #2c2c2c;
    padding-bottom: 10px;
    line-height: 1.2;
    border-bottom: 1px solid #f0f0f0;
}

.game-category {
    display: inline-block;
    background: var(--bg-primary);
    border: 1px solid #fc2745;
    color: #fc2745;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    margin-bottom: 10px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
}

.game-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

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

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

.rating-text {
    display: none;
}

.game-downloads {
    font-size: 14px;
    color: #fff;
}

.game-description {
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 14px;
    margin: 10px 0;
}

.play-button {
    background: #fc2745;
    color: white;
    border-radius: 15px;
    padding: 10px 25px;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    animation: pulse 1s infinite;
    min-width: 150px;
}

.game-description-container {
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
}

.description-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    background-image: url('../pencil.png');
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 24px;
    padding-left: 34px;
}

.game-description-container .game-description {
    margin: 0;
    color: #000000;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

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

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


#gamesGrid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
}


.privacy-content,
.terms-content {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

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

.privacy-section h2,
.terms-section h2 {
    color: #2c2c2c;
    font-size: 24px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.privacy-section h3,
.terms-section h3 {
    color: #2c2c2c;
    font-size: 18px;
    margin: 20px 0 10px 0;
}

.privacy-section p,
.terms-section p {
    color: #2c2c2c;
    margin-bottom: 15px;
}

.privacy-section ul,
.terms-section ul {
    color: #2c2c2c;
    margin-bottom: 15px;
    padding-left: 20px;
}

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


.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;
  }