/* Importing a modern font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Orbitron:wght@400;700&display=swap');

/* Keyframe animation for twinkling stars */
@keyframes twinkle {
    0% { opacity: 0.8; }
    50% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

/* Universal styles for a clean slate */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif; /* General text */
    line-height: 1.6;
    background-color: #000000; /* Fallback black background */
    background-image: url('images/Coruscant_at_night.webp'); 
    background-size: cover; 
    background-position: center center; 
    background-attachment: fixed; 
    color: #4B9CD3; /* Carolina Blue text */
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh; 
    position: relative; 
    overflow-x: hidden; 
}

/* Star field container - This is commented out as the background image is now in use */
.stars { 
    display: none; 
}


/* Header styling */
header {
    width: 100%;
    text-align: center;
    padding: 2.5rem 0;
    background-color: rgba(0, 0, 0, 0.75); 
    box-shadow: 0 6px 10px rgba(75, 156, 211, 0.15); 
    position: relative;
    z-index: 1;
}

header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    color: #4B9CD3; 
    letter-spacing: 4px;
    text-transform: uppercase;
    text-shadow: none; 
}

/* Main content container */
main {
    max-width: 900px;
    width: 90%;
    margin: 2rem auto;
    background-color: rgba(26, 26, 26, 0.9); 
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(75, 156, 211, 0.2); 
    position: relative;
    z-index: 1;
}

/* Section styling */
section {
    padding: 2rem 0;
    border-bottom: 1px dashed #444444;
    position: relative;
    z-index: 1;
}

section:last-child {
    border-bottom: none;
}

h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    color: #4B9CD3; 
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    text-shadow: none; 
}

p {
    margin-bottom: 1.5rem;
    text-align: center;
    color: #e0e0e0;
}

/* --- New Member Button Styles --- */
.member-button-container {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    margin-top: 2rem;
    gap: 10px; 
}

.member-button {
    display: inline-block;
    padding: 8px 16px;
    background-color: #000000;
    color: #4B9CD3;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid #4B9CD3;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.member-button:hover {
    background-color: #4B9CD3;
    color: #fffdfd;
}

/* --- Old Button Styling (Adjusted for consistency) --- */
/* --- Old Button Styling (Adjusted for consistency) --- */
.button-container {
   text-align: center;
   margin-top: 2.5rem;
}

.button {
   display: inline-block;
   padding: 14px 28px;
   margin: 0 12px;
   background-color: #4B9CD3;
   color: #fbfbfb;
   text-decoration: none;
   font-weight: bold;
   font-size: 1.1rem;
   border-radius: 30px;
   transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
   box-shadow: 0 0 15px rgba(75, 156, 211, 0.7);
}

.button:hover {
   background-color: #63b3f2;
   transform: translateY(-3px);
   box-shadow: 0 0 20px rgba(75, 156, 211, 1);
}

/* --- Card Layout Styles --- */
.cards-container {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: 20px;
   margin-top: 2rem;
   padding: 0 10px;
}

.member-card {
   background-color: #36454F;
   border: 1px solid #36454F;
   border-radius: 12px;
   padding: 20px;
   text-align: center;
   width: 220px;
   box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
   transition: transform 0.3s ease, box-shadow 0.3s ease;
   display: flex;
   flex-direction: column;
   align-items: center;
}

.member-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.member-photo {
   width: 140px;
   height: 140px;
   border-radius: 50%;
   border: 3px solid #4B9CD3;
   object-fit: cover;
   margin-bottom: 15px;
   box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.member-card h3 {
   color: #ffffff;
   font-family: 'Roboto', sans-serif;
   font-size: 1.3rem;
   font-weight: 700;
   margin-bottom: 5px;
}

.member-title {
   font-family: 'Roboto', sans-serif;
   font-size: 0.95rem;
   color: #ffffff;
   margin-bottom: 20px;
   flex-grow: 1;
}

.read-bio-button {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   background-color: #36454F;
   color: #4B9CD3;
   padding: 8px 18px;
   border: 1px solid #36454F;
   border-radius: 20px;
   text-decoration: none;
   font-size: 0.9rem;
   font-weight: bold;
   transition: background-color 0.3s, color 0.3s, border-color 0.3s;
   white-space: nowrap;
}

.read-bio-button::after {
   content: ' >';
   margin-left: 5px;
   font-weight: bold;
}

.read-bio-button:hover {
   background-color: #4B9CD3;
   color: #36454F;
   border-color: #4B9CD3;
}
/* Image styling */
img {
    display: block;
    max-width: 400px;
    margin: 0 auto 1.8rem;
}

/* List styling */
ul {
    list-style: none;
    text-align: center;
}

li {
    margin-bottom: 12px;
}

li a {
    color: #4B9CD3;
    text-decoration: none;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    font-size: 1.1rem;
}

li a:hover {
    color: #63b3f2;
    text-decoration: underline;
    text-shadow: 0 0 5px rgba(75, 156, 211, 0.8);
}

/* Footer styling */
footer {
    width: 100%;
    text-align: center;
    padding: 1.5rem 0;
    background-color: rgba(0, 0, 0, 0.75); 
    margin-top: 2rem;
    border-top: 1px solid #444444;
    position: relative;
    z-index: 1;
}

footer p {
    font-size: 1rem;
    color: #888888;
}

/* Styling for individual Jedi Bio Pages */
.jedi-name {
   color: #4B9CD3;
   font-size: 2.5rem;
   text-align: center;
   margin-bottom: 1.5rem;
}

.jedi-photo-large {
   display: block;
   width: 250px;
   height: 250px;
   object-fit: cover;
   border-radius: 50%;
   border: 5px solid #4B9CD3;
   margin: 0 auto 2rem;
   box-shadow: 0 4px 15px rgba(75, 156, 211, 0.4);
}

.jedi-bio-text {
   max-width: 600px;
   margin: 0 auto 2rem;
   text-align: center;
   color: #e0e0e0;
   line-height: 1.8;
}