* {
    font-family: Helvetica, Arial, sans-serif;
}
*, *::before, *::after {
    box-sizing: border-box;
}
.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
      -webkit-user-select: none; /* Safari */
       -khtml-user-select: none; /* Konqueror HTML */
         -moz-user-select: none; /* Old versions of Firefox */
          -ms-user-select: none; /* Internet Explorer/Edge */
              user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome, Opera and Firefox */
}

#game-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: auto;
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 100%;
    position: relative;
    background-color: #669999;
    z-index: 0;
}

html, body, #game-container {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    overscroll-behavior: none;
    font-size: 16px;
}

@media screen and (max-width: 1400px) {
    html, body, #game-container {
        font-size: 12px;
    }
}

@media screen and (max-width: 1200px) {
    html, body, #game-container {
        font-size: 9px;
    }
}

@media screen and (max-width: 900px) {
    html, body, #game-container {
        font-size: 7px;
    }
}


.body,
.wrapper {
    /* Break the flow */
    position: absolute;
    top: 0px;

    /* Give them all the available space */
    width: 100%;
    height: 100%;

    /* Remove the margins if any */
    margin: 0;

    /* Allow them to scroll down the document */
    overflow: hidden;
}

.slime-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: row;
}

.slime-column {
    flex-basis: 0;
    flex-grow: 1;
    flex-shrink: 0;
    overflow: visible;
    padding: 0 1vw;
    will-change: transform;
}
@media screen and (min-width: 800px) {
    .slime-column {
        padding: 0 20px;
    }
}

.slime-img {
    position: relative;
    transform: translateY(-100%);
    width: 100%;
    overflow: visible;
    cursor: pointer;
    user-select: none;
}
.slime-img img {
    max-width: 100%;
}
.slime-img span {
    position: absolute;
    top: 50%;
    left: 50%;
    cursor: inherit;
    font-size: 2rem;
    color: white;
    transform: translate(-50%, -50%);
    text-align: center;
}
.aimer {
    position: absolute;   
}

#aim-container {
    position: absolute;
    bottom: 0;
    left: 0;
    pointer-events: none;
    height: 100%;
    width: 100%;
}

#aimer-container {
    position: relative;
    transition: transform linear 0.2s;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    flex-direction: row;
    pointer-events: none;
}

#aimer {
    text-align: center;
    width: 100%;
    margin-bottom: 1rem;
    height: 100%;
    position: relative;
}

.missile {
    bottom: 20%;
}
.rocket {
    height: 20%;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    object-fit: contain;
    z-index: 1;
    cursor: pointer;
    pointer-events: auto;
}

.missile {
    width: 32px;
    height: 32px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
}
.missile-container {
    position: absolute;
    height: 100%;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    display: none;
}
.game-info {
    position: absolute;
    top: 50%;
    text-align: center;
    left: 50%;
    color: white;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 80rem;
}
.game-info span {
    font-size: 3rem;
}
.game-info small {
    font-size: 2rem;
}

.stars, .twinkling, .clouds {
	position:absolute;
	display:block;
	top:0; bottom:0;
	left:0; right:0;
	width:100%; height:100%;
}

.stars {
	background: #000 url('stars.png') repeat top center;
}

.twinkling{
	background:transparent url('twinkling.png') repeat top center;
	animation: move-twink-back 200s linear infinite;
}

.clouds{
    background:transparent url('clouds.png') repeat top center;
	animation: move-clouds-back 200s linear infinite;
}

@keyframes move-twink-back {
	from {background-position:0 0;}
	to {background-position:-10000px 5000px;}
}

@keyframes move-clouds-back {
	from {background-position:0 0;}
	to {background-position:10000px 0;}
}

.dialog {
    position: absolute;
    position: fixed;
    top: 50%;
    left: 50%;
    backface-visibility: hidden;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 1rem;
    padding: 1rem;
    z-index: 10;
    box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
}
.dialog h1 {
    text-align: center;
}

h2 {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    color: #ffffff;
}
#option-screen {
    position: absolute;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 1.5rem;
    line-height: 1.1;
    color: white;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    padding: 1rem;
    align-items: center;
    overflow: auto;
    font-size: 16px;
    z-index: 4;
}
#option-screen button, #option-screen input {
    font-size: inherit;
    margin: 0.2rem;
}
.option-buttons {
    display: flex;
    flex-direction: row;
}
#option-screen a {
    font-size: 0.7rem;
}
#option-screen h1 {
    color: white;
    margin-top: 0;
    font-size: 1.7em;
    text-align: center;
}
#option-screen span {
    max-width: 40rem;
}