/* -----------------------
   Общие сбросы
-----------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100vh;
    font-family: Arial, sans-serif;
    background: #303030;
    display: flex;
    align-items: center;
    justify-content: center;
}

.second-font {
    font-family: "Montserrat Alternates", sans-serif;
}

/* -----------------------
   Контейнеры окон игр
-----------------------*/
.game-window {
    width: 1280px;
    height: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 5px solid #202020;
    overflow: hidden;
}

.game-menu {
    width: 100%;
    height: 100%;
    background: url('../images/bg.png');
    background-size: cover;
    position: relative;
}

.game1 {
    background: url('../images/game1-bg.png');
    background-size: cover;
}

.game2 {
    background: url('../images/game2-bg.png');
    background-size: cover;
}

.game3 {
    background: url('../images/game3-bg.jpg');
    background-size: cover;
}



/* -----------------------
   Кнопка Play
-----------------------*/
.btn-play {
    cursor: pointer;
    background: none;
    border: none;
    position: absolute;
    bottom: 50px;
    right: 150px;
}

.btn-play:active {
    opacity: 95%;
}

.btn-play img {
    height: 200px;
}

/* -----------------------
   Модальное окно
-----------------------*/
.modal {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    z-index: 1000;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    height: 100%;
    padding: 0;
    background: #000;
    border-radius: 12px;
    position: relative;
    transform: scale(0.8);
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal video {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.skip-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f44336;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 6px;
    z-index: 1000;
}

.skip-btn:hover {
    background: #d32f2f;
}

/* -----------------------
   Стили для викторины
-----------------------*/
.quiz-container {
    width: 100%;
    height: 100%;
    background: #00000092;
    padding: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.quiz-question {
    font-size: 32px;
    color: #fff;
    text-align: center;
}

.quiz-answers {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 50%;
}

.quiz-answer {
    padding: 15px 25px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 22px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.quiz-answer:hover {
    transform: scale(1.05);
    background: orange;
}

.quiz-answer.correct {
    background: #2ecc71 !important;
}

.quiz-answer.wrong {
    background: #e74c3c !important;
}

/* -----------------------
   Стили Drag & Drop (game3)
-----------------------*/
.drag-drop-container {
    display: flex;
    width: 100%;
    height: calc(100% - 180px);
    /* место под карточки и кнопку */
}

.drop-zone {
    flex: 1;
    padding: 24px;
    display: ruby;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    min-height: 100%;
    overflow-y: auto;
    transition: background 0.25s ease, border 0.2s ease;
}

.green-zone {
    background: linear-gradient(180deg, rgba(39, 174, 96, 0.18), rgba(39, 174, 96, 0.06));
    border-right: 2px solid rgba(255, 255, 255, 0.03);
}

.red-zone {
    background: linear-gradient(180deg, rgba(231, 76, 60, 0.18), rgba(231, 76, 60, 0.06));
    border-left: 2px solid rgba(255, 255, 255, 0.03);
}

.drop-zone h2 {
    margin: 8px 0;
    font-size: 20px;
    letter-spacing: .3px;
}

.drop-zone .hint {
    margin: 0;
    font-size: 14px;
    opacity: 0.85;
}

.drop-zone.highlight {
    outline: 3px dashed rgba(255, 255, 255, 0.25);
}

.cards-container {
    width: 100%;
    display: flex;
    gap: 12px;
    padding: 12px 24px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.card {
    background: #2c3e50;
    color: #fff;
    width: 100px;
    height: 120px;
    display: flex;
    border-radius: 100px;
    padding: 10px;
    cursor: grab;
    user-select: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    min-width: 120px;
    text-align: center;
}

.card.dragging {
    opacity: 0.6;
    transform: scale(1.05);
    cursor: grabbing;
}

.card.wrong {
    border: 3px solid orangered;
    box-shadow: 0 6px 14px rgba(255, 69, 0, 0.12);
}

.check-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 18px 0 28px;
}

.check-btn {
    padding: 12px 26px;
    border-radius: 28px;
    border: none;
    font-size: 18px;
    background: linear-gradient(180deg, #f39c12, #e67e22);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(230, 126, 34, 0.2);
    transition: transform .12s ease;
}

.check-btn:active {
    transform: translateY(2px)
}

/* ======================
   GAME 4 — Последовательность
====================== */

.game4 {
    background: url('../images/game1-bg.png');
    background-size: cover;
}

.sequence-container {
    width: 100%;
    height: auto;
    padding: 40px 80px 0px 80px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sequence-item {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 15px;
    border-radius: 12px;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.sequence-item:hover {
    transform: scale(1.02);
}

.sequence-item.selected {
    background: orange;
}

.sequence-item.correct {
    background: #2ecc71;
}

.sequence-item.wrong {
    border: 3px solid orangered;
}