@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;700&display=swap');

* {
    -webkit-tap-highlight-color: transparent; /* Fixes gray flash on tap */
}

/* Shared styles for the entire app */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100dvh;
    margin: 0;
    background-color: #FFF9E6; /* Soft yellow background */
    font-family: 'Fredoka', 'Comic Sans MS', cursive, sans-serif;
    overscroll-behavior: none; /* Prevents "pull-to-refresh" bounce */
    -webkit-user-select: none; /* Prevents text selection popups */
    user-select: none;
}

#wheel-container {
    position: relative;
    width: 90vw;   /* Matches the JS resize logic */
    max-width: 500px;
    height: auto;
    aspect-ratio: 1 / 1;
}

canvas {
    border-radius: 50%;
    border: 10px solid #FFD700; /* Gold border */
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* The pointer at the top */
#pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; 
    height: 0; 
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid #FF4500;
    z-index: 10;
}

button {
    padding: 20px 50px;
    font-size: 28px;
    font-weight: bold;
    background-color: #FF6B6B;
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: none;
    transition: transform 0.1s;
    touch-action: manipulation;
}

button:active {
    transform: translateY(4px);
}

/* Allow selection only in inputs */
input, select, textarea {
    -webkit-user-select: text;
    user-select: text;
    font-size: 16px !important; /* iOS specific: prevents auto-zoom on focus */
}

#wheel-container {
    position: relative;
    width: 90vw;   /* Matches the JS resize logic */
    max-width: 500px;
    height: auto;
    aspect-ratio: 1 / 1;
    margin-bottom: 30px;
}
