/* WAIFU1X - Kawaii/Anime Retro Style */

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

body {
    background: #ffe4e1;
    background-image:
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,192,203,0.3) 35px, rgba(255,192,203,0.3) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255,182,193,0.3) 35px, rgba(255,182,193,0.3) 70px);
    font-family: 'Comic Sans MS', 'Trebuchet MS', cursive;
    color: #333;
    padding: 20px;
}

.container {
    max-width: 950px;
    margin: 0 auto;
    background: #fff;
    border: 6px double #ff1493;
    box-shadow: 0 0 0 3px #ffc0cb, 8px 8px 0px rgba(255,20,147,0.3);
}

/* Top Banner */
.top-banner {
    background: linear-gradient(90deg, #ff69b4, #ff1493, #ff69b4);
    border-bottom: 4px solid #ff1493;
}

.top-banner marquee {
    color: #fff;
    font-weight: bold;
    font-size: 1.2em;
    padding: 8px;
    text-shadow: 2px 2px #000;
}

/* Header */
.header {
    background: linear-gradient(180deg, #ffb6c1 0%, #ffc0cb 50%, #ffb6c1 100%);
    text-align: center;
    padding: 30px 20px;
    border-bottom: 5px solid #ff1493;
    position: relative;
}

.pixel-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: repeating-linear-gradient(
        90deg,
        #ff1493,
        #ff1493 10px,
        #fff,
        #fff 20px
    );
}

.title {
    font-size: 4em;
    margin: 20px 0 10px 0;
    font-family: 'Impact', 'Arial Black', sans-serif;
    letter-spacing: 8px;
    text-shadow:
        4px 4px 0 #ff69b4,
        8px 8px 0 #000;
}

.title span {
    display: inline-block;
    animation: rainbow-wave 3s ease-in-out infinite;
}

.w { animation-delay: 0s; color: #ff0000; }
.a { animation-delay: 0.1s; color: #ff7f00; }
.i { animation-delay: 0.2s; color: #ffff00; }
.f { animation-delay: 0.3s; color: #00ff00; }
.u { animation-delay: 0.4s; color: #0000ff; }
.x { animation-delay: 0.5s; color: #8b00ff; }
.x2 { animation-delay: 0.6s; color: #ff00ff; }

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

.subtitle {
    background: #fff;
    color: #ff1493;
    font-size: 1.3em;
    font-weight: bold;
    padding: 10px 20px;
    border: 3px solid #ff1493;
    display: inline-block;
    margin-top: 15px;
}

.version {
    margin-top: 15px;
    font-size: 1.1em;
    color: #666;
}

.blink {
    color: #ff0000;
    font-weight: bold;
    animation: blink-animation 0.8s step-start infinite;
}

@keyframes blink-animation {
    50% {
        opacity: 0;
    }
}

/* Main Content */
.main-content {
    padding: 30px;
}

/* Notice Box */
.notice-box {
    background: linear-gradient(135deg, #fff0f5 0%, #ffe4e1 100%);
    border: 5px ridge #ff69b4;
    margin-bottom: 30px;
    overflow: hidden;
}

.notice-header {
    background: #ff1493;
    color: #fff;
    font-size: 1.5em;
    font-weight: bold;
    padding: 12px;
    text-align: center;
    text-shadow: 2px 2px #000;
}

.notice-body {
    padding: 20px;
    font-size: 1.2em;
    text-align: center;
    line-height: 1.8;
}

/* Upload Section */
.upload-section {
    background: #fff;
    border: 4px solid #ff69b4;
    padding: 25px;
    margin-bottom: 25px;
    text-align: center;
}

.upload-section h2 {
    color: #ff1493;
    font-size: 2em;
    margin-bottom: 15px;
    text-shadow: 2px 2px #ffc0cb;
}

.instruction {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #666;
}

.upload-box {
    background: #ffe4e1;
    border: 3px dashed #ff69b4;
    padding: 25px;
    margin: 20px 0;
    min-height: 100px;
}

#imageInput {
    background: #fff;
    border: 3px solid #ff1493;
    padding: 12px;
    font-size: 1em;
    font-family: inherit;
    cursor: pointer;
}

#preview {
    margin-top: 20px;
}

#error {
    background: #ff0000;
    color: #fff;
    border: 3px solid #000;
    padding: 15px;
    margin-top: 15px;
    font-weight: bold;
    display: none;
}

.enhance-btn {
    background: linear-gradient(180deg, #ff69b4 0%, #ff1493 100%);
    color: #fff;
    font-size: 1.8em;
    font-weight: bold;
    padding: 20px 50px;
    border: 5px outset #ff69b4;
    cursor: pointer;
    font-family: inherit;
    text-shadow: 3px 3px #000;
    margin-top: 20px;
    animation: glow-button 2s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(255,20,147,0.4);
}

@keyframes glow-button {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(255,20,147,0.4);
    }
    50% {
        box-shadow: 0 5px 25px rgba(255,20,147,0.8), 0 0 30px rgba(255,105,180,0.6);
    }
}

.enhance-btn:hover:not(:disabled) {
    background: linear-gradient(180deg, #ff1493 0%, #ff69b4 100%);
    transform: scale(1.05);
}

.enhance-btn:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    animation: none;
    box-shadow: none;
}

#progress {
    margin-top: 20px;
}

#result {
    margin-top: 20px;
}

/* Info Section */
.info-section {
    margin: 30px 0;
}

.info-section h3 {
    background: #ff69b4;
    color: #fff;
    padding: 15px;
    text-align: center;
    font-size: 1.6em;
    border: 3px solid #ff1493;
    text-shadow: 2px 2px #000;
}

.info-content {
    padding: 20px;
    background: #fff0f5;
    border: 3px solid #ff69b4;
    border-top: none;
}

.info-content table {
    border-collapse: collapse;
}

.info-content td {
    font-size: 1em;
    padding: 15px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.feature-card {
    background: linear-gradient(135deg, #ffe4e1 0%, #ffb6c1 100%);
    border: 4px solid #ff69b4;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(255,20,147,0.3);
}

.feature-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.feature-title {
    color: #ff1493;
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 8px;
}

.feature-desc {
    color: #666;
    font-size: 0.95em;
}

/* Technical Specs */
.tech-specs {
    background: #f0f0f0;
    border: 4px groove #ff69b4;
    padding: 20px;
    margin: 30px 0;
}

.tech-specs h3 {
    color: #ff1493;
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-decoration: underline;
}

.tech-specs ul {
    list-style: none;
    padding: 0;
}

.tech-specs li {
    background: #fff;
    border-left: 5px solid #ff69b4;
    padding: 12px;
    margin: 10px 0;
    font-size: 1em;
}

/* Stats Box */
.stats-box {
    display: flex;
    justify-content: space-around;
    background: linear-gradient(135deg, #ff1493 0%, #ff69b4 100%);
    border: 5px solid #000;
    padding: 25px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    color: #fff;
    min-width: 150px;
    margin: 10px;
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    text-shadow: 3px 3px #000;
    font-family: 'Impact', sans-serif;
}

.stat-label {
    font-size: 1.1em;
    margin-top: 5px;
}

/* Testimonials */
.testimonials {
    background: #fff0f5;
    border: 4px solid #ff69b4;
    padding: 25px;
    margin: 30px 0;
}

.testimonials h3 {
    color: #ff1493;
    text-align: center;
    font-size: 1.6em;
    margin-bottom: 20px;
    text-decoration: underline;
}

.testimonial {
    background: #fff;
    border-left: 5px solid #ff1493;
    padding: 15px;
    margin: 15px 0;
}

.quote {
    font-style: italic;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.author {
    text-align: right;
    color: #666;
    font-weight: bold;
}

/* Footer */
.footer {
    background: #333;
    color: #fff;
    padding: 25px;
    text-align: center;
    border-top: 5px solid #ff1493;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #ff69b4;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
}

.footer-links a:hover {
    color: #ff1493;
    text-decoration: underline;
}

.footer p {
    margin: 8px 0;
    font-size: 0.95em;
}

.badges {
    margin-top: 15px;
}

.badges img {
    border: 2px solid #666;
    margin: 5px;
    background: #555;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .title {
        font-size: 2.5em;
        letter-spacing: 4px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-box {
        flex-direction: column;
    }

    .enhance-btn {
        font-size: 1.4em;
        padding: 15px 30px;
    }

    .info-content table,
    .info-content tbody,
    .info-content tr,
    .info-content td {
        display: block;
    }

    .info-content td {
        border: 2px solid #ff1493;
        margin: 5px 0;
    }
}
