@import url('https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&display=swap');

body {
    font-family: 'Noto Color Emoji', sans-serif;
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: hsla(0, 2%, 28%, 0.15);
    overflow: hidden;
    box-sizing: border-box;
    position: fixed; /* Prevents mobile bounce effects */
    touch-action: none; /* Disables pinch zoom and other touch actions */
}

* {
    font-family: inherit; /* Inherit font-family from body */
    box-sizing: inherit;
    -webkit-overflow-scrolling: none;
    overflow: hidden;
}

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

body::before {
    /* content: '|Ψ⟩';
    top: 55%;
    left: 56%; */
    content: 'τ';
    top: 35%;
    left: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    font-size: 150vh;
    font-family: serif;
    color: hsla(0, 0%, 0%, 0.02);
    white-space: nowrap;
    z-index: -1;
}

.background-text {
    position: absolute;
    width: auto;
    text-align: left;
    font-size: 36px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    color: #333;
    z-index: 100;
}

.dice {
    position: absolute;
    background-color: hsla(0, 0%, 50%, 0.10);
    width: 100%;
    height: 100%;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #333;
    transition: transform 0.1s ease;
    z-index: 200;
}

h1 {
    position: absolute;
    top: 10px;
    width: 100%;
    text-align: center;
    font-size: min(5vw, 36px);
}

#game-container, .container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas {
    display: block;
}

/* Dark mode styles */
@media (prefers-color-scheme: dark) { 
    body { 
        background-color: hsla(0, 0%, 5%, 0.9); 
    }
    body::before {
        color: hsla(0, 0%, 100%, 0.02);
    }
    .background-text {
        color: hsl(40, 100%, 50%);
    }
    .dice {
        color: hsla(0, 0%, 100%, 0.8);
    }
}
