
#settingButtons {
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.settingButton{
    border: solid 1px rgb(80, 82, 255); 
    border-radius: 5px;
    max-width: 225px;
    max-height: 100px;
    width: 20vw;
    height: 7vw;
    color: rgb(85, 88, 255);
    background-color: rgb(0, 0, 0);
    text-align: center;
    font-size: calc(18px * var(--font-scale));
    transition:  0.25s ease-in-out;
}

.settingButton:active {
    transform: scale(0.98); 
}

.settingButton:hover{
    background-color: rgb(53, 55, 162);
    color: #000000;
}
#hardRes {
    background-color: rgb(0, 0, 0);
    color:rgb(255, 0, 0);
    border-color:red;
}
#hardRes:hover {
    background-color: rgb(255, 0, 0);
    color:rgb(0, 0, 0);
}

.settingsRow {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.loadfile {
    display:flex;
    justify-content: center;
    text-align: center;
    align-items: center;
}

#file-upload {
    display: none;
}

.file-name {
    display: none;
}

.gameWindow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #000000;
    border: solid 3px #ffffff;
    max-width: 750px;
    max-height: 550px;
    width: 80vw;
    height: 51vh;
    z-index: 9989;
    text-align: left;
    display: none;
    border-radius: 10px;
}
.versionButton {
    border-style: solid;
    width: 70px !important;
    height: 100%;
    border-color: rgb(255, 255, 255);
    color: rgb(255, 255, 255);
    background-color: rgb(0, 0, 0);
    text-align: center;
    font-size: calc(12px * var(--font-scale));
    padding: 0px;
    border-width: 1px;
}

.versionButtonVertical {
    height: 40px;
    width: 100% !important;
    border-bottom-width: 1px;
    border-left-width: 0px;
    border-right-width: 1px;
    margin: 0px;
}

.versionButton:hover {
    color: rgb(0, 0, 0);
    background-color: rgb(255, 255, 255);
}

/* Ensure version/chapter buttons don't shrink so overflow works consistently */
.versionButton, #versionChooser > button, #chapterChooser > button {
    flex: 0 0 auto;
}

.myPopupBackdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* цвет затемнения */
    z-index: 9900; /* должен быть меньше, чем у самого окна */
    display: none; /* начальное состояние - затемнение скрыто */
}

.titleDivClass {
    text-align: center;
    align-items: center;
}

.windowTitle{
    z-index: 9999;
    color:#ffffff;
    font-size: calc(25px * var(--font-scale));
    margin: 0 auto;
    margin-block: 10px;
}

.closeWindow {
    top: 0%;
    right: 0%;
    z-index: 9998;
    width:35px;
    height:35px;
    border: solid 0px #ffffff;
    border-width: 0 0 3px 3px;
    background-color: #000000;
    position: fixed;
    cursor: pointer;
    padding: 1px;
    padding-left: 5px;
    border-radius: 0 5px 0 5px
}

.closeWindow::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background-image: url("images/close.png");
    background-size: contain;
    background-repeat: no-repeat;
}
#versionChooser {
    z-index: 9998;
    display: flex;
    border-top: solid 2px;
    border-bottom: solid 2px;
    border-color: #ffffff;
    width:100%;
    height:10%;
    align-items: center;
    text-align: left;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap; /* keep buttons on single row so horizontal scroll appears */
    -webkit-overflow-scrolling: touch;
}

#chapterChooser {
    z-index: 9998;
    display: flex;
    border-top: solid 2px;
    border-bottom: solid 2px;
    border-color: #ffffff;
    width:100%;
    height:10%;
    align-items: center;
    text-align: left;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
}

#versionDescription {
    margin-left: 5px;
    margin-top: 0.4em;
}
#chapterDescription {
    margin-left: 5px;
    margin-top: 0.4em;
}
.windowDesc {
    overflow-y: auto;
    color:white;
    margin-top:0;
    max-height: 80%;
}

.loreChapter {
    display: none;
}

.unlockedChapter {
    display: block;
    min-width: 85px;
    min-height: 40px;
    border-width: 0 1px 1px 0;
}
body {
    position: relative;
    min-height: 98.9vh;
}
footer {
    position: absolute;
    bottom: 0;
    width: 100%;
}

#autoTimer { 
    height: 15px; 
    width: 155px;
    font-size: calc(12px * var(--font-scale));  
    background-color: #060606;
    color: white;
    border: rgb(170, 170, 170) 1px solid;
    padding: 0;
    border-width: 1px 1px 0px 0px;
    position: fixed;
}

#helpPageChooser{
    display: flex;
    height: 90.5%;
    width: 14%;
    flex-direction: column;
    overflow-y: auto;
}

#helpTitleDiv {
    width: 100%;
}

#helpDiv {
    width: 85%;
    /* margin: 0px; */
    max-height: 500px;
    margin-right: 0px;
}

#gameHelpWindow {
    flex-wrap: wrap;
}

#line {
    background-color: white;
    width: 0.1%;
}

#horizontalLine {
    background-color: white;
    width: 100%;
    height:1.1px;
}

#helpDescription {
    margin-left: 5px;
    margin-top: 5px;
    height: 1px;
}

#helpPageTitle {
    text-align: center;
    font-size: calc(20px * var(--font-scale));
    font-weight: bold;
    margin: 10px;
}

.selectSetting:hover {
    background-color: black;
    color: rgb(53, 55, 162);
}

.selectSetting:active {
    transform: scale(1); 
}


#inputBorder{
    border-style: solid;
    border-width: 2px;
    border-radius: 5px;
    width: 490px;
    height: 200px;
    border-color:rgb(65, 68, 207);
    color: rgb(65, 68, 207);
    background-color: rgb(0, 0, 0);
    text-align: center;
    font-family: "Poly"; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    margin-right: 5px;
    flex-direction: column;
}

#inputText {
    color: rgb(65, 68, 207);
    margin-top: 0;
}

.centerText {
    display: none;
    align-content: center;
    flex-wrap: wrap;
    justify-content: center;
    font-size: calc(23px * var(--font-scale));
    text-align: center;
}

.button-wrapper {
    position: relative;
    display: inline-block;
}

.notification-badge {
    position: absolute;
    top: -3px; 
    right: -3px; 
    width: 15px;
    height: 15px;
    border: 1px solid #ff3838;
    background-color: #000000;
    color: rgb(255, 0, 0);
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    display: none; /* Скрыт по умолчанию */
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
    pointer-events: none;
    z-index: 10;
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.notification-badge {
    animation: pulseBadge 2s infinite;
}