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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.language-selector {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
}

.language-selector label {
    font-weight: 500;
    color: #666;
    margin: 0;
    font-size: 0.9em;
}

.language-selector select {
    padding: 6px 10px;
    font-size: 0.9em;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.language-selector select:hover {
    border-color: #667eea;
}

.language-selector select:focus {
    outline: none;
    border-color: #667eea;
}

h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2em;
    color: #666;
}

.calculator-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 1.1em;
}

select, input[type="number"], input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    font-size: 1em;
    border: 2px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s;
}

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

#calculate-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

#calculate-btn:active {
    transform: translateY(0);
}

.result-section {
    margin-bottom: 30px;
    animation: fadeIn 0.5s;
}

.result-section.hidden {
    display: none;
}

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

.result-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.chonk-emoji {
    font-size: 5em;
    margin-bottom: 15px;
}

.chonk-rating {
    font-size: 2em;
    color: #333;
    margin-bottom: 15px;
}

.chonk-description {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 20px;
}

.chonk-bar {
    width: 100%;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chonk-level {
    height: 100%;
    transition: width 0.5s ease, background-color 0.5s ease;
    border-radius: 15px;
}

.info-section {
    margin-top: 40px;
}

.info-section h3 {
    text-align: center;
    font-size: 1.8em;
    color: #333;
    margin-bottom: 25px;
}

.chonk-chart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.chonk-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.2s;
    border: 2px solid #e0e0e0;
}

.chonk-item:hover {
    transform: translateY(-5px);
    border-color: #667eea;
}

.chonk-item .level {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    line-height: 40px;
    font-weight: 700;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.chonk-item strong {
    display: block;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 5px;
}

.chonk-item p {
    font-size: 0.9em;
    color: #666;
}

footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    text-align: center;
    color: #666;
}

/* Donation Section */
.donation-section {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e8e8e8;
}

.donation-text {
    font-size: 1em;
    color: #555;
    margin-bottom: 15px;
    font-weight: 500;
}

.bmc-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1em;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.bmc-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.bmc-button:active {
    transform: translateY(0);
}

.bmc-icon {
    font-size: 1.3em;
}

.bmc-text {
    font-size: 1em;
}


/* Confetti Animation */
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    z-index: 9999;
    animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotateZ(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotateZ(720deg);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .language-selector {
        position: static;
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .chonk-chart {
        grid-template-columns: 1fr;
    }
    
    .bmc-button {
        padding: 10px 20px;
        font-size: 0.95em;
    }
    
    .donation-text {
        font-size: 0.95em;
    }
}
