/* Основные стили для всей страницы */
body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    
    /* Фоновое изображение */
    background-image: url('background.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    position: relative;
}

/* Добавляем полупрозрачный слой для лучшей читаемости текста */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: -1;
}

/* Основной контейнер для контента */
body > * {
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

/* Стили для заголовков */
h1 {
    color: #1a4d8c;
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 0;
    border-bottom: 3px solid #4a90e2;
    padding-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.8);
    animation: fadeIn 2s ease-in;
}

h2 {
    color: #2c3e50;
    text-align: center;
    font-style: italic;
    margin-top: 10px;
    font-weight: normal;
    animation: slideIn 1.5s ease-in-out;
}

h3 {
    color: #1a4d8c;
    margin-top: 30px;
    font-size: 1.5em;
    border-left: 5px solid #4a90e2;
    padding-left: 15px;
}

/* Стили для параграфов */
p {
    margin-bottom: 20px;
    text-align: justify;
    transition: transform 0.3s ease;
}

p:hover {
    transform: scale(1.02);
    background-color: rgba(74, 144, 226, 0.2);
    padding: 10px;
    border-radius: 5px;
}

/* Выделенный блок */
.highlight {
    background: rgba(232, 240, 254, 0.95);
    padding: 20px;
    border-left: 5px solid #4a90e2;
    border-radius: 0 10px 10px 0;
    font-style: italic;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 30px 0;
    animation: pulse 3s infinite;
    backdrop-filter: blur(5px);
}

/* Стили для списка */
ul {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    list-style-type: none;
    backdrop-filter: blur(5px);
}

ul li {
    margin-bottom: 15px;
    padding: 10px;
    border-bottom: 1px dashed #4a90e2;
    transition: all 0.3s ease;
}

ul li:hover {
    background-color: rgba(74, 144, 226, 0.2);
    padding-left: 20px;
    border-radius: 5px;
}

ul li:last-child {
    border-bottom: none;
}

ul li::before {
    content: "🌊";
    margin-right: 10px;
    font-size: 1.2em;
}

/* Жирный текст */
b {
    color: #1a4d8c;
    font-size: 1.1em;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

/* Футер */
.footer {
    margin-top: 50px;
    text-align: center;
    font-size: 0.9em;
    color: #7f8c8d;
    border-top: 2px solid #4a90e2;
    padding-top: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px 10px 0 0;
    padding: 20px;
    backdrop-filter: blur(5px);
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 6px rgba(74, 144, 226, 0.2);
    }
    50% {
        box-shadow: 0 8px 15px rgba(74, 144, 226, 0.4);
    }
    100% {
        box-shadow: 0 4px 6px rgba(74, 144, 226, 0.2);
    }
}

/* Адаптивность для мобильных */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    ul {
        padding: 15px;
    }
    
    .highlight {
        padding: 15px;
    }
}

/* Стили для кнопки "Наверх" */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4a90e2;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
}

.back-to-top:hover {
    background: #1a4d8c;
    transform: scale(1.1);
}
