:root {
    --scale-factor: 1;
    /* Define default colors for red and green teams */
    --red-color: #ff4081;
    --green-color: #81c784;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Tahoma', sans-serif;
}

.host-screen, .contestant-screen {
    user-select: none;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #4b0082;
    flex-direction: column;
    padding: 1vw;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: auto;
    /* Added smooth transition for background color */
    transition: background-color 0.1s ease-in-out;
    will-change: background-color;
}

/* New background classes for team colors */
.team-background-red {
    background-color: var(--red-color, #ff4081);
}

.team-background-green {
    background-color: var(--green-color, #81c784);
}

.phone-screen, .welcome-screen, .host-screen, .contestant-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.phone-screen.active, .welcome-screen.active {
    display: flex;
    background: #4b0082;
    color: #fff;
    padding: 20px;
    height: 100vh;
    justify-content: center;
}

.host-screen.active, .contestant-screen.active {
    display: flex;
}

.hex-grid {
    padding: 0;
    background: #000000;
    border-radius: 1vw;
    box-shadow: 0 0.4vw 0.8vw rgba(0, 0, 0, 0.3);
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

#hexGridHost {
    width: calc(7 * (90vw / 7) + 6 * (90vw / 200));
    min-width: 600px;
    transform: scale(var(--scale-factor, 1));
    transform-origin: center center;
}

#hexGridContestant {
    width: calc(7 * (90vw / 7) + 6 * (90vw / 200));
    min-width: 600px;
}

/* أنماط hexGridWrapper الجديدة */
.hexGridWrapper {
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.row {
    display: flex;
    gap: calc(90vw / 100);
    justify-content: center;
}

.row:not(:first-child) {
    margin-top: calc(-90vw / 35);
}

.row:nth-child(even) {
    margin-right: calc(-0.5 * (90vw / 7) - (90vw / 200));
}

.row:nth-child(odd) {
    margin-left: calc(-0.5 * (90vw / 7) - (90vw / 200));
}

.hexagon {
    width: calc(90vw / 7);
    height: calc(1.15 * (90vw / 7));
    min-width: 40px;
    min-height: 46px;
    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(90vw / 28);
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    background-color: #ffffe0;
}

.hexagon.contestant-hex {
    cursor: default;
}

.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: #ff4081;
    cursor: default;
}

.green-fixed {
    background-color: #81c784;
    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;
    gap: 1vw;
    margin: 1vw 0;
    align-items: center;
    margin-bottom: 1vw;
}

/* Adjusted font size for Font Awesome icons */
.icon-btn {
    width: 5vw;
    height: 5vw;
    min-width: 30px;
    min-height: 30px;
    max-width: 60px;
    max-height: 60px;
    border-radius: 50%;
    background-color: #007bff;
    color: #fff;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5vw; /* Smaller size for Font Awesome icons */
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
}

.icon-btn:hover {
    background-color: #0056b3;
    transform: scale(1.1);
}

/* Adjusted font size for party button (fa-star) */
.party-btn {
    font-size: 1.8vw; /* Size for fa-star icon */
}

/* Styles for the save button */
.save-btn {
    background-color: #ffc107; /* Yellow color */
    font-size: 1.5vw; /* Same size as other icons */
}

.save-btn:hover {
    background-color: #ffa000; /* Darker yellow color */
}

input, select, textarea {
    padding: 8px;
    font-size: 16px;
    margin: 5px;
    border-radius: 5px;
}

button {
    padding: 8px 16px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
}

.party-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12vw;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 5px #ff4500;
    display: none;
    z-index: 10;
    animation: pulse 0.8s infinite alternate;
    -webkit-text-stroke: 2px #000000;
}
@keyframes shake {
    0% { transform: translate(-50%, -50%) translateX(0); }
    10% { transform: translate(-50%, -50%) translateX(-5px); }
    20% { transform: translate(-50%, -50%) translateX(5px); }
    30% { transform: translate(-50%, -50%) translateX(-5px); }
    40% { transform: translate(-50%, -50%) translateX(5px); }
    50% { transform: translate(-50%, -50%) translateX(-5px); }
    60% { transform: translate(-50%, -50%) translateX(5px); }
    70% { transform: translate(-50%, -50%) translateX(-5px); }
    80% { transform: translate(-50%, -50%) translateX(5px); }
    90% { transform: translate(-50%, -50%) translateX(-5px); }
    100% { transform: translate(-50%, -50%) translateX(0); }
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-50%, -50%) scale(1.2); }
}

/* أنماط النص الذهبي */
.golden-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-weight: bold;
    pointer-events: none;
    z-index: 15;
    display: none;
    font-size: 8vw;
    white-space: nowrap; /* منع التفاف النص */
    color: #ffd700; /* لون  */
    text-shadow: 2px 2px 5px #ff4500;
    background-color: rgba(0, 0, 0, 0.5); /* خلفية شبه شفافة */
    padding: 5px 10px; /* حشوة */
    border-radius: 5px; /* زوايا مستديرة */
    animation: zoomPulse 1s ease-in-out infinite;
    -webkit-text-stroke: 1px #000000;oke: 1px #000000;
}
@keyframes zoomPulse {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
    20% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1); }
    80% { transform: translate(-50%, -50%) scale(1.1); }
    100% { transform: translate(-50%, -50%) scale(1); }
}

.flash {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: rgba(255, 215, 0, 0.8);
    border-radius: 50%;
    z-index: 5;
    animation: flashAnimation 1s ease-out infinite;
}

@keyframes flashAnimation {
    0% { opacity: 1; transform: scale(0); }
    50% { opacity: 0.8; }
    100% { opacity: 0; transform: scale(2); }
}

.buzzer-btn {
    margin-top: 20px;
    padding: 15px 30px;
    background-color: #e6b800;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 40px;
    cursor: pointer;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.buzzer-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Updated question-section styles to support the toggle switch */
.question-section {
    margin: 10px 0;
    padding: 10px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 80%;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /* Removed justify-content: center to allow toggle-container to manage alignment */
    margin-top: 10px;
    align-items: center; /* Align items vertically */
}

.question-section input, .question-section select, .question-section button {
    flex: 1;
    min-width: 120px;
}

.question-section .toggle-switch {
    flex: 0 0 auto; /* Prevent toggle switch from growing/shrinking */
    margin: 5px;
}

.question-section .toggle-label {
    flex: 0 0 auto; /* Prevent toggle label from growing/shrinking */
    margin: 5px;
}

/* CSS to ensure nextQuestionButton is clickable */
#nextQuestionButton {
    pointer-events: auto; /* إضافة صراحة لتجنب التعطيل */
}

.buzzer-info {
    color: #fff;
    font-size: 18px;
    margin: 10px 0;
}

.players-container {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin: 10px 0;
    margin-top: 10px;
}

.team-list {
    width: 45%;
    padding: 10px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: 100px;
}

.team-list h3 {
    text-align: center;
    margin: 0 0 10px 0;
}

.player-bubble {
    display: inline-block;
    padding: 8px 15px;
    margin: 5px;
    background: #e0e0e0;
    border-radius: 20px;
    font-size: 16px;
    cursor: move;
}

.player-bubble.red {
    background: #ff4081;
    color: #fff;
}

.player-bubble.green {
    background: #81c784;
    color: #fff;
}

.error-message {
    color: red;
    font-weight: bold;
}

.success-message {
    color: green;
    font-weight: bold;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    margin: 0 10px; /* Removed margin-right: auto */
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.toggle-label {
    color: #000;
    font-size: 14px;
    margin-left: 5px;
}

.questions-container {
    max-height: 200px;
    width: 70%;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    background: #fff;
    margin-top: 10px;
    color: #000;
}

.question-item {
    display: flex;
    align-items: center;
    padding: 5px 0;
    white-space: nowrap;
}

.question-item input[type="checkbox"] {
    margin-right: 10px;
}

#adminPanel {
    max-height: 80vh;
    overflow-y: auto;
    width: 90%;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
}

.stats {
    color: #fff;
    font-size: 16px;
    margin: 10px 0;
}

.backup-btn {
    background-color: #FFC107;
    color: #000;
}

.backup-btn:hover {
    background-color: #FFA000;
}

/* Style for the new copy general questions button */
#copyGeneralQuestionsButton {
    background-color: #007bff;
    color: #fff;
    border-radius: 5px;
    font-size: 16px;
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 10px;
    pointer-events: auto;
}

#copyGeneralQuestionsButton:hover {
    background-color: #0056b3;
}

.announcement-management {
    margin-top: 20px;
}

.announcements-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid #eee;
}

.delete-announcement-btn {
    background-color: #dc3545;
    color: #fff;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.delete-announcement-btn:hover {
    background-color: #c82333;
}

#announcementsContainer {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

#announcementsContainer.hidden {
    display: none;
}

/* New styles for welcomeAnnouncementsContainer */
#welcomeAnnouncementsContainer {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

#welcomeAnnouncementsContainer.hidden {
    display: none;
}

.announcements-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    padding: 15px;
    margin-bottom: 15px;
    width: 600px;
    max-width: 90%;
    height: auto;
    min-height: 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0 auto;
    position: relative;
}

.announcements-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.announcement-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin: 0 0 8px 0;
}

.announcement-text {
    font-size: 12px;
    color: #333;
    margin: 0 0 8px 0;
    white-space: normal;
    word-wrap: break-word;
}

.announcement-button {
    background: #000;
    color: #fff;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-size: 12px;
}

.announcement-button:hover {
    background: #333;
}

.announcement-close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: transparent;
    border: none;
    color: #333;
    font-size: 16px;
    cursor: pointer;
}

.announcement-close-btn:hover {
    color: #dc3545;
}

.sliders-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0;
}

.size-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 200px;
    height: 8px;
    background: #007bff;
    border-radius: 5px;
    outline: none;
    margin: 10px 0;
    user-select: auto !important;
    pointer-events: auto !important;
    touch-action: auto !important;
}

.size-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 2px solid #007bff;
    border-radius: 50%;
    cursor: pointer;
}

.size-slider::-webkit-slider-thumb:hover {
    background: #f0f0f0;
}

.size-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #fff;
    border: 2px solid #007bff;
    border-radius: 50%;
    cursor: pointer;
}

.size-slider::-moz-range-thumb:hover {
    background: #f0f0f0;
}

.connection-lost {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    color: white;
    text-align: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.connection-lost p {
    margin: 0;
    font-size: 16px;
}

.connection-lost button {
    margin-top: 15px;
    padding: 8px 16px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: none;
}

.connection-lost button:hover {
    background-color: #0056b3;
}

.toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 5px;
    color: #fff;
    font-size: 16px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.toast.success {
    background-color: #28a745;
}

.toast.error {
    background-color: #dc3545;
}

.toast.show {
    opacity: 1;
}

.share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.share-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    max-width: 400px;
    width: 90%;
    text-align: center;
    color: #333;
}

.share-modal-content p {
    margin: 0 0 15px;
    font-size: 16px;
}

/* Updated to include #inviteQrCode */
#qrCode, #inviteQrCode {
    margin: 0 auto 15px;
    width: 150px;
    height: 150px;
}

.share-link-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

/* Updated to include #inviteLink */
#shareLink, #inviteLink {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    background: #f5f5f5;
}

/* Updated to include #copyInviteLinkButton, #shareInviteLinkButton */
#copyLinkButton, #copyInviteLinkButton, #shareInviteLinkButton {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
}

/* Updated to include #copyInviteLinkButton:hover, #shareInviteLinkButton:hover */
#copyLinkButton:hover, #copyInviteLinkButton:hover, #shareInviteLinkButton:hover {
    background: #0056b3;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.modal-close:hover {
    color: #dc3545;
}

.loading-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    background: #4b0082;
    color: #fff;
}

.loading-screen.active {
    display: flex;
}

/* أنماط لـ installModal */
#installModal .share-modal-content {
    max-width: 500px;
}

#installInstructions {
    font-size: 20px;
    line-height: 1.5;
    text-align: center;
}

#installButton {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
}

#installButton:hover {
    background: #0056b3;
}


@media (max-width: 767px) {
    .sliders-container {
        display: none;
    }

    #hexGridHost, #hexGridContestant {
        width: calc(7 * (95vw / 7) + 6 * (95vw / 200));
        max-width: none;
        min-width: 300px;
    }

    .hexagon {
        width: calc(95vw / 7);
        height: calc(1.15 * (95vw / 7));
        min-width: 30px;
        min-height: 34.5px;
        font-size: calc(95vw / 28);
    }

    .row:not(:first-child) {
        margin-top: calc(-95vw / 35);
    }

    .row:nth-child(even) {
        margin-right: calc(-0.5 * (95vw / 7) - (95vw / 200));
    }

    .row:nth-child(odd) {
        margin-left: calc(-0.5 * (95vw / 7) - (95vw / 200));
    }

    .row {
        gap: calc(95vw / 100);
    }

    .icon-container {
        margin-bottom: 1vw;
    }

    /* Adjusted for small screens */
    .question-section {
        margin-top: 10px;
        flex-direction: column; /* Changed to column for small screens */
    }

    .players-container {
        margin-top: 10px;
    }

    /* Adjusted Font Awesome icon size for small screens */
    .icon-btn {
        width: 8vw;
        height: 8vw;
        font-size: 2.5vw; /* Smaller Font Awesome icon size on small screens */
    }

    /* Adjusted party button size for small screens */
    .party-btn {
        font-size: 3vw; /* Larger party icon size on small screens */
    }

    /* Adjusted save button size for small screens */
    .save-btn {
        width: 8vw;
        height: 8vw;
        font-size: 2.5vw;
    }

    /* Style for the new copy general questions button on small screens */
    #copyGeneralQuestionsButton {
        width: 8vw;
        height: auto; /* Changed from 8vw to auto for better text fitting */
        font-size: 2.5vw;
    }

    .party-text {
        font-size: 18vw;
        -webkit-text-stroke: 1.5px #000000;
    }

    /* أنماط النص الذهبي للشاشات الصغيرة */
.golden-text {
        font-size: 10vw;
        -webkit-text-stroke: 1.5px #000000;
        white-space: nowrap; /* منع التفاف النص */
        color: #ffd700; /* لون أبيض */
        background-color: rgba(0, 0, 0, 0.5); /* خلفية شبه شفافة */
        padding: 5px 10px; /* حشوة */
        border-radius: 5px; /* زوايا مستديرة */    }

    .buzzer-btn {
        width: 160px;
        height: 160px;
        font-size: 18px;
    }

    /* Ensure hex-grid and buzzer-btn are above team background on small screens */
    .hex-grid, .buzzer-btn {
        z-index: 10;
    }

    .players-container {
        flex-direction: column;
        width: 90%;
        align-items: center;
    }

    .team-list {
        width: 100%;
        margin-bottom: 10px;
    }

    .question-section {
        width: 90%;
        flex-direction: column;
    }

    .questions-container {
        width: 90%;
        max-height: 150px;
    }

    .toggle-switch {
        width: 30px;
        height: 15px;
    }

    .slider:before {
        height: 11px;
        width: 11px;
    }

    input:checked + .slider:before {
        transform: translateX(15px);
    }

    .toggle-label {
        font-size: 12px;
    }

    .connection-lost {
        width: 180px;
        padding: 15px;
    }

    .spinner {
        width: 30px;
        height: 30px;
        border: 4px solid #f3f3f3;
        border-top: 4px solid #3498db;
    }

    .connection-lost p {
        font-size: 14px;
    }

    .connection-lost button {
        padding: 6px 12px;
        font-size: 14px;
    }

    .announcements-card {
        width: 60%;
        max-width: 90%;
    }

    .announcement-title {
        font-size: 18px;
    }

    .announcement-text {
        font-size: 14px;
    }

    .announcement-button {
        font-size: 12px;
        padding: 4px 8px;
    }

    .announcement-close-btn {
        font-size: 14px;
    }

    /* Added flex-direction to share-link-container for small screens */
    .share-link-container {
        flex-direction: column;
    }

    /* Added width and margin-bottom for share/invite links on small screens */
    #shareLink, #inviteLink {
        width: 100%;
        margin-bottom: 10px;
    }

    /* أنماط لـ installModal في الشاشات الصغيرة */
    #installModal .share-modal-content {
        max-width: 80%;
    }

    #installInstructions {
        font-size: 20px;
    }

    #installButton {
        font-size: 14px;
        padding: 8px 16px;
    }
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto; /* إزاحة إلى اليمين */
    flex-wrap: nowrap; /* المفتاح والنص في نفس السطر */
}

#currentQuestion {
    min-height: 3em; /* أدنى ارتفاع لثلاثة أسطر تقريبًا */
    width: 80%;
    margin: 10px auto;
    text-align: center;
    background: #fff;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #000;
    font-size: 16px;
}
