:root {
    --stats-box-width: 35vh;
    --stats-box-min-width: 300px;
}

html {
    height: 100%;
}

body {
    min-height: 100%;
    -webkit-font-smoothing: antialiased;
    background-image: url(../assets/bg.svg);
    background-color: #98dff1;
    background-position: center bottom;
    background-size: calc(100% + 5px);
    background-repeat: no-repeat;
}
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -moz-osx-font-smoothing: grayscale;
}

.text-center {
    text-align: center;
}

.container {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.play-area {
    cursor: none;
    flex: 1;
    position: relative;
    overflow: hidden;
}

.basket {
    z-index: 10;
    width: 100px;
    height: auto;
    position: absolute;
    bottom: 10px;
    transition: all 0s ease;
}
.basket-value {
    position: absolute;
    opacity: 0.5;
    font-size: 120px;
    left: calc(50% + 45px);
    top: 12%;
    transform: translateX(-50%);
    color: #00a9e2;
    display: flex;
    align-items: center;
}

/* The rocket image won't display unless it is in a div */
.rocketContainer {
    z-index: 5;
    position: relative;
    bottom: 5px;
    width: 90px;
    height: 100vh;
}

.rocket {
    z-index: 1;
    position: absolute;
    bottom: 0;
    right: 5px;
    width: auto;
    height: auto;
    transition: opacity 0.2s ease;
    opacity: 1;
    top: calc(100% - 154px);
}
.rocket.launch {
    transition: top 1s cubic-bezier(0.63, 0, 1, 0.92);
    top: -250px;
}

.stats-box {
    width: var(--stats-box-width);
    min-width: var(--stats-box-min-width);
    background-color: rgba(105, 105, 105, 0.9);
    color: #ffffff;
    padding: 20px;
}

.stats-box h1 {
    font-size: 50px;
    line-height: 1.05;
    text-align: center;
}

.stats-row-center.stats-row-score {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    justify-content: space-evenly;
}

.stats-row-center {
    margin-top: 24px;
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    justify-content: space-evenly;
}

.stats-row-center .label {
    display: block;
    font-size: 18px;
    text-transform: uppercase;
}
.stats-row-center .label-normal {
    display: block;
    font-size: 18px;
}

.stats-row-center .value {
    display: block;
    font-size: 35px;
    line-height: normal;
    color: #8ee3ff;
    margin: auto;
}
.stats-row-center .value-normal {
    display: block;
    font-size: 35px;
    line-height: normal;
    margin: auto;
}

.stats-row {
    display: flex;
    align-items: flex-end;
    margin: 30px 0 20px;
}
.stats-row .label {
    font-size: 18px;
    text-transform: uppercase;
}

.btnContainer {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 10vh;
}

button {
    transition: all 200ms;
    border-radius: 50%;
    background: none;
    border: solid 4px black;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
}

button:disabled {
    cursor: default;
}

button::before {
    content: '';
    z-index: 5;
    background: #448097;
    height: 6vh;
    width: 6vh;
    border-radius: 50%;
    border: 4px solid #87ceeb;
}

button:disabled::before {
    background: grey;
}

button:hover {
    transform: scale(1.2);
    transition: all 160ms;
}

button:hover:disabled {
    transform: none;
}

.btn:active {
    box-shadow: 0px 0px 20px 4px #c4c43164;
    border: solid 4px #eeee2a;
    transition: 0ms;
}

.btn:active:disabled {
    box-shadow: none;
    border: solid 4px red;
    transition: none;
}

.restartBtn > img {
    position: absolute;
    z-index: 6;
    left: 18%;
}

.pauseBtn > img {
    position: absolute;
    z-index: 6;
    left: 16%;
}

.muteBtn > img {
    position: absolute;
    z-index: 6;
    left: 12%;
}

.insideBtn {
    height: 5vh;
}

.text-block {
    text-align: center;
    margin-top: 24px;
}

.text-block > p {
    font-size: 1rem;
}

.title {
    font-size: 24px;
    font-weight: 600;
}
.description {
    font-size: 14px;
}

.overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: calc(100% - var(--stats-box-width));
    max-width: calc(100% - var(--stats-box-min-width));
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.overlay-text {
    display: none;
}

.overlay-text-initial {
    display: block;
}

.overlay-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    color: #ffffff;
    font-size: 44px;
}
