html {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

body {
    position: fixed;
    height: 100%;
    width: 100%;
    margin: 0;
    overscroll-behavior-y: contain;
    overflow: hidden;
    font-family: "Roboto", sans-serif;
    font-size: 3vh;
    background-color: #2f4f4f;
}

.flexParent {
    display: flex;
    height: 100dvh;
    flex-direction: column;
}

.buttonBar {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.buttonContainer {
    font-size: 0.6em;
}

.button {
    font-size: 1.5em;
    font-family: "Dongle", sans-serif;
    font-weight: 100;
    font-style: normal;
    line-height: 0.6em;
    border-radius: 0.3em;
    background-color: transparent;
    color: ivory;
    border: 0.08em solid ivory;
    padding: 0.3em 0.4em 0.2em 0.4em;
    margin: 0.5em;
    cursor: pointer;
}

.button:hover {
    background-color: #ffffff33;
  }

.button:active {
    background-color: #ffffff88;
}

.loading {
    position: absolute;
    display: flex;
    flex-direction: column;
    

    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    justify-content: space-evenly;
    align-items: center;

    font-size: 4em;
    font-family: "Dongle", sans-serif;
    font-weight: normal;
    font-style: normal;
    line-height: 1.5em;
    color: ivory;
    background-color: #2f4f4f;
}

.gameWindowDiv {
    position: relative;
    display: block;
    height: 100%;
    width: 100%;
    justify-content: center;
}

.gameCanvas {
    height: 90%;
    width: 100%;
}

.modal {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    height: 100dvh;
    width: 100vw;

    background-color: #00000088;
}

.confirmScramble {
    position: absolute;
    left: 50%;
    top: 50%;
    width: fit-content;
    white-space: nowrap;
    text-align: center;
    transform: translate(-50%, -50%);

    font-size: 1.5em;
    font-family: "Dongle", sans-serif;
    font-weight: normal;
    font-style: normal;
    line-height: 1.5em;

    border-radius: 0.6em;
    background-color: #1b2d2dcc;
    color: ivory;
    border: 0.08em solid ivory;
    padding: 0.5em 1em 0.5em 1em;
    z-index: 1;
    pointer-events: visible;
}

.helpDialog {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 85%;
    height: 85%;
    text-align: center;
    transform: translate(-50%, -50%);

    font-size: 1.5em;
    font-family: "Dongle", sans-serif;
    font-weight: normal;
    font-style: normal;
    line-height: 0.6em;

    border-radius: 0.6em;
    background-color: #1b2d2dcc;
    color: ivory;
    border: 0.08em solid ivory;
    padding: 0.5em;
    z-index: 1;

    overflow: hidden;
    overflow-y: auto;
}

ul {
    text-align: left;
    line-height: 0.7em;
}

li {
    margin-bottom: 0.7em;
}

.solvedMessage {

    display: none;

    position: absolute;
    left: 50%;
    top: 56%;
    text-align: center;
    transform: translate(-50%, -50%);

    font-size: 100%;
    font-family: "Dongle", sans-serif;
    font-weight: bold;
    font-style: normal;
    line-height: 0.6em;

    color: ivory;
    pointer-events: none;

    opacity: 0;
	animation-name: solvedFadeInOut;
	animation-iteration-count: 1;
	animation-timing-function: linear;
	animation-duration: 2s;
}

@keyframes solvedFadeInOut {
	0%   {opacity: 0; font-size: 750%;}
    20%  {opacity: 1; font-size: 800%;}
    60%  {opacity: 1; font-size: 900%;}
	100% {opacity: 0; font-size: 1000%;}
}

::-webkit-scrollbar {
    width: 0.3em;
    height: 90%;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #535353;
}
::-webkit-scrollbar-thumb:hover {
    background: #3c3c3c;
}
::-webkit-scrollbar-track-piece:end {
    background: transparent;
    margin-bottom: 0.5em; 
}
::-webkit-scrollbar-track-piece:start {
    background: transparent;
    margin-top: 0.5em;
}
