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

body, html {
    width: 100%;
    height: 100%;
    font-family: 'Comic Sans MS', 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow-y: auto;
}

.container {
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    text-align: center;
    margin-bottom: 30px;
    animation: fadeInDown 0.6s ease;
}

h1 {
    font-size: 2.5em;
    color: #fff;
    text-shadow: 
        3px 3px 0 #ff1493,
        6px 6px 0 rgba(0,0,0,0.3);
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.2em;
    color: #ffe4e1;
    font-style: italic;
}

.input-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 100%;
    animation: fadeIn 0.6s ease 0.2s backwards;
}

.input-box {
    margin-bottom: 25px;
}

label {
    display: block;
    font-size: 1.1em;
    color: #764ba2;
    font-weight: bold;
    margin-bottom: 8px;
}

input {
    width: 100%;
    padding: 12px 15px;
    font-size: 1.1em;
    border: 3px solid #667eea;
    border-radius: 10px;
    font-family: inherit;
    transition: all 0.3s;
}

input:focus {
    outline: none;
    border-color: #ff1493;
    transform: scale(1.02);
}

.heart-divider {
    text-align: center;
    font-size: 2em;
    margin: 20px 0;
    animation: heartbeat 1.5s infinite;
}

.test-button, .retry-button {
    width: 100%;
    padding: 15px;
    font-size: 1.3em;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #ff1493, #ff69b4);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255,20,147,0.4);
    transition: all 0.3s;
    font-family: inherit;
}

.test-button:hover, .retry-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255,20,147,0.6);
}

.test-button:active, .retry-button:active {
    transform: translateY(0);
}

.loading-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.heart-pulse {
    font-size: 4em;
    animation: pulse 1s infinite;
}

.loading-text {
    font-size: 1.3em;
    color: #764ba2;
    margin: 20px 0;
    font-weight: bold;
}

.loading-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    animation: loading 2s infinite;
}

.results-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 600px;
    width: 100%;
    animation: fadeIn 0.6s ease;
}

.score-display {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(255,215,0,0.3);
}

.score-label {
    font-size: 1.2em;
    color: #764ba2;
    font-weight: bold;
    margin-bottom: 10px;
}

.score-value {
    font-size: 4em;
    font-weight: bold;
    color: #ff1493;
    text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
    animation: scaleIn 0.5s ease;
}

.score-verdict {
    font-size: 1.3em;
    color: #764ba2;
    margin-top: 10px;
    font-style: italic;
}

.categories {
    margin-bottom: 30px;
}

.category {
    background: #f8f9fa;
    border-left: 5px solid #667eea;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    animation: slideInLeft 0.5s ease backwards;
}

.category:nth-child(2) { animation-delay: 0.1s; }
.category:nth-child(3) { animation-delay: 0.2s; }
.category:nth-child(4) { animation-delay: 0.3s; }
.category:nth-child(5) { animation-delay: 0.4s; }

.category-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #764ba2;
    margin-bottom: 5px;
}

.category-score {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.9em;
    margin-left: 10px;
}

.category-text {
    color: #333;
    line-height: 1.5;
    margin-top: 8px;
}

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

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

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

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

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.8em;
    }
    
    .input-section, .results-section, .loading-section {
        padding: 25px;
    }
    
    .score-value {
        font-size: 3em;
    }
}

