@keyframes Pulsating {
    0% {
        transform: scale(1) skewY(-1deg) rotate(2deg);
    }

    100% {
        transform: scale(1.1) skewY(1deg) rotate(-2deg);
    }
}

html, body {
    background-color: #0c7bdc;
}

#wrapper {
    grid-template-rows: 1fr auto;
    background: linear-gradient(to bottom, #0c7bdc, #66bee6);
    user-select: none;
}

#mainArea {
    overflow: hidden;
    position: relative;
    color: #ffffff;
    text-shadow: 
        1px 1px 0px #000000,
        1px -1px 0px #000000,
        -1px 1px 0px #000000,
        -1px -1px 0px #000000,
        2px 2px 0px #000000;
}

#canvasMain, #hitTester, .mainSection {
    position: absolute;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
}

#canvasMain {
    pointer-events: none;
}

.mainSection {
    display: none;
    padding: 24px;
    padding-top: calc(24px + var(--sait));
    width: calc(100% - 48px);
    height: calc(100% - calc(48px + var(--sait)));
}

.titleShowing #mainSectionTitle {
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.titleShowing.premium .mainSection {
    padding-bottom: max(24px, var(--saib));
    height: calc(100% - calc(calc(48px + var(--sait)) + var(--saib)));
}

#titleTopBar {
    display: grid;
    grid-template-columns: auto 1fr auto;
}

#topBarOptions {
    grid-column: 1;
}

#topBarAccount {
    grid-column: 3;
}

.topBarButton {
    cursor: pointer;
    transition: 0.2s;
}

.topBarButton:active {
    opacity: 0.5;
}

#titleMainArea {
    align-self: center;
}

#titleMainArea h1 {
    text-align: center;
}

#titleLogo {
    width: 90%;
    max-width: 500px;
    animation-name: Pulsating;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-duration: 1.5s;
    animation-direction: alternate;
}

.titleOption {
    font-size: 28px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    text-align: center;
    margin: 12px;
}

.titleOption:active {
    opacity: 0.5;
}

#titleCopyrightArea {
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.8;
}

.gameShowing #mainSectionPlay {
    display: block;
    position: relative;
    pointer-events: none;
}

.freeplay #scoreReadout {
    display: none;
}

#btnPause {
    position: absolute;
    top: calc(24px + var(--sait));
    right: 24px;
    pointer-events: all;
    width: 40px;
    height: 40px;
    cursor: pointer;
}

#btnPause:active {
    opacity: 0.5;
}

#handHolder {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: max(12px, var(--saib));
    background-color: rgba(255, 255, 255, 0.3);
    -webkit-backdrop-filter: blur(15px) saturate(1.5);
    backdrop-filter: blur(15px) saturate(1.5);
    padding: 6px;
    border-radius: 12px;
    width: calc(100% - 48px);
    text-align: center;
    border: 0.5px outset rgba(230, 230, 230, 0.25);
}

#handHolder img {
    height: 40px;
    width: 40px;
}

#handHolder img.popped {
    opacity: 0.15;
}

#handHolder img.current {
    border-bottom: 4px solid #2d90d2;
}

.freeplay #handHolder {
    display: none;
}

.gameOverShowing #mainSectionGameOver {
    display: grid;
    grid-template-rows: 1fr auto;
}

#mainGameOverArea {
    align-self: center;
    text-align: center;
}

#gameOverLogo {
    width: 90%;
    max-width: 500px;
    animation-name: Pulsating;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-duration: 1.5s;
    animation-direction: alternate;
}

#gameOverFinalScore {
    margin: 12px;
}

#scoresTodaysBest {
    text-align: center;
}