/* --- Общие элементы страниц --- */
@font-face {
    /*original src: https://fonts-online.ru/fonts/determination-monorus-lyajk*/
    font-family: 'DeterminationRusFont';
    src: url('fonts/determinationmonorusbylyajk.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: black;
    background-image: url('images/CHAOTICVERSE_1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: background-image;
}

img {
    width: 99.2vw;
    height: auto;
    display: block;
}

h1 {
    margin-top: 40px;
    margin-bottom: 5px;
}

h2 {
    margin-top: 20px;
    margin-bottom: 5px;
}

a {
    color: rgb(251,255,0);
    text-decoration: none;
}

a:hover {
    color: rgb(251,204,0); /* цвет при наведении */
    text-decoration: underline; /* добавить подчёркивание при наведении */
}

.divider {
    border: none !important;
    height: 2px !important;
    background-color: white !important;
    width: 100% !important;
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

.fixed-overlay {
    position: fixed;
    top: 10%;
    left: 5%;
    right: 5%;
    bottom: 5%;
    width: auto;
    max-height: 90vh;
    max-width: 90vw;
    background-color: rgba(0, 0, 0, 0.85);
    border: 2px solid white;
    box-sizing: border-box;
    z-index: 1000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px;
}

.fixed-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.fixed-overlay::-webkit-scrollbar {
    width: 8px;
}
.fixed-overlay::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 4px;
}

.overlay-footer-text {
    text-align: center;
    color: white;
    font-family: 'DeterminationRusFont', monospace;
    font-size: 16px;
    opacity: 0.75;
    margin-top: 20px;
}

.minimize-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: rgb(255,255,250);
    font-family: 'DeterminationRusFont', monospace;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}

.restore-button {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: rgb(255,255,250);
    border-radius: 0;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-family: 'DeterminationRusFont', monospace;
    color: black;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 0 10px rgba(255,255,206, 0.6);
    display: none;
}

.lang-toggle-button {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    padding: 4px 10px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid white;
    cursor: pointer;
    font-family: 'DeterminationRusFont', monospace;
    transition: background-color 0.3s;
}

.lang-toggle-button:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0 10px;
}

.nav-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-button img {
    width: 250px;  /* размер кнопки */
    height: auto;
    max-width: 100%;
    transition: transform 0.2s ease;
}

.nav-button:hover img {
    transform: scale(1.1); /* эффект при наведении */
}

.nav-long-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    max-width: 100%;
    display: inline-block;
}

.nav-long-button img {
    width: auto;
    height: 70px;
    max-height: 100%;
    display: block;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.nav-long-button:hover img {
    transform: scale(1.1); /* эффект при наведении */
}

@media (max-width: 768px){
    .nav-button img {
        width: 140px;
    }

    .nav-long-button img {
        height: 30px;
    }
}

/* --- Элементы главной страницы --- */
.overlay-content-home-page {
    font-family: 'DeterminationRusFont', monospace;
    font-size: 28px;
    color: white;
    text-align: center;
    padding: 20px;
    line-height: 1.6;
    margin-bottom: 5px;
}

.disclaimer {
    font-size: 18px;
    opacity: 0.75;
}

.logo-image {
    display: block;
    max-width: 60%;
    height: auto;
    margin: 5px auto 10px auto;
}

.nav-app-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-app-icon img {
    width: 80px;
    height: auto;
    max-width: 100%;
    transition: transform 0.2s ease;
}

.nav-app-icon:hover img {
    transform: scale(1.1); /* эффект при наведении */
}

.center-row {
    justify-content: center; /* выравнивание по центру */
    padding: 0 40px;
    margin-top: 20px;
}

.gif-picture {
    background: none;
    border: none;
    padding: 0;
}

.gif-picture img{
    width: 500px;
    height: auto;
    max-width: 100%;
}

@media (max-width: 768px) {
    .gif-picture img{
        width: 390px;
    }

    .nav-app-icon img {
        width: 50px;
    }

    .overlay-content-home-page {
        font-size: 20px;
        padding: 20px;
    }

    .disclaimer {
        font-size: 16px;
    }
}

/* --- Элементы страницы персонажей --- */
.overlay-content-characters-page {
    font-family: 'DeterminationRusFont', monospace;
    font-size: 26px;
    color: white;
    text-align: center;
    padding: 40px;
    line-height: 1.6;
    margin-bottom: 5px;
}

@media (max-width: 900px) {
    .overlay-content-characters-page {
        font-size: 18px;
        padding: 20px;
    }
}

.link-text{
    font-size: 20px
}

@media (max-width: 900px){
    .link-text{
        font-size: 16px
    }
}

.characters-image {
    display: block;
    max-width: 50%;
    height: auto;
    margin: 5px auto 10px auto;
}

@media (max-width: 900px) {
    .characters-image {
        max-width: 90%;
    }
}

.character-info-section {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.character-info-block {
    display: flex;
    align-items: center;
    gap: 80px;
    flex-wrap: nowrap;
}

@media (max-width: 900px) {
    .character-info-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px; /* уменьшает отступ */
    }
}

.character-icon {
    width: 150px;
    height: 150px;
    background-color: white;
    border: 2px solid #ccc;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.character-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.character-name {
    color: white;
    font-weight: bold;
    font-size: 32px;
    min-width: 150px;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .character-name {
        font-size: 24px;
        min-width: auto;
        white-space: normal;
    }
}

.character-description {
    color: white;
    font-size: 24px;
    flex-grow: 1;
    word-wrap: break-word;
    margin-left: -50px
}

@media (max-width: 900px) {
    .character-description {
        margin-left: 0;
        font-size: 18px;
    }
}

.second-characters-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 100px;
    margin-top: 30px;
}

.second-character-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
    margin-bottom: -50px;
}

.second-character-icon {
    width: 150px;
    height: 150px;
    background-color: white;
    border: 2px solid #ccc;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    overflow: hidden;
}

.second-character-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.second-character-text {
    text-align: center;
    margin-top: 10px;
}

.char-name {
    color: white;
    font-weight: bold;
    font-size: 28px;
    white-space: nowrap;
}

.char-author {
    color: #ccc;
    font-size: 20px;
    margin-top: 4px;
}

@media (max-width: 900px) {
    .second-character-card {
        width: 100px;
    }

    .second-character-icon {
        width: 100px;
        height: 100px;
    }

    .char-name {
        font-size: 20px;
    }

    .char-author {
        font-size: 12px;
    }
}

/* --- Элементы страницы информации --- */
.overlay-content-information-page{
    font-family: 'DeterminationRusFont', monospace;
    font-size: 26px;
    color: white;
    text-align: center;
    padding: 40px;
    line-height: 1.6;
    margin-bottom: 5px;
}

.information-image {
    display: block;
    max-width: 30%;
    height: auto;
    margin: 5px auto 10px auto;
}

.resistance-poster {
    display: block;
    max-width: 50%;
    height: auto;
    margin: -50px auto -50px auto;
}

.timestream-image {
    display: block;
    max-width: 70%;
    height: auto;
    margin: 5px auto 5px auto;
}

@media (max-width: 768px) {
    .overlay-content-information-page {
        font-size: 18px;
        padding: 20px;
    }

    .resistance-poster{
        max-width: 70%;
        margin: 10px auto 10px auto;
    }

    .information-image{
        max-width: 50%;
    }
}

/* --- Элементы страницы оглавления --- */
.overlay-content-contents-page{
    font-family: 'DeterminationRusFont', monospace;
    font-size: 26px;
    color: white;
    text-align: center;
    padding: 40px;
    line-height: 1.6;
    margin-bottom: 5px;
}

.contents-image {
    display: block;
    max-width: 50%;
    height: auto;
    margin: 5px auto 10px auto;
}

@media (max-width: 900px) {
    .contents-image {
        max-width: 90%;
    }
}

#toc {
    padding: 0 30px;
    margin: -20px auto -40px auto;
    color: white;
    font-family: 'DeterminationRusFont', monospace;
    text-align: center; /* Выравнивание по левому краю */
}

.season-block {
    margin-top: -30px;
    padding: 10px 0;
}

.season-block h2 {
    font-size: 60px;
    color: rgb(251,204,0);
    margin-bottom: 10px;
}

.season-block h3 {
    font-size: 45px;
    color: rgb(232,219,0);
    margin-top: 15px;
    margin-bottom: 10px;
}

.entry {
    margin-bottom: 20px;
}

.entry strong {
    display: block;
    font-size: 32px;
    margin-bottom: 10px;
    color: rgb(255,255,243);
}

.entry ul {
    padding-left: 0;
    list-style: none;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.entry li {
    font-size: 24px;
    margin: 0;
}

.entry a {
    color: rgb(251,255,0);
    text-decoration: none;
    transition: color 0.2s ease;
}

.entry a:hover {
    color: rgb(250,179,7);
    text-decoration: underline;
}

.dash-entry {
    color: rgb(255,255,251);
    font-style: italic;
    font-size: 22px;
    margin-bottom: 12px;
}

@media (max-width: 900px) {
    #toc {
        padding: 0 20px;
        margin: -10px auto -20px auto;
        text-align: center;
    }

    .season-block h2 {
        font-size: 42px;
        margin-bottom: 8px;
    }

    .season-block h3 {
        font-size: 28px;
        margin-top: 12px;
        margin-bottom: 8px;
    }

    .entry strong {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .entry ul {
        gap: 8px;
    }

    .entry li {
        font-size: 18px;
    }

    .dash-entry {
        font-size: 18px;
        margin-bottom: 10px;
    }
}

/* --- Элементы страницы о нас --- */
.overlay-content-about-us-page{
    font-family: 'DeterminationRusFont', monospace;
    font-size: 26px;
    color: white;
    text-align: center;
    padding: 40px;
    line-height: 1.6;
    margin-bottom: 5px;
}
.about-us-image {
    display: block;
    max-width: 60%;
    height: auto;
    margin: 5px auto -100px auto;
}

@media (max-width: 900px){
    .about-us-image {
        max-width:90%;
        margin: 5px auto -55px auto;
    }
}

.people-info-section {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.person-info-block {
    display: flex;
    align-items: center;
    gap: 80px;
    flex-wrap: nowrap;
}

@media (max-width: 900px) {
    .person-info-block {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px; /* уменьшает отступ */
    }
}

.person-icon {
    width: 150px;
    height: 150px;
    background-color: white;
    border: 2px solid #ccc;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.person-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-name {
    color: white;
    font-weight: bold;
    font-size: 32px;
    min-width: 150px;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .person-name {
        font-size: 24px;
        min-width: auto;
        white-space: normal;
    }
}

.titles-text{
    font-size: 20px
}

@media (max-width: 900px){
    .titles-text{
        font-size: 16px
    }
}

.person-description {
    color: white;
    font-size: 24px;
    flex-grow: 1;
    word-wrap: break-word;
    margin-left: -50px
}

@media (max-width: 900px) {
    .person-description {
        margin-left: 0;
        font-size: 18px;
    }
}

.people-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 100px;
    margin-top: 30px;
}

.person-group-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 200px;
}

.person-group-icon {
    width: 150px;
    height: 150px;
    background-color: white;
    border: 2px solid #ccc;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.person-group-icon:hover {
    border-color: rgb(251,204,0);
}

.person-group-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.person-group-text {
    text-align: center;
    margin-top: 10px;
}

.person-group-name {
    color: white;
    font-weight: bold;
    font-size: 28px;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .person-group-card {
        width: 100px;
    }

    .person-group-icon {
        width: 100px;
        height: 100px;
    }

    .person-group-name {
        font-size: 20px;
    }
}

/* --- Элементы страницы прогресса --- */
.overlay-content-progress-page{
    font-family: 'DeterminationRusFont', monospace;
    font-size: 26px;
    color: white;
    text-align: center;
    padding: 40px;
    line-height: 1.6;
    margin-bottom: 5px;
}

.progress-image {
    display: block;
    max-width: 40%;
    height: auto;
    margin: 5px auto auto auto;
}

.progress-section {
    padding: 0 10px;
    margin-bottom: 40px;
}

.progress-section h2 {
    font-size: 50px;
    color: rgb(251, 204, 0);
    margin-bottom: 10px;
}

.progress-bar-container {
    margin-bottom: 15px;
}

.progress-bar-label {
    font-size: 26px;
    margin-bottom: 5px;
    color: white;
}

.progress-bar {
    height: 20px;
    transition: width 0.5s ease;
}

.progress-bar.plot {
    background-color: rgb(237,35,85);
}

.progress-bar.scripts {
    background-color: rgb(255, 123, 0);
}

.progress-bar.comics {
    background-color: rgb(251, 255, 0);
}

.progress-bar.text {
    background-color: rgb(251, 249, 250);
}

@media (max-width: 900px) {
    .progress-section {
        padding: 0 10px;
        margin-bottom: 30px;
    }

    .progress-section h2 {
        font-size: 36px;
        margin-bottom: 8px;
    }

    .progress-bar-label {
        font-size: 20px;
        margin-bottom: 4px;
    }

    .progress-bar {
        height: 16px;
    }
}
