@charset "UTF-8";

body{
	margin: 0;
    padding: 0;
    background-color: #111;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    touch-action: none; 
}

@font-face{
	font-family:"GameFont";
	src: url("game_assets/Zyzol.otf");

}
#ui-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    width: 100%;
}
#ad-container {
    margin-top: 20px;
    width: 100%;
    max-width: 728px;
    display: none;
}
.ad-placeholder {
    background-color: #1a1a1a;
    border: 1px dashed #444;
    color: #666;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: sans-serif;
    border-radius: 4px;
}
#game-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


body {
    margin: 0;
    padding: 0;
    background-color: #111;
    
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; 
    touch-action: none; 
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
}

canvas {
    position: relative !important; 
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    aspect-ratio: 16 / 13;
    object-fit: contain;
    image-rendering: pixelated;
    display: block;
    margin: 0 auto; 
    touch-action: none !important;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}
#threeCanvas, #gameCanvas {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
}

#gameCanvas {
    z-index: 1;
    pointer-events: auto;
    image-rendering: pixelated;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    
}

#threeCanvas {
    z-index: 0;
}

#game-footer {
    position: fixed;
    bottom: 10px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

#game-footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 12px;
}
#btn-home {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 45px;
    height: 45px;
    background-color: rgba(0, 0, 0, 0.6);
    border: 2px solid #fff;
    border-radius: 8px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    z-index: 100;
    transition: transform 0.2s, background-color 0.2s;
}

#btn-home:hover {
    background-color: rgba(50, 50, 50, 0.9);
    transform: scale(1.1);
}

#btn-home svg {
    width: 28px;
    height: 28px;
}

