
#settingButtons {
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.settingButton{
    border: solid 1px var(--settings); 
    border-radius: 5px;
    max-width: 225px;
    max-height: 100px;
    width: 20vw;
    height: 7vw;
    color: var(--settings);
    background-color: rgb(0, 0, 0);
    text-align: center;
    font-size: calc(18px * var(--font-scale));
    transition:  0.25s ease-in-out;
    position: relative;
    cursor:pointer;
}

/* .settingButton:active {
    transform: scale(0.98); 
} */

.settingButton .settingButton {
    border-width: 0px;
}

.settingButton:hover{
    background-color: var(--settings);
    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, .myPopupBackdropSub, #superPopupBackdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* цвет затемнения */
    z-index: 9900; /* должен быть меньше, чем у самого окна */
    display: none; /* начальное состояние - затемнение скрыто */
}

#superPopupBackdrop {
    background-color: transparent;
}

.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/misc/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%;
}

.versionButtons {
    display: flex;
    height: 100%;
    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 !important;
}
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: var(--settings);
}

.selectSetting:active {
    transform: scale(1); 
}

#inputBorder{
    border-style: solid;
    border-width: 2px;
    border-radius: 5px;
    width: 490px;
    height: 200px;
    border-color:var(--settings);
    color: var(--settings);
    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;
}

#majorVersionSelection {
    top: 5px;
    left: 10px;
    z-index: 9998;
    position: fixed;
}

#majorVersionSelection button {
    width:40px;
    height:40px;
    border: solid 0px #ffffff;
    color: white;
    text-align: center;
    border-width: 1px;
    background-color: #000000;
    border-radius: 3px;
    cursor: pointer;
}

#majorVersionSelection button:hover, .closeWindow:hover {
    background-color: #313131;
}

.ghostSettingsText {
    color:var(--settings);
    position: absolute;
    top: 0;
    z-index: 9999;
    font-weight: bold;
    width: 100%;
    border-bottom: 1px solid var(--settings);
    pointer-events: none;
    font-size: calc(16px * var(--font-scale));
}

.progress-bar-base.progressbar-option2 #progressbar {
    background-image: radial-gradient(yellow, #040000 170%);
}

.progress-bar-base.progressbar-option3 #progressbar {
    background-image: radial-gradient(aqua, #040000 170%);
}

.progress-bar-base.progressbar-option4 #progressbar {
    background-image: radial-gradient(forestgreen, #040000 170%);
}

.progress-bar-base.progressbar-option5 #progressbar {
    background-image: radial-gradient(hotpink, #040000 170%);
}

.progress-bar-base.progressbar-option6 {
    background-color: white;
}

.progress-bar-base.progressbar-option6 span {
    color: white;
    mix-blend-mode: difference;
}

.progress-bar-base.progressbar-option6 #progressbar {
    background-image: radial-gradient(#000000, #040000 170%);
}

.progress-bar-base.progressbar-option7 {
    background-color: rgb(1, 142, 185);
}

.progress-bar-base.progressbar-option7 #progressbar {
    background-image: radial-gradient(#e9fa01, #040000 170%);
}

.progress-bar-base.progressbar-option8 {
    background-color: black;
    color: white;
    text-shadow: 1px 1px black, -1px -1px black, 1px -1px black, -1px 1px black;
}

.progress-bar-base.progressbar-option8 #progressbar {
    background-image: radial-gradient(red, #040000 170%);
}

.progress-bar-base.progressbar-option9 {
    color: white;
    text-shadow: 1px 1px black, -1px -1px black, 1px -1px black, -1px 1px black;
}

.progress-bar-base.progressbar-option9 #progressbar {
    background-image: url('./images//svg/two-key-arrow-right-svgrepo-com.svg');
    background-size: contain;
    background-repeat: repeat;
    background-color: black;
}

/* === ANTIMATTER THEME === */

body.theme-option2 {
    background-color: #141316
}

body.theme-option2 gt {
    color: #df5050;
    text-shadow: 0 0 0;
}

body.theme-option2 .coinUpgradeButton, body.theme-option2 .tabButton, body.theme-option2 .settingButton, body.theme-option2 #hardRes, body.theme-option2 .maxBuy, body.theme-option2 #inputBorder, body.theme-option2 .whiteButton, body.theme-option2 .closeWindow, body.theme-option2 .versionButton {
    border-color: #1bbb36;
    color: white;
    background-color: #1d1b22;
}

body.theme-option2 .coinUpgradeButton:hover, body.theme-option2 .settingButton:hover, body.theme-option2 #hardRes:hover, body.theme-option2 .maxBuy:hover, body.theme-option2 .whiteButton:hover, body.theme-option2 .closeWindow:hover, body.theme-option2 .versionButton:hover {
    color: rgb(0, 0, 0);
    background-color: #1bbb36;
    box-shadow: none;
}

body.theme-option2 .tabButton:hover {
    color: rgb(0, 0, 0);
    background-color: #1bbb36;
}

body.theme-option2 .coinUpgradeButton.purchased {
    background-color: #1bbb36;
}

body.theme-option2 button:disabled {
    border-color: #b84b5f !important;
    background-color: #752626 !important;
}

body.theme-option2 .ghostSettingsText {
    color: white;
    border-color: white
}

body.theme-option2 .upgradeButton {
    background-color: #1d1b22
}

body.theme-option2 .prestigeInput {
    border-color: var(--shard)
}

body.theme-option2 .selectSetting:hover {
    background-color: #1d1b22;
    color: white;
}

body.theme-option2 .prestigeButton:hover {
    background-color: var(--crystal) !important;
    color: black !important;
}

body.theme-option2 .reflashButton:hover {
    background-color: var(--reflash) !important;
    color: black !important;
}

body.theme-option2 .acceleratorUpgrade:hover {
    background-color: #9226a821 !important;
}

body.theme-option2 #acceleratorMachineProgressBar {
    background-image: radial-gradient(#390044, #040000 170%) !important; 
}

body.theme-option2 .fortuneButton2:hover {
  background-color: var(--fortune) !important;
  color: rgb(0, 0, 0) !important;
}

body.theme-option2 #balanceSelect:hover {
  background-color: white !important;
  color: rgb(0, 0, 0) !important;
}

body.theme-option2 #windowGame, body.theme-option2 .gameWindow {
    background-color: rgb(29, 27, 34);
    border-color: #1bbb36 !important;
}

body.theme-option2 .tabButton.active,
body.theme-option2 .tabButton[aria-selected="true"] {
    background-color: #1bbb36;
    color: rgb(0, 0, 0);
    border-color: rgb(0, 0, 0);
}
body.theme-option2 .tabButton.active:hover,
body.theme-option2 .tabButton[aria-selected="true"]:hover {
    background-color: #1bbb36;
}

body.theme-option2 .shopSelection.active,
body.theme-option2 .shopSelection[aria-selected="true"] {
    background-color: #1bbb36;
    color: rgb(0, 0, 0);
    border-color: rgb(0, 0, 0);
}
.shopSelection.active:hover,
.shopSelection[aria-selected="true"]:hover {
    background-color: #1bbb36
}

body.theme-option2 .bulkBuySelection.active,
body.theme-option2 .bulkBuySelection[aria-selected="true"] {
    background-color: #1bbb36;
    color: rgb(0, 0, 0);
    border-color: rgb(0, 0, 0);
}
body.theme-option2 .bulkBuySelection.active:hover,
body.theme-option2 .bulkBuySelection[aria-selected="true"]:hover {
    background-color: #1bbb36;
}

/* === OLED THEME === */

body.theme-option3 {
    background-color: #000000;
}

/* === PIXEL COIN === */

#coinGain.coin-option2 {
    background-image: url("./images/misc/Coin2Off.png");
    filter: drop-shadow(0 0 15px var(--coin));
    image-rendering: pixelated;
}

#coinGain.coin-option2:hover {
    background-image: url("./images/misc/Coin2On.png");
    filter: drop-shadow(0 0 15px var(--crystal));
}