body, html {
    margin: 0;
    padding: 0;
    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;
    box-sizing: border-box;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    animation: slideDown 0.5s ease-out;
}

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

h1 {
    color: #fff;
    font-size: 2.5em;
    margin: 0;
    text-shadow: 3px 3px 0px rgba(0,0,0,0.2);
    letter-spacing: 2px;
}

.tagline {
    color: #ffd700;
    font-size: 1.2em;
    margin: 10px 0 0 0;
    font-style: italic;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.2);
}

.input-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.input-box {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 3px solid #ffd700;
}

.input-box label {
    display: block;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 10px;
    font-size: 1.1em;
}

input {
    width: 200px;
    padding: 12px;
    font-size: 1em;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-family: inherit;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.heart-divider {
    font-size: 3em;
    animation: heartbeat 1.5s infinite;
}

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

.test-button {
    display: block;
    margin: 0 auto;
    padding: 15px 40px;
    font-size: 1.3em;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #ff6b9d 0%, #c239b3 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.test-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(0,0,0,0.4);
}

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

.loading {
    text-align: center;
    margin-top: 30px;
}

.loading-hearts {
    font-size: 3em;
    margin-bottom: 20px;
}

.loading-hearts span {
    display: inline-block;
    animation: bounce 1s infinite;
}

.loading-hearts span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-hearts span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.loading p {
    color: white;
    font-size: 1.3em;
    font-weight: bold;
}

.hidden {
    display: none !important;
}

.results {
    max-width: 800px;
    margin: 30px auto;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: fadeIn 0.5s ease-out;
}

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

.score-container {
    text-align: center;
    margin-bottom: 40px;
}

.score-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    animation: pulse 2s infinite;
}

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

.score-text {
    font-size: 4em;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.score-label {
    font-size: 1.8em;
    font-weight: bold;
    color: #667eea;
}

.categories {
    margin: 30px 0;
}

.category {
    margin-bottom: 25px;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.category-icon {
    font-size: 1.5em;
}

.category-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
}

.category-bar {
    position: relative;
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

.category-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    transition: width 1s ease-out;
    width: 0%;
}

.category-score {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: #333;
}

.category-text {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
    margin: 0;
}

.verdict {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    padding: 20px;
    border-radius: 15px;
    margin: 30px 0;
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
    border: 3px solid #ffa500;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.retest-button {
    display: block;
    margin: 20px auto 0;
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s;
}

.retest-button:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8em;
    }
    
    .input-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .heart-divider {
        font-size: 2em;
    }
    
    input {
        width: 250px;
    }
    
    .score-circle {
        width: 150px;
        height: 150px;
    }
    
    .score-text {
        font-size: 3em;
    }
}

