body {
    font-family: 'SecretHalloween', 'inter', 'sans-serif';
    margin: 0;
    background-image: url(img/canvas_bg2.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    object-fit: fill;
    height: 100vh;
}

.contentSection {
    position: absolute;
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

canvas {
    background-color: black;
    box-shadow: 0px 0px 60px 30px rgba(136 142 126 / 60%);
    border-radius: 20px;
}

.d-none {
    display: none;
}

h1 {
    z-index: 99;
    height: 50px;
    margin: 0;
    font-size: 85px;
    font-weight: 500;
    text-shadow: 2px 2px 4px #dcdcdc, 4px 4px 0 #9c9c9c;
    color: #000000;
    transform: translate(10px, 60px);
    transition: transform 1s ease, font-size 1s ease;
}

h1.slide {
    transform: translate(0, 0);
    font-size: 50px;
}

h2 {
    display: flex;
    font-size: 65px;
    font-weight: 500;
    text-shadow: 2px 2px 4px #dcdcdc, 4px 4px 0 #9c9c9c;
    color: #000000;
    margin:0;
}

.smartphoneRotation {
    display: none;
    background-color: rgba(165, 165, 165, 0.4);
    padding: 20px;
    border-radius: 20px;
}

.smartphoneRotation img{
    height: 200px;
    animation: pulseStartBtn 1.5s infinite;
}

.canvasSection {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 720px;
    height: 480px;
    justify-content: center;
}

.optionsOverlay {
    position: absolute;
    bottom: 0;
    top: auto;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 10px;
    margin-right: 20px;
    z-index: 99;
    transition: all ease-in-out 0.3;
}

.optionsOverlay img {
    height: 40px;
    padding: 5px;
}

.optionsOverlay img:hover {
    cursor: pointer;
    transform: scale(1.15);
    transition: all ease-in-out 0.3;
}

#mobileControlsOverlay {
    position: absolute;
    bottom: 5px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: 99;
}

#mobileControlsOverlay img {
    height: 60px;
    padding: 5px;
}

.mobileControlsOverlayLeft {
    display: flex;
    flex-direction: column;
    margin-left: 20px;
}

.mobileControlsOverlayLeft img {
   padding: 1px !important;
}

.mobileControlsOverlayRight {
    display: flex;
    margin-right: 20px;
    align-items: flex-end;
}

.startOverlay {
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    justify-content: center;
    align-items: center;
}

.startOverlay img {
    border-radius: 20px;
}

.startTheme {
    width: 100%;
    height: 100%;
}

.startBtn {
    position: absolute;
    height: 140px;
    animation: pulseStartBtn 1.5s infinite;
}

.startBtn:hover {
    cursor: pointer;
    animation: none;
    transform: scale(1.1);
    transition: all ease-in-out 0.3s;
}

.restartBtn {
    height: 100px;
    animation: pulseStartBtn 1.5s infinite;
}

.restartBtn:hover {
    cursor: pointer;
    animation: none;
    transform: scale(1.1);
    transition: all ease-in-out 0.3s;
}

.helpSection {
    position: absolute;
    display: flex;
    top: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background-color: rgba(165, 165, 165, 0.5);
    border-radius: 20px;
}

.helpSection p {
    font-size: 24px;
    padding: 0px;
    margin: 5px;
}

.helpControls {
    display: flex;
    flex-direction: column;
    max-width: 350px;
    padding: 10px;
    background-color: rgba(165, 165, 165, 0.8);
    border-radius: 20px;
    margin-top: 40px;
}

.helpControls div {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
}

.helpText {
    max-width: 350px;
    padding: 10px;
    margin-left: 40px;
    background-color: rgba(165, 165, 165, 0.8);
    border-radius: 20px;
    text-align: center;
    margin-top: 30px;
}

.controlsImg {
    height: 50px !important;
    border-radius: 0 !important;
}

#endScreenOverlay {
    background-color: rgba(65, 65, 65, 0.6);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.endScreenTheme {
    width: 90%;
}

#endScreenOverlayWin {
    display: none;
    animation: growAndRotate 2.5s forwards;
}

#endScreenOverlayLose {
    display: none;
    animation: growAndRotate 2.5s forwards;
}

@keyframes growAndRotate {
    0% {
        transform: scale(0) rotate(0deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(360deg);
        opacity: 1;
    }
}

@keyframes pulseStartBtn {

    0%,
    100% {
        transform: scale(0.8);
    }

    50% {
        transform: scale(1);
    }
}

@media only screen and (max-width: 730px) {
    .canvasSection {
        display: none !important;
    }

    h1 {
        display: none;
    }

    .smartphoneRotation {
        display: flex !important;
        flex-direction: column;
        align-items: center;
    }

    #fullscreenMode {
        display: none !important;
    }
}

@media only screen and (max-height: 490px) {
    .canvasSection {
        height: 100% !important;
        width: 100% !important;
    }

    canvas {
        height: 100%;
        width: 100%; 
    }

    h1 {
        display: none;
    }

    #fullscreenMode {
        display: none !important;
    }
}