|
body { |
|
font-family: 'Lilita One', cursive; |
|
display: flex; |
|
justify-content: center; |
|
align-items: flex-start; |
|
background-color: #c8e6c9; |
|
color: #388e3c; |
|
padding: 20px; |
|
margin: 0; |
|
min-height: 100vh; |
|
} |
|
|
|
#game-wrapper { |
|
background-color: #fffde7; |
|
padding: 20px 30px; |
|
border-radius: 20px; |
|
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); |
|
border: 5px solid #795548; |
|
max-width: 700px; |
|
width: 95%; |
|
text-align: center; |
|
} |
|
|
|
h1 { |
|
color: #fb8c00; |
|
text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1); |
|
margin-bottom: 15px; |
|
} |
|
|
|
#score-area { |
|
font-size: 1.2em; |
|
font-weight: bold; |
|
color: #1e88e5; |
|
background-color: #e3f2fd; |
|
padding: 5px 15px; |
|
border-radius: 10px; |
|
display: inline-block; |
|
margin-bottom: 20px; |
|
border: 2px solid #90caf9; |
|
} |
|
|
|
#problem-area { |
|
background-color: #ffecb3; |
|
border: 3px dashed #ff8f00; |
|
padding: 15px; |
|
border-radius: 15px; |
|
margin-bottom: 20px; |
|
} |
|
|
|
#problem-area h2 { |
|
margin-top: 0; |
|
margin-bottom: 5px; |
|
color: #795548; |
|
} |
|
#problem-area p { |
|
margin-top: 0; |
|
margin-bottom: 10px; |
|
font-size: 1.1em; |
|
} |
|
|
|
|
|
#multiplication-problem { |
|
font-size: 2.8em; |
|
font-weight: bold; |
|
color: #e53935; |
|
} |
|
|
|
#feedback-area { |
|
margin-bottom: 25px; |
|
font-size: 1.1em; |
|
font-weight: bold; |
|
color: #5d4037; |
|
min-height: 30px; |
|
padding: 10px; |
|
border-radius: 8px; |
|
background-color: #efebe9; |
|
} |
|
|
|
#feedback-area.correct-feedback { |
|
color: #2e7d32; |
|
background-color: #c8e6c9; |
|
} |
|
|
|
#feedback-area.incorrect-feedback { |
|
color: #c62828; |
|
background-color: #ffcdd2; |
|
} |
|
|
|
#farm-options-area h2 { |
|
color: #795548; |
|
margin-bottom: 15px; |
|
} |
|
|
|
#field-choices { |
|
display: flex; |
|
justify-content: space-around; |
|
align-items: flex-start; |
|
flex-wrap: wrap; |
|
gap: 25px; |
|
} |
|
|
|
.field-option { |
|
cursor: pointer; |
|
border: 4px solid #a1887f; |
|
background-color: #d7ccc8; |
|
padding: 10px; |
|
border-radius: 8px; |
|
transition: border-color 0.2s ease, transform 0.2s ease; |
|
box-shadow: 0 2px 5px rgba(0,0,0,0.1); |
|
|
|
|
|
display: grid; |
|
gap: 4px; |
|
|
|
} |
|
|
|
.field-option:hover { |
|
border-color: #fb8c00; |
|
transform: translateY(-3px); |
|
} |
|
|
|
.field-option .item { |
|
font-size: 1.8em; |
|
line-height: 1; |
|
display: flex; |
|
justify-content: center; |
|
align-items: center; |
|
} |
|
|
|
|
|
.field-option.correct-choice { |
|
border-color: #4caf50 !important; |
|
animation: pulse 0.6s; |
|
} |
|
|
|
.field-option.incorrect-choice { |
|
border-color: #f44336 !important; |
|
animation: shake 0.5s; |
|
} |
|
|
|
@keyframes shake { |
|
0%, 100% { transform: translateX(0); } |
|
25% { transform: translateX(-6px); } |
|
75% { transform: translateX(6px); } |
|
} |
|
@keyframes pulse { |
|
0% { transform: scale(1); } |
|
50% { transform: scale(1.05); } |
|
100% { transform: scale(1); } |
|
} |