* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial Rounded MT Bold', 'Arial', sans-serif;
}

:root {
    --primary-color: #ff69b4;
    --secondary-color: #8a2be2;
    --accent-color: #00bfff;
    --light-color: #ffe6f2;
    --dark-color: #4a0080;
    --text-color: #333;
    --white: #ffffff;
}

body {
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image: linear-gradient(45deg, rgba(255, 230, 242, 0.8), rgba(230, 230, 255, 0.8)),
                      url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="5" fill="%23ff69b4" opacity="0.3"/></svg>');
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

h1 {
    color: var(--primary-color);
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-container {
    margin: 1rem auto;
    max-width: 300px;
}

.logo {
    width: 100%;
    height: auto;
}

.generator-section {
    background-color: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.intro {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.input-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

#theme-input {
    flex: 1;
    min-width: 200px;
    padding: 0.8rem 1rem;
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

#theme-input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 8px rgba(138, 43, 226, 0.4);
}

.team-size-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 2px solid var(--accent-color);
}

label {
    font-weight: bold;
    color: var(--dark-color);
}

select {
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid var(--accent-color);
    background-color: white;
    color: var(--dark-color);
    font-size: 1rem;
    outline: none;
}

button {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

button:active {
    transform: translateY(0);
}

.hidden {
    display: none !important;
}

#result-container {
    background-color: var(--white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border: 5px solid var(--light-color);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

#series-title {
    color: var(--primary-color);
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.series-tagline {
    text-align: center;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.series-banner {
    margin-bottom: 2rem;
    text-align: center;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#series-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
}

.series-description, .cures-section, .details-section, .team-insignia-section {
    margin-bottom: 2rem;
}

h3 {
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

#cures-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.cure-card {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.cure-card:hover {
    transform: translateY(-5px);
}

.cure-color-banner {
    height: 20px;
    width: 100%;
}

.cure-content {
    padding: 1rem;
}

.cure-name {
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cure-civilian {
    font-style: italic;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.cure-description {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.cure-transformation {
    font-size: 0.9rem;
    border-top: 1px dashed var(--accent-color);
    padding-top: 0.8rem;
}

.cure-introduction {
    margin-top: 0.5rem;
}

.intro-quote {
    font-style: italic;
    color: var(--secondary-color);
    font-weight: bold;
}

.cure-images {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
    justify-content: center;
}

.cure-image {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--accent-color);
    transition: transform 0.3s ease;
}

.cure-image:hover {
    transform: scale(1.1);
}

.section-image {
    margin-top: 1rem;
    text-align: center;
}

.detail-image {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.details-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.section {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    padding: 1.2rem;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
}

#new-generation-btn {
    display: block;
    margin: 2rem auto 0;
    padding: 1rem 2rem;
}

.team-insignia-section {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.insignia-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.team-insignia-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
}

#team-insignia-description {
    flex: 1;
    min-width: 250px;
}

footer {
    text-align: center;
    margin-top: 3rem;
    padding: 1rem;
    color: var(--dark-color);
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .input-container {
        flex-direction: column;
    }
    
    .team-size-container {
        width: 100%;
        justify-content: center;
    }
    
    .details-section {
        grid-template-columns: 1fr;
    }
    
    #cures-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    h1 {
        font-size: 2.5rem;
    }
}