* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.screen {
    display: none;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.screen.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Password Screen */
.password-form {
    padding: 60px 40px;
    text-align: center;
}

.password-form h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 2.5em;
}

.password-form p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.password-form input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1.1em;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

.password-form input:focus {
    outline: none;
    border-color: #667eea;
}

.password-form button {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.password-form button:hover {
    transform: translateY(-2px);
}

.error {
    color: #e74c3c;
    margin-top: 15px;
    font-weight: bold;
}

/* Question Screen */
.question-container {
    padding: 40px;
}

.question-container h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-size: 2em;
}

.question-content {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.image-container {
    flex-shrink: 0;
}

.image-container img,
.image-container video {
    max-width: 250px;
    max-height: 250px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

#question-text {
    color: #333;
    font-size: 1.4em;
    line-height: 1.5;
    flex: 1;
}

.options {
    display: grid;
    gap: 15px;
    margin-top: 30px;
}

.option {
    background: #f8f9ff;
    border: 2px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.option:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.option-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 10px;
}

.option span {
    font-size: 1.1em;
    font-weight: 500;
}

.restart-btn {
    width: 100%;
    padding: 15px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s ease;
}

.restart-btn:hover {
    background: #7f8c8d;
}

/* Result Screen */
.result-container {
    padding: 60px 40px;
    text-align: center;
}

.result-container h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 2.5em;
}

.result-media-container {
    text-align: center;
    margin-bottom: 30px;
}

.result-media-container img,
.result-media-container video {
    max-width: 100%;
    max-height: 400px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.result-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    font-size: 1.3em;
    line-height: 1.6;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .password-form, .question-container, .result-container {
        padding: 30px 20px;
    }

    .password-form h1, .result-container h1 {
        font-size: 2em;
    }

    .question-container h1 {
        font-size: 1.5em;
    }

    #question-text {
        font-size: 1.2em;
    }

    .option {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }

    .option-image {
        width: 80px;
        height: 80px;
    }

    .result-text {
        font-size: 1.1em;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .password-form h1, .result-container h1 {
        font-size: 1.8em;
    }

    .question-container h1 {
        font-size: 1.3em;
    }

    #question-text {
        font-size: 1.1em;
    }

    .option span {
        font-size: 1em;
    }
}

/* Gallery Styles */
.gallery-container {
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 15px 0;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
}

.gallery-container.show {
    display: grid;
}

.gallery-item {
    position: relative;
    width: 100%;
    height: 80px;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Full-width overlay on hover */
.gallery-item.full-view {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90vw;
    height: 90vh;
    z-index: 1000;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.gallery-item.full-view img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: none;
}

.gallery-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    display: none;
}

.gallery-overlay.show {
    display: block;
}

@media (max-width: 768px) {
    .gallery-container {
        gap: 6px;
        margin: 10px 0;
    }

    .gallery-item {
        height: 60px;
    }

    .gallery-item.full-view {
        width: 95vw;
        height: 80vh;
    }
}
