/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5em;
}

/* Ensure space between the content and footer */
footer {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    text-align: center;
    position: relative;
    width: 100%;
}

footer p {
    margin: 0;
}

a {
    color: #1abc9c;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Section and Poster Style */
section {
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    max-width: 900px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#poster {
    width: 250px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

#poster:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* Button Styles */
button {
    margin-top: 10px;
    padding: 12px 30px;
    background-color: #1abc9c;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    border-radius: 25px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
    background-color: #16a085;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Add space between the last section and footer */
section {
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    max-width: 900px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

footer {
    margin-top: 40px; /* Adds space between content and footer */
}

.synopsis-section, .background-section, .anime-info, .statistics-section, .related-entries, .characters-voice-actors, .staff-section {
    margin-bottom: 30px;
}

h2 {
    color: #34495e;
    margin-top: 0;
    border-bottom: 2px solid #1abc9c;
    padding-bottom: 10px;
    font-size: 1.8em;
}

p {
    font-size: 1.1em;
    margin-bottom: 1.2em;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    font-size: 1.1em;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

li::before {
    content: "\2022";
    color: #1abc9c;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Sections Specific Styles */
.synopsis-section, .background-section, .anime-info, .statistics-section, .related-entries, .characters-voice-actors, .staff-section {
    margin-bottom: 30px;
}

/* Card Style for Characters, Staff, and Statistics */
ul li {
    background-color: #ecf0f1;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

li strong {
    color: #2c3e50;
}

/* Table Style for Information Section */
.anime-info ul {
    display: flex;
    flex-wrap: wrap;
}

.anime-info ul li {
    flex: 1 1 45%;
    margin-right: 5%;
}

.anime-info ul li:nth-child(2n) {
    margin-right: 0;
}

@media screen and (max-width: 768px) {
    .anime-info ul li {
        flex: 1 1 100%;
        margin-right: 0;
    }
}

/* Media Query for Mobile Responsiveness */
@media screen and (max-width: 768px) {
    body {
        font-size: 1em;
    }

    header h1 {
        font-size: 2em;
    }

    section {
        margin: 10px;
        padding: 15px;
    }

    h2 {
        font-size: 1.5em;
    }

    p, li {
        font-size: 1em;
    }

    footer {
        padding: 15px 0;
    }
}

/* Modal (Pop-up) Styles for Trailer and Poster */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.trailer-content {
    position: relative;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 800px;
}

#poster {
    width: 300px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#poster:hover {
    transform: scale(1.1);
}

button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #2980b9;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #3498db;
}
