/* Lottery Page Specific Styles */

.lottery-hero {
    height: 80vh;
    background: linear-gradient(rgba(44, 90, 160, 0.8), rgba(220, 53, 69, 0.8)), url("images/background.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.lottery-hero .hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.lottery-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.lottery-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

.lottery-card h3 {
    font-size: 1.8rem;
    color: #2c5aa0;
    margin-bottom: 1.5rem;
}

.input-section textarea {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    resize: vertical;
}

.lottery-display ul {
    list-style: none;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    background: #fefefe;
}

.lottery-display li {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
    color: #555;
}

.lottery-display li:last-child {
    border-bottom: none;
}

.winner-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: #dc3545;
    margin-top: 2rem;
    margin-bottom: 1rem;
    animation: pulseWinner 1.5s infinite;
}

.winner-message {
    background: #e6ffe6;
    border: 2px solid #28a745;
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 2rem;
    display: none; /* Hidden by default */
}

.winner-message p {
    font-size: 1.2rem;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.winner-message p:last-child {
    margin-bottom: 0;
}

.winner-message #winnerPlaceholder {
    font-weight: 700;
    color: #dc3545;
}

/* Animations */
@keyframes pulseWinner {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .lottery-hero {
        height: 70vh;
    }
    
    .lottery-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .lottery-card {
        padding: 2rem;
    }
    
    .lottery-card h3 {
        font-size: 1.5rem;
    }
    
    .winner-name {
        font-size: 2rem;
    }
    
    .winner-message p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .lottery-card {
        padding: 1.5rem;
    }
    
    .lottery-card h3 {
        font-size: 1.3rem;
    }
    
    .winner-name {
        font-size: 1.8rem;
    }
}


