@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

body {
    margin: 0;
    font-family: 'Anton', sans-serif;
    background-color: #ffffff;
    color: #0d1a4e;
    overflow-x: hidden;
}

#root {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scrolling-header {
    background-color: #f56833;
    color: white;
    padding: 10px 0;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.scrolling-header p {
    display: inline-block;
    padding-left: 100%;
    margin: 0;
    animation: scroll-left 87.75s linear infinite;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

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

@keyframes logoEntrance {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* Preloader Component Classes */
.preloader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%), url('lop.png');
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.preloader-logo {
    width: 200px;
    height: auto;
    margin-bottom: 40px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    animation: logoEntrance 1s ease-out;
}

.preloader-spinner {
    width: 80px;
    height: 80px;
    border: 6px solid rgba(255,255,255,0.2);
    border-top: 6px solid #ff6b35;
    border-radius: 50%;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    animation: spin 1s linear infinite;
}

.preloader-text {
    color: white;
    font-size: 1.4rem;
    text-align: center;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    animation: slideUp 0.8s ease-out 0.5s both;
}

.preloader-dots {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.preloader-dot {
    width: 12px;
    height: 12px;
    background-color: #ff6b35;
    border-radius: 50%;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    animation: pulse 1.5s ease-in-out infinite;
}

.preloader-dot:nth-child(1) { animation-delay: 0s; }
.preloader-dot:nth-child(2) { animation-delay: 0.2s; }
.preloader-dot:nth-child(3) { animation-delay: 0.4s; }

/* Audio Visualizer Classes */
.visualizer-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 15px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    min-width: 120px;
}

.visualizer-container.minimized {
    padding: 10px;
}

.visualizer-container.expanded {
    padding: 15px;
    bottom: -10px; /* Move down 30px from original 20px position */
}

.visualizer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: margin-bottom 0.3s ease;
}

.visualizer-header.minimized {
    margin-bottom: 0;
}

.visualizer-header.expanded {
    margin-bottom: 8px;
}

.visualizer-title {
    color: white;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    transition: all 0.3s ease;
}

.visualizer-title.minimized {
    font-size: 0.7rem;
}

.visualizer-title.expanded {
    font-size: 0.8rem;
}

.visualizer-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

.visualizer-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.visualizer-canvas {
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
}

.visualizer-minimized-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 20px;
    gap: 2px;
}

.visualizer-mini-bar {
    width: 3px;
    background: linear-gradient(to top, #ff6b35, #667eea);
    border-radius: 2px;
    animation: miniBarPulse 1.2s ease-in-out infinite;
}

.visualizer-mini-bar:nth-child(1) { animation-delay: 0s; }
.visualizer-mini-bar:nth-child(2) { animation-delay: 0.1s; }
.visualizer-mini-bar:nth-child(3) { animation-delay: 0.2s; }
.visualizer-mini-bar:nth-child(4) { animation-delay: 0.3s; }
.visualizer-mini-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes miniBarPulse {
    0%, 100% {
        height: 8px;
        opacity: 0.6;
    }
    50% {
        height: 16px;
        opacity: 1;
    }
}

.hero-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 60px; /* Space for scrolling header */
    background-image: url('section.png');
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
    min-height: 100vh;
    padding-bottom: 50px;
    box-sizing: border-box;
}

.logo {
    width: 200px;
    margin-top: 10vh;
}

.manifesto {
    text-align: center;
    max-width: 600px;
    margin-top: 4vh;
    padding: 0 20px;
}

.manifesto h1 {
    font-size: 3rem;
    color: #0d1a4e;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.manifesto p {
    font-size: 1.2rem;
    color: #0d1a4e;
    line-height: 1.6;
}

.generator-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px 20px;
    box-sizing: border-box;
    background-color: #ffffff;
}

.generator-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.card-container {
    perspective: 1000px;
    width: 300px;
    height: 450px;
    cursor: pointer;
}

.card {
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    background-size: cover;
    background-position: center;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    font-size: 1.5rem;
    border: 2px dashed #0d1a4e;
}

#image-uploader {
    display: none;
}

.buttons-container {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.action-button {
    background-color: #0d1a4e;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-family: 'Anton', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.action-button:hover {
    background-color: #1a3a9a;
    transform: translateY(-2px);
}

.action-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

#canvas-container {
    display: none;
}

/* Crypto News Loading Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Contest Button Pulse Animation */
@keyframes contestButtonPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(5, 255, 255, 0.4);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 0 30px rgba(5, 255, 255, 0.7);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(5, 255, 255, 0.4);
    }
}

.contest-button:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 0 35px rgba(5, 255, 255, 0.8) !important;
}

.contest-button:active {
    transform: scale(0.95) !important;
}

/* Contest Modal Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes trackingPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(32, 201, 151, 0.4);
        border-color: #20c997;
    }
    50% {
        box-shadow: 0 0 35px rgba(32, 201, 151, 0.8);
        border-color: #17a2b8;
    }
}

