
body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent; /* Фон лоадера теперь прозрачный */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.loader {
    display: flex;
}

.dot {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #3498db;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(2) {
    animation-delay: -0.32s;
}

.dot:nth-child(3) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1.0);
    }
}

.carousel-container {
    max-width: 100%;
    display: flex;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin: 20px;
    transition: transform 0.3s ease;
    will-change: transform;
    -webkit-overflow-scrolling: touch;
    margin-top: 80px;
    box-sizing: border-box;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.card {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    flex: 0 0 80%;
    max-width: 400px;
    height: 350px;
    margin: 0 10px;
    scroll-snap-align: start;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    transform-origin: center center;
    will-change: transform;
    cursor: pointer;
     -webkit-tap-highlight-color: transparent;
    user-select: none;
}

 @media (min-width: 768px) {
    .card {
        flex: 0 0 300px;
        height: 400px;
    }
}

.card-image {
    height: 150px;
    background-image: url("https://sun9-62.userapi.com/s/v1/ig2/anBLlJnP5mM2h-vj6o5OPRZxTM2sJHuRQT43BshLlsOC5H_T4bccpoWer1xBRHC0uP__g0MA3hJf6RUreHx5LbMp.jpg?quality=96&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960&from=bu&u=WSLRJPHCBSx0drbZCtl58kvd3qnAp451i7hYEoQQkcA&cs=604x453");
    background-size: cover;
    background-position: center;
    filter: brightness(0.8);
}

@media (min-width: 768px) {
    .card-image {
        height: 200px;
    }
}

.card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.card-description {
    font-size: 13px;
    color: #666;
    margin: 0;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card:hover {
   transform: scale(1.05);
   box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.bottom-menu {
    position: fixed;
    top: 80px; /* Align with the top of the carousel initially */
    right: 0;
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 10px 0 0 10px; /* Rounded corners */
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    white-space: nowrap;
    width: auto;
    max-width: 60px;
    transition: height 0.3s ease; /* Smooth transition for height changes */
    box-sizing: border-box; /* Ensure padding is included in the height */
    justify-content: space-around; /* Distribute icons evenly */
}

.bottom-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    color: #555;
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s ease;
}
@media (min-width: 768px) {
    .bottom-menu a {
        font-size: 22px;
    }
}

.bottom-menu a:last-child {
    margin-bottom: 0;
}

.bottom-menu a:hover {
    color: #007bff;
}

.article-overlay-full {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 1000;
    display: none;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.article-overlay-full.open {
  display: flex;
   align-items: flex-start;
    justify-content: center;
}

.article-overlay-full.full-page {
    display: flex !important;
     align-items: flex-start;
     justify-content: center;
}

.article-overlay-full-content {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}
@media (min-width: 768px) {
    .article-overlay-full-content {
         padding: 40px;
    }
}
.article-content-full {
    padding-top: 20px;
    line-height: 1.6;
     font-size: 16px;
     overflow: auto;
}
@media (min-width: 768px) {
     .article-content-full {
        font-size: 18px;
    }
}
.close-button-full {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    z-index: 20;
}
