/* Geral */
body {
font-family: Arial, sans-serif;
background-image: url('https://images.unsplash.com/photo-1506748686214-e9df14d4d9d0?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=MnwzNjUyOXwwfDF8c2VhcmNofDF8fGJhY2tncm91bmR8ZW58MHx8fHwxNjg4MzMzMjI1&ixlib=rb-4.0.3&q=80&w=1080');
background-size: cover;
background-position: center;
color: #333;
text-align: center;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column; /* Alinha tudo em coluna */
margin: 0;
}

#data-hora {
font-size: 1.2em;
color: #444;
margin-bottom: 20px; /* Espaço abaixo da data e hora */
animation: fadeIn 0.5s;
}

button#iniciar {
padding: 10px 20px;
font-size: 1.2em;
cursor: pointer;
background-color: #2ecc71;
color: white;
border: none;
border-radius: 5px;
transition: background-color 0.3s, transform 0.3s;
margin-top: 20px; /* Espaço acima do botão */
}

button#iniciar:hover {
background-color: #27ae60;
transform: scale(1.05);
}

.jogo-matematica {
padding: 20px;
background: rgba(255, 255, 255, 0.9);
border-radius: 10px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
width: 300px;
transform: scale(0);
animation: scaleIn 0.5s forwards;
display: none; /* Inicialmente oculto */
}

@keyframes scaleIn {
from {
transform: scale(0);
}
to {
transform: scale(1);
}
}

@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}

h1 {
color: #2c3e50;
animation: fadeIn 0.8s;
}

@keyframes slideIn {
from {
transform: translateY(-20px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}

input {
padding: 10px;
font-size: 1em;
width: 80%;
border: 1px solid #ccc;
border-radius: 5px;
margin-bottom: 10px;
transition: border 0.3s;
}

input:focus {
border: 2px solid #3498db;
outline: none;
}

button {
padding: 10px 20px;
font-size: 1em;
margin: 10px;
cursor: pointer;
background-color: #3498db;
color: white;
border: none;
border-radius: 5px;
transition: background-color 0.3s, transform 0.3s;
}

button:hover {
background-color: #2980b9;
transform: scale(1.05);
}

#feedback {
margin-top: 20px;
font-size: 1.2em;
opacity: 0;
transition: opacity 0.3s;
}

#temporizador,
#pontuacao {
font-size: 1.2em;
margin: 10px 0;
animation: pulse 1s infinite alternate;
}

@keyframes pulse {
from {
transform: scale(1);
}
to {
transform: scale(1.05);
}
}

.popup-alert {
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
background: rgba(255, 255, 255, 0.95);
border: 2px solid #e74c3c;
border-radius: 10px;
padding: 20px;
box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
width: 300px;
text-align: center;
display: none;
animation: scaleIn 0.4s;
}

.popup-alert p {
font-size: 1.2em;
color: #e74c3c;
margin-bottom: 20px;
}

.popup-alert button {
background-color: #e74c3c;
color: white;
padding: 10px 15px;
border: none;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
}

.popup-alert button:hover {
background-color: #c0392b;
}