body {
    background-color: #0d0f1a;
    color: #e0e0e0;
    font-family: 'Nunito', 'Montserrat', sans-serif;
}

.overflow-hide {
    overflow: hidden;
}

.logo {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('/assets/img/bg_main.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(40%);
    top: 30px;
}

.logo-mobile {
    display: none;
    filter: brightness(40%);
}

.container {
    height: 79vh;
    margin-top: 6rem;
    max-width: 1600px;
    /* Але не більше 1600px */
}

.container,
#footer {
    color: white;
}

#footer {
    padding: 0;
}

.main-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #3498db #1a1a2e;
}

:root::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

:root::-webkit-scrollbar-track {
    background: #12141d;
    border-radius: 10px;
}

:root::-webkit-scrollbar-thumb {
    background-color: #313338;
    border-radius: 20px;
    border: 2px solid #12141d;
}

:root::-webkit-scrollbar-thumb:hover {
    background-color: #3498db;
}

#footer {
    bottom: 0px;
    justify-self: center;
}

@media screen and (max-width: 660px) {
    .logo {
        display: none;
    }

    .logo-mobile {
        display: block;
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        top: 50px;
        object-fit: cover;
        z-index: -1;
    }

    .container,
    #footer {
        padding-left: 0px;
    }
}

.box,
.topic-list {
    position: relative;
    width: 100%;
    height: 100%;
    background: #010411;
    border-radius: 0.75rem;
    padding: 10px 10px;
    margin: 0.5rem 0.5rem 0.5rem 1.5rem;
}

.form-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.form-btn {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-content: center;
    margin-top: 1.5rem;
}

.sub-box,
.topic {
    width: 100%;
    height: 100%;
    padding: 10px 10px;
    background: #0c0d14;
    border-radius: 0.75rem;
}

.sub-section,
.topic .title {
    margin-bottom: 0.5rem;
    padding: 0.25rem;
    margin-left: 2rem;
}

.box-title {
    font-size: 1.5rem;
    margin-left: 1rem;
}

.sub-box button {
    padding: 10px 15px;
}

button {
    background: transparent;
    border: none;
    color: #a0a0b0;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.2s;
}

input,
select,
select option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #2a2d3e;
    width: 65%;
    max-width: 80%;
    border-radius: 0.25rem;
    padding: 10px;
    margin-bottom: 12px;
    color: #fff;
}

select option,
select optgroup {
    background-color: #222;
    color: #eee;
}

optgroup {
    font-size: 0px;
    label: none;
}

optgroup option {
    font-size: 14px;
    padding-left: 10px;
}

button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.preview-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #3a3d4e;
    padding: 5px 15px;
    margin-left: auto;
}

.text-area {
    min-height: 500px;
    padding: 20px;
    outline: none;
    background-size: 200px 200px;
}

.text-area ul {
    list-style: disc;
    margin-left: 20px;
    color: white;
}

.text-area div {
    white-space: pre-wrap;
}

#title,
#section {
    outline: none;
    background-size: 200px 200px;
}

#module_text blockquote {
    position: relative;
    margin: 15px 0;
    padding: 15px 20px 15px 45px;
    background: rgba(255, 255, 255, 0.05);
    border-left: 5px solid #3498db;
    border-radius: 0 8px 8px 0;
    color: #ccc;
    font-style: italic;
    line-height: 1.6;
}

#module_text blockquote a {
    color: #5dade2;
    text-decoration: underline;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 5px;
    width: 100%;
}