body {
    font-family: 'Nunito', sans-serif;
    /* background-color: #EDEDED; */
}

#back-to-map {
    position: absolute;
    top: -10px;
    left: -25px;
}

#back-to-map img {
    height: 100px;
    width: 200px;
}

/* #back-to-map::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 24%;
    transform: translateX(-50%);
    width: 34px;
    height: 4px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    transition: width 0.3s ease, background-color 0.3s ease;
} */

/* #back-to-map img:hover {
    transform: translateY(-5px);
}

#back-to-map:hover::after {
    width: 28px;
    background-color: rgba(0, 0, 0, 0.15);
} */

h1 {
    display: none;
}

.wrapper {
    max-width: 1500px;
    margin: 0 auto;
    position: relative; 
    /* padding-top: 20px; */
}

.header {
    display: block;
    height: 50px;
    width: 100%;
}

.update-date {
    position: absolute; 
    top: 30px;             
    right: 25px;           
}

.container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    align-items: flex-start; 
    /* background-color: #EDEDED; */
}

.toc {
    width: 250px;
    margin: 28px 20px 0 0;
    position: sticky;
    top: 20px;
    /* background-color: #f8f9fa; */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: 80%;
    max-height: 600px;
    overflow-y: auto;
}

.toggle .active{
    padding: 18px;
    border-radius: 8px;
}

.toc .active {
    /* box-shadow: 0 3px 4px rgba(114, 114, 114, 0.5); */
    background-color: #f4f4f4;
    border-radius: 8px;
}

/* arrow map menu*/
.unique-arrow {
    transform: rotate(90deg); 
    transition: transform 0.3s ease; 
}

.toc .sub-toggle.active {
    /* box-shadow: 0 3px 4px rgba(114, 114, 114, 0.5); */
    background-color: #f4f4f4;
    border-radius: 8px;
}

.translatable {
    position: relative;
    width: 250px;
}

.update-block {
    position: absolute;
    right: 0;
    padding-right: 15px;
}

.toc h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
    line-height: 1.4; 
}

.toc h2 img {
    width: 30px;
    height: 30px;
    vertical-align: bottom;
    position: absolute;
    right: 0;
    margin: auto 0;
}

.toc ul {
    list-style-type: none;
    padding: 0;
}

.toc li:last-child {
    border-bottom: none;
}

.toc a {
    font-size: 17px;
    display: block;
    margin: 0 0 10px 0;
    padding: 4px 6px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
}

.toc a:hover {
    background-color: #f4f4f4;
}

.toc ul ul {
    margin-left: 20px;
    padding-left: 0;
}

/* .toc ul ul li {
    margin-bottom: 8px;
} */

.toc ul ul a {
    /* margin: 5px 0px; */
    padding: 8px 6px;
    font-size: 15px;
    display: inline-block;
}

.highlight_green {
    border-radius: 8px;
    background-color: #c3fd80;
}

.toc ul ul a:hover {
    background-color: #f4f4f4;
}

.toc-section-arrow-right {
    width: 15px;
}


/* arrow part */
a.toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 8px;
    border-radius: 8px;
}

.arrow {
    display: inline-block;
    margin-left: 10px; 
    transition: transform 0.3s ease;
    transform: rotate(-90deg);
}

.toc .arrow.rotate {
    transform: rotate(90deg);
}

.highlight {
    background-color: #c3fd80;
    transition: background-color 1s ease;
}


.toc .sub-list {
    display: none;
    list-style-type: disc;
    margin-left: 40px;
}

.toc-date-update {
    position: relative;     
    left: 106px;
}

.content {
    flex: 1;
    min-height: 80vh; 
    max-width: 100%;
}

.content img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.content section {
    margin-bottom: 40px;
}

.content h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.content p {
    font-size: 16px;
    line-height: 1.6;
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 40px;
    display: none;
    transform: rotate(-90deg);
    color: #797979;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 20px;
    font-size: 27px;
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s, color 0.3s;
}

#back-to-top:hover {
    color: rgba(0, 0, 0, 0.2);
}

.arrow img {
    height: 12px;
    width: 12px;
}

.scroll-up {
    display: inline-block;
    transition: transform 0.3s;
    font-size: larger;
}

.scroll-up {
    height: 15px;
    width: 15px;
    vertical-align: middle;
}

#back-to-top:hover .scroll-up {
    transform: translateX(6px);
}

.copy-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    z-index: 1000;
}

.copy-popup.show {
    opacity: 1;
    visibility: visible;
}


/* mob */
@media screen and (max-width: 768px) {
  
    body {
        line-height: 1.5;
        margin: 0;
        padding: 0;
    }

    .wrapper {
        padding: 10px;
    }

    .header {
        display: block;
        height: 50px;
        width: 100%;
    }

    .update-date {
        display: block;
        text-align: center;
        margin-bottom: 15px;
        font-size: 0.9rem;
        color: #666;
    }

    #back-to-map {
        display: flex;
        justify-content: center;
        margin-bottom: 15px;
    }

    #back-to-map img {
        position: relative;
        top: 14px;
        left: 50px;
        width: 154px;
        height: 80px;
    }

    #back-to-top {
        position: fixed;
        bottom: 20px;
        right: 0;  
    }

    .container {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .translatable {
        position: relative;
        width: 230px;
    }

    .toc {
        width: 240px;
        background-color: #ffffff;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }


    .toc h2 {
        font-size: 1.2rem;
        margin-bottom: 10px;
        color: #333;
    }

    .toc h2 img {
        margin-left: 54px;
    }

    .toc ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .toc ul li {
        margin-bottom: 10px;
    }

    .toc a {
        text-decoration: none;
        color: #007bff;
        font-size: 0.95rem;
    }

    .toc a:hover {
        text-decoration: underline;
    }

    .toc-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
    }
    .toc-content.expanded {
        max-height: 500px; /* Установите значение, достаточное для отображения всего содержимого */
        transition: max-height 0.5s ease-in;
    }

    .content {
        background-color: #ffffff;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .content h2 {
        font-size: 1.2rem;
        margin-bottom: 10px;
        color: #333;
    }

    .content p {
        font-size: 0.95rem;
        margin-bottom: 10px;
        color: #555;
    }

    .content img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        margin-bottom: 15px;
    }

    .content section {
        margin-bottom: 20px;
    }
}
