
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0; /* Light grey background */
}

.background-image {
  width: 100%;
    min-height: 100vh;
    background-image: url(http://www.oneluckybug.com/galaxy3.png);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: 94% auto;
    background-position: top center;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #0A0A29; 
   }

.topper {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto; /* Center the block */
    padding-top: 20px;
}

.topper img {
    max-width: 100%;
    height: auto;
    
   }

.link {
    margin-top: 20px;
}

.button-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7); /* Darker semi-transparent background */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.style-button {
    background-color: #555;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none; /* For anchor tags styled as buttons */
    display: inline-block; /* For anchor tags styled as buttons */
    transition: background-color 0.3s ease;
}

.style-button:hover {
    background-color: #777;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    overflow: hidden; /* Ensures rounded corners apply to children */
    left: 0; /* Align dropdown with button */
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.reader-container {
    background-color: rgba(10, 10, 41, 0.6);
    color: white;
    padding: 30px;
    margin: 20px auto; /* Center and add vertical margin */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px; /* Limit width */
    text-align: left; /* Align text within container */
}

.reader-container h2 {
    font-size: 2em;
    color: white;
    text-align: center;
    margin-bottom: 60px;
}

.reader-container .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.reader-container .container img {
    width: 125px; /* Set fixed width for consistency */
    height: auto;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease; /* Added transition for smooth scaling */
}

.reader-container .container img:hover {
    transform: scale(1.1); /* Increased scale on hover */
}

.reader-container p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 15px;
}

.questions-section {
    width: 90%; /* Adjust width for better fit */
    max-width: 700px; /* Constrain width */
    margin: 30px auto; /* Center and add vertical margin */
    display: flex;
    flex-direction: column; /* Stack accordion items vertically */
    gap: 25px; /* Space between accordion items */
}

.FAQButton-item {
    background-color: #7d7e86; /* Light background for the item container */
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Style for the summary (the clickable part of the accordion) */
.FAQButton-header {
    background-color: #7d7e86;
    color: white;
    padding: 12px 18px; /* Padding for the header */
    border: none;
    border-radius: 6px; /* Apply border-radius directly to summary for initial appearance */
    text-align: left;
    font-size: 1.1em; /* Slightly larger font for headers */
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box; /* Include padding in width */
    outline: none; /* Remove focus outline */
    list-style: none; /* REMOVE DEFAULT ARROW/MARKER */
    /* For consistency, explicitly set appearance on summary */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); /* Add a clearer shadow */
    min-height: 50px; /* Ensure a minimum height for the header */
    gap: 10px;
}

.FAQButton-header:hover {
    background-color: #3B4160; /* Even darker on hover */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

/* When the details element is open, adjust the summary's border-radius */
.FAQButton-item[open] > .FAQButton-header {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.close-accordion-button {
    display: block; /* Make it a block element */
    margin: 20px auto 10px; /* Center it with some vertical spacing */
    padding: 10px 20px;
    background-color: #555; /* Darker background */
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.close-accordion-button:hover {
    background-color: #777; /* Lighter on hover */
}


/* Style for the content within the accordion */
.FAQButton-content {
    padding: 20px; 
    background-color: #0a0a29;
    color: white;
    text-align: left; 
    border-bottom-left-radius: 8px; 
    border-bottom-right-radius: 8px;   
}

.character-cards-container {
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Responsive grid, min 200px wide */
    justify-items: center;     
    gap: 20px; /* Space between individual character cards */
    width: 100%; 
    padding: 10px 0; 
}


.character-card {
    position: relative; /* Needed for positioning the overlay */
    display: flex;
    flex-direction: column; /* Stack image and name vertically */
    align-items: center;
    text-align: center;
    width: 200px; /* Fixed width for the card */
    /* Removed fixed height here, let it adjust to content */
    background-color: rgba(0, 0, 0, 0.4); /* Slight background for the card */
    border-radius: 8px;
    overflow: hidden; /* Ensures description stays within bounds */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    padding-bottom: 10px; /* Add padding at the bottom for the name */
}

.character-card:hover {
    transform: translateY(-5px); /* Lift effect on hover */
}

.character-card img {
    width: 100%; /* Image fills the card width */
    height: 200px; /* Fixed height for the image to make it square */
    object-fit: cover; /* Ensures image covers the area without distortion */
    border-radius: 4px; /* Slightly rounded corners for images */
}

.character-name {
    font-weight: bold;
    margin-top: 8px; /* Space between image and name */
    margin-bottom: 5px; /* Space between name and bottom of card */
    color: white; /* Ensure name is visible on dark background */
    font-size: 1.1em;
}

.character-description-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Overlay now covers the entire card, including the name */
    background-color: rgba(0, 0, 0, 0.8); /* Darker semi-transparent overlay */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    box-sizing: border-box;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
    border-radius: 8px; /* Match card border-radius */
    text-align: center;
    font-size: 0.95em;
    line-height: 1.4;
}

.character-card:hover .character-description-overlay {
    opacity: 1; /* Show on hover */
}

.FAQPBook {
    width: 100%; /* Take full width of parent content area */
    margin-bottom: 15px; /* Space between book accordions */
    background-color: rgba(0, 0, 0, 0.2); /* Slightly transparent background for sub-item */
    border-radius: 6px; /* Slightly smaller radius than main item */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    overflow: hidden; /* Ensure content is clipped within rounded corners */
}

.FAQPB-header {
    background-color: #6b707a; /* Slightly darker/different shade for nested header */
    color: white;
    padding: 12px 18px; /* Slightly less padding than main header */
    border: none;
    border-radius: 6px;
    text-align: left; /* Align text left for sub-headers */
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: space-between; /* Space out text and potential arrow */
    align-items: center;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, border-radius 0.3s ease;
    box-sizing: border-box;
    list-style: none; /* Remove default marker */
    -webkit-appearance: none; /* Normalize appearance */
    -moz-appearance: none;
    appearance: none;
}

.FAQPB-header:hover {
    background-color: #5d6168; /* Darker on hover */
}

.FAQPBook[open] > .book-accordion-header {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.book-accordion-content {
    padding: 15px; /* Padding for content within nested accordion */
    background-color: rgba(0, 0, 0, 0.3); /* Slightly transparent background for content */
    color: white; /* Make text visible */
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    overflow: hidden; /* Needed for max-height transition */
    max-height: 0; /* Default collapsed state */
    transition: max-height 0.7s ease-out, padding 0.7s ease-out; /* Smooth transition */
}


.footer {
    background-color: #333;
    color: #ccc;
    padding: 30px;
    margin-top: 30px;
    text-align: center;
    font-size: 0.9em;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
    width: 80%;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.footer p {
    margin-bottom: 10px;
}

/* Social media buttons styling */
.social-links {
    margin: 20px auto; /* Centered and added vertical margin */
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
    gap: 15px; /* Space between icons */
    max-width: 800px; /* Constrain width to match reader-container */
}

.social-link {
    color: #fff; /* Changed icon color to white for better contrast */
    font-size: 2em; /* Icon size */
    width: 50px; /* Make them square */
    height: 50px;
    border-radius: 50%; /* Make them round */
    background-color: rgba(0, 0, 0, 0.5); /* Increased opacity of background */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    text-decoration: none; /* Remove underline */
}

.social-link:hover {
    background-color: rgba(0, 0, 0, 0.7); /* Darker background on hover */
    color: #fff; /* White icon on hover */
    transform: translateY(-3px); /* Lift effect */
}

/* Visual separator style */
.footer-separator {
    width: 80%; /* Adjust width as needed */
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2); /* Light line */
    margin: 20px auto; /* Center and add vertical space */
}

.copyright {
    color: #999;
    font-size: 0.8em;
    margin-top: 10px;
    margin-bottom: 20px; /* Space below copyright */
}

/* Responsive adjustments for question buttons only */
@media (max-width: 700px) { /* Adjust for screens smaller than 768px */
   
 .background-image {
        /* On small screens, background image will cover 100% width and 33.33% of viewport height */
        background-size: 300% 33.33vh;
        background-position: top center; /* Ensure it's positioned at the top */
    }

 .FAQButton-header {
        background-color: #f0f0f0; 
        color: #333; /* Dark text for readability on light background */
        font-size: 1em; /* Smaller font on small screens */
        padding: 10px 15px;
        min-height: 45px; /* Adjust min-height for smaller screens */
    }

    .FAQButton-content {
background-color: #ffffff; 
color: #333;

        padding: 15px; /* Smaller padding on small screens */
    }

.social-links {
        flex-wrap: nowrap; /* Prevent wrapping, keeping buttons in one row */
        overflow-x: auto;   /* Enable horizontal scrolling if content overflows */
        justify-content: flex-start; /* Align items to the start for better scrolling experience */
        padding: 0 10px; /* Add some horizontal padding to the social links container itself */
    }
}
