/* ========== ОБЩИЕ СТИЛИ ДЛЯ МОДАЛЬНЫХ ОКОН ========== */

/* Модальное окно "О нас" (из base.css) */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.modal-content {
    background-color: #FDF5E6;
    margin: 5% auto;
    padding: 0;
    width: 80%;
    max-width: 800px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-family: Georgia, serif;
    position: relative;
}

.modal-header {
    background-color: #2E0C1A;
    color: #FFCBA4;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    text-align: center;
    border-bottom: 2px solid #CC8866;
}

.modal-header h1.title {
    border: none;
    margin: 0;
    padding: 0;
}

.modal-body {
    padding: 30px 40px;
    background-color: #FFF8F0;
    min-height: 300px;
}

.modal-footer {
    background-color: #2E0C1A;
    padding: 20px;
    border-radius: 0 0 15px 15px;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    color: #FFCBA4;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
    font-weight: bold;
}

.close-modal:hover {
    color: #CC8866;
}

/* Текст внутри модального окна "О нас" */
p.about {
    color: #555;
    font-size: 11pt;
    text-align: justify;
    text-indent: 1cm;
    margin: 10px 0 0 0;
    line-height: 1.4;
}

p.abouth {
    color: #2E0C1A;
    font-size: 13pt;
    text-align: left;
    margin: 15px 0 5px 0;
    font-weight: bold;
}

p.aboutp {
    color: #666;
    font-size: 11pt;
    text-align: right;
    font-style: italic;
    margin: 15px 0 5px 0;
}

li.about {
    color: #555;
    font-size: 11pt;
    text-align: left;
    margin: 5px 0 5px 20px;
    line-height: 1.3;
}

.modal-footer .nav-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
}

.modal-footer .nav-links a,
.modal-footer .nav-links button {
    background-color: #CC8866;
    color: #2E0C1A;
    text-decoration: none;
    padding: 6px 15px;
    border-radius: 5px;
    font-family: Georgia, serif;
    font-size: 12pt;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.modal-footer .nav-links a:hover,
.modal-footer .nav-links button:hover {
    background-color: #FFCBA4;
}

/* ========== МОДАЛЬНОЕ ОКНО ПРОСМОТРА PDF ========== */
.pdf-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.pdf-modal .pdf-modal-content {
    background-color: #FDF5E6;
    margin: 2% auto;
    padding: 0;
    width: 95%;
    max-width: 1200px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    border: 2px solid #CC8866;
    height: 92vh;
    display: flex;
    flex-direction: column;
}

.pdf-modal .pdf-modal-header {
    padding: 10px 15px;
    border-bottom: 1px solid #CCAA88;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background-color: #FDF5E6;
    border-radius: 13px 13px 0 0;
}

.pdf-modal .pdf-close-modal {
    font-size: 28px;
    color: #CC8866;
    cursor: pointer;
    transition: color 0.3s;
    font-weight: bold;
    line-height: 1;
}

.pdf-modal .pdf-close-modal:hover {
    color: #2E0C1A;
}

.pdf-modal .pdf-modal-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
    background-color: #525659;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.pdf-modal .pdf-modal-footer {
    padding: 8px 15px;
    border-top: 1px solid #CCAA88;
    display: flex;
    justify-content: center;
    gap: 15px;
    background-color: #FDF5E6;
    border-radius: 0 0 13px 13px;
}

.pdf-modal .pdf-modal-footer .btn {
    background-color: #CC8866;
    color: #2E0C1A;
    border: none;
    padding: 6px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
    font-family: Georgia, serif;
    transition: background-color 0.3s ease;
}

.pdf-modal .pdf-modal-footer .btn:hover {
    background-color: #FFCBA4;
}

.pdf-container {
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: #525659;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    box-sizing: border-box;
}

.pdf-canvas {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background-color: white;
    margin-bottom: 20px;
    max-width: 100%;
    height: auto;
}

.pdf-loading-text {
    color: white;
    text-align: center;
    padding: 50px;
    font-family: Georgia, serif;
}

.pdf-error-message {
    color: #d32f2f;
    background-color: #ffebee;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #d32f2f;
    text-align: center;
}

/* ========== МОДАЛЬНОЕ ОКНО ИНФОРМАЦИИ О ПЬЕСЕ (из answer.css) ========== */
.play-info-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.play-info-modal-content {
    background-color: #FDF5E6;
    margin: 10% auto;
    padding: 30px 40px;
    width: 90%;
    max-width: 600px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-family: Georgia, serif;
    position: relative;
    border: 2px solid #CC8866;
}

.play-info-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    color: #CC8866;
    cursor: pointer;
    transition: color 0.3s;
    font-weight: bold;
}

.play-info-close:hover {
    color: #2E0C1A;
}

.play-info-title {
    text-align: center;
    font-size: 14pt;
    color: #2E0C1A;
    margin-bottom: 20px;
    border-bottom: 2px solid #CC8866;
    padding-bottom: 10px;
    font-weight: bold;
}

.play-info-field {
    margin: 15px 0;
    line-height: 1.1;
    color: #555;
}

.play-info-avtor {
    color: #666;
    font-weight: bold;
    font-size: 12pt;
}

.play-info-title1 {
    color: #666;
    font-weight: bold;
    font-size: 20pt;
    text-decoration: none;
}

.play-info-info {
    color: #666;
    font-style: italic;
}

.play-info-description {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #CCAA88;
    color: #755;
    line-height: 1.2;
    text-align: justify;
}

.play-info-description p {
    text-indent: 1.5em;
    margin: 1px 0;
}

/* ========== МОДАЛЬНОЕ ОКНО УСПЕШНОЙ ОТПРАВКИ (из answer.css) ========== */
#successModal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

#successModal .modal-content {
    background-color: #FDF5E6;
    margin: 0 auto;
    padding: 30px;
    width: 320px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-family: Georgia, serif;
    position: relative;
    border: 2px solid #CC8866;
}

#successModal .success-icon {
    font-size: 3em;
    color: #4CAF50;
    margin-bottom: 15px;
}

#successModal p {
    font-size: 1.1em;
    color: #2E0C1A;
    margin-bottom: 25px;
    line-height: 1.5;
}

#successModal button {
    background-color: #CC8866;
    color: #2E0C1A;
    border: none;
    padding: 10px 30px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    font-family: Georgia, serif;
    transition: background-color 0.3s ease;
}

#successModal button:hover {
    background-color: #FFCBA4;
}