/* Reset styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Base body styles */

html,
body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
}


/* Modal overlay */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}


/* Base modal styles */

.modal {
    background: white;
    border-radius: 20px;
    padding: 25px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    animation: modalAppear 0.4s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-advertencia-foto {
    background: white;
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 100vw;
    box-shadow: 0 8px 24px rgba(30, 42, 100, 0.18);
    animation: modalAppear 0.4s ease-out;
    max-height: 110vh;
    overflow-y: auto;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


/* Warning header */

.warning-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-advertencia-foto .warning-header {
    margin-bottom: 10px;
}

.warning-title {
    color: #1a237e;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
}

.warning-subtitle {
    color: #555;
    font-size: 14px;
}


/* Photo examples */

.photo-examples {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.modal-advertencia-foto .photo-examples {
    gap: 12px;
    margin: 10px 0 8px 0;
}

.photo-example {
    text-align: center;
}

.photo-example img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin-bottom: 8px;
    display: block;
    border-radius: 8px;
    max-width: 100%;
    aspect-ratio: 1/1;
}

modal-advertencia-foto .photo-example img {
    width: 110px;
    height: auto;
    margin-bottom: 4px;
    border-radius: 6px;
}

.photo-label {
    font-size: 12px;
    font-weight: 500;
}

.correct .photo-label {
    color: #27ae60;
}

.incorrect .photo-label {
    color: #e74c3c;
}


/* Requirements section */

.requirements {
    background-color: #f8f9fa;
    border-left: 4px solid #1a237e;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    text-align: left;
}

.modal-advertencia-foto .requirements {
    border-left: 3px solid #1a237e;
    border-radius: 7px;
    padding: 8px 6px;
    margin: 8px 0;
    font-size: 11px;
}

.requirements h3 {
    color: #1a237e;
    margin-bottom: 10px;
    font-size: 16px;
}

.requirements ul {
    list-style: none;
    padding-left: 0;
}

.requirements li {
    margin-bottom: 6px;
    color: #333;
    font-size: 13px;
    line-height: 1.3;
}


/* Timer section */

.timer-section {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    margin: 15px 0;
}

.timer-text {
    color: #666;
    font-size: 13px;
    display: inline;
    margin-right: 8px;
}

.timer-display {
    font-size: 16px;
    font-weight: bold;
    color: #1a237e;
    font-family: 'Courier New', monospace;
    display: inline;
}


/* Button styles */

.button-container {
    text-align: center;
    margin-top: 20px;
}

.modal-advertencia-foto .button-container {
    margin-top: 10px;
}

.ok-button {
    background-color: #1a237e;
    color: white;
    border: none;
    padding: 12px 35px;
    font-size: 15px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.4;
    pointer-events: none;
}

.ok-button.enabled {
    opacity: 1;
    pointer-events: auto;
}

.ok-button.enabled:hover {
    background-color: #303f9f;
    transform: translateY(-1px);
}


/* Modal open body states */

body.modal-open,
html.modal-open {
    overflow: auto !important;
    height: 100vh;
}


/* Animations */

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}


/* Responsive design */

@media (max-width: 600px),
(max-height: 600px) {
    .modal {
        max-width: 98vw;
        padding: 10px 2vw 12px 2vw;
        margin: 10px auto;
        max-height: 95vh;
    }
    .modal-advertencia-foto {
        max-width: 98vw;
        padding: 10px 2vw 12px 2vw;
        margin: 10px auto;
        max-height: 95vh;
    }
    .photo-examples {
        gap: 20px;
    }
    .warning-title {
        font-size: 20px;
    }
}