body, html {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
background: #000;
font-family: 'Roboto', sans-serif;
}
#camera-view, #overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
display: none;
}
#overlay {
pointer-events: none;
}
#loading {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: #fff;
font-size: 24px;
text-align: center;
}
.spinner {
margin: 16px;
width: 40px;
height: 40px;
border: 4px solid rgba(255, 255, 255, 0.3);
border-radius: 50%;
border-top-color: #fff;
animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
#score {
position: absolute;
top: 85%;
left: 23%;
transform: translate(-50%, -50%);
color: #fff;
font-size: 24px;
background: rgba(0, 0, 0, 0.7);
padding: 10px 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
font-weight: 700;
display: none;
}
#start-button {
position: absolute;
color: white;
background: #216BCB;
border:none;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
padding: 15px 25px;
font-size: 20px;
cursor: pointer;
z-index: 1;
border-radius:20px;
}
#help-text {
position: absolute;
color: white;
top: 89%;
left: 33%;
transform: translate(-50%, -50%);
font-size: 14px;
cursor: pointer;
z-index: 1;
}