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

body {
    font-family: 'Arial', sans-serif;
    background: #242423;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    padding: 25px 0;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.ads-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: auto;
    margin-top: 0;
}

.loading {
    color: #0F8BF0;
    font-size: 1.5rem;
    text-align: center;
    background: linear-gradient(45deg, #00f5ff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.ad-card {
    position: relative;
    background: #1a1a1a;
    border-radius: 20px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideInFromRight 0.5s ease-out, float 6s ease-in-out infinite;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 100%;
    border: 1px solid #333;
    touch-action: pan-y;
    margin: 2rem 0;
}

.progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(45deg, #00f5ff, #ff00ff);
    background-size: 200% 100%;
    animation: progressAnimation 30s linear infinite;
    transform-origin: left;
}

@keyframes progressAnimation {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

.ad-card:hover .progress-bar {
    animation-play-state: paused;
}

.ad-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: #444;
}

.glow-frame {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 20px;
    background: linear-gradient(45deg, #00f5ff, #ff00ff);
    background-size: 400% 400%;
    animation: glow 3s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.3s;
}

.ad-card:hover .glow-frame {
    opacity: 0.3;
    animation: glow 2s linear infinite;
}

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

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

@keyframes slideInFromRight {
    from {
        transform: translateX(100%) translateY(0px);
        opacity: 0;
    }
    to {
        transform: translateX(0) translateY(0px);
        opacity: 1;
    }
}

@keyframes slideOutToLeft {
    from {
        transform: translateX(0) translateY(0px);
        opacity: 1;
    }
    to {
        transform: translateX(-100%) translateY(0px);
        opacity: 0;
    }
}

.ad-card.removing {
    animation: slideOutToLeft 0.4s ease-in forwards;
}

.ad-card.entering {
    animation: slideInFromRight 0.5s ease-out forwards, float 6s ease-in-out infinite 0.5s;
}

.ad-content {
    position: relative;
    z-index: 1;
}

.ad-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #00f5ff, #ff00ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.ad-content p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.cta {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(45deg, #00f5ff, #ff00ff);
    border-radius: 25px;
    color: #0a0a0a;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.ad-card:hover .cta {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(100, 100, 255, 0.3);
}

.countdown {
    color: #000000;
    font-weight: normal;
    font-family: 'Arial';
    font-size: 0.9em;
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }
    
    .ad-card {
        margin: 1.5rem;
        padding: 1.5rem;
    }
    
    .ad-content h2 {
        font-size: 1.5rem;
    }
}