/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Georgia', serif;
    color: #f5f5f5; /* Soft white for text */
    background-color: #191970; /* Midnight blue */
    background-image: url('img/starry-sky.jpg');
    background-size: cover;
}

header {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px;
    text-align: center;
    color: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header h1 {
    margin: 0;
}

nav a {
    color: #f5f5f5;
    text-decoration: none;
    margin: 0 15px;
}

.hero {
    background: rgba(0, 0, 0, 0.7) url('img/starry-sky.jpg') no-repeat center center;
    background-size: cover;
    color: #f5f5f5;
    padding: 100px 20px;
    text-align: center;
    border-radius: 10px;
    position: relative;
    margin-top: 100px; /* Add margin to push it down below the header */
}


.hero h2 {
    font-size: 3em; /* Increase size */
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8); /* Add shadow */
}

.hero p {
    font-size: 1.5em; /* Adjust size */
    margin: 20px 0; /* Add margin */
}

/* Button Styles */
.hero button, form button {
    background-color: #7cdeff;
    color: #121212;
    border: none;
    padding: 12px 25px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
    transition: transform 0.3s;
}

.hero button:hover, form button:hover {
    background-color: #ffd700; /* Slightly brighter yellow on hover */
}


section {
    padding: 40px 20px;
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}

#episode-list {
    list-style-type: none;
    padding: 0;
}

#episode-list li {
    cursor: pointer;
    margin: 10px 0;
    padding: 10px;
    background: #444;
    border-radius: 5px;
    color: #fff;
    transition: background 0.3s;
}

#episode-list li:hover {
    background: #555;
}

.episode-details {
    margin-top: 20px;
    padding: 15px;
    background: rgba(2, 2, 2, 0.9); 
    border-radius: 10px;
}


/* Characters Section Styles */
#characters {
    padding: 40px 20px;
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    text-align: center;
}

.character- {
    background: #222;
    margin: 15px;
    padding: 15px;
    border-radius: 10px;
    display: inline-block;
    width: 250px; /* Adjust width as needed */
    height: 450px; /* Set a fixed height */
    overflow: hidden; /* Ensures content doesn't overflow */
}
.character-profile {
    margin-top: 20px;
    padding: 15px;
    background: rgba(2, 2, 2, 0.9);
    border-radius: 10px;
    text-align: center;
}

.character-profile img {
    width: 100px; /* Adjust size as needed */
    border-radius: 10px;
}

.character-profile h3 {
    margin: 10px 0;
    color: #7cdeff; /* Change color for character names */
}

.character-profile p {
    color: #f5f5f5;
    height: 150px; /* Adjust height for description to ensure uniformity */
    overflow: hidden; /* Ensures overflow is hidden */
}

/* Magical Locations Section Styles */
#locations {
    padding: 40px 20px;
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    text-align: center;
}

.location-card {
    background: #222;
    margin: 15px;
    padding: 15px;
    border-radius: 10px;
    display: inline-block;
    width: 250px; /* Adjust width as needed */
    height: 450px; /* Keep uniform height */
    overflow: hidden; /* Ensures content doesn't overflow */
}

.location-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.location-card h3 {
    margin: 10px 0;
    color: #7cdeff; /* Change color for location names */
}

.location-card p {
    color: #f5f5f5;
    height: 150px; /* Match the character section */
    overflow: hidden; /* Ensures overflow is hidden */
}

/*** Contact form ***/
form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: auto;
}

form label {
    margin: 10px 0 5px;
}

form input, form textarea {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #444;
    border-radius: 5px;
    background: #333;
    color: #f5f5f5;
}

form button {
    background-color: #7cdeff;
    color: #121212;
    border: none;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

form button:hover {
    background-color: #f2d72e;
}

footer {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px;
    text-align: center;
    color: #fff;
}

.social-media a {
    color: #7cdeff;
    text-decoration: none;
    margin: 0 10px;
}

#scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #7cdeff;
    color: #121212;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: none;
}

#scroll-top:hover {
    background-color: #f2d72e;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero {
        padding: 30px 10px;
    }

    nav a {
        display: block;
        margin: 10px 0;
    }

    form {
        width: 100%;
    }
}
