/* Стили для кнопок тегов */
        .tags-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 8px;
            margin: 15px 3px;
            margin-top: 7px;
            padding: 10px 10px;
            text-align: center;
        }
        
        .tag-button {
            padding: 5px 12px;
            background: none;
            border: 1px solid #ccc;
            border-radius: 20px;
            font-size: 0.75rem;
            cursor: pointer;
            transition: all 0.2s;
            background-color: #2E0C1A;
            color: #FFCBA4;
            font-family: Georgia, serif;
        }
        
        .tag-button:hover {
            background-color: #2E0C1A;
            color: #FFCBA4;
        }
        
        .tag-button.active {
            background-color: #CC8866;
            color: #2E0C1A;
        }
        
        .search-buttons {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin: 15px 0 0 0;
        }
        
        .search-buttons button,
        .search-buttons a {
            padding: 6px 20px;
            border-radius: 4px;
            font-size: 0.875rem;
            cursor: pointer;
            transition: all 0.2s;
            font-family: Georgia, serif;
            text-decoration: none;
            display: inline-block;
            text-align: center;
        }
        
        .search-buttons button {
            background-color: #CC8866;
            color: #2E0C1A;
            border-radius: 5px;
            border: none;
            width: 100px;
        }
        
        .search-buttons button:hover {
            background-color: #FFCBA4;
            color: #2E0C1A;
        }
        
        .reset-button-form {
            background-color: #CC8866;
            color: #2E0C1A;
            border-radius: 5px;
            width: 100px;
        }
        
        .reset-button-form:hover {
            background-color: #FFCBA4;
            color: #2E0C1A;
        }

        /* Стили для модального окна */
        .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;
        }
        
        p.about {
            color: #FFCBA4;
            font-size: 11pt;
            text-align: justify;
            text-indent: 1cm;
            margin-left: 30px;
            margin-right: 30px;
            margin-top: 10px;
            margin-bottom: 0px;
            line-height: 1.2;
        }
        
        p.abouth {
            color: #FFCBA4;
            font-size: 13pt;
            text-align: left;
            margin-left: 30px;
            margin-right: 30px;
            margin-top: 10px;
            margin-bottom: 0px;
            line-height: 1.2;
            font-weight: bold;
        }
        
        p.aboutp {
            color: #FFCBA4;
            font-size: 12pt;
            text-align: right;
            font-style: italic;
            margin-left: 30px;
            margin-right: 30px;
            margin-top: 10px;
            margin-bottom: 5px;
            line-height: 1.2;
        }
        
        li.about {
            color: #FFCBA4;
            font-size: 11pt;
            text-align: left;
            margin-left: 15px;
            margin-right: 30px;
            margin-top: 5px;
            margin-bottom: 5px;
            line-height: 1.2;
        }
        
        .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 h2 {
            margin: 0;
            font-size: 28px;
            letter-spacing: 2px;
        }
        
        .modal-header h3 {
            margin: 10px 0 0 0;
            font-size: 14px;
        }
        
        .modal-body {
            padding: 30px 40px;
            background-color: #FFF8F0;
            min-height: 300px;
        }
        
        .play-text {
            font-size: 16px;
            line-height: 1.8;
            white-space: pre-wrap;
            text-align: justify;
        }
        
        .scene-header {
            text-align: center;
            margin: 20px 0;
            font-size: 18px;
            text-transform: uppercase;
            letter-spacing: 2px;
        }
        
        .character {
            margin-top: 15px;
            color: #2E0C1A;
        }
        
        .direction {
            font-style: italic;
            color: #666;
            margin: 10px 0;
        }
        
        .modal-footer {
            background-color: #2E0C1A;
            padding: 20px;
            border-radius: 0 0 15px 15px;
            text-align: center;
        }
        
        .close-modal-btn {
            background-color: #CC8866;
            color: #2E0C1A;
            border: none;
            padding: 12px;
            font-size: 12pt;
            font-family: Georgia, serif;
            border-radius: 5px;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .close-modal-btn:hover {
            background-color: #FFCBA4;
            transform: scale(1.05);
        }
        
        .close-modal {
            position: absolute;
            top: 15px;
            right: 25px;
            font-size: 25px;
            color: #FFCBA4;
            cursor: pointer;
            transition: color 0.3s;
            z-index: 10;
        }
        
        .close-modal:hover {
            color: #CC8866;
        }
        
        .downloadabout {
            background-color: #CC8866;
            color: #2E0C1A;
            text-decoration: none;
            margin: 0 10px;
            padding: 5px 10px;
            border: 1px solid #CCAA88;
            border-radius: 3px;
            width: 80px;
            font-family: Georgia, serif;
            font-size: 12pt;
        }
        
        .downloadabout:hover {
            background-color: #FFCBA4;
            color: #2E0C1A;
        }
        
        /* Стили для сортировки */
        .sort-container {
            margin: 20px auto;
            text-align: center;
        }
        
        .sort-container table {
            margin: 0 auto;
        }
        
        .sort-container .strelka {
            padding: 0 2px;
        }
        
        .sort-link {
            color: #F5DAB4;
            cursor: pointer;
        }
        
        .sort-link:hover {

        }
        
        .sort-active {
            font-weight: bold;
        }
 .textsort {
			text-align: left;
            	padding-left: 3px;
			margin-left:0px;
}
/* Стили для модального окна (обновлённые) */
.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-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-left: 0;
    margin-right: 0;
    margin-top: 10px;
    margin-bottom: 0px;
    line-height: 1.4;
}

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

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

li.about {
    color: #555;
    font-size: 11pt;
    text-align: left;
    margin-left: 20px;
    margin-right: 0;
    margin-top: 5px;
    margin-bottom: 5px;
    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;
    transform: scale(1.02);
}
h1.title {
border: none;
margin:0px;
padding:0px;}

/* Стили для описания пьесы с абзацами */
p {
    text-indent: 1.5em;
    text-align: justify;
    margin-top: 1px;
    margin-bottom: 1px;
}
.description{
    text-indent: 1.5em;
    text-align: justify;
    margin-top: 15px;
    margin-bottom: 0px;
padding-bottom:0px;
}
