* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 1rem;
    font-family: 'Roboto Slab', serif;
}

svg {
    height:100%;
    display: inline-block;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

.header {
    background-color: #363636;
    border-bottom: 1px solid #828282;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    height: 4rem;
}

.navbar {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto; 
    padding-left: 5px;
    padding-right: 20px;
}

.hamburger {
    display: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #F7EFE8;
}

.navbar a {
    color: #F7EFE8;
    text-decoration: none;
    padding: 10px;
    display: flex; /* было display: block; */
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0;
}

.nav-item {
    margin-left: 2rem;
    font-size: initial;
}

.nav-link {
    font-weight: 400;
    color: #475569;
}

.nav-link:hover {
    color: #828282;
}

.nav-logo {
    width: 150px;
    display: flex;
    justify-content: center;
    align-items: center; 
}

.language-selector {
    margin-left: auto;
    position: relative;
    display: inline-block;
    padding: 15px;
}

.language-list {
    position: absolute;
    right: 0px;
    background-color: #363636;
    min-width: 100px;
    list-style: none;
    border: 1px solid #828282;
    top: 100%;
    opacity: 0; /* Initially set opacity to 0 */
    transition: opacity 0.3s ease-out, visibility 0.1s 0.1s linear; /* Transition only the opacity property */
    visibility: hidden;
}

.language-selector:hover .language-list {
    opacity: 1; /* Set opacity to 1 on hover */
    visibility: visible;
}


.language-list a {
    display: block;
}

.language-list li {
    width: 100%;
    padding: 5px 0px;
    cursor: pointer;
    color: #F7EFE8; 
    text-align: center;
}

.language-list li:hover {
    background-color: #828282;
}

.language-selector span {
    color: #F7EFE8; 
}

.site-language {
    color: #F7EFE8;
    display: block;
}

.svg {
    transform: rotate(90deg);
    transition: transform 0.2s ease; /* Smooth transition for rotation */
}

.language-selector:hover .svg {
    transform: rotate(270deg);
}

h1 {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #fff;
    font-family: 'Roboto Slab', serif;
}

.hero-container p {
    font-size: 1.3rem;
    margin-bottom: 5rem;
    text-align: center;
    color: #fff;
    font-family: 'Roboto', serif;
}

.buttons {
    margin-top: 2.5rem;
    text-align: center;
}

.btn-primary {
    background-color: #F7EFE8;
    border-radius: 30px; 
    color: #363636;
    font-size: 1.2rem;
    border: 1px solid #F7EFE8;
    padding: 10px 20px;
    margin-right: 15px;
    transition: 0.2s;
}

.btn-secondary {
    background-color: none;
    border-radius: 30px; 
    color: #F7EFE8;
    font-size: 1.2rem;
    border: 1px solid #F7EFE8;
    padding: 10px 20px;
    transition: 0.2s;
}

.btn-primary:hover {
    background-color: #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #363636;
}

.hero {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: background-image 1s;
}

.hero-container {
    padding: 20px;
    border-radius: 3px;
    z-index: 2;
}

.hidden {
    display: none;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Adjust the color and opacity as needed */
}

@media only screen and (max-width: 768px) {

    .nav-menu {
        position: fixed;
        right: -100%;
        top: 3.5rem;
        flex-direction: column;
        background-color: #363636;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }
        
    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        margin: 1rem 0;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        -webkit-transform: translateY(8px) rotate(45deg);
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        -webkit-transform: translateY(-8px) rotate(-45deg);
        transform: translateY(-8px) rotate(-45deg);
    }

    .site-language {
        display: none;
        }

    .language-list {
        display: inline-block;
        position: unset;
        right: unset;
        border: unset;
        top: unset;
        border-top:1px solid #828282;
        padding-top: 10px;
        opacity: unset;
        visibility: unset;
    }

    .language-list li:hover {
        background-color: unset;
    }

    .language-list li {
        width: unset;
        padding: unset;
        cursor: unset;
        color: #828282; 
        display: inline-block;
        padding-bottom: 0;
    }

    .language-selector {
        padding: unset;
    }

    .current-lang a {
        padding-top: 15px;
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 5px;
        border-bottom:1px solid #F7EFE8;
    }

    .other-lang a {

        color: #f7efe8ab;
    }

}

@media only screen and (max-width: 480px) {

    h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .hero-container p {
        font-size: 1rem;
    }

    .buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .btn-primary {
        margin-right: unset;
        margin-bottom: 25px;
    }

} 

