 @font-face {
   /* font-family: "decoturaicg";
    
     src: url("fonts/SourceHanSansCN-Regular.otf") format("opentype");
    src: url(’./fonts/SourceHanSansCN-Regular.otf‘) format(’opentype‘);
    font-weight: 400;*/
        
      /* src: url("fonts/decoturaicg-webfont.eot?#iefix");
    src: url("fonts/decoturaicg-webfont.eot?#iefix") format("eot"),
        url("fonts/decoturaicg-webfont.woff2") format("woff2"),
        url("fonts/decoturaicg-webfont.woff") format("woff"),
        url("fonts/decoturaicg-webfont.ttf") format("truetype");*/
        } 
        
        
:root {
    --btn-font-size: clamp(10px, 1.4vw, 14px);
    --input-font-size: clamp(9px, 1.3vw, 13px);
    --button-padding: clamp(7px, 1.2vw, 14px);
}

body {
    margin: 0;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: calc(var(--vh, 1vh) * 100);
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    touch-action: manipulation;
    /* allow buttons, disable zoom */
}

canvas {
    display: block;
    width: 100%;
    height: calc(var(--vh, 1vh) * 100);
    max-width: 100vw;
    max-height: 100vh;
    touch-action: manipulation;
}

#gameContainer {
    position: absolute;
    width: 100vw;
    height: calc(var(--vh, 1vh) * 100);
}

/* Phaser canvas */
#gameCanvas {
    width: 100%;
    height: calc(var(--vh, 1vh) * 100);
    display: block;
}

/* Video background */
#jVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 1;
    display: none;
}

/* Landing layout */
#landing {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2;
    padding: 4vh 0;
}

/* Scale all landing images based on height */
#landing .top-image,
#landing .bottom-image {
    max-height: 24vh;
    width: auto;
    height: auto;
}

#landing .content {
    font-family: 'decoturaicg', sans-serif;
    font-size: 1vh;
    text-align: center;
    width: auto;
    height: auto;
}

#landing .content a {
    text-decoration: none;
    color: #47599a;
    font-family: 'decoturaicg', sans-serif;
    margin: 0 5px;
}

#landing .top-image {
    max-height: 36vh;
}

#landing .top-sub {
    max-height: 4vh;
}

.spacer {
    flex-grow: 1;
}

#playButton {
    border: none;
    background: none;
    padding: 0;
    margin: 20px 0;
    cursor: pointer;
    transition: transform 0.2s ease;
    max-height: 14vh;
}

#playButton:hover {
    transform: scale(1.1);
}

#playButton img {
    display: block;
    height: 100%;
    width: auto;
    margin: auto;
}

#loadingOverlay {
    display: none;
    background-color: #000;
    color: #fff;
    z-index: 999;
}

.spinner {
    border: 4px solid #444;
    border-top: 4px solid #fff;
    border-radius: 50%;
    width: 14vh;
    height: 14vh;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
    margin: auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Safari/iOS fix */
img,
button {
    box-sizing: border-box;
}