#gameWonScreen {
    box-sizing: border-box;
    position: absolute;
    top:0;
    left:0;
    width: 95vh;
    height: 100vh;
    background-color: rgba(31, 34, 61, 1);
    z-index:100;
    padding: 2vh;
    
    animation: gameWonScreen_in 0.5s ease-out;
    overflow: visible;
}
 
@media only screen and (max-height: 850px) {
    #gameWonScreen {
        font-size: 80%;
    }
}
@media only screen and (max-height: 550px) {
    #gameWonScreen {
        font-size: 70%;
    }
}

.gameWonContainer {
    width:100%;
    height: 100%;
    background-color: #2d325a;
    border-radius: 2vh;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    opacity: 1;
    box-shadow: 0px 0px 2vh rgba(0, 0, 0, 0.25);

    animation: gameWonContainer_in 4s cubic-bezier(0.23, 1, 0.320, 1);
    overflow: hidden;
}


@keyframes gameWonScreen_in {
    0% { background-color:  rgba(31, 34, 61, 0) }
    100% { background-color:  rgba(31, 34, 61, 1) }
}
@keyframes gameWonContainer_in {
    0% { opacity: 0; transform: translateY(60px); }
    100% { opacity: 1; transform: translateY(0px); }
}



.gameWon_header {
    font-size: 300%;
    text-align: center;
}
.gameWon_title {
    margin-left: 2%;
    margin-right: 2%;
    margin-top: 0.5vh;
    margin-bottom: 0.5vh;
    font-size: 200%;
    text-align: center;
}
.gameWon_title > a {
    color: rgb(78, 95, 248);
}
.gameWon_title > a:hover {
    color: rgb(37, 56, 228);
}



.gameWon_stats {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 20px 0;
    flex-grow: 2;
}
.gameWon_stat {
    width: 100%;
    font-size: 150%;
}
.gameWon_stat.gameOver {
    width: 100%;
    font-size: 250%;
}
.gameWon_stat_name {
    box-sizing: border-box;
    display: inline-block;
    width: 50%;
    text-align: right;
    padding: 0.2vh 0;
    padding-right: 0.8vh;
    
    opacity: 0;
    animation: gameWon_stat_name_in 0.5s ease-out 1 normal forwards;
}
.gameWon_stat_value {
    box-sizing: border-box;
    display: inline-block;
    text-align: left;
    padding: 0.2vh 0;
    padding-left: 0.8vh;

    opacity: 0;
    animation: gameWon_stat_value_in 0.5s ease-out 1 normal forwards;
}
.gameWon_stat_border {
    display: inline-block;
    
    height: 100%;
    width: 2px;

    opacity: 0;
    animation: gameWon_stat_border_in 0.5s ease-out 1 normal forwards;
}
@keyframes gameWon_stat_name_in {
    0% { opacity: 0; transform: translateX(-20px); }
    100% { opacity: 1; transform: translateX(0px); }
}
@keyframes gameWon_stat_value_in {
    0% { opacity: 0; transform: translateX(20px); }
    100% { opacity: 1; transform: translateX(0px); }
}
@keyframes gameWon_stat_border_in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}


.gameWon_statHint {
    width: 70%;
    min-width: 50vh;
    position: absolute;
    z-index: 2;
    height:100%;
    pointer-events: none;
}
.gameWon_statHint > p {
    position: absolute;
    top:0;
    right:0;
    text-align: end;
    font-size: 200%;
    pointer-events: all;
}
.gameWon_statHint > p > mark.colorInverse {
    padding: 0 0.8vh;
    border-radius: 0.8vh;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 1);
}
.gameWon_statHintContent {
    position: absolute;
    top:0;
    right:0;
    width:100%;
    padding: 0.8vh 0.8vh;
    background-color: white;
    border-radius: 0.8vh;
    min-height:100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    pointer-events: all;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 1);
}
.gameWon_statHintContent > p {
    width:fit-content;
    text-align: center;
    font-size: 150%;
    color: rgb(110, 110, 110);
}
.gameWon_statHintContent > p > mark.colorInverse {
    background: #1f223d !important;
    color: white !important;
}


.gameWon_rank {
    width: 100%;
    height: 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 2;
    margin: 1vh 0;

    opacity: 0;
    animation: gameWon_rank_in 1s cubic-bezier(.27,1.44,.06,.96) 1 normal forwards;
}
.gameWon_rank_text {
    margin-left:55%;
    font-size: 250%;
}
.gameWon_rank_text > mark {
    font-size: 175%;
    vertical-align: sub;
    padding: 0 1.5vh;
    overflow-wrap: anywhere;
}
@keyframes gameWon_rank_in {
    0% { opacity: 0; transform: scaleX(2) scaleY(2); }
    100% { opacity: 1; transform: scaleX(1) scaleY(1); }
}
.gameWon_rank.endless > .gameWon_rank_text {
    margin: auto;
    width: fit-content;
}



.gameWon_thanks {
    width: 100%;
    margin: 0.5vh 0;
}
.gameWon_media {
    margin: 1vh;
    height: 6vh;
}
.gameWon_media > a {
    display: inline-block;
    border-radius: 0.5vh;
    height: 100%;
}
.gameWon_media > a > img {
    max-width: 100%;
    max-height: 100%;
    
}



.gameWon_replay {

    width: 100%;
    max-height: 12%;
    min-height: 10vh;
    padding: 2vh;
    padding-top: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}
.gameWon_replay_button {
    margin: 0 auto;
    width: 100%;
    height: 100%;
    max-width: 40vh;
    font-size: 200%;
}







#introductionMessage {
    box-sizing: border-box;
    position: absolute;
    top:0;
    left:0;
    width: 95vh;
    height: 100vh;
    background-color: rgba(31, 34, 61, 0.5);
    z-index:100;
    padding: 2vh;
    
    animation: introductionMessage_in 0.5s ease-out 1 forwards;

    overflow: visible;

    display: flex;
    flex-direction: column;
    
}

@media only screen and (max-height: 850px) {
    #introductionMessage {
        font-size: 80%;
    }
}
@media only screen and (max-height: 550px) {
    #introductionMessage {
        font-size: 70%;
    }
}

@keyframes introductionMessage_in {
    0% { background-color:  rgba(31, 34, 61, 0) }
    100% { background-color:  rgba(31, 34, 61, 0.75) }
}
.introductionMessageContainer {
    margin: auto;
    width: 70%;
    height: 40%;
    background-color: #2d325a;
    border-radius: 2vh;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    opacity: 1;
    box-shadow: 0px 0px 50px rgba(0, 0, 0, 1);

    animation: introductionMessageContainer_in 1s cubic-bezier(0.23, 1, 0.320, 1);
}
@keyframes introductionMessageContainer_in {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0px); }
}
.introductionMessage_title {
    margin: 3vh;
    font-size: 200%;
    text-align: center;
}
.introductionMessage_skip {
    flex-grow: 1;
    width: 100%;
    max-height: 20%;
    min-height: 10vh;
    padding: 2vh;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}
.introductionMessage_skip_button {
    margin: 0 auto;
    width: 100%;
    height: 100%;
    max-width: 30vh;
    font-size: 200%;
}


#saveErasePrompt {
    box-sizing: border-box;
    position: absolute;
    top:0;
    left:0;
    width: 95vh;
    height: 100vh;
    background-color: rgba(31, 34, 61, 0.5);
    z-index:100;
    padding: 2vh;
    
    animation: introductionMessage_in 0.5s ease-out 1 forwards;

    overflow: visible;

    display: flex;
    flex-direction: column;
    
}
.saveErasePrompt_container {
    margin: auto;
    width: 70%;
    height: 30%;
    background-color: #2d325a;
    border-radius: 2vh;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    opacity: 1;
    box-shadow: 0px 0px 50px rgba(0, 0, 0, 1);

    animation: introductionMessageContainer_in 1s cubic-bezier(0.23, 1, 0.320, 1);
}
.saveErasePrompt_buttonContainer {
    flex-grow: 1;
    width: 80%;
    max-height: 20%;
    min-height: 10vh;
    padding: 2vh;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}
.saveErasePrompt_buttonContainer > button {
    margin: 0 auto;
    width: 100%;
    height: 100%;
    max-width: 30vh;
    font-size: 200%;    
    margin-right: 3vh;
}
.saveErasePrompt_buttonContainer > button:last-child {
    margin-right: 0%;
}
.saveErasePrompt_buttonContainer_confirmButton {
    background-color: rgb(160, 52, 67);
}
.saveErasePrompt_buttonContainer_confirmButton:hover {
    background-color: rgb(140, 32, 47);;
}


#menuBar {
    position: absolute;
    top: calc(5vh - 10px);
    left:95vh;
    height: 95vh;
    background-color: #13152a;
    border-radius: 1vh;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.menuBar_grouper:first-child {
    flex-grow: 1;
    justify-content: flex-start;
}
.menuBar_grouper:last-child {
    flex-grow: 1;
    justify-content: flex-end;
}
.menuBar_grouper {
    display: flex;
    flex-direction: column;
    width: fit-content;
    width: 100%;
        align-items: center;
}
.menuBarButton {
    padding: 0.5vh;
    width: calc(100% - 1vh);
}
.menuBarButton > button {
    padding: 1vh;
    width: 100%;
    text-align: start;
    white-space: nowrap;
}
.menuBarButton > button > * {
    display: inline-block;
    margin: auto;
    vertical-align: middle;
    white-space: normal;
}
.menuBar_textLink {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;

    margin: auto;
    font-size: 200%;
    height: auto;
    width: fit-content;
    
}
.menuBar_textLink > a.buttonLinkWrapper > button > p {
    writing-mode: vertical-rl;
}
.menuBar_textLink > a.buttonLinkWrapper > button {
    writing-mode: vertical-rl;
    padding: 1vh 0.5vh;
}
a.buttonLinkWrapper > button {
    padding: 0.5vh 1vh;
}
a.buttonLinkWrapper > button > p {
    white-space: nowrap;
    color: rgb(94, 110, 255);
    text-decoration: underline;
}
a.buttonLinkWrapper:hover > button > p  {
    color: rgb(46, 66, 241);
}

.menuBar_logo {
    padding: 1vh;
    border-radius: 0.5vh;
    width: 5vh;
    height: 5vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.menuBar_logo > a {
    display: inline-block;
    width: 100%;
    height: 100%;
    border-radius: 0.5vh;
}
.menuBar_logo > a > img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}







#GDPRMessage {
    box-sizing: border-box;
    position: absolute;
    top:0;
    left:0;
    width: 95vh;
    height: 100vh;
    background-color: rgba(31, 34, 61, 0.5);
    z-index:100;
    padding: 2vh;
    
    animation: introductionMessage_in 0.5s ease-out 1 forwards;

    overflow: visible;

    display: flex;
    flex-direction: column;
    
}

@media only screen and (max-height: 850px) {
    #GDPRMessage {
        font-size: 80%;
    }
}
@media only screen and (max-height: 550px) {
    #GDPRMessage {
        font-size: 70%;
    }
}

.GDPRMessageContainer {
    margin: auto;
    width: 70%;
    height: 60%;
    background-color: #2d325a;
    border-radius: 2vh;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    opacity: 1;
    box-shadow: 0px 0px 50px rgba(0, 0, 0, 1);

    animation: introductionMessageContainer_in 1s cubic-bezier(0.23, 1, 0.320, 1);
}
.GDPRMessage_buttons {
    flex-grow: 1;
    width: 80%;
    max-height: 20%;
    min-height: 10vh;
    padding: 2vh;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}
.GDPRMessage_buttons > *{
    margin: 0 auto;
    width: 100%;
    height: 100%;
    max-width: 30vh;
    font-size: 200%;
}
.GDPRMessage_buttons > .manyButton{
    margin-right: 3vh;
}
button.color_green {
    background-color: rgb(71, 153, 95);
}
button.color_green:hover {
    background-color: rgb(48, 141, 76);
}
button.color_red {
    background-color: rgb(160, 52, 67);
}
button.color_red:hover {
    background-color: rgb(153, 39, 54);;
}

.saveResultPopupContainer.color_red {
    background-color: rgb(160, 52, 67);
}
.saveResultPopupContainer.color_green {
    background-color: rgb(57, 146, 84);
}
.saveResultPopupContainer.color_blue {
    background-color: rgb(58, 119, 168);
}





#accessibilityMessage {
    box-sizing: border-box;
    position: absolute;
    top:0;
    left:0;
    width: 95vh;
    height: 100vh;
    background-color: rgba(31, 34, 61, 0.5);
    z-index:100;
    padding: 2vh;
    
    animation: introductionMessage_in 0.5s ease-out 1 forwards;

    overflow: visible;

    display: flex;
    flex-direction: column;
    
}

@media only screen and (max-height: 850px) {
    #accessibilityMessage {
        font-size: 80%;
    }
}
@media only screen and (max-height: 550px) {
    #accessibilityMessage {
        font-size: 70%;
    }
}

.accessibilityMessageContainer {
    margin: auto;
    width: 70%;
    height: 60%;
    background-color: #2d325a;
    border-radius: 2vh;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    opacity: 1;
    box-shadow: 0px 0px 50px rgba(0, 0, 0, 1);

    animation: introductionMessageContainer_in 1s cubic-bezier(0.23, 1, 0.320, 1);
}
.accessibilityMessage_buttons {
    flex-grow: 1;
    width: 80%;
    max-height: 20%;
    min-height: 10vh;
    padding: 2vh;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}
.accessibilityMessage_buttons > *{
    margin: 0 auto;
    width: 100%;
    height: 100%;
    max-width: 30vh;
    font-size: 200%;
}
.accessibilityMessage_buttons > .manyButton{
    margin-right: 3vh;
}






.saveResultPopup {
    box-sizing: border-box;
    position: absolute;
    bottom: 0;
    left:0;
    width: 95vh;
    height: fit-content;
    background: none;
    z-index:100;
    padding: 2vh;
    z-index:101;

    overflow: visible;

    display: flex;
    flex-direction: column;
    pointer-events: none;
    
}
@media only screen and (max-height: 850px) {
    .saveResultPopup {
        font-size: 80%;
    }
}
@media only screen and (max-height: 550px) {
    .saveResultPopup {
        font-size: 70%;
    }
}

.saveResultPopupContainer {
    margin: auto;
    /* width: 80%;
    height: 80%; */
    padding: 2vh;
    background-color: #2d325a;
    border-radius: 2vh;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    opacity: 1;
    box-shadow: 0px 0px 50px rgba(0, 0, 0, 1);

    animation: saveResultPopupContainer_inOut 2s cubic-bezier(0.23, 1, 0.320, 1) forwards;
}

@keyframes saveResultPopupContainer_inOut {
    0% { opacity: 0; transform: translateY(40px); }
    20% { opacity: 1; transform: translateY(0px); }
    50% { opacity: 1; transform: translateY(0px); }
    100% { opacity: 0; }
}

.saveResultPopupContainer > .introductionMessage_title {
    margin: auto;
}
.saveResultPopupContainer > .introductionMessage_title > * {
    display: inline-block;
    margin: auto;
    vertical-align: middle;
}






#pauseGameDiv {
    box-sizing: border-box;
    position: absolute;
    top:0;
    left:0;
    width: 95vh;
    height: 100vh;
    background-color: rgba(31, 34, 61, 0.5);
    z-index: 101;
    padding: 2vh;
    
    animation: introductionMessage_in 0.125s ease-out 1 forwards;

    overflow: visible;

    display: flex;
    flex-direction: column;
    
}

@media only screen and (max-height: 850px) {
    #pauseGameDiv {
        font-size: 80%;
    }
}
@media only screen and (max-height: 550px) {
    #pauseGameDiv {
        font-size: 70%;
    }
}

#pauseGameContainer {
    margin: auto;
    width: fit-content;
    height: fit-content;
    background-color: #2d325a;
    border-radius: 2vh;

    vertical-align: middle;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    opacity: 1;
    box-shadow: 0px 0px 50px rgba(0, 0, 0, 1);

    cursor: pointer;

    animation: introductionMessageContainer_in 0.25s cubic-bezier(0.23, 1, 0.320, 1);
}

#pauseGameContainer:hover {
    box-shadow: 0px 0px 8px #7a59d6;
}

#textMessage {
    box-sizing: border-box;
    position: absolute;
    top:0;
    left:0;
    width: 95vh;
    height: 100vh;
    background-color: rgba(31, 34, 61, 0.5);
    z-index:100;
    padding: 2vh;
    
    animation: introductionMessage_in 0.5s ease-out 1 forwards;

    overflow: visible;

    display: flex;
    flex-direction: column;
    
}





#endlessModePrompt {
    box-sizing: border-box;
    position: absolute;
    top:0;
    left:0;
    width: 95vh;
    height: 100vh;
    background-color: rgba(31, 34, 61, 0.5);
    z-index:100;
    padding: 2vh;
    
    animation: introductionMessage_in 0.5s ease-out 1 forwards;

    overflow: visible;

    display: flex;
    flex-direction: column;
    
}
.endlessModePrompt_container {
    margin: auto;
    width: 70%;
    height: 65%;
    background-color: #2d325a;
    border-radius: 2vh;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    opacity: 1;
    box-shadow: 0px 0px 50px rgba(0, 0, 0, 1);

    animation: introductionMessageContainer_in 1s cubic-bezier(0.23, 1, 0.320, 1);
}
.endlessModePrompt_buttonContainer {
    flex-grow: 1;
    width: 80%;
    max-height: 22%;
    min-height: 10vh;
    padding: 2vh;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}
.endlessModePrompt_buttonContainer > button {
    margin: 0 auto;
    width: 100%;
    height: 100%;
    max-width: 30vh;
    font-size: 200%;    
    margin-right: 3vh;
}
.endlessModePrompt_buttonContainer > button:last-child {
    margin-right: 0%;
}