                                                        /*HTML*/

html {
    font-family: Arial, sans-serif;
    display: grid;
    grid-template-rows: auto;
    width: 100%;
    height: 100vh;
    overflow-x: hidden;
}

                                                        /*BODY*/

#snowCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

body {
    margin: 0;
    padding: 0;
    width: calc(100vw - 17px);
}

.body {
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.hidden_2 {
    display: none;
}

.show_2 {
    display: grid;
    justify-items: center;
    align-items: center;
}

                                                        /*HEADER*/

.header {
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: auto auto;
    position: sticky;
    width: 100%;
    top: 0;
    left: 0;
    height: auto;
    background-color: #339933;
    color: #fff;
    z-index: 1000;
}

@media (max-width: 1280px) {
    .header {
        position: static;
    }
}

.menu_header_1 {
    display: grid;
    grid-template-columns: auto auto 1fr;
    grid-template-rows: 1fr 1fr;
    column-gap: 10px;
    justify-content: start;
    margin: 10px 0 10px 150px;
    padding: 0;
}

@media (max-width: 1280px) {
    .menu_header_1 {
        margin: 10px 0 10px 50px;
    }
}

.menu_header_1 li {
    display: grid;
    font-size: 19px;
    align-content: center;
}

.menu_header_1 li a{
    font-family: Georgia;
    display: grid;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    text-shadow: 2px 2px 4px #000;
    margin-top: 1px;
    cursor: default;
}

.b {
    font-family: sans-serif;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px;
    border-width: 1px;
    cursor: default;
    text-shadow: 2px 2px 4px #000;
}

.li_el_1 {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.li_el_2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.li_el_3 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.coat_ukr {
    display: grid;
    align-items: center;
    justify-content: center;
    background-image: url(images/coat_of_arms_ukr.webp);
    background-size: contain;
    background-repeat: no-repeat;
    margin: 0;
    width: 32px;
    height: 50px;
}

.menu_header_2 {
    display: grid;
    grid-template-columns: auto auto auto auto auto auto 90px;
    justify-content: end;
    margin: 10px 150px 10px 0;
    padding: 0;
}

@media (max-width: 1280px) {
    .menu_header_2 {
        margin: 10px 50px 10px 0;
    }
}

.menu_header_2 li {
    display: inline-block;
    align-content: center;
}

.menu_header_2 li a {
    font-family: sans-serif;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 8px;
    margin-right: 7px;
    border-width: 1px;
    text-shadow: 2px 2px 4px #000;
}

.a {
    font-family: sans-serif;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 8px;
    margin-right: 7px;
    border-width: 1px;
    cursor: default;
    text-shadow: 2px 2px 4px #000;
}

.menu_header_2 li a:hover {
    text-decoration: underline;
}

.header_i {
    position: fixed;
    background-color: transparent;
}

.background {
    background-color: #339933;
}

.index, .activity, .history, .membeship {
    pointer-events: none;
    opacity: 0.9;
    font-family: sans-serif;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 8px;
    margin-right: 7px;
    border-width: 1px;
    text-shadow: 1px 1px 2px #000;
}

.dot_list {
    padding-left: 10px;
    display: inline-block;
    margin-top: 5px;
}

.committee {
    max-width: 70%;
    margin: 20px auto;
}

.committee h2 {
    text-align: center;
    font-size: 18px;
    margin-bottom: 20px;
}

.committee dl {
    display: flex;
    flex-wrap: wrap; 
    margin: 0;
    padding: 0;
}

.committee dt {
    flex-basis: 25%;
    font-weight: bold;
}

.committee dd {
    flex-basis: 75%;
    margin-left: 0; 
}

.committee dt, .committee dd {
    margin-bottom: 10px;
}

                                                        /*MAIN*/

.no-wrap {
    white-space: nowrap;
}

.scroll-container {
    width: 100%;
    overflow-x: scroll;
    white-space: nowrap;
}

.image-wrapper {
    display: inline-block;
}

.scroll-container img {
    width: calc(100% / 3);
    height: auto;
    display: inline-block;
    margin-right: 10px;
    object-fit: cover;
    overflow: hidden;
}

.scroll-container img:last-child {
    margin-right: 0;
}

.grid_container {
    display: grid;
    grid-template-columns: 1fr;
    width: 1fr;
}

.grid_container_l {
    display: grid;
    row-gap: 20px;
    column-gap: 20px;
}

.grid_container_main {
    display: grid;
    column-gap: 20px;
}

.grid_item {
    max-width: 100%;
    max-height: 100%;
}

.grid_item img {
    max-width: 100%;
    max-height: 100%;
}

.grid_item_cut img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    object-fit: cover;
    overflow: hidden;
}

.grid_80_20 {
    display: grid;
    grid-template-columns: 1fr 20%;
    column-gap: 20px;
}

.grid_3fr {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 20px;
}

.grid_4fr {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    column-gap: 20px;
}

main {
    background-color: antiquewhite;
    background-image: url(background.webp);
    background-size: 20%
}

.text_background {
    background-color: white;
    box-shadow: 0 0 10px rgba(128, 128, 128, 0.5);
    margin: 0 0 30px 0;
    padding: 20px;
    position: relative;
    z-index: 5;
}

.text_background_2 {
    background-color: white;
    box-shadow: 0 0 5px rgba(128, 128, 128, 0.5);
    margin: 0 0 1px 0;
    padding: 20px;
    position: relative;
    z-index: 5;
}

.text_background_3 {
    background-color: white;
    box-shadow: 0 0 5px rgba(128, 128, 128, 0.5);
    margin: 1px 0 30px 0;
    padding: 20px;
    position: relative;
    z-index: 5;
}

.main_index {
    display: grid;
    grid-template-columns: 3fr 1fr;
    grid-auto-rows: minmax(min-content, max-content);
    margin: 30px 100px;
    column-gap: 30px;
    padding: 20px;
}

@media (max-width: 1280px) {
    .main_index {
        margin: 30px 0;
    }
}

.half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 50px;
}

.main_about {
    display: grid;
}

.main_about_1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, auto);
    grid-template-areas:
        "item_about_1 item_about_1"
        "item_about_2 item_about_3"
        "item_about_4 item_about_4";
}

.main_activity {
    display: grid;
    grid-template-columns: 3fr 1fr;
    grid-auto-rows: minmax(min-content, max-content);
    margin: 30px 100px;
    column-gap: 30px;
    padding: 20px;
}

@media (max-width: 1280px) {
    .main_activity {
        margin: 30px 0;
    }
}

.main_activity_menu_menu {
    position: sticky;
    top: 120px;
}

.main_activity_menu_menu .menu {
    font-size: 17px
}

.main_activity_menu_menu .menu p:hover {
    text-decoration: underline;
    cursor: pointer;
}

.menu p.inactive {
    color: #4CAF50;
    font-weight: bold;
    pointer-events: none;
    opacity: 0.9;
    font-size: 17px;
}

.menu .inactive {
    font-weight: normal;
    color: gray;
    opacity: 0.9;
    font-size: 13px;
}

.book_img {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 20px;
}

.shadow {
    box-shadow: 0 0 10px rgba(128, 128, 128, 0.5);
}

.show {
    display: grid;
    animation: fadeIn 0.1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hidden {
    display: none;
}

.table_container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

                    /** Table 1 **/

.table {
    width: 100%;
    border-collapse: collapse;
    border: 0;
 }

.table tr {
    display: grid;
    grid-template-columns: 40% 30% 30%;
}

.table .thead {
    padding: 0;
}

.table th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.table th {
    background-color: #f2f2f2;
}

.table tr:nth-child(even) {
    background-color: #f9f9f9;
 }

.table tr:hover {
    background-color: #ddd;
}

                    /** Table 1 **/


.main_history {
    display: grid;
    margin: 30px 100px;
    padding: 20px;
}

@media (max-width: 1280px) {
    .main_history {
        margin: 30px 0;
    }
}

.main_membership {
    display: grid;
    grid-template-columns: 3fr 1fr;
    grid-auto-rows: minmax(min-content, max-content);
    margin: 30px 100px;
    column-gap: 30px;
    padding: 20px;
}

@media (max-width: 1280px) {
    .main_membership {
        margin: 30px 0;
    }
}

.main_membership .main_about .members {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
}

.member {
    display: grid;
    align-content: space-between;
}

.float-left {
    float: left;
    margin-right: 20px;
    margin-bottom: 20px;
}

.float-right {
    float: right;
    margin-left: 20px;
    margin-bottom: 20px;
}

#thumbnail {
    cursor: pointer;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    display: grid;
    grid-area: center;
    margin: 0;
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
}
                                                        /*BUTTON*/

.lng-btn {
    background: none; /* Убираем подложку */
    border: none; /* Убираем рамку */
    cursor: pointer; /* Указатель мыши при наведении */
    font-size: 16px; /* Размер шрифта */
    font-weight: bold; /* Жирный текст */
    transition: color 0.3s ease; /* Плавный переход при изменении цвета */
    position: absolute; /* Абсолютное позиционирование */
    top: 20px; /* Отступ сверху */
    right: 20px; /* Отступ справа */
    display: flex; /* Используем flex для выравнивания */
    align-items: center; /* Выравнивание по вертикали */
}

.lng-part {
    color: gray; /* Начальный цвет для неактивного языка */
}

.slash {
    color: gray; /* Цвет для слеша */
    margin: 0 5px; /* Отступы вокруг слеша */
}

.lng-part.active {
    color: #4CAF50; /* Цвет активного языка (зелёный) */
}





#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color: rgba(128, 128, 128, 0.2);;
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background-image: url('button_scroll2.png');
    background-size: 30px;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 35%;
}

#scrollToTopBtn:hover {
    width: 40px;
    height: 40px;
    background-size: 26px;
    background-position: center;
    bottom: 23px;
    right: 23px;
    opacity: 100%;
    box-shadow: 0 0 10px rgba(128, 128, 128, 0.5);
}
                                                        /*FOOTER*/

footer {
    display: grid;
    grid-template-rows: auto;
    grid-row: 3;
    background-color: #003300;
    color: #fff;
    padding: 0;
    box-shadow: 0 0 10px rgba(128, 128, 128, 0.5);
}

.contact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 20px;
    column-gap: 20px;
}

.contact p {
    grid-column: 1 / span 4;
}

.footer_contact {
    text-align: center;
}

.contact_1 {
    display: grid;
    max-width: 350px;
    min-height: 200px;
}

.contact_1 p {
    margin: 8px 0;
}

.contact_2 {
    display: grid;
    max-width: 350px;
    min-height: 200px;
}

.contact_2 p {
    margin: 8px 0;
}

.contact_up {
    align-self: flex-start;
}

.contact_down {
    align-self: flex-end;
}

.info {
    display: grid;
    grid-column: span 2;
    justify-self: end;
}

.info p {
    font-size: 15px;
    margin: 5px 0;
    justify-self: end;
}