/* Основные стили для Библиотеки забытых воспоминаний */
* {
    box-sizing: border-box;
    transition: 0.4s ease all;
}

body {
    margin: 0;
    font-family: "Montserrat", serif;
    background: #0D1117;
    color: #E6D9C9;
}

h1, h2, h3, h4 {
    font-weight: 700;
    text-transform: uppercase;
    color: #F0E6D2;
}

.bg {
    background: url("../img/bg.png");
    position: relative;
}

.bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 23, 0.85);
    z-index: 0;
}

.container {
    max-width: 1578px;
    margin: auto;
    position: relative;
    z-index: 1;
}
/* Навигация */
.navbar {
    background: #0D1117;
    border-bottom: 1px solid #6E598A;
    box-shadow: 0 2px 15px rgba(110, 89, 138, 0.15);
}




.logo {
    order: 1;
    max-width: 200px;
}



.navbar a {
    color: #C5B9A8;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease-in-out;
}

.navbar a:hover {
    opacity: 1;
    color: #F7D78A;
    text-shadow: 0 0 8px #F7D78A;
    transition: 0.3s;
}

/* Секции контента */
section {
    margin: 50px 0;
    position: relative;
}

h1 {
    font-size: 96px;
    margin: 0;
    padding-bottom: 40px;
    text-shadow: 0 0 20px rgba(247, 215, 138, 0.5);
    color: #F7D78A;
}

h2 {
    font-size: 35px;
    padding-bottom: 15px;
    margin: 0;
    color: #F0E6D2;
    border-bottom: 1px solid #6E598A;
}

h3 {
    font-size: 20px;
    margin: 0;
    color: #C5B9A8;
}

p {
    line-height: 1.6;
    color: #C5B9A8;
}

.casino-wrapper {
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(110, 89, 138, 0.3);
}

.casino-item {
    text-align: center;
    border: 1px solid #6E598A;
    background: #1A202C;
    transition: 0.3s;
}

.casino-item:hover {
    background: #222A36;
    box-shadow: 0 0 15px rgba(247, 215, 138, 0.2);
    transform: translateY(-5px);
}

.casino-item p {
    font-weight: 300;
    font-style: italic;
    color: #C5B9A8;
}

.casino-item h4 {
    font-size: 24px;
    font-weight: 700;
    color: #F7D78A;
}

/* Кнопки */
.btn {
    font-weight: bold;
    padding: 10px 30px;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
}

.btn-red {
    background: #6E598A;
    color: white;
    border: 1px solid #8A6EA7;
}

.btn-red:hover {
    background: #8A6EA7;
    box-shadow: 0 0 10px rgba(138, 110, 167, 0.5);
}

.btn-white {
    background: #F0E6D2;
    color: #1A202C;
    border: 1px solid #F7D78A;
}

.btn-white:hover {
    background: #F7D78A;
    box-shadow: 0 0 10px rgba(247, 215, 138, 0.5);
}

.btn-blue {
    background: #3A4D6E;
    color: white;
    border: 1px solid #4A6389;
}

.btn-blue:hover {
    background: #4A6389;
    box-shadow: 0 0 10px rgba(74, 99, 137, 0.5);
}

.btn-green {
    background: #567356;
    color: white;
    border: 1px solid #698969;
}

.btn-green:hover {
    background: #698969;
    box-shadow: 0 0 10px rgba(105, 137, 105, 0.5);
}

.btn-light-red {
    background: #9E6E7E;
    color: white;
    border: 1px solid #B88398;
}

.btn-light-red:hover {
    background: #B88398;
    box-shadow: 0 0 10px rgba(184, 131, 152, 0.5);
}

/* Подвал */
footer {
    padding: 30px 70px;
    border: 1px solid #6E598A;
    margin: 40px 0;
    background: #171D26;
    box-shadow: inset 0 0 20px rgba(110, 89, 138, 0.3);
}

.logo-info {
    border-bottom: 1px solid #3A4D6E;
}


.footer-age {
    background: #111620;
    padding: 30px;
    border-top: 1px solid #3A4D6E;
}



.footer-links a {
    color: #C5B9A8;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #F7D78A;
    text-shadow: 0 0 5px rgba(247, 215, 138, 0.3);
}

.copyright {
    font-family: "Arimo", system-ui;
    font-weight: bold;
    color: #C5B9A8;
}

/* Модальное окно */
.modal-overlay {
    background-color: rgba(13, 17, 23, 0.95);
}

.modal {
    background: #171D26;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(110, 89, 138, 0.5);
    color: #E6D9C9;
    border: 1px solid #6E598A;
}

.modal .age-circle {
    background-color: #9E6E7E;
    color: white;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(158, 110, 126, 0.5);
}

.modal h2 {
    color: #F0E6D2;
    border-bottom: none;
}

.modal button {
    background-color: #F7D78A;
    border: none;
    color: #0D1117;
    font-weight: bold;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.modal button:hover {
    background-color: #F0E6D2;
    box-shadow: 0 0 10px rgba(247, 215, 138, 0.5);
}

/* Дополнительные эффекты для библиотечной тематики */
.info {
    position: relative;
    z-index: 1;
    background: rgba(26, 32, 44, 0.7);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #6E598A;
    box-shadow: 0 0 15px rgba(110, 89, 138, 0.2);
}

.info h2 {
    text-align: left;
    padding: 0 0 10px;
    font-size: 20px;
    color: #F7D78A;
    text-shadow: 0 0 10px rgba(247, 215, 138, 0.3);
}

/* Медиа-запросы */
@media screen and (max-width: 1200px) {


    .menu-items li {
        font-size: 15px;
    }

    .menu-items {
        gap: 25px;
    }

    h1 {
        font-size: 72px;
    }

    h2 {
        font-size: 34px;
    }

    h3 {
        font-size: 28px;
    }

    h4 {
        font-size: 22px;
    }
}


body {
    margin: 0;
    font-family: "Montserrat", serif;
    background: #0D1117;
    color: #E6D9C9;
    background-image:
        radial-gradient(circle at 25% 15%, rgba(110, 89, 138, 0.1) 2%, transparent 40%),
        radial-gradient(circle at 75% 85%, rgba(74, 99, 137, 0.1) 2%, transparent 40%);
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%236E598A' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4 {
    font-weight: 700;
    text-transform: uppercase;
    color: #F0E6D2;
}

.bg {
    background: url("../img/bg.png");
    position: relative;
}

.bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 17, 23, 0.85);
    z-index: 0;
}

.bg::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(
        to bottom,
        transparent,
        rgba(110, 89, 138, 0.05) 30%,
        rgba(74, 99, 137, 0.1) 60%,
        rgba(13, 17, 23, 0.95) 100%
    );
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1578px;
    margin: auto;
    position: relative;
    z-index: 1;
}



/* Навигация */
.navbar {
    top: 0;
    width: 100%;
    padding: 28px 0;
    background: #0D1117;
    border-bottom: 1px solid #6E598A;
    box-shadow: 0 2px 15px rgba(110, 89, 138, 0.15);
    z-index: 100;
}

.navbar::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(247, 215, 138, 0.3) 20%,
        rgba(247, 215, 138, 0.6) 50%,
        rgba(247, 215, 138, 0.3) 80%,
        transparent
    );
}

.menu-items li {
    list-style: none;
    font-size: 18px;
    position: relative;
}

.menu-items li::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #F7D78A;
    transition: width 0.3s ease;
}

.menu-items li:hover::after {
    width: 100%;
}

.navbar a {
    color: #C5B9A8;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease-in-out;
}

.navbar a:hover {
    opacity: 1;
    color: #F7D78A;
    text-shadow: 0 0 8px #F7D78A;
}

/* Секции контента */
section {
    margin: 50px 0;
    position: relative;
}

h1 {
    font-size: 96px;
    margin: 0;
    padding-bottom: 40px;
    text-shadow: 0 0 20px rgba(247, 215, 138, 0.5);
    color: #F7D78A;
    position: relative;
    display: inline-block;
}

h1::after {
    content: "";
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, #F7D78A, transparent);
}

h1::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: transparent;
    -webkit-text-stroke: 1px rgba(247, 215, 138, 0.3);
    z-index: -1;
    opacity: 0.6;
}

h2 {
    font-size: 35px;
    padding-bottom: 15px;
    margin: 0;
    color: #F0E6D2;
    border-bottom: 1px solid #6E598A;
    position: relative;
}

h2::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #F7D78A;
    box-shadow: 0 0 10px rgba(247, 215, 138, 0.7);
}

h3 {
    font-size: 20px;
    margin: 0;
    color: #C5B9A8;
    position: relative;
    display: inline-block;
    padding-left: 15px;
}

h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 70%;
    background: rgba(110, 89, 138, 0.7);
}

p {
    line-height: 1.6;
    color: #C5B9A8;
    position: relative;
    text-shadow: 0 0 1px rgba(197, 185, 168, 0.1);
}



.casino-wrapper {
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(110, 89, 138, 0.3);
}

.casino-item {
    border: 1px solid #6E598A;
    background: #1A202C;
    transition: 0.3s;
}

.casino-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(247, 215, 138, 0.05),
        transparent
    );
    transition: 0.5s;
}

.casino-item:hover::before {
    left: 100%;
}

.casino-item::after {
    content: "";
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        #6E598A,
        transparent,
        transparent,
        #F7D78A
    );
    z-index: -1;
    opacity: 0;
    transition: 0.3s;
}

.casino-item:hover {
    background: #222A36;
    box-shadow: 0 0 15px rgba(247, 215, 138, 0.2);
    transform: translateY(-5px);
}

.casino-item:hover::after {
    opacity: 0.5;
}

.casino-item p {
    font-weight: 300;
    font-style: italic;
    color: #C5B9A8;
    position: relative;
    z-index: 1;
}

.casino-item h4 {
    font-size: 24px;
    font-weight: 700;
    color: #F7D78A;
    position: relative;
    z-index: 1;
}

.casino-item img {
    transition: 0.5s ease;
    filter: drop-shadow(0 0 5px rgba(110, 89, 138, 0.5));
}

.casino-item:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 8px rgba(247, 215, 138, 0.5));
}

/* Кнопки */
.btn {
    font-weight: bold;
    padding: 10px 30px;
    border-radius: 5px;
    text-decoration: none;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: 0.5s;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.1),
        transparent,
        transparent
    );
    opacity: 0;
    transition: 0.3s;
    z-index: -1;
}

.btn:hover::after {
    opacity: 1;
}

.btn-red {
    background: #6E598A;
    color: white;
    border: 1px solid #8A6EA7;
    box-shadow: inset 0 0 10px rgba(138, 110, 167, 0.3);
}

.btn-red:hover {
    background: #8A6EA7;
    box-shadow: 0 0 15px rgba(138, 110, 167, 0.5),
                inset 0 0 10px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-white {
    background: #F0E6D2;
    color: #1A202C;
    border: 1px solid #F7D78A;
    box-shadow: inset 0 0 10px rgba(247, 215, 138, 0.3);
}

.btn-white:hover {
    background: #F7D78A;
    box-shadow: 0 0 15px rgba(247, 215, 138, 0.5),
                inset 0 0 10px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-blue {
    background: #3A4D6E;
    color: white;
    border: 1px solid #4A6389;
    box-shadow: inset 0 0 10px rgba(74, 99, 137, 0.3);
}

.btn-blue:hover {
    background: #4A6389;
    box-shadow: 0 0 15px rgba(74, 99, 137, 0.5),
                inset 0 0 10px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-green {
    background: #567356;
    color: white;
    border: 1px solid #698969;
    box-shadow: inset 0 0 10px rgba(105, 137, 105, 0.3);
}

.btn-green:hover {
    background: #698969;
    box-shadow: 0 0 15px rgba(105, 137, 105, 0.5),
                inset 0 0 10px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-light-red {
    background: #9E6E7E;
    color: white;
    border: 1px solid #B88398;
    box-shadow: inset 0 0 10px rgba(184, 131, 152, 0.3);
}

.btn-light-red:hover {
    background: #B88398;
    box-shadow: 0 0 15px rgba(184, 131, 152, 0.5),
                inset 0 0 10px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Подвал */
footer {
    padding: 30px 70px;
    border: 1px solid #6E598A;
    margin: 40px 0;
    background: #171D26;
    box-shadow: inset 0 0 20px rgba(110, 89, 138, 0.3);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(247, 215, 138, 0.3) 20%,
        rgba(247, 215, 138, 0.6) 50%,
        rgba(247, 215, 138, 0.3) 80%,
        transparent
    );
    z-index: 2;
}

footer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3z' fill='%23F7D78A' fill-opacity='0.02' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: -1;
}

.logo-info {
    border-bottom: 1px solid #3A4D6E;
}

.logo-info::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(247, 215, 138, 0.5),
        transparent
    );
}

.logo-info img {
    filter: drop-shadow(0 0 5px rgba(247, 215, 138, 0.2));
    transition: 0.3s;
}

.logo-info img:hover {
    filter: drop-shadow(0 0 8px rgba(247, 215, 138, 0.5));
    transform: scale(1.05);
}

.footer-info {
    text-transform: uppercase;
    padding: 20px 0;
    position: relative;
}

.footer-age {
    background: #111620;
    border-top: 1px solid #3A4D6E;
}

.footer-age::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        rgba(74, 99, 137, 0.5),
        transparent
    );
}



.footer-links a {
    color: #C5B9A8;
    transition: 0.3s;

/* Модальное окно */
.modal-overlay {
    width: 100%;
    height: 100%;
    background-color: rgba(13, 17, 23, 0.95);
}

.modal {
    background: #171D26;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(110, 89, 138, 0.5);
    text-align: center;
    width: 300px;
    position: relative;
    color: #E6D9C9;
    border: 1px solid #6E598A;
}

.modal .age-circle {
    background-color: #9E6E7E;
    color: white;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(158, 110, 126, 0.5);
}

.modal h2 {
    font-size: 18px;
    padding-bottom: 10px;
    color: #F0E6D2;
    border-bottom: none;
}

.modal button {
    background-color: #F7D78A;
    border: none;
    color: #0D1117;
    font-weight: bold;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.modal button:hover {
    background-color: #F0E6D2;
    box-shadow: 0 0 10px rgba(247, 215, 138, 0.5);
}

/* Дополнительные эффекты для библиотечной тематики */
.info {
    background: rgba(26, 32, 44, 0.7);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #6E598A;
    box-shadow: 0 0 15px rgba(110, 89, 138, 0.2);
}

.info h2 {
    color: #F7D78A;
    text-shadow: 0 0 10px rgba(247, 215, 138, 0.3);
}



