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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

h1 {
    color: #667eea;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.input-section {
    margin-bottom: 30px;
}

label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-size: 1.2rem;
}

input[type="number"] {
    width: 100%;
    padding: 15px;
    font-size: 1.2rem;
    border: 2px solid #667eea;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s;
}

input[type="number"]:focus {
    border-color: #764ba2;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.3);
}

.result-section {
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#result {
    font-size: 4rem;
    font-weight: bold;
    color: #667eea;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.spinning {
    animation: spin 0.1s linear infinite;
}