


body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    color: #333;
}
header, footer {
    text-align: center;
    margin: 2rem auto 0 auto;
    max-width: 20rem;
}
main {
    margin: 2rem auto 0 auto;
    max-width: 25rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}
form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-size: 1.125rem;
}
label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: #4a5568;
}
input {
    font-family: 'Poppins', sans-serif;
    width: 100%;
    border: 2px solid #e2e8f0;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 300;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}
select {
    font-family: 'Poppins', sans-serif;
    width: 100%;
    border: 2px solid #e2e8f0;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 300;
    font-size: 1rem;
    background-color: white;
    transition: border-color 0.3s ease;
}

select:focus {
    outline: none;
    border-color: #667eea;
}
p {
    font-weight: 300;
    font-size: 0.875rem;
}
footer {
    font-weight: 300;
    color: #718096;
    margin-top: 2rem;
}
/* Fieldset styling */
fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

legend {
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 1rem;
}

/* Avatar styling */
.avatarItem {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.avatarItem:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.avatarItem:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.avatarItem.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.avatarItem img {
    border-radius: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}
#error {
    text-align: center;
    color: #e53e3e;
    font-weight: 400;
    font-size: 0.875rem;
    margin: 1rem 0;
    padding: 0.75rem;
    background-color: #fed7d7;
    border-radius: 0.5rem;
    border-left: 4px solid #e53e3e;
}
#avatarContainer {
    display: flex;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 2px solid #667eea;
    border-radius: 1rem;
    width: 8rem;
    height: 8rem;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

#avatarContainer img {
    width: 4rem;
    height: 4rem;
    border-radius: 0.75rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}
#avatargrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    justify-items: center;
    margin-top: 1rem;
}

/* Submit button styling */
#jugar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 500;
    font-size: 1.125rem;
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#jugar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#jugar:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.avatar-section {
    text-align: center;
}

/* Drag & Drop styles */
.avatarItem[draggable="true"] {
    cursor: grab;
}

.avatarItem[draggable="true"]:active {
    cursor: grabbing;
}

#avatarContainer.drag-over {
    border-color: #48bb78;
    background: linear-gradient(135deg, #f0fff4 0%, #c6f6d5 100%);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.3);
}

#avatarContainer {
    transition: all 0.3s ease;
}
