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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #667eea;
    background-image: linear-gradient(135deg, transparent 0%, rgba(0,0,0,0.15) 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.5s ease;
}

.container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 500px;
    width: 90%;
}

h1 {
    color: #333;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-section {
    margin-bottom: 2rem;
}

input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: border-color 0.3s;
}

input[type="text"]:focus {
    outline: none;
    border-color: #667eea;
}

button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(0);
}

.counter-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 10px;
}

.counter-section p {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 1rem;
}

#counter {
    font-weight: bold;
    color: #667eea;
    font-size: 1.5rem;
}

#resetBtn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.color-section {
    padding: 1.5rem;
    background: #f7fafc;
    border-radius: 10px;
}

.color-section p {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 1rem;
}

.color-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.color-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.color-btn:nth-child(1) {
    background: #667eea;
}

.color-btn:nth-child(2) {
    background: #48bb78;
}

.color-btn:nth-child(3) {
    background: #ed8936;
}

.color-btn:nth-child(4) {
    background: #4299e1;
}
