.basicButton {
    padding: 0;
    margin: 0;
    background-color: rgba(var(--mainRGBValues), 0.1);
    border-radius: var(--radius);
    border-color: var(--mainColor);
    border-width: var(--border);
    border-style: solid;
    color: var(--mainColor);
    font-family: var(--titleFont);
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.1);
}

.basicButton:hover {
    background-color: rgba(var(--mainRGBValues), 0.3);
}

.basicButton:active {
    background-color: rgba(var(--mainRGBValues), 0.5);
}

.basicButton.disabled {
    opacity: 30%;
}

.basicButton.selected {
    background-color: rgba(var(--mainRGBValues), 0.25);
}

.basicButton.unselected {
    box-shadow: none;
    /*border-color: rgba(var(--mainRGBValues), 0.3);*/
    opacity: 30%;
}

.textButton {
    width: 260px;
    height: 50px;
    margin: 8px;
    align-self: center;
    display: block;
    position: relative;
    line-height: 50px;
    font-size: var(--titleSize);
    text-transform: uppercase;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.roundButton {
    height: 50px;
    width: 50px;
    padding: 0px;
    margin: 10px;
    font-size: 34px;
    line-height: 50px;
    border-radius: 50%;
    text-transform: uppercase;
    text-overflow: clip;
    overflow: hidden;
    white-space: nowrap;
}

.uiAction {
    background-image: var(--uiButtonsURL);
    background-size: 300% 300%;
    background-position: 0% 0%;
}

.uiAction.cross { background-position: 0% 0%; }
.uiAction.check { background-position: -100% 0%; }
.uiAction.menu { background-position: -200% 0%; }
.uiAction.help { background-position: -200% -100%; }
.uiAction.leftArrow { background-position: 0% -200%; }
.uiAction.rightArrow { background-position: -100% -200%; }

.textButtonMenu {
    width: fit-content;
    height: fit-content;
    padding: 0;
    margin: 0;
}


/*
 * CHAPTER MENU
 */

.chapterMenu {
    width: min-content;
    max-width: 100%;
    height: 60px;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
}

.chapterMenu button {
    width: 70px;
    height: 60px;
    background-color: var(--mainColor);
    background-image: var(--chapterButtonsURL);
    background-size: 500% 300%;
    border: none;
    outline: none;
}

.chapterMenu button.off:hover {
    background-position-y: -100%;
}

.chapterMenu button.on {
    color: var(--mainColor);
    background-position-y: 0;
    z-index: 100;
}

.chapterMenu button.off {
    color: var(--grey);
    background-position-y: -200%;
    z-index: 0;
}

#chapterButtonHomepage { background-position-x: 0%; }
#chapterButtonRulebook { background-position-x: -100%; }
#chapterButtonAssistant { background-position-x: -200%; }
#chapterButtonLanguage { background-position-x: -300%; }
#chapterButtonReport { background-position-x: -400%; }

#chapterButtonHomepage.on { background-color: var(--chapterColor1); }
#chapterButtonRulebook.on { background-color: var(--chapterColor2); }
#chapterButtonAssistant.on { background-color: var(--chapterColor3); }
#chapterButtonLanguage.on { background-color: var(--chapterColor4); }
#chapterButtonReport.on { background-color: var(--chapterColor5); }

#chapterButtonLanguage #langCode {
    font-family: var(--titleFont);
    font-size: 30px;
    padding-bottom: 8px;
    text-align: center;
}


/*
 * RULEBOOK PAGE MENU
 */

.pageMenuWrapper {
    width: 100%;
}
.pageMenu {
    margin-inline: 20px;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: stretch;
}

.pageMenu button {
    width: 100%;
    height: 44px;
    opacity: 0;
    margin-top: 0;
    line-height: 44px;
    font-size: var(--titleSize);
    animation-name: enter;
    animation-duration: 0.2s;
    animation-fill-mode: forwards;
}

@keyframes enter {
    from {
        transform: translateY(-50%);
    }
    to {
        opacity: 1;
    }
}

.pageMenu button:nth-of-type(2) { animation-delay: calc(1*0.075s); }
.pageMenu button:nth-of-type(3) { animation-delay: calc(2*0.075s); }
.pageMenu button:nth-of-type(4) { animation-delay: calc(3*0.075s); }
.pageMenu button:nth-of-type(5) { animation-delay: calc(4*0.075s); }
.pageMenu button:nth-of-type(6) { animation-delay: calc(5*0.075s); }
.pageMenu button:nth-of-type(7) { animation-delay: calc(6*0.075s); }
.pageMenu button:nth-of-type(8) { animation-delay: calc(7*0.075s); }
.pageMenu button:nth-of-type(9) { animation-delay: calc(8*0.075s); }