
body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #000000;
    font-family: 'IBM Plex Serif', serif;
    color: #ffffff;
    overflow: hidden;
}

.screen {
    width: 100%;
    max-width: 800px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: opacity 0.5s ease;
}

.hidden {
    display: none !important;
}

/* Меню */
#menu-screen {
    background: #000000;
    border: 1px solid #3ca069;
    padding: 40px;
    height: auto;
    min-height: 300px;
}

#menu-screen h1 {
    font-size: 3em;
    margin-bottom: 40px;
    color: #ffffff;
    font-weight: 400;
    letter-spacing: 2px;
}

#start-btn {
    padding: 15px 50px;
    background: #000000;
    color: #ffffff;
    font-family: 'IBM Plex Serif', serif;
    font-size: 18px;
    border: 1px solid #ffffff;
    border-radius: 0; 
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#start-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

#start-btn:active {
    transform: scale(0.98);
}

/* Игровой экран */
#game-screen {
    justify-content: space-between;
    padding: 20px;
}

#options-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 15px;
    width: 100%;
    flex-grow: 1;
    margin-bottom: 30px;
    min-height: 0;
}

.option-item {
    background: #000000;
    border: 1px solid #333;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    width: 100%;
    height: 100%;
}

.option-item:hover {
    border-color: #3ca069;
    background: #0a0a0a;
}

.option-item:active {
    transform: scale(0.99);
}

.option-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    box-sizing: border-box;
}

.option-item span {
    font-size: 1em; /* Уменьшил шрифт для длинных текстов */
    padding: 20px;
    line-height: 1.4;
    text-align: left; /* Текст читается лучше при выравнивании по левому краю */
    font-weight: 400;
}

#question-container {
    background: #000000;
    padding: 20px;
    border-top: 1px solid #3ca069;
    width: 100%;
    box-sizing: border-box;
}

#question {
    margin: 0;
    font-size: 1.3em;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.option-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    min-height: 0;
}

.play-icon {
    font-size: 4em;
    color: #ffffff;
}

.select-btn {
    padding: 10px;
    background: #000000;
    color: #ffffff;
    border: 1px solid #ffffff;
    cursor: pointer;
    font-family: 'IBM Plex Serif', serif;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.select-btn:hover {
    background: #ffffff;
    color: #000000;
}

/* Адаптив */
@media (max-height: 600px) {
    #options-container {
        gap: 10px;
    }
    #question {
        font-size: 1.1em;
    }
    .option-item span {
        font-size: 0.9em;
        padding: 10px;
    }
}

@media (max-width: 768px) {
    body {
        overflow-y: auto; /* Разрешаем скролл */
        align-items: flex-start; /* Прижимаем к верху при скролле */
    }

    .screen {
        height: auto;
        min-height: 100vh;
        padding: 20px 0;
    }

    #game-screen {
        padding: 10px;
    }

    #options-container {
        grid-template-columns: 1fr; /* Одна колонка */
        grid-template-rows: auto;
        height: auto;
    }

    .option-item {
        min-height: 200px; /* Минимальная высота карточки */
    }

    #question-container {
        position: sticky;
        bottom: 0;
        z-index: 10;
        border-top: 1px solid #3ca069;
    }
}
