* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Comic Sans MS', 'Arial Rounded MT Bold', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

h1 {
    text-align: center;
    color: #764ba2;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #667eea;
    margin-bottom: 30px;
}

.controls {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    justify-content: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    font-weight: bold;
    color: #555;
    font-size: 1.1em;
}

select {
    padding: 10px 15px;
    border: 3px solid #667eea;
    border-radius: 10px;
    font-size: 1em;
    font-family: inherit;
    background: white;
    cursor: pointer;
    min-width: 150px;
    transition: all 0.3s ease;
}

select:hover {
    border-color: #764ba2;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

select:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.btn {
    padding: 12px 30px;
    font-size: 1.1em;
    font-family: inherit;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(0);
}

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

.btn-secondary {
    background: #e0e7ff;
    color: #667eea;
}

.btn-secondary:hover {
    background: #c7d2fe;
}

.instructions {
    text-align: center;
    padding: 15px;
    background: #fef3c7;
    border: 3px dashed #f59e0b;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 1.2em;
    color: #92400e;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.canvas-container {
    background: #e8e4f3;
    border-radius: 15px;
    padding: 20px;
    display: flex;
    justify-content: center;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

#petCanvas {
    background: lavender;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: crosshair;
    max-width: 100%;
    height: auto;
}

/* Responsive design */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .form-group {
        width: 100%;
    }

    select {
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    #petCanvas {
        width: 100%;
    }
}
