:root {
    --scale: 1; /* قيمة التحجيم الافتراضية */
}
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* تصميم عنوان اللعبة */
.game-title {
    font-size: 2.5rem;
    font-family: 'Tahoma', sans-serif;
    color: #673AB7;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.7);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 90%;
}
.game-title:hover {
    transform: scale(1.02);
    background: rgba(255,255,255,0.9);
}
.game-title:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(103, 58, 183, 0.3);
}

.banner {
    width: 100%;
    max-width: 600px;
    padding: 15px;
    background-color: #333;
    color: #fff;
    text-align: center;
    font-size: 24px;
    font-family: 'Tahoma', sans-serif;
    margin-bottom: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
}
.hex-grid {
    padding: 0;
    background: #673AB7;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    max-width: 530px;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.row {
    display: flex;
    gap: 2px;
    justify-content: center;
    transition: margin 0.3s ease;
}
.row:nth-child(even) {
    margin-left: calc(42px * var(--scale));
}
.row:nth-child(odd) {
    margin-right: calc(42px * var(--scale));
}
.row:not(:first-child) {
    margin-top: calc(-20px * var(--scale));
}
.hexagon {
    width: calc(80px * var(--scale));
    height: calc(92px * var(--scale));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: calc(28px * var(--scale));
    font-family: 'Tahoma', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, width 0.3s ease, height 0.3s ease, font-size 0.3s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background-color: #ffffff;
}
.hexagon:hover {
    /* تم إزالة transform: scale(1.05); */
}
.hexagon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    clip-path: inherit;
    transform: scale(1.05);
    z-index: -1;
}
.hexagon.fade {
    animation: fadeIn 0.5s ease-in-out;
}
.hexagon.color-transition {
    transition: background-color 0.1s ease;
}
@keyframes fadeIn {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}
.red-fixed {
    background-color: #66af3d;
    cursor: default;
}
.green-fixed {
    background-color: #e8834c;
    cursor: default;
}
.outer-fixed-odd-right {
    clip-path: polygon(0% 25%, 50% 0%, 50% 100%, 0% 75%, 0% 25%);
}
.outer-fixed-even-left {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 50% 0%);
}
.outer-fixed-top {
    clip-path: polygon(0% 25%, 100% 25%, 100% 75%, 50% 100%, 0% 75%);
}
.outer-fixed-bottom {
    clip-path: polygon(0% 25%, 50% 0%, 100% 25%, 100% 75%, 0% 75%);
}
.outer-fixed-top-left {
    clip-path: polygon(50% 25%, 100% 25%, 100% 75%, 50% 100%, 50% 75%);
}
.outer-fixed-bottom-left {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 75%, 50% 25%);
}
.icon-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
}
.icon-btn {
    height: 40px;
    border-radius: 10px;
    background-color: #673ab7;
    color: #fff;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
}
.icon-btn:hover {
    background-color: #673ab7;
    transform: scale(1.1);
}
.fooz-btn {
    font-size: 28px;
}

.fooz-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 120px;
    font-family: 'Tahoma', sans-serif;
    font-weight: bold;
    color: #e8834c;
    text-shadow: 2px 2px 5px #ff4500;
    display: none;
    z-index: 10;
    animation: pulse 0.8s infinite alternate;
    -webkit-text-stroke: 2px #000000;
    text-stroke: 2px #000000;
}
@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -50%) scale(1.2); }
}
.sparkle {
    position: fixed;
    width: 5px;
    height: 5px;
    background-color: #fff;
    animation: sparkle 2s infinite;
    display: none;
    border-radius: 50%;
}
@keyframes sparkle {
    0% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1.5); }
    100% { opacity: 0; transform: scale(0); }
}
.active .sparkle {
    display: block;
}
.flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 215, 0, 0.3);
    opacity: 0;
    animation: flash 0.5s infinite;
    display: none;
}
@keyframes flash {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}
.active .flash {
    display: block;
}
.mobile-notice {
    display: none;
    background-color: #fff3cd;
    color: #856404;
    padding: 10px;
    text-align: center;
    font-family: 'Tahoma', sans-serif;
    font-size: 16px;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
@media (max-width: 768px) {
    .mobile-notice {
        display: block;
    }
    .game-title {
        font-size: 1.8rem;
        padding: 8px 15px;
    }
}
/* تنسيقات الفوتر */
.app-footer {
    margin-top: -10px;
    text-align: center;
    font-family: 'Tahoma', sans-serif;
    width: 100%;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgb(83 183 38);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-top: 7px;

}

.footer-link:hover {
    color: #512DA8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.footer-link i {
    font-size: 1.2rem;
}
#quiz a{
    text-decoration: none;
    color: white;
}