/* MAIN STYLES */
body {
    background-color: #17191f;
    color: #ffffff;
}
.echpohmak-container {
    font-family: 'Montserrat', sans-serif;
    max-width: -webkit-fill-available;
}
::-webkit-scrollbar-thumb {
    background-color: #3498db!important;
    outline: 1px solid #3498db!important;
    border-radius: 3px;
}
#lk_gototop.ipsButton {
    background: #3498db!important;
    background-image: #3498db!important;
}
.ipsApp .ipsButton_gototop {
    box-shadow: none!important;
}

/* HEADERS STYLES */
h2 {
    color: #3498db;
    font-weight: bold;
    font-size: 30px;
    margin-top: 0px;
    margin-bottom: 3px;
}
.echpohmak-header {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 40px;
    color: #3498db;
    text-transform: uppercase;
    word-break: normal;
    letter-spacing: 1px;
    position: relative;
}
.echpohmak-header::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 80px;
    height: 4px;
    border-radius: 10px;
    background-color: #5d5e74;
    transform: translateX(-50%);
}

/* HR */
.echpohmak-hr {
    height: 3px;
    border-radius: 10px;
    border: none;
    background: #3498db;
}

/* SPOILER STYLES+MOBILE ADAPTATION */
.echpohmak-spoiler-container {
    background-color: #1e1e2d;
    color: #5d5e74;
    padding: 10px 15px;
    margin: 3px 0;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    border: 1px solid #3498db87;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}
.echpohmak-spoiler-header {
    background-color: #1e1e2d;
    padding: 1px 0px 0px 40px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    font-weight: bold;
    user-select: none;
    max-height: 19px;
}
.echpohmak-spoiler-header span {
    line-height: 25px;
    font-weight: bold;
    position: relative;
    top: -2px;
}
.echpohmak-spoiler-contents {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, margin 0.5s ease;
    padding: 0;
    padding-top: 5px;
    margin-top: 0;
    margin-bottom: 0;
}
.echpohmak-spoiler-contents ul {
    padding-left: 17px;
    margin: 0px;
}
.echpohmak-spoiler-contents li span {
    font-size: 16px;
}
.echpohmak-spoiler-container.open .echpohmak-spoiler-contents {
    max-height: 100%;
    margin-top: 0px;
    margin-bottom: 0px;
}
.echpohmak-spoiler-header::before {
    content: '\27A4';
    font-size: 20px;
    position: absolute;
    left: 6px;
    top: -4px;
    transition: transform 0.3s ease;
}
.echpohmak-spoiler-container.open .echpohmak-spoiler-header::before {
    transform: rotate(90deg);
}
@media (max-width: 768px) {
    .echpohmak-spoiler-container {
        font-size: 16px;
        padding: 8px 12px;
        margin: 4px 0;
    }
    .echpohmak-spoiler-header {
        max-height: none;
        white-space: normal;
        padding: 5px 0 0 20px;
    }
    .echpohmak-spoiler-header::before {
        left: 5px;
        top: 2px;
    }
    .echpohmak-spoiler-header span {
        line-height: 1.4;
        top: 0px;
        left: 7px;
    }
    .echpohmak-spoiler-contents {
        padding-top: 5px;
    }
}

/* UNIVERSAL FAKE-BUTTON IN MAIN COLOR */
.fakebutton {
    display: block;
    max-width: max-content;
    margin-left: auto;
    margin-right: auto;
    padding: 3px 7px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    color: #fff;
    text-decoration: none !important;
    background-color: #3498db;
    border: 1px solid #3498db;
    border-radius: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.fakebutton:hover {
    background-color: #2980b9;
    color: #fff;
}

/* FAKE NOTIFICATION FOR COPY-BUTTON */
#fakenotification {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    border: none;
    border-radius: 10px;
    color: white;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
    z-index: 1000;
    animation: fadeOut 3s forwards;
}

@keyframes fadeOut {
  to { opacity: 0; }
}

/* LINKS STYLES */
.echpohmak-link {
    text-decoration: none!important;
    transition: color 0.3s ease;
}
.echpohmak-link:hover {
    color: #3498db;
}

/* DIVIDER */
.echpohmak-divider {
    background-color: #1e1e2d;
    color: #5d5e74;
    padding: 10px 15px;
    margin: 30px 0;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* TABLE OF CONTENTS STYLES */
/* GENERAL */
.linkss ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.linkss li {
    margin-bottom: 5px;
    position: relative;
}
.linkss a.toc-link {
    text-decoration: none !important;
    font-size: 20px;
    font-weight: 500;
    color: #ffffff;
    transition: color 0.3s ease-in-out !important;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 10px;
}

/* MAIN HOVER COLOR */
.linkss a.toc-link:hover {
    color: #2980b9;
    background-color: rgba(41, 128, 185, 0.1);
}
/* GENERAL */
.linkss .menu-header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.linkss .toggle-submenu {
    display: inline-block;
    margin-left: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 16px;
    height: 16px;
    position: relative;
}
.linkss .toggle-submenu::before {
    content: '\27A4';
    font-size: 20px;
    color: #5d5e74;
    position: absolute;
    top: -6.5px;
    left: -6px;
    transition: transform 0.3s ease;
    transform: scaleX(-1);
}
.linkss .toggle-submenu[aria-expanded="true"]::before {
    transform: rotate(90deg);
}
.linkss .sub-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.5s ease, opacity 0.5s ease, transform 0.5s ease;
    padding-left: 20px;
}
.linkss .sub-menu.open {
    max-height: 1000px;
    opacity: 1;
    transform: translateY(0);
}