@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@700&family=Fredoka+One&display=swap');

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

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Comic Neue', cursive;
    background: linear-gradient(45deg, #ff6b9d, #c44569, #f8b500, #ff6b9d);
    background-size: 400% 400%;
    animation: gradientShift 8s ease infinite;
    min-height: 100vh;
    color: white;
    overflow-y: auto;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

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

.title {
    font-family: 'Fredoka One', cursive;
    font-size: 3rem;
    text-shadow: 3px 3px 0px #ff1744, 6px 6px 0px #e91e63;
    animation: bounce 2s infinite;
    margin-bottom: 10px;
}

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

.sparkles {
    position: absolute;
    top: -10px;
    right: 20px;
    font-size: 2rem;
    animation: sparkle 1.5s infinite;
}

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

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.input-section {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    color: #d63384;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
}

.input-group input {
    padding: 15px;
    border: 3px solid #ff6b9d;
    border-radius: 10px;
    font-size: 1.2rem;
    text-align: center;
    background: white;
    color: #d63384;
    font-family: 'Comic Neue', cursive;
    font-weight: bold;
}

.input-group input:focus {
    outline: none;
    border-color: #c44569;
    box-shadow: 0 0 20px rgba(255, 107, 157, 0.5);
}

.vs {
    font-size: 2rem;
    font-weight: bold;
    color: #d63384;
    text-shadow: 2px 2px 0px white;
    animation: pulse 1s infinite;
}

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

.test-btn {
    background: linear-gradient(45deg, #ff6b9d, #d63384);
    border: none;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(214, 51, 132, 0.4);
    transition: all 0.3s ease;
}

.test-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(214, 51, 132, 0.6);
}

.test-btn:active {
    transform: translateY(-1px);
}

.btn-sparkles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0;
    animation: btnSparkle 2s infinite;
}

@keyframes btnSparkle {
    0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.5); }
}

.loading {
    display: none;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.loading-text {
    font-size: 1.5rem;
    color: #d63384;
    margin-bottom: 20px;
    font-weight: bold;
}

.loading-bar {
    width: 300px;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff6b9d, #d63384);
    width: 0%;
    animation: loading 3s ease-in-out;
}

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

.results {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
}

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

.score-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b9d, #d63384);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(214, 51, 132, 0.4);
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

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

.score-label {
    font-size: 1.2rem;
    color: white;
    font-weight: bold;
    margin-top: 10px;
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.category {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.category h3 {
    color: #d63384;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.category-score {
    font-size: 2rem;
    font-weight: bold;
    color: #e91e63;
    margin-bottom: 10px;
}

.category-desc {
    color: #6c5ce7;
    font-size: 0.9rem;
    line-height: 1.4;
}

.summary {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    color: white;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.6;
}

.test-again-btn {
    background: linear-gradient(45deg, #00b894, #00cec9);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    display: block;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.test-again-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 184, 148, 0.4);
}

.footer {
    text-align: center;
    margin-top: auto;
    padding-top: 20px;
}

.footer p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.hearts {
    font-size: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

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

/* Responsive design */
@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }
    
    .input-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .vs {
        transform: rotate(90deg);
    }
    
    .input-group input {
        width: 200px;
    }
}

