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

body {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
    color: #e6e6e6;
    min-height: 100vh;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
}

.header h1 {
    color: #00d4aa;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 0 20px rgba(0, 212, 170, 0.3);
    margin-bottom: 10px;
}

.header p {
    color: #8892b0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.card {
    position: relative;
    height: 200px;
    perspective: 1000px;
    cursor: pointer;
    animation: cardAppear 0.6s ease-out forwards;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card:hover .card-inner {
    box-shadow: 0 12px 40px rgba(0, 212, 170, 0.2);
}

.card.flipped .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(100, 255, 218, 0.1);
    background: rgba(16, 22, 26, 0.8);
    backdrop-filter: blur(10px);
}

.card-front {
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.05) 0%, rgba(0, 212, 170, 0.05) 100%);
    border-left: 4px solid #00d4aa;
}

.card-back {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05) 0%, rgba(255, 159, 67, 0.05) 100%);
    border-left: 4px solid #ff6b6b;
    transform: rotateY(180deg);
}

.ad-card {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1) 0%, rgba(75, 0, 130, 0.1) 100%);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-left: 4px solid #8a2be2;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.ad-card:hover {
    box-shadow: 0 12px 40px rgba(138, 43, 226, 0.2);
}

.ad-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.ad-label {
    color: #da70d6;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.ad-placeholder {
    color: #b19cd9;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
}

.ad-icon {
    font-size: 2rem;
    color: #8a2be2;
    margin-bottom: 10px;
    opacity: 0.7;
}

.card-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-front h3 {
    color: #64ffda;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    margin-bottom: 10px;
}

.card-back h4 {
    color: #ff9f43;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 8px;
}

.card-back p {
    color: #ccd6f6;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
    opacity: 0.9;
}

.flip-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: rgba(100, 255, 218, 0.6);
    font-size: 0.7rem;
    font-style: italic;
}

.upload-section {
    margin-top: 20px;
    padding: 20px;
    border: 2px dashed rgba(100, 255, 218, 0.3);
    border-radius: 12px;
    background: rgba(16, 22, 26, 0.5);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.upload-btn-row {
    display: flex;
    flex-direction: row;
    gap: 12px;
    width: 100%;
    justify-content: center;
    margin-bottom: 8px;
}

.upload-btn {
    background: linear-gradient(135deg, #00d4aa 0%, #64ffda 100%);
    color: #0f1419;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.4);
}

.upload-help {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #8892b0;
    font-style: italic;
}

.clear-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff9f43 100%);
    color: #0f1419;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.clear-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.upload-status {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.upload-status.success {
    background: rgba(0, 212, 170, 0.1);
    color: #00d4aa;
    border: 1px solid rgba(0, 212, 170, 0.3);
}

.upload-status.error {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.3);
}
@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* About page content box */
.about-content {
    max-width:700px;
    margin:40px auto 0 auto;
    padding:24px;
    background:rgba(16,22,26,0.7);
    border-radius:12px;
    color:#e6e6e6;
    box-shadow:0 4px 24px rgba(0,0,0,0.15);
}

.about-content h2 {
    color: #64ffda;
    margin-top: 0;
}

.about-content ul {
    margin:16px 0 0 24px;
}

.about-content a {
    color: #64ffda;
}

.footer-bar {
    width: 100%;
    position: fixed;
    left: 0;
    height: 32px;
    line-height: 32px;
    background: linear-gradient(135deg, #161b22 0%, #1a1f2e 100%);
    color: #ff6b6b;
    background-clip: border-box;
    font-size: 1rem;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    text-align: center;
    border-top: 1.5px solid rgba(100,255,218,0.12);
    z-index: 100;
    opacity: 0.92;
    box-shadow: 0 -2px 12px 0 rgba(0,0,0,0.08);
    letter-spacing: 0.02em;
    backdrop-filter: blur(2px);
    bottom: 0;
}
.top-bar {
    top: 0;
    bottom: auto;
    border-top: none;
    border-bottom: 1.5px solid rgba(100,255,218,0.12);
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.08);
    text-align: right;
    padding-right: 32px;
}
.footer-bar span, .footer-bar {
    color: #ff6b6b;
    background: linear-gradient(90deg, #ff6b6b 0%, #ff9f43 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}
@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }
    .card {
        height: 180px;
    }
    .card-front, .card-back {
        padding: 15px;
    }
    .card-front h3 {
        font-size: 0.9rem;
    }
    .card-back h4 {
        font-size: 0.8rem;
    }
    .card-back p {
        font-size: 0.75rem;
    }
    .header h1 {
        font-size: 2rem;
    }
    .header p {
        font-size: 1rem;
    }
    .footer-bar {
        font-size: 0.9rem;
        height: 28px;
        line-height: 28px;
    }
    .about-content {
        padding: 16px;
    }
}
@media (max-width: 480px) {
    .card {
        height: 160px;
    }
    .card-front, .card-back {
        padding: 12px;
    }
    .card-front h3 {
        font-size: 0.85rem;
    }
    .card-back h4 {
        font-size: 0.75rem;
    }
    .card-back p {
        font-size: 0.7rem;
    }
    .footer-bar {
        font-size: 0.8rem;
        height: 24px;
        line-height: 24px;
    }
    .about-content {
        padding: 10px;
    }
}
