/* 019 */
@font-face {
    font-family: 'TT2020StyleE';
    src: url('fonts/TT2020StyleE-Regular.woff2') format('woff2'),
        url('fonts/TT2020StyleE-Regular.woff') format('woff'),
        url('fonts/TT2020StyleE-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --background-color: #2e3d2d;
    --overlay-background: rgba(0, 0, 0, 0.7);
    --text-color: #333333;
    --header-bg: linear-gradient(135deg, #123415, #36844d);
    --header-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --font-color: rgba(208, 255, 0, 0.811);
    --font-shadow: 4px 4px 6px rgba(0, 0, 0, 0.9);
    --hover-color: rgba(234, 255, 0, 0.8);
    --font-size-overlay: 1.0rem;
}

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

body {
    font-family: 'TT2020StyleE', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 80px);
}

header {
    background: var(--header-bg);
    color: var(--font-color);
    padding: 0.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--header-box-shadow);
    border-radius: 0;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    flex-wrap: wrap;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    min-width: 0;
    order: 1;
}

.language-flags {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    align-items: center;
    order: 3;
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: 0;
    flex-shrink: 0;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.nav-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1;
    min-width: 0;
    order: 2;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--font-color);
    text-decoration: none;
    transition: color 0.3s;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
}

.nav-links a:hover {
    font-weight: bold;
    color: var(--hover-color);
}

.language-flags a {
    display: flex;
    width: 30px;
    height: 16px;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid white;
    transition: transform 0.3s;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.language-flags a:hover {
    transform: scale(1.2);
    filter: brightness(100%);
}

.flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.language-flags .active-flag .flag {
    filter: grayscale(100%) brightness(100%);
    border-color: #cccccc1f;
}

.language-flags .active-flag:hover .flag {
    filter: grayscale(100%) brightness(100%);
    border-color: #ffffff1f;
}

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
}

.slideshow-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-color);
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.slideshow {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    min-width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0;
    padding: 0;
}

.slideshow-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    gap: 0;
}

footer {
    background: var(--header-bg);
    color: var(--font-color);
    font-size: 0.9rem;
    text-align: center;
    padding: 0.8rem;
    margin: 0;
    width: 100%;
    flex-shrink: 0;
}

@media (min-width: 901px) {
    nav {
        flex-wrap: nowrap;
    }

    .logo-section {
        order: 1;
    }

    .nav-main {
        order: 2;
        justify-content: center;
    }

    .nav-links {
        justify-content: center;
    }

    .language-flags {
        order: 3;
        margin-left: auto;
    }
}

@media (max-width: 900px) {
    nav {
        flex-wrap: wrap;
        align-items: center;
    }

    .logo-section {
        order: 1;
        flex: 1;
        min-width: 0;
    }

    .language-flags {
        order: 3;
        flex-shrink: 0;
        margin-left: 0;
    }

    .nav-main {
        order: 4;
        flex: 1 0 100%;
        margin-top: 0.5rem;
        justify-content: center;
    }

    .nav-links {
        justify-content: center;
        width: 100%;
        gap: 0.5rem;
    }

    .nav-links a {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
        border-radius: 4px;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .logo-img {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.2rem;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-links {
        gap: 0.3rem;
    }

    .nav-links a {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
    }

    .language-flags a {
        width: 25px;
        height: 14px;
    }
}

@media (max-width: 360px) {
    .logo-text {
        font-size: 1rem;
        max-width: 120px;
    }

    .nav-links a {
        font-size: 0.7rem;
        padding: 0.15rem 0.3rem;
    }
}

.overlay-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-background);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 90;
    display: none;
}

.overlay-background.active {
    display: block;
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: left;
    color: var(--font-color);
    text-shadow: var(--font-shadow);
    font-size: var(--font-size-overlay);
    padding: 1.5rem;
    z-index: 100;
    width: 95%;
    max-width: 800px;
    max-height: 60vh;
    overflow-y: auto;
    display: none;
    background: transparent;
    border: none;
    border-radius: 0;
}

.text-overlay.active {
    display: block;
}

.contact-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: left;
    color: var(--font-color);
    text-shadow: var(--font-shadow);
    font-size: var(--font-size-overlay);
    padding: 1.5rem;
    z-index: 100;
    width: 95%;
    max-width: 800px;
    max-height: 60vh;
    display: none;
    background: transparent;
    border: none;
    border-radius: 0;
}

.contact-overlay.active {
    display: block;
}

.contact-item {
    margin-bottom: 12px;
}

.contact-label {
    font-weight: bold;
    margin-right: 8px;
}

.about-text p {
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-text ul {
    text-align: left;
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.about-text li {
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.description-text {
    text-align: justify;
    font-size: var(--font-size-overlay);
    line-height: 1.6;
    max-height: 70vh;
    padding: 0.5rem;
}

.description-text p {
    margin-bottom: 1.2rem;
}

.description-text p:last-child {
    margin-bottom: 0;
}
