﻿@font-face {
    font-family: 'SuperMarioBros';
    src: url('smb.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
.top-ui {
    z-index: 100000;
}

html, body, ul, li {
  margin: 0;
  border: 0;
  padding: 0;
}
nav, footer, .sticky-wrapper {
    display:none;
}
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: none; /* stops browser gestures interfering */
    background: #000;
}

/*canvas {
  display: block;
  width: 762;
  margin: 0 auto;
  background-color: blue;
}
*/
#gameCanvas {
    display: block;
    width: 100vw;
    height: 100vh;
    pointer-events:none !important;
}

p {
  text-align: center;
}

body {
  overflow: hidden;
  height: 100%;
}

html {
  overflow: hidden;
  height: 100%;
}

.info {
  position: absolute;
  top: 0;
  left: 0;
}
/* WRAPPER HOLDS TWO COLUMNS */
#controls-wrapper {
    position: fixed;
    left: 0;
    right: 0;
    top: calc(50% - 70px);
    display: flex;
    justify-content: space-between; /* left + right columns */
    align-items: center;
    padding: 0px 40px;
    /*pointer-events: none;*/
    z-index: 9999;
}
@media(min-width:768px){
    #controls-wrapper {
        /*display:none;*/
    }
}

/* LEFT + RIGHT COLUMNS */
.left-column,
.right-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px; /* spacing between top and bottom buttons */
    pointer-events: none;
}
.right-column {
    margin-right:-15px;
}
.left-column {
    margin-left: 20px;
}
/* D-PAD */
#dpad {
    width: 120px;
    height: 120px;
    position: relative;
    pointer-events: auto;
}

    #dpad div {
        position: absolute;
        width: 40px;
        height: 40px;
        background: rgba(128,128,128,0.7);
        border-radius: 6px;

    }

    #dpad .up {
        top: 0;
        left: 40px;
        border: 2px solid rgba(40,40,40,0.4);
    }

    #dpad .down {
        bottom: 0;
        left: 40px;
        border: 2px solid rgba(40,40,40,0.4);
    }

    #dpad .left {
        left: 0;
        top: 40px;
        border: 2px solid rgba(40,40,40,0.4);
    }

    #dpad .right {
        right: 0;
        top: 40px;
        border: 2px solid rgba(40,40,40,0.4);
    }

/* A/B BUTTONS */
#buttons {
    display: flex;
    gap: 40px;
    pointer-events: auto;
}

    #buttons .btn {
        width: 60px;
        height: 60px;
        background: rgba(255,0,0,0.85);
        border: 1px solid rgba(0,0,0,0.4);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 24px;
        color: white;
        user-select: none;
    }

/* SELECT + START */
.mid-btn {
    width: 90px;
    height: 30px;
    line-height: 30px;
    background: transparent;
    border: 1px solid rgba(128,128,128,0.85);
    border-radius: 6px;
    color: rgba(0,0,0,0.4);
    text-align: center;
    pointer-events: auto;
    user-select: none;
    display:none;
}

#pause-button {
    position:absolute;
    top:20px;
    left:10px;
    z-index:999999;
    opacity:0.5;
    display:none;
}
#mute-button {
    position: absolute;
    top: 20px;
    left: 70px;
    z-index: 999999;
    opacity: 0.5;
    display: none;
}
#exitButton {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 999999;
    opacity: 0.5;
    display: none;
}


#startScreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/games/super-rescue-ronnie/sprites/splash.png') center center no-repeat;
    background-size:cover; /* KEY FIX */
    display: flex;
    justify-content: center;
    align-items: end;
    padding-bottom: 0px;
    z-index: 99999;
}


#startButton {
    
    padding: 20px 40px;
    cursor: pointer;
    background: rgba(255,255,255,0.6);   
    border: 2px solid white;
    border-radius: 8px;
    align-self:end;
    text-transform:uppercase;
    font-family:SuperMarioBros;
    
    
}
@media(min-width:992px) and (orientation:landscape){
    #startButton {
        margin-bottom: 260px;
    }
}
    #startButton span {
        font-size: 24px;
        color: blue;
    }
#rotateOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

    #rotateOverlay img {
        width: 60%;
        max-width: 400px;
    }
@media  (max-width:767px){
    
    
    #startScreen {
        object-fit:contain !important;
        object-position:center center
    }
    #rotateOverlay {
        display:flex;
    }
}
@media (orientation:landscape) and (max-width:991px){
    #startButton {
        margin-bottom: 80px !important;
    }
}

.blink_me {
    animation: blinker 1.5s linear infinite;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}
#exitGameLabel {
    font-family:SuperMarioBros;
    color:black !important;
}