body, .background-container {
    margin: 0;
    font-family: "Advent Pro", sans-serif;
      background-color: white;
  background-size: cover;
  background-position: top; 
}


.main-container {
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden; 
    box-sizing: border-box; 
}



.logo {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1001;
    cursor: pointer;
}
.logo img {
    width: 120px;
    height: auto;
    background-color: rgba(77, 119, 49, 0.8);
    padding: 15px 5px;
}

.header-container {
    background-color: rgba(255, 255, 255, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.navigation {
    text-align: center;
}
nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
}
nav ul li {
    margin-right: 20px;
}
nav ul li a {
    text-decoration: none;
    color: #1d1d1d;
    font-weight: 750;
    position: relative;
    transition: color 0.3s ease;
}
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #1d1d1d;
    transition: width 0.3s ease, left 0.3s ease, background-color 0.3s ease;
}
nav ul li a:hover,
nav ul li a:focus,
nav ul li a:active,
nav ul li a.active {
    color: #4d7731;
}
nav ul li a:hover::after,
nav ul li a:focus::after,
nav ul li a:active::after,
nav ul li a.active::after {
    width: 100%;
    left: 0;
    background-color: #4d7731;
}
nav ul li a.active {
    color: #4d7731; 
}

nav ul li a.active::after {
    width: 100%; 
    left: 0;
    background-color: #4d7731; 
}


.container {
    width: 100vw;               
    height: 100vh;           
    display: flex;            
    justify-content: center;   
    align-items: center;      
    background-color: #f0f0f0;  
    position: absolute;        
    top: 0;                     
    left: 100vw;               
    opacity: 0;                
    transition: opacity 0.5s ease-in-out, left 0.5s ease-in-out;

}

.container.active {
    opacity: 1;
    left: 0;                
}

/* Анимации */
.container.slide-left {
    left: -100vw;               
}

.container.slide-right {
    left: 100vw;                
}
#container1 {
                background-image: url('5ur.jpg'); 
    background-size: cover;
  background-position: top; 
}#container2 {
                background-image: url('5ur1.jpg'); 
    background-size: cover;
  background-position: top; 
}

.content1 {
    text-align: right;
    max-width: 500px;
    font-size: 20px;
        transform: translateX(70%);

}
.content2 {
    text-align: left;
        max-width: 500px;
    font-size: 20px;
        transform: translateX(-70%);
}

button {
    background-color: #4d7731;
    border: none;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 18px;
}

button:hover {
    background-color: #4d7731;
}


@media (max-width: 768px) {
    body, .background-container {
        background-position: center;
        background-size: cover;
    }

    .main-container {
        height: auto;
        min-height: 100vh;
        padding-bottom: 50px;
        overflow-x: hidden;
    }

    .logo {
        position: relative;
        display: block;
        text-align: center;
        margin-bottom: 15px;
        top: 0;
        left: 0;
        width: 100%;
    }

    .logo img {
        width: 80px;
        padding: 10px;
    }

    .header-container {
        position: relative;
        background-color: rgba(255, 255, 255, 0.7);
        width: 100%;
    }

    .navigation {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        padding: 10px 0;
    }

    nav ul {
        display: inline-block;
        padding: 0 10px;
        justify-content: flex-start;
    }

    nav ul li {
        display: inline-block;
        margin: 0 8px;
    }

    nav ul li a {
        font-size: 14px;
        padding: 5px 0;
    }

    .container {
        position: relative;
        height: auto;
        min-height: 100vh;
        padding: 20px;
        box-sizing: border-box;
        left: 0;
        opacity: 1;
        background-position: center;
    }

    .container.active {
        display: flex;
    }

    .container:not(.active) {
        display: none;
    }

    .content1, .content2 {
        transform: none;
        text-align: center;
        max-width: 100%;
        padding: 20px;
        background-color: rgba(255, 255, 255, 0.8);
        border-radius: 10px;
        margin-top: 60px;
    }

    .content1 h2, .content2 h1 {
        font-size: 1.5em;
    }

    .content1 p, .content2 p {
        font-size: 16px;
        text-align: left;
    }

    button {
        padding: 8px 16px;
        font-size: 16px;
        margin-top: 15px;
    }

    .next-btn, .prev-btn {
        display: block;
        margin: 15px auto 0;
    }

    /* Chat window adjustments */
    .chat-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
        line-height: 50px;
    }

    .chat-window {
        width: 90%;
        max-width: 90%;
        bottom: 70px;
    }
}