body {
    background-color: #060606;
    /* background-image: linear-gradient(black, gold); */
    background-size: cover; 
    background-repeat: no-repeat;
    margin: 0px;
    font-size: calc(16px * var(--font-scale));
}

button {
    border-width: 1px;
}

#prestigeSubButtons, #mainSubButtons, #settingSubButtons, #statsSubButtons, #achSubButtons, #topButtons, #challengeSubButtons {
    margin: 0 auto;
    display: flex;
    justify-content: center;
}
.titleTab {
    margin: 0 auto;
    color: white;
    font-size: calc(30px * var(--font-scale));
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px
}

.tabButton {
    border-style: solid;
    border-radius: 3px;
    max-height: 35px;
    height: 4vw;
    border-color:rgb(255, 255, 255);
    color: rgb(255, 255, 255);
    background-color: rgb(0, 0, 0);
    text-align: center;
    font-family: "Poly"; 
    font-size: calc(18px * var(--font-scale));
    margin-bottom: 10px;
    cursor: pointer;
    margin-right: 0.3vw;
    white-space: nowrap;
}
.tabButton:hover {
    background-color: rgb(62, 62, 62)
}
.tabButton::before {
    color: black !important;
}

/* Active/selected tab: swap background and text colors */
.tabButton.active,
.tabButton[aria-selected="true"] {
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    border-color: rgb(0, 0, 0);
}
.tabButton.active:hover,
.tabButton[aria-selected="true"]:hover {
    background-color: rgb(230, 230, 230);
}

ut { /*title of upgrade */
    font-weight:900;
    pointer-events: none; /* текст сообщения не мешает кликать по кнопке */
    user-select: none;
}

it {
    font-style: italic;
}

.subButton {
    opacity: 0.85;
    max-height: 30px;
    height: 3vw;
    font-size: calc(16px * var(--font-scale))
}

.tooltip {
    background: #000000;
    color: white;
    font-size: calc(12px * var(--font-scale));
    border-radius: 4px;
    border-color: white;
    border: 2px solid rgb(255, 255, 255);
    display: none;
    max-width: 180px;
    width: 30vw;
    text-align: center;
    word-wrap: break-word;
    padding: 7px;
    z-index: 10000;
}

.tooltip br {
    height: 0px;
}

.tooltip[data-show] {
    display: block;
}

.arrow,
.arrow::before {
    position: absolute;
    width: 8px;
    height: 8px;
    background: inherit;
    background-color: rgb(0, 0, 0);
    border: solid 0px;
    content: '';
}

.arrow {
    visibility: visible;
}

.arrow::before {
    visibility: visible;
    transform: rotate(45deg);
    border-bottom-width: 1.8px;
    border-right-width: 1.8px;
    content: '';
    right: 0px;
    top: 4px
}

.tooltip[data-popper-placement^='top'] > .arrow {
    bottom: 0px;
}

.tooltip[data-popper-placement^='bottom'] > .arrow {
    top: -4px;
}

.tooltip[data-popper-placement^='left'] > .arrow {
    right: -4px;
}

.tooltip[data-popper-placement^='right'] > .arrow {
    left: -4px;
}

.tooltipUpgrade {
    font-size: calc(12px * var(--font-scale));
    padding: 10px
}

#eventSelect {
    border-color: red;
}

#eventSelect:hover {
    background-color: rgba(255, 0, 0, 0.338);
}

#spiritualEvent, #triplePowerEvent {
    flex-direction: column;
    align-items: center;
}

#automationTab {
    display: none;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}
.automationContainer {
    border: 2px solid rgb(202, 255, 248);
    border-radius: 10px;
    display: flex;
    max-height: 150px;
    max-width: 230px;
    width: 20vw;
    height: 20vw;
    background-color: #101010;
    flex-direction: column;
    align-items: center;
    padding: 10px 0px;
}

.automationUpgrade, .automationUpgrade2 {
    border: 2px rgb(202, 255, 248) solid;
    height: 50px;
    background-color:  #101010;
    color: rgb(202, 255, 248);;
    cursor:pointer;
    border-radius: 5px;
    font-size: calc(12px * var(--font-scale));
    line-height: 20px;
    display: block;
}

.automationContainer input {
    max-width: 300px;
    width: 80%;
}


.automationUpgrade:hover, #autoPrestigeMode:hover, .automationUpgrade2:hover {
    background-color: rgb(202, 255, 248);;
    color: black
}

.automationRow {
    display:flex;
    flex-direction: row;
    margin-bottom:20px
}

#prestigeModeDiv input {
    max-width: 300px;
    width: 100%;
    box-sizing: border-box;
}

#prestigeModeDiv {
    display: flex;
    max-width: 300px;
    width: 70%;
}

#autoPrestigeMode {
    border: 2px rgb(202, 255, 248) solid;
    background-color: #101010;
    color: rgb(202, 255, 248);
    cursor: pointer;
    font-size: calc(12px * var(--font-scale));
    border-bottom: 0px;
}

.prestigeInput {
    border: 2px rgb(202, 255, 248) solid;
    background-color: #222222;
    color: white;
}

#autoUmultiInterval, #autoUpowerInterval, #autoUpowerInterval2, #mineralsBulkBuy, #autoUadderInterval, #autoUadderInterval2 {
    font-size: calc(12px * var(--font-scale));
    color: white;
}

input:focus {
    outline: none;
}

input {
    font-family: 'Poly';
}

.challengeDiv, .challengePDiv {
    font-size: calc(20px * var(--font-scale));
    border: white 2px solid;
    border-radius: 10px;
    max-width: 390px;
    width: 15vw;
    display: flex;
    flex-direction: column;
    color: white;
    align-items: center;
    text-align: center;
    padding: 5px;
    margin: 5px;
    height: 250px;
}

#challenges, #prestigeChallenges {
    display: flex;
    flex-direction: row;
    max-width: 1800px;
    width: 90vw;
    flex-wrap: wrap;
    justify-content: center;
}

#challenges .challengeDiv, #prestigeChallenges .challengePDiv {
  flex: 0 1 20vw; /* do not force growth, allow shrinking, base 420px */
  box-sizing: border-box;
}

#challengeTab {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.challengeRow {
    flex-direction: row;
    display:flex;
    justify-content: center;
}

.challengeTitle, .challengePTitle {
    font-weight: bold;
    margin: 10px;
}

.challengeCond, .challengePCond {
    height: 140px;
}

button {
    cursor:pointer;
}

.challengeStart, .challengePstart {
    margin: 0;
}

#worldTextDiv {
    height: 120px;
    display: flex;
    align-items: end;
}

#worldText {
    display: flex;
    margin-top: 7px;
    white-space: nowrap;
    width: 100%;
    text-align: center;
    justify-content: center;
    align-items: center;
}

#exitChallenge, #exitPChallenge {
    display: none;
    font-size: calc(14px * var(--font-scale)) !important;
    margin: 5px;
    height: 20px;
}

.challengeDesc {
    font-size: calc(13px * var(--font-scale)) !important
}

#challengeCondition {
    font-size: calc(12px * var(--font-scale));
    display: flex;
    align-items: center;
}

.smallDesc{
    color: rgb(130 130 130);
    font-size: calc(14px * var(--font-scale));
    margin: 5px;
    text-align: center;
}
