
/* General styles */
@import url('https://fonts.googleapis.com/css2?family=Didact+Gothic&family=Marck+Script&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans:ital,wght@1,400;1,700&family=El+Messiri:wght@500&family=Merienda&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans:ital,wght@1,400;1,700&family=Marck+Script&display=swap');

/*colors*/
/*
rgb(164, 159, 168) rose quartz
rgb(12, 8, 12) black
rgb(171, 200, 199)
rgb(165, 181, 191)
rgb(176, 161, 186)*/

body {
    font-family: 'Didact Gothic', sans-serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}
.background {

    background: url(../img/back0.gif) repeat;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    overflow: auto;
    bottom: 0;
}


a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5 {

    font-family: 'Marck Script', cursive;
    color: rgb(154, 148, 158);

}
.content {
    max-width: 1200px;
    margin: 0 auto;

}

img {
    max-width: 100%;
    height: auto;
}

/* Header styles */

header {
    background-color: rgb(12, 8, 12);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    position: relative;
    display: inline-block;
    margin: 20px 0;
}

.logo img {
    width: 120px;
    height: auto;
}
.logo::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 6px solid #BFF0D4; /* Цвет и толщина контура */
    box-sizing: border-box;
    opacity: 0; /* Начальная непрозрачность (контур будет невидимым) */
    transition: opacity 0.3s ease; /* Плавный переход для наглядности */
    border-radius: 100px
}

.logo:hover::after {
    opacity: 1; /* При наведении курсора, контур станет видимым */
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;

}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;

}

nav li {
    display: inline-block;
    margin-right: 20px;
}


nav a {
    font-weight: bold;
    color: rgb(154, 148, 158);
    font-family: 'Didact Gothic', sans-serif;
    text-decoration: none;}

nav a:hover {
    color: #BFF0D4;
}

/* Main important selection */
section ul{
    margin: 0;
    padding: 0;
    display: flex;
    gap: 16px;

}
section h3{
    font-size: 30px;
}

section h4{
    font-size: 25px;
}

section li{

    margin: 0;
    list-style: none;
    background-color: rgb(12, 8, 12);
    text-align: center;
    padding: 20px 10px;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 20%;


}
section li:hover {
    background-color: rgb(107, 101, 112);
    color: rgb(12, 8, 12);

}

section li:hover i{
    color: #BFF0D4;
}
section li:hover h4{
    color: #BFF0D4;
}

section li:hover .button{
    background-color: #BFF0D4;
    color: rgb(12, 8, 12);
}

section li h4{
    color: rgb(154, 148, 158);
}


/* Main content styles */

main {
    padding: 20px;
    font-size: 16px;
    font-family: 'El Messiri', sans-serif;
    color:rgb(154, 148, 158)
}

a.active{
    text-decoration:underline;
}
/* Footer styles */

footer {
    background-color: rgb(107, 101, 112);
    color: #0f0e0f;
    /*background: url(../img/back9.gif) repeat;
    --background-size: 20%;*/
    padding: 10px;
    text-align: center;
}

.footer-info {
    margin-bottom: 20px;

}

.footer-info p {
    font-size: 13px;
    line-height: 1.5;
    font-family: 'Merienda', cursive;
}

/* Styles for the social media links */
.social-media {
    display: inline-block;
}

a.social-media {
    margin-right: 10px;
    color: #000;
    font-size: 30px;
}

a.social-media:hover {
    color: #BFF0D4;
}


#slider {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

#slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



section {

    margin-bottom: 65px;
}

/* Set consistent icon size */
.fas,
.far {
    font-size: 2.5em;
    color: rgb(154, 148, 158);
    transition: color 0.3s;
}

.fas:hover,
.far:hover {
    color: #BFF0D4;
}
.upsection{
    text-align: center;
    font-size:1.3em;

}
.upsection p{
    font-family: 'Merienda', cursive;
}

.lowersection{
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 20px;
    text-align: center;
}

.contact div{
    padding:30px;
    background-color: rgb(171, 200, 199);
}
.contact div:hover{
    background-color: rgb(176, 161, 186);
}
.contact div:hover i{
    color: rgb(191, 240, 212);

}


#slider {
    position: relative;
}
#slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}
#slider img.active {
    display: block;
}

/* Add styles for next and previous buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2em;
    color: rgb(154, 148, 158);
    background-color: #333;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.next-btn {
    right: 10px;
}

.prev-btn {
    left: 10px;
}


.button {
    display: inline-block;
    margin: 20px;
    padding: 5px 10px;
    background-color:rgb(12, 8, 12);
    color: rgb(164, 159, 168);
    text-decoration: none;
    border-radius: 5px;
}

.button:hover {
    color:rgb(12, 8, 12);
    background-color: rgb(154, 148, 158);
    color: #BFF0D4;
}

#cards_with_logo .card {
    display:flex;
    flex-direction:column;
    justify-content: space-between;
    border-radius: 6px;
}

.table-container {
    position: relative;
}

.table-image {
    width: 100%; /* Adjust the width as needed */
}

.desk {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Set the width to match the table image */
    height: 100%; /* Set the height to match the table image */
    display: flex; /* Use flexbox to arrange cards horizontally */
    justify-content: space-around; /* Adjust as needed (space-between, center, etc.) */
    align-items: center; /* Align cards vertically at the center */
    flex-wrap: nowrap;
    flex-direction: column; /* Prevent wrapping to keep them in a single row */
}

.cards {
    display: flex;
    gap: 30px; /* Adjust the spacing between cards */

}


.button-group {
    display: flex;
    justify-content: space-around;
}

.button-card {

    box-sizing: border-box;
    margin: 10px;
}
.meaning-section {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgb(164, 159, 168);
    color: rgb(12, 8, 12); /* Adjust background color and opacity */
    padding: 20px; /* Adjust padding as needed */
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3); /* Add a shadow at the bottom */

}

.meaning-content {
    box-sizing: border-box;
    width: 80%; /* Adjust percentage as needed */
    margin: 0 auto;
    overflow-y: auto;
    max-height: 600px;
}


.meaning-content h2{
    color: #201A23;
}

.meaning-section.active {
    display: block;
}
/* Style for the Close button */
.meaning-content button {
    background-color: rgb(12, 8, 12);
    color: rgb(191, 240, 212);
    padding: 10px;
    border: none;
    cursor: pointer;
}

.meaning-content button:hover {
    background-color: #555;
}

.table-image {
    width: 100%; /* Adjust the width as needed */
    height: 100%; /* Adjust the height as needed */
    object-fit: cover; /* or contain, fill, etc. depending on your requirement */
    opacity: 0.5; /* Adjust the opacity value (from 0 to 1) */
}

#video_main {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.hidden {
    display: none;
}

#rules-section, #about-section, #how_to-section, #tg-bot-section {
    background-color: rgb(12, 8, 12); /* Цвет подложки */
    color: rgb(164, 159, 168); /* Цвет текста */
    padding: 70px; /* Внутренний отступ */

    border-radius: 5px; /* Закругленные углы */
}

#rules-section h1, #about-section h1, #how_to-section h1, #tg-bot-section h1 {
    font-size: 28px; /* Размер шрифта заголовка */
}

#rules-section h3, #about-section h3, #how_to-section h3, #tg-bot-section h3 {
    font-size: 22px; /* Размер шрифта заголовка */
    text-align: center;
}

#rules-section p, #about-section p, #how_to-section p, #tg-bot-section p {
    font-size: 18px; /* Размер шрифта текста */
    line-height: 1.5; /* Междустрочное расстояние */
}

.container {
    max-width: 960px; /* Ширина колонки */
    margin: 0 auto; /* Центрирование колонки на странице */
    background-color: rgb(12, 8, 12); /* фон для колонки */
    padding: 20px; /* Внутренний отступ для колонки */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

html {
    scroll-behavior: smooth;
}

.tg-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.sub-menu{
    position: absolute;
    background-color: #201A23;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap:10px
}
.has-children:hover .sub-menu{
    display: flex;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black url(../img/back0.gif) repeat;
    overflow: hidden;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: 0.5s;
}
.image img{
    border-radius: 9px;
}

/* Стили для гамбургера */
.menu-toggle {
    display: none; /* Скрываем гамбургер на больших экранах */
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #a49fa8;
    margin: 6px 0;
}

/* Стили для основного меню */
.menu-list {
    list-style: none;
    margin: 3px;
    padding: 3px;
    display: flex;
    justify-content: center;

}

.form-element input {
    width: 92%;
    max-width: 300px;
    padding: 0.5rem;
    margin: auto auto 16px;
}


/* Стили для анимации loading */
.lds-ripple {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}
.lds-ripple div {
    position: absolute;
    border: 4px solid #dfc;
    opacity: 1;
    border-radius: 50%;
    animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}
.lds-ripple div:nth-child(2) {
    animation-delay: -0.5s;
}
@keyframes lds-ripple {
    0% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }
    4.9% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }
    5% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        top: 0px;
        left: 0px;
        width: 72px;
        height: 72px;
        opacity: 0;
    }
}

/* Media queries */
@media (max-width: 768px) {
    nav {
        flex-direction: column;

    }

    nav li {
        margin-right: 0;
        margin-bottom: 10px;

    }
    section ul {
        flex-direction: column;
    }


    .lowersection{
        grid-template-columns: auto;
    }
    video#video_main {
    width: 100%; /* Set the width to 100% on smaller screens */
    height: auto;}

    .button-group {
        flex-direction: column; /* Переход к вертикальному расположению при уменьшении экрана */
        align-items: center; /* Выравнивание элементов по центру */
    }

    .button-card {
        max-width: 100%;
        width: 100vw;
        flex-basis: 100%; /* Элемент будет занимать всю ширину при узком экране */
    }
    .image {
        display: flex;
        gap: 1%;
        justify-content: center;
    }
    .image img {
        max-width: 33%;
    }
    .menu-toggle {
        display: block;
    }

    .menu-list {
        padding: 50px;
        text-align: left;
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        overflow: hidden;
        transition: max-height 0.3s ease-out

    }
    .menu-list.show {
        max-height: 500px; /* Задайте достаточно большое значение */

    }
    .meaning-content {
        font-size: 14px; /* Adjust font size as needed */
        padding: 10px; /* Adjust padding for smaller screens */

    }
    .meaning-content::-webkit-scrollbar {
        width: 10px;
    }

    .meaning-content::-webkit-scrollbar-thumb {
        background-color: #888;
    }


}

@media only screen and (max-width: 1024px) {
    nav {
        flex-direction: column;
    }

    nav li {
        margin-right: 0;
        margin-bottom: 10px;
    }

    section ul {
        flex-direction: column;
    }

    .lowersection {
        grid-template-columns: auto;
    }

    video#video_main {
        width: 100%;
        height: auto;
    }

    .button-group {
        flex-direction: column;
        align-items: center;
    }

    .button-card {
        max-width: 100%;
        width: 100vw;
        flex-basis: 100%;
    }

    .image {
        display: flex;
        gap: 1%;
        justify-content: center;
    }

    .image img {
        max-width: 33%;
    }

    .menu-toggle {
        display: block;
    }

    .menu-list {
        padding: 50px;
        text-align: left;
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }

    .menu-list.show {
        max-height: 500px; /* Adjust as needed */
    }
}

