@font-face {
    font-family: 'cinzel_decorativeregular';
    src: url('../font/cinzel/cinzeldecorative_regular_macroman/CinzelDecorative-Regular-webfont.eot');
    src: url('../font/cinzel/cinzeldecorative_regular_macroman/CinzelDecorative-Regular-webfont.eot?#iefix') format('embedded-opentype'),
        url('../font/cinzel/cinzeldecorative_regular_macroman/CinzelDecorative-Regular-webfont.woff2') format('woff2'),
        url('../font/cinzel/cinzeldecorative_regular_macroman/CinzelDecorative-Regular-webfont.woff') format('woff'),
        url('../font/cinzel/cinzeldecorative_regular_macroman/CinzelDecorative-Regular-webfont.ttf') format('truetype'),
        url('../font/cinzel/cinzeldecorative_regular_macroman/CinzelDecorative-Regular-webfont.svg#cinzel_decorativeregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'cinzelregular';
    src: url('../font/cinzel/cinzel_regular_macroman/Cinzel-Regular-webfont.eot');
    src: url('../font/cinzel/cinzel_regular_macroman/Cinzel-Regular-webfont.eot?#iefix') format('embedded-opentype'),
        url('../font/cinzel/cinzel_regular_macroman/Cinzel-Regular-webfont.woff2') format('woff2'),
        url('../font/cinzel/cinzel_regular_macroman/Cinzel-Regular-webfont.woff') format('woff'),
        url('../font/cinzel/cinzel_regular_macroman/Cinzel-Regular-webfont.ttf') format('truetype'),
        url('../font/cinzel/cinzel_regular_macroman/Cinzel-Regular-webfont.svg#cinzelregular') format('svg');
    font-weight: normal;
    font-style: normal;
}


body {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

.preloader {
    background: white url(../video/cat-loading.gif) no-repeat center center;
    background-size: 30%;
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.loading-content {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.loading-text {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    letter-spacing: 0.2em;
    margin-bottom: 20%;
    display: flex;
}

.loading-text span {
    display: inline-block;
    animation: bounceWithPause 2s ease-in-out infinite;
}

@keyframes bounceWithPause {
    0%, 10% {
        transform: translateY(0);
    }
    20% {
        transform: translateY(-20px);
    }
    30% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(0);
    }
}

body.loading {
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: fixed;
}

header {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.header-container {
  display: flex;
  align-items: center;  
  justify-content: space-between;
  padding: 10px 20px 10px 0;
  position: relative;
}

nav {
    grid-column: col-start/span 12;
    grid-row: 1;
}


.left-group {
  display: flex;
  align-items: center;
}


#header-nav
#header-nav a,
#header-nav a:link,
#header-nav a:visited {
    gap: 20px;
    padding: 9px;
    letter-spacing: 1px;
    font-size: 33px;
    text-decoration: none;
}

#header-nav a {
    transition: color 0.3s ease;
}

#header-nav.show {
    display: flex;
    opacity: 1;
}

.hamburger-nav {
    display: none;
    font-size: 27px;
    position: absolute;
    text-decoration: none;
    padding: 10px;
    text-align: left;
    top: 6px;
}

.right-group {
    display: flex;
    align-items: center;
    gap: 30px;
}

.search-container {
    display: flex;
    position: relative;
    align-items: center;
    background: #F2F3F4;
    border: 1px solid #ccc;
    border-radius: 15px;
    padding: 5px 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    overflow: visible;
}

::placeholder {
    background: #F2F3F4;
}

.suggestions-box {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ccc;
    border-top: none;
    z-index: 9999;
    display: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
}

.suggestion-item {
    padding: 8px;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #f0f0f0;
}

input {
    border: none;
    outline: none;
    padding: 10px;
    width: 200px;
    font-size: 16px;
    background: #F2F3F4;
}

.search-button {
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #333;
}

.search-button i {
    margin-right: 5px;
}

.language-toggle {
  margin-left: 20px;
}

.language-toggle a {
    text-decoration: none;
    font-size: 21px;
    transition: color 0.3s ease, transform 0.3s ease-out, text-shadow 0.3s ease;
}

.language-toggle a:hover {
    font-weight: bold;
    transform: scale(1.05);
}

.title {
    text-align: center;
    font-size: 30px;
    margin: 0;
}

.big-title {
    text-align: center;
    font-size: 50px;
    padding: 30px; 
    letter-spacing: 5px;
    position: relative;
    margin: 0;
}

b {
    font-size: 27px;
}

p {
    font-size: 27px;
}

#top_btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: none;
    z-index: 1000;
    font-family: 'Times New Roman', Times, serif;
}

@media (max-width: 700px) {
    .preloader {
        background-size: 90%;
    }

    .loading-text {
        font-size: 1.5rem;
        letter-spacing: 0.1em;
        margin-bottom: 50%;
    }

    header {
        align-items: center;
        min-height: 60px;
    }

    .header-container {
        padding: 8px 12px;
        width: 100%;
    }

    .left-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .hamburger-nav {
        display: block;
    }

    #header-nav,
    #header-nav a,
    #header-nav a:link,
    #header-nav a:visited {
        font-size: 27px;
    }

    #header-nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 50px;
        width: 100%;
        padding: 10px 0;
        z-index: 10;
    }

    #header-nav a {
        padding: 10px;
        text-align: left;
        margin: 0;
    }

    .right-group {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 5px 0 0;
    }

    .language-toggle {
        position: static;
        margin: 0;
    }

    .search-container {
        transition: width 0.3s ease;
        padding: 3px;
    }

    .search-container input {
        display: none;
    }


    .search-container.active {
        width: 55%;
        position: absolute;
        top: 8px;
        right: 15px;
        padding: 3px 10px;
        z-index: 999;
    }

    .search-container.active input {
        display: block;
        flex: 1;
        min-width: 0;
    }

    .search-container.active .suggestions-box {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
    }

    .search-button {
        font-size: 21px;
        padding: 1px 3px;
    }

    .suggestion-item {
        font-size: 15px;
    }

    .language-toggle a {
        font-size: 18px;
        margin-right: 5px;
    }

    .big-title {
        font-size: 36px;
        padding: 15px; 
        letter-spacing: 3px;
    }

    b {
        font-size: 21px;
    }
    
    p {
        font-size: 21px;
    }
}