html, body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
}   
   
body:not(.about-page) {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1e90ff, #ff6347);
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    position: relative;
}

.page-title {
    font-size: 24px;
    text-align: center;
    color: #fff;
    font-weight: bold;
    margin-top: 25px;
    padding-top: 15px;
    margin-bottom: 20px;
    z-index: 101;
}

body.no-scroll,
body.no-scroll .icon-grid {
    overflow: hidden;
}

body.no-scroll .page-title {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 102;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.navigation-icons {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 1px;
    z-index: 101;
}

.icon-back {
    position: absolute;
    top: 10px;
    left: 30px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.icon-home {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.icon-share {
    position: absolute;
    top: 10px;
    right: 30px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.navigation-icons a {
    text-decoration: none;
    color: white;
    font-size: 20px;
    z-index: 1000;
}

.navigation-icons a:hover {
    color: #FFD700;
}

.navigation-icons i {
    cursor: pointer;
}

.navigation-icons svg {
    width: 24px;
    height: auto;
    cursor: pointer;
}

.main-content {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(12, 80px);
    gap: 25px 10px;
    justify-content: center;
    padding: 1px;
    margin: 1px;
    width: 97%;
    z-index: 103;
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #888 #ddd;
    align-items: start;
}

.icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.icon {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, filter 0.2s ease;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    z-index: 103;
}

.icon img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

.icon-caption {
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
    color: #fff;
    text-align: center;
    pointer-events: none;
    height: min-content;
}

.icon-container.blurred .icon,
.icon-container.blurred .icon-caption {
    filter: blur(8px);
    pointer-events: none;
}

.icon-buttons {
    position: absolute;
    display: none;
    gap: 10px;
    top: 0;
    left: 0;
    z-index: 104;
    transition: opacity 0.3s ease;
}

.icon-buttons button {
    padding: 8px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.menu-top {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px 0;
}

.menu-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5px 0;
}

.menu-top .fav-btn,
.menu-top .rate-btn,
.menu-top .info-btn {
    margin: 0 5px;
}

.menu-bottom .play-btn,
.menu-bottom .about-btn {
    margin: 0 5px;
}

.game-control-btn {
    position: absolute;
    display: flex;
    gap: 110px;
    top: 0;
    left: 0;
    z-index: 104;
    transition: opacity 0.3s ease;
}

.game-control-btn button {
    padding: 8px;
    border: none;
    border-radius: 10%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.game-bottom-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.play-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.play-btn:hover {
    background-color: #218838;
}

.play-btn::before {
    font-size: 14px;
    margin-right: 5px;
}

.about-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.about-btn:hover {
    background-color: #0056b3;
}

#infoModal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    color: black;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 105;
    max-width: 400px;
    width: 80%;
    text-align: center;
    font-size: 16px;
    line-height: 1.5;
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

body.no-scroll::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    z-index: 101;
    pointer-events: none;
}

#infoModal.active {
    display: block;
    opacity: 1;
}

.about-link {
    text-align: center;
    margin: 20px;
}

.about-link a {
    font-size: 18px;
    color: #fff;
    text-decoration: underline;
}

.about-page {
    background: linear-gradient(135deg, #1e90ff, #ff6347);
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    width: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    box-sizing: border-box;
    display: block;
}

.about-title {
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin: 15px 0 30px 0;
}

.about-card {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 10px;
    padding: 20px;
    background: rgba(0,0,0,0.2);
    margin: 0 auto;
    max-width: 1200px;
}

.about-icon {
    width: 150px;
    height: auto;
    border-radius: 10px;
    flex: 0 0 auto;
    margin-right: 20px;
}

.about-card-text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.about-description {
    white-space: pre-line;
    margin: 0 0 15px 0;
}

.about-author-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.social-icons {
    display: inline-block;
}

.social-icon {
    width: 24px;
    vertical-align: middle;
    margin-left: 5px;
}

.about-lorem {
    margin-top: 40px;
    line-height: 1.6;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.about-games-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.mini-card {
    position: relative;
    width: 250px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 8px;
    padding: 10px;
    background: rgba(0,0,0,0.2);
    box-sizing: border-box;
}

.mini-card-icon {
    text-align: center;
    margin-bottom: 10px;
    padding-left: 50px;
    padding-right: 50px;
}

.mini-card-icon img {
    width: 80px;
    height: auto;
    border-radius: 5px;
}

.mini-card-title {
    margin: 10px 0;
    font-size: 18px;
    text-align: center;
    color: #fff;
}

.mini-card-desc {
    font-size: 14px;
    color: #ddd;
    text-align: justify;
    max-height: 60px;
    overflow: hidden;
    margin: 0;
}

.mini-card-readmore {
    text-align: center;
    margin-top: 10px;
}

.mini-card-readmore a {
    text-decoration: none;
    color: #fff;
    background: rgba(0,0,0,0.3);
    padding: 5px 10px;
    border-radius: 4px;
}

.mini-card-actions {
    position: absolute;
    top: 15%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.full-card-actions .play-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.3s ease;
}

.full-card-actions .play-btn:hover {
    background-color: #218838;
}

.full-card-actions .play-btn::before {
    font-size: 16px;
    margin-right: 5px;
}

.full-card-actions .share-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.full-card-actions .share-btn:hover {
    background-color: #0056b3;
}

@media (max-width: 1200px),
       (max-width: 768px) {
    .page-title {
        font-size: 20px;
        margin-top: 10px;
        padding-top: 10px;
        margin-bottom: 15px;
    }
    .icon-grid {
        grid-template-columns: repeat(4, 60px);
        gap: 15px;
        padding: 1px;
        margin: 1px;
    }
    .icon {
        width: 60px;
        height: 60px;
    }
    .icon-caption {
        font-size: 12px;
        margin-top: 5px;
    }
    .about-card {
        flex-wrap: wrap;
    }
    .about-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }
    .about-card-text {
        width: 100%;
    }
    .footer-links a {
        color: #fff;
        text-decoration: none;
        font-size: 0.5rem;
    }
}

@media (max-width: 1200px) and (orientation: landscape),
       (max-width: 768px) and (orientation: landscape) {
    .page-title {
        font-size: 20px;
        margin-top: 10px;
        padding-top: 10px;
        margin-bottom: 15px;
    }
    .icon-grid {
        grid-template-columns: repeat(10, 60px);
        gap: 15px;
        padding: 1px;
        margin: 1px;
    }
    .icon {
        width: 60px;
        height: 60px;
    }
    .icon-caption {
        font-size: 12px;
        margin-top: 5px;
    }
}

.site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    max-width: 1200px;
    width: 90%;
    margin: auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.about-card p {
    word-wrap: break-word;
    overflow-wrap: break-word;
}