

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

body {
    height: 100%;
    overscroll-behavior-y: contain;
    background-color: var(--backGround);
    /* font-size: 250%; */
    font-family: "Dongle", sans-serif;
    font-weight: 100;
    font-style: normal;
    font-size: 5vh;
    color: var(--gridColor);
    overflow: hidden;
}

canvas {
    background-color: var(--backGround);
    display: block;
    margin: auto;
}

.screen_hr {
    height: 0.05em;
    border-width: 0;
    color: var(--gridColor);
    background-color: var(--gridColor);
    margin: 0;
}

.menu_hr {
    height: 0.05em;
    border-width: 0;
    color: var(--gridColor);
    background-color: var(--gridColor);
    margin: 0;
    margin-bottom: 0.3em;
}

.icon_button {
    font-size: 100%;
    background-color: var(--backGround);
    border: 0 solid;
    padding: 0.15em 0.3em 0.15em 0em;
}

.icon_image {
    width: 0.6em;
}

.button {

    width: 2.7em;

    font-size: 100%;
    font-family: "Dongle", sans-serif;
    font-weight: 100;
    font-style: normal;
    line-height: 0.6em;
    border-radius: 0.2em;
    background-color: var(--backGround);
    color: var(--clueNeutral);
    border: 0.08em solid var(--gridColor);
    padding: 0.15em 0.5em 0em 0.5em;
    margin: 0.2em;

}

@keyframes bobble {
	0% {scale: 100%;}
    86% {scale: 100%;}
    90% {scale: 110%;}
	92% {scale: 100%;}
    96% {scale: 110%;}
	100% {scale: 100%;}
}


.button:active {
    background-color: var(--buttonActive);
}

.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    justify-content: center;
    z-index: 1;
    opacity: 1;
	animation-name: fadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 0.25s;
}

.menu_container {
    position: absolute;
    top: 1.4em;
    right: 0.7em;
    background-color: var(--backGround);
    border: 0.08em solid var(--gridColor);
    border-radius: 0.15em;
    text-align: left;
    padding: 0.3em 0.7em 0.3em 0.3em;
    z-index: 1;
    line-height: 1em;
    color: var(--clueNeutral);

    display: none;
    overflow: hidden;
    opacity: 1;
    max-height: 100%;
	animation-name: dropDown;
	animation-iteration-count: 1;
	animation-timing-function: ease-out;
	animation-duration: 0.25s;
}

@keyframes dropDown {
	0% {max-height: 0%;}
	100% {max-height: 100%;}
}

.menu_button {
    font-size: 100%;
    font-family: "Dongle", sans-serif;
    font-weight: 100;
    font-style: normal;
    line-height: 0.6em;
    background-color: var(--backGround);
    color: var(--clueNeutral);
    border: 0;
    border-radius: 0.2em;
    padding: 0.3em;
    width: 100%;
    text-align: left;
}

.confirm_box {
    margin: auto; 
    display: none;
    max-width: 85%;

    background-color: var(--backGround);
    border: 0.08em solid var(--gridColor);
    border-radius: 0.15em;
    text-align: center;
    padding: 0.5em 0.5em 0.5em 0.5em;

    font-family: "Dongle", sans-serif;
    font-weight: 100;
    font-style: normal;
    line-height: 1em;
    color: var(--clueNeutral);
}

.help_box {
    margin: auto; 
    display: none;
    max-width: 87%;
    height: 76%;
    
    flex-direction: column;
    justify-content: end;

    background-color: var(--backGround);
    border: 0.08em solid var(--gridColor);
    border-radius: 0.15em;
    text-align: center;
    padding: 0.2em 0.2em 0.2em 0.2em;

    font-family: "Dongle", sans-serif;
    font-weight: 100;
    font-style: normal;
    line-height: 0.8em;
    color: var(--clueNeutral);
    
    scale: 100%;
    animation-name: grow;
	animation-iteration-count: 1;
	animation-timing-function: ease-out;
	animation-duration: 0.25s;
}

@keyframes grow {
	0% {scale: 75%;}
	100% {scale: 100%;}
}

.help_content {
    overflow-y: scroll;
    scrollbar-color: var(--gridColor) var(--backGround);
    scrollbar-width: thin;
    padding: 0.2em 0.2em 0.2em 0.2em;
}

.wait {

    flex-direction: column;
    margin: auto; 
    display: none;
    transition-delay: 150ms;
    transition-property: display;

    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    justify-content: center;

    opacity: 1;
	animation-name: delayedFadeInOpacity;
	animation-iteration-count: 1;
	animation-timing-function: ease-in;
	animation-duration: 1.5s;

}

@keyframes delayedFadeInOpacity {
	0% {opacity: 0;}
    50% {opacity: 0;}
	100% {opacity: 1;}
}

@keyframes fadeInOpacity {
	0% {opacity: 0;}
	100% {opacity: 1;}
}


.puzzle_solved_text {

    display: none;
    margin: 0 auto;

    font-size: 250%;
    font-family: "Dongle", sans-serif;
    font-weight: 500;
    font-style: normal;
    line-height: 0.6em;
    color: var(--winText);

    scale: 100%;
	animation-name: popIn;
	animation-iteration-count: 1;
	animation-timing-function: ease-in-out;
	animation-duration: 0.25s;
}

@keyframes popIn {
	0% {scale: 0%;}
    65% {scale: 110%;}
	100% {scale: 100%;}
}


.menu_button:hover {
    background-color: var(--buttonActive);
}

.menu_button:active {
    background-color: var(--buttonActive);
}

.help_title {
    font-size: 150%;
    margin-top: 0.4em;
    margin-bottom: 0.05em;
}

.help_row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    padding: auto;
}

.help_image_text {
    margin-top: -0.3em;
}

.help_img {
    width: 4em;
    vertical-align: middle;
    margin-bottom: 0.15em;
}

.help_img_check {
    width: 0.6em;
    vertical-align: middle;
    margin-bottom: 0.15em;
}

.game_screen {
    display: flex; 
    flex-direction: column;
    justify-content: space-between;
    height: 96%;
}

.icon_bar {
    display: flex; 
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.game_screen_top {
    display: flex;
    flex: 1;
    align-items: center;
    text-align: center;
    padding-top: 1em;
}

.game_screen_bottom {
    display: flex;
    flex: 1;
    align-items: center;
    text-align: center;
    padding-bottom: 0.7em;
}

.center {
    width: 100%; 
    text-align: center;
}

.right {
    text-align: right;
}

.left {
    text-align: left;
}

.landscape_warning {

    font-size: 250%;
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    justify-content: center;
    text-align: center;
    background-color: var(--backGround);
    z-index: 1;
}

.landscape_warning_image {
    width: 4em;
}
