body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #c5d1bc 0%, #648173 100%);
    margin: 0;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 650px;
    margin: 0 auto;
    background-color: rgb(205, 238, 192);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

header h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    background: linear-gradient(to right, #3498db, #2ecc71);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.form-container {
    text-align: center;
    margin: 30px 0;
}

input[type="text"] {
    padding: 12px 15px;
    width: 300px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 18px;
    margin-right: 10px;
    transition: all 0.3s;
}

input[type="text"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.2);
}

button {
    padding: 12px 25px;
    background: linear-gradient(to right, #3498db, #2ecc71);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0,0,0,0.15);
}

.hidden {
    display: none;
}

.canvas-container {
    margin: 10px auto;
    text-align: center;
}

canvas {
    background-color: rgb(214, 232, 233);
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    cursor: crosshair;
}

.user-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

#display-username {
    font-weight: bold;
    color: #5b0ba5;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    font-size: 1.2em;
}

#score {
    font-weight: bold;
    color: #d62121;
    font-size: 1.3em;
    background-color: #f8f9fa;
    padding: 2px 10px;
    border-radius: 20px;
    border: 2px solid #2ecc71;
}

#points-container {
    margin-top: 20px;
    text-align: center;
}

.coordinates-display {
    margin: 15px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-weight: bold;
}

#feedback {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
}

.correct {
    background: linear-gradient(to right, #d4edda, #c3e6cb);
    border-left: 5px solid #28a745;
}

.incorrect {
    background: linear-gradient(to right, #f8d7da, #f5c6cb);
    border-left: 5px solid #dc3545;
}

#new-exercise {
    margin-top: 20px;
    background-color: #28a745;
}

#new-exercise:hover {
    background-color: #218838;
}

#instructions {
    margin: 15px 0;
    padding: 10px;
    background-color: #e7f4ff;
    border-radius: 8px;
    border-left: 5px solid #3498db;
}

/* Estilo para el contenedor horizontal de coordenadas */
#coordinates-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

/* Estilo para cada item de coordenada */
.coordinate-item {
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-weight: bold;
    min-width: 80px;
    text-align: center;
    transition: all 0.3s;
}

/* Estilo para el item activo (actual) */
.coordinate-item.active {
    background-color: #fffacd;
    border-left: 5px solid #ffd700;
    transform: scale(1.05);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Estilo para coordenadas correctas */
.coordinate-item.correct {
    background-color: #d4edda;
    border-left: 5px solid #28a745;
}

/* Estilo para coordenadas incorrectas */
.coordinate-item.incorrect {
    background-color: #f8d7da;
    border-left: 5px solid #dc3545;
}

