body {
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: #f5f5f5;
    margin: 0;
    padding: 0;
    padding-top: 80px;
}

.search-div {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    padding: 10px;
    background-color: #1c1c1c;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.search-input {
    width: 300px;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 20px;
    font-size: 16px;
    color: #fff;
    background-color: #333;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #e50914;
}

.warning {
    display: none;
    color: #ff6b6b;
    font-size: 14px;
    margin-left: 15px;
}

.search-button {
    margin-left: 10px;
    padding: 10px 15px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b);
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.search-button:hover {
    transform: scale(1.1);
}
/* Style for the Results Heading */
.result-heading {
    font-size: 2em;
    color: #c62828; /* Darker, intense red for a striking effect */
    text-align: center;
    margin-top: 20px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(198, 40, 40, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 
        0 0 5px rgba(198, 40, 40, 0.6),
        0 0 15px rgba(198, 40, 40, 0.3),
        0 2px 10px rgba(0, 0, 0, 0.2);
    animation: popIn 1s ease forwards;
    opacity: 0; /* Initial opacity for animation */
}

/* Animation for the results heading */
@keyframes popIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Result and Details Styling */
.resultFromSearch {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    padding: 20px;
}

.film-container {
    background-color: #333;
    border-radius: 10px;
    padding: 15px;
    width: 200px;
    text-align: center;
    transition: transform 0.2s ease;
}

.film-container img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.film-container:hover {
    transform: scale(1.05);
}

.detail-view {
    padding: 20px;
    background-color: #222;
    border-radius: 10px;
    margin-top: 20px;
}

.show-info img {
    width: 150px;
    border-radius: 8px;
}

/* Season and Episode Styling */
.season-section {
    background-color: #1e1e1e;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.season-section h4 {
    color: #e50914;
    margin-bottom: 10px;
    font-size: 1.5em;
    text-align: left;
    padding-left: 10px;
    border-left: 5px solid #e50914;
}

.episode-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.episode-list img {
    width: 120px;
    height: auto;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.episode-list img:hover {
    transform: scale(1.05);
}

.episode-list p {
    font-size: 1em;
    color: #f5f5f5;
    text-align: center;
    margin: 5px 0 10px 0;
}

.episode-list a {
    color: #ff4b2b;
    text-decoration: none;
    font-weight: bold;
}

.episode-list a:hover {
    text-decoration: underline;
    color: #ff6b6b;
}

/* Main Welcome Message Styling */
#welcomeMessage {
    font-size: 2.5em;
    color: #b22222; /* Dark red base color */
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: scale(0.9);
    animation: flickerIn 3s ease forwards, neonGlow 2.5s ease-in-out 3s infinite alternate;
}

/* Flicker In Keyframes */
@keyframes flickerIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
        filter: brightness(0) blur(4px);
    }
    25% {
        opacity: 0.3;
        filter: brightness(1.1) blur(2px);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
        filter: brightness(1.2) blur(1px);
    }
    75% {
        opacity: 0.9;
        transform: scale(1);
        filter: brightness(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1);
    }
}

/* Dark Neon Glow Effect */
@keyframes neonGlow {
    0% {
        text-shadow: 0 0 5px #8b0000, 0 0 10px #8b0000, 0 0 20px #800000, 0 0 30px #4b0082, 0 0 40px #4b0082;
    }
    50% {
        text-shadow: 0 0 8px #4b0082, 0 0 15px #4b0082, 0 0 25px #8b0000, 0 0 35px #800000, 0 0 50px #800000;
    }
    100% {
        text-shadow: 0 0 5px #8b0000, 0 0 10px #8b0000, 0 0 20px #4b0082, 0 0 30px #4b0082, 0 0 40px #4b0082;
    }
}

/* Darker Color Shift Animation */
@keyframes colorShift {
    0% {
        color: #8b0000;
    }
    50% {
        color: #4b0082;
    }
    100% {
        color: #800000;
    }
}

#welcomeMessage {
    animation: flickerIn 3s ease forwards, neonGlow 2.5s ease-in-out 3s infinite alternate, colorShift 8s ease-in-out infinite;
}
