/* app/static/css/construct.css */

body {
    background-color: rgb(145, 202, 202);
}

.nav-tabs .nav-link.active {
    background: #198754;
    color: white;
}

/* Основные стили для медиа в форме */
.media-item {
    position: relative;
    margin-bottom: 15px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    max-width: 100%;
    overflow: hidden;
}

.media-item img {
    width: 100% !important;
    max-height: 240px !important;
    object-fit: contain !important;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
}

/* Кнопка удаления */
.delete-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(220, 53, 69, 0.95);
    color: white;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 30px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Улучшение модального окна */
.modal-body {
    max-height: 75vh;
    overflow-y: auto;
}

.modal-dialog.modal-lg {
    max-width: 800px;
}

       :root {
            --jungle-green: #0E2F1D;
            --deep-forest: #06170E;
            --zoopico-yellow: #F7C51E;
            --highlight-yellow: #F3CD66;
            --soft-leaf: #8DBF45;
        }

        body {
            background: var(--deep-forest);
            color: white;
            font-family: 'Segoe UI', sans-serif;
            min-height: 100vh;
        }

        .pet-selector {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            padding: 12px 0;
        }

        .pet-card {
            min-width: 100px;
            text-align: center;
            cursor: pointer;
        }

        .pet-card img {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 50%;
            border: 3px solid var(--zoopico-yellow);
        }

        .video-container {
            position: relative;
            width: 100%;
            max-width: 820px;
            margin: 0 auto;
            border: 6px solid var(--jungle-green);
            border-radius: 18px;
            overflow: hidden;
            background: black;
            aspect-ratio: 16 / 9;
        }

        #mainVideo {
            width: 100%;
            height: 100%;
            display: block;
            object-fit: contain;
        }

        .action-button {
            position: absolute;
            width: 78px;
            height: 78px;
            border-radius: 50%;
            background: rgba(0,0,0,0.85);
            border: 4px solid var(--zoopico-yellow);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 11.5px;
            line-height: 1.1;
            text-align: center;
            cursor: pointer;
            z-index: 15;
            transition: all 0.2s;
        }

        .action-button:hover {
            transform: scale(1.1);
        }

        .action-button img {
            width: 38px;
            height: 38px;
            object-fit: contain;
            margin-bottom: 3px;
        }

        .top-left   { top: 22px; left: 22px; }
        .top-right  { top: 22px; right: 22px; }
        .bottom-left { bottom: 22px; left: 22px; }
        .bottom-right { bottom: 22px; right: 22px; }

        .xp-counter {
            position: absolute;
            top: 18px;
            right: 18px;
            background: rgba(0,0,0,0.75);
            color: var(--zoopico-yellow);
            padding: 6px 14px;
            border-radius: 30px;
            font-weight: bold;
            z-index: 25;
        }

        .question-overlay {
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0, 0, 0, 0.88);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 30;
            padding: 20px;
        }

        .question-box {
            background: rgba(255,255,255,0.1);
            border-radius: 20px;
            padding: 25px;
            max-width: 580px;
            width: 100%;
            text-align: center;
        }

        .answer-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-top: 20px;
        }

        .answer-option {
            background: rgba(255,255,255,0.15);
            border-radius: 14px;
            padding: 16px 12px;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 16px;
        }

        .answer-option:hover {
            background: rgba(247, 197, 30, 0.3);
        }

        .mb-3 {
            color: rgb(20, 60, 238);
            font-family: 'Segoe UI', sans-serif;
        }