body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    /* Light gray background */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background: url(anhnencao.jpg);
    background-size: 100% 100%;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 90%;
    max-width: 100%;
    height: 100vh;
    /* 🔥 QUAN TRỌNG */
    margin: 0 auto;
    position: relative;
}

h1 {
    color: #e91e63;
    /* Pink/Red theme */
    margin-bottom: 20px;
}

input {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    /* Ensures padding doesn't affect width */
}

button {
    background-color: #e91e63;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
}

button:hover {
    background-color: #c2185b;
}

.hidden {
    display: none;
}

.error {
    color: red;
    font-size: 14px;
    margin-top: 5px;
}

/* Scratch Card Styles */
.scratch-container {
    position: relative;
    width: 300px;
    height: 150px;
    margin: 20px auto;
    border: 2px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    user-select: none;
    /* Prevent text selection */
}

#result-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fffde7;
    /* Light yellow prize background */
    z-index: 1;
}

#prize-text {
    font-size: 20px;
    color: #333;
    padding: 10px;
}

#scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    cursor: url('coin.png'), auto;
    /* Optional: adds a coin cursor if available */
}

.instruction {
    color: white;
    font-size: 14px;
    margin-top: 10px;
}

#scratch-screen {
    position: absolute;
    bottom: 50px;
    /* cách đáy */
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    /* trừ padding container */
}

#display-member-id {
    color: white;
}

.instruction {
    visibility: hidden;
}