275 lines
4.8 KiB
CSS
275 lines
4.8 KiB
CSS
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', cursive, sans-serif;
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
min-height: 100vh;
|
|
padding: 20px;
|
|
color: #333;
|
|
}
|
|
|
|
.container {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
background: white;
|
|
border-radius: 20px;
|
|
padding: 30px;
|
|
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
header {
|
|
text-align: center;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2.5em;
|
|
color: #667eea;
|
|
margin-bottom: 20px;
|
|
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.points-display {
|
|
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
|
|
padding: 20px;
|
|
border-radius: 15px;
|
|
color: white;
|
|
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.points-label {
|
|
font-size: 1.2em;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.points-value {
|
|
font-size: 3em;
|
|
font-weight: bold;
|
|
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.progress-section {
|
|
margin-bottom: 30px;
|
|
text-align: center;
|
|
}
|
|
|
|
.progress-label {
|
|
font-size: 1.3em;
|
|
color: #667eea;
|
|
margin-bottom: 10px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.progress-bar-container {
|
|
width: 100%;
|
|
height: 30px;
|
|
background: #e0e0e0;
|
|
border-radius: 15px;
|
|
overflow: hidden;
|
|
margin-bottom: 10px;
|
|
box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.progress-bar {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
|
|
width: 0%;
|
|
transition: width 0.5s ease;
|
|
border-radius: 15px;
|
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.progress-text {
|
|
font-size: 1.1em;
|
|
color: #666;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.task-section {
|
|
margin-top: 30px;
|
|
}
|
|
|
|
.task-section h2 {
|
|
color: #667eea;
|
|
margin-bottom: 20px;
|
|
text-align: center;
|
|
font-size: 1.8em;
|
|
}
|
|
|
|
.task-container {
|
|
display: grid;
|
|
gap: 20px;
|
|
}
|
|
|
|
.task-card {
|
|
background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
|
|
padding: 25px;
|
|
border-radius: 15px;
|
|
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.task-card:hover {
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
|
|
}
|
|
|
|
.task-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.task-title {
|
|
font-size: 1.3em;
|
|
font-weight: bold;
|
|
color: #333;
|
|
}
|
|
|
|
.task-points {
|
|
background: #ffd700;
|
|
color: #333;
|
|
padding: 5px 15px;
|
|
border-radius: 20px;
|
|
font-weight: bold;
|
|
font-size: 1.1em;
|
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.task-question {
|
|
font-size: 1.5em;
|
|
text-align: center;
|
|
margin: 20px 0;
|
|
color: #333;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.task-input-group {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
justify-content: center;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
.task-input {
|
|
font-size: 1.5em;
|
|
padding: 10px 15px;
|
|
border: 3px solid #667eea;
|
|
border-radius: 10px;
|
|
width: 120px;
|
|
text-align: center;
|
|
font-family: 'Comic Sans MS', cursive;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.task-input:focus {
|
|
outline: none;
|
|
border-color: #764ba2;
|
|
box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
|
|
}
|
|
|
|
.task-button {
|
|
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 25px;
|
|
font-size: 1.2em;
|
|
border-radius: 10px;
|
|
cursor: pointer;
|
|
font-family: 'Comic Sans MS', cursive;
|
|
font-weight: bold;
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.task-button:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.task-button:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.task-button:disabled {
|
|
background: #ccc;
|
|
cursor: not-allowed;
|
|
transform: none;
|
|
}
|
|
|
|
.task-status {
|
|
text-align: center;
|
|
font-size: 1.1em;
|
|
font-weight: bold;
|
|
margin-top: 10px;
|
|
min-height: 25px;
|
|
}
|
|
|
|
.task-status.success {
|
|
color: #4caf50;
|
|
}
|
|
|
|
.task-status.error {
|
|
color: #f44336;
|
|
}
|
|
|
|
.task-status.completed {
|
|
color: #ff9800;
|
|
}
|
|
|
|
.message {
|
|
position: fixed;
|
|
top: 20px;
|
|
right: 20px;
|
|
padding: 15px 25px;
|
|
border-radius: 10px;
|
|
font-weight: bold;
|
|
font-size: 1.2em;
|
|
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
|
|
transform: translateX(400px);
|
|
transition: transform 0.3s ease;
|
|
z-index: 1000;
|
|
}
|
|
|
|
.message.show {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.message.success {
|
|
background: #4caf50;
|
|
color: white;
|
|
}
|
|
|
|
.message.error {
|
|
background: #f44336;
|
|
color: white;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.container {
|
|
padding: 20px;
|
|
}
|
|
|
|
h1 {
|
|
font-size: 2em;
|
|
}
|
|
|
|
.points-value {
|
|
font-size: 2.5em;
|
|
}
|
|
|
|
.task-input-group {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.task-button {
|
|
width: 100%;
|
|
}
|
|
}
|