
/* General Styles */
body, html {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
}

/* Header */
header {
    padding: 20px;
    background: linear-gradient(90deg, #333, #555);
    color: white;
}
.header {
    text-align: center;
    
}
header h1 {
    font-size: 2.5em;
    margin-bottom: 0px;
}

header p {
    font-size: 1.2em;
}

/* Featured Images Section */
#featured-images {
    margin: 100px 0;
    position: relative;
}

.featured-image {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 50px auto;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s ease;
}

.featured-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.featured-image.left {
    transform: translateX(-100px); /* Изображение слева */
}

.featured-image.right {
    transform: translateX(100px); /* Изображение справа */
}

.featured-image.show {
    opacity: 1;
    transform: translateX(0); /* Выплывание */
}

.featured-image .caption {
    margin-top: 10px;
    font-size: 18px;
    text-align: center;
}

/* Footer */
footer {
    text-align: center;
    padding: 10px;
    background: #333;
    color: white;
    margin-top: 20px;
}




/* Header with class 'return_to_main_page' */
.return_to_main_page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, #333, #555);
    padding: 15px;
    z-index: 1000;
    transition: transform 0.3s ease; /* Smooth transition for hide/show */
}

.header-container {
    display: flex;
    justify-content: center;
}

.home-link {
    color: white;
    font-size: 1.8em;
    text-decoration: none;
    font-weight: bold;
}

/* When header is hidden (scrolled down) */
.hide-header {
    transform: translateY(-100%);
}

.back_icon {
justify-content: left;
margin-top: 15px;
margin-left: 15px;
margin-right: 100px;
}
.back_icon img {
width: 50px;
height: auto;
}
.back_icon img:hover {
    transform: scale(1.1, 1.1);
    transition: all 0.4s;
}