* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    color: #fff;
    background-color: #000;
    line-height: 1.6;
}

header {
    background-color: #000;
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #ffd700;
    text-decoration: none;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    background-color: #000;
    color: #ffd700;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.hero-left {
    flex: 1;
    margin-right: 30px;
}

.hero-right {
    flex: 1;
}

.hero-image,
.bio-card img {
    border: 2px solid #ffcc00;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    max-width: 100%;
    height: auto;
}

section {
    padding: 60px 20px;
    text-align: center;
}

h2 {
    position: relative;
    font-size: 2em;
    text-align: center;
    margin-bottom: 20px;
    display: inline-block;
    white-space: normal; /* Allow wrapping */
    color: #ffd700; /* Color added for consistency */
}

h2::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -5px; /* Adjust distance below the text */
    width: 100%; /* Make underline the same width as text */
    height: 3px; /* Thickness of the line */
    background-color: #ffd700; /* Gold color */
    border-radius: 5px; /* Rounded edges for a fancy look */
    opacity: 0.8; /* Modern look with slight transparency */
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); /* Subtle glow effect */
}

p {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #ffd700;
}

.btn {
    background-color: #ffd700;
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.concepts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.concept-card {
    background-color: #111;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
    color: #ffd700;
}

.bio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center; /* Center items horizontally */
}

.bio-card {
    background-color: #111;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3);
    color: #ffd700;
    text-align: center; /* Center text inside the card */
}

.resource-links {
    list-style-type: none;
    padding: 0;
}

.resource-links li {
    margin: 10px 0;
}

.resource-links a {
    color: #ffd700;
    text-decoration: none;
    font-size: 1.2rem;
}

.resource-links a:hover {
    text-decoration: underline;
}

footer {
    background-color: #000;
    color: #fff;
    padding: 20px;
    text-align: center;
}

footer p {
    font-size: 0.9rem;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Set to 3 columns */
    gap: 20px;
    justify-items: center; /* Center items horizontally */
}

.photo-item img {
    border: 2px solid #ffd700;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.5);
    max-width: 100%;
    height: auto;
    display: block;
}

/* Video Grid Styling */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Set to 3 columns */
    gap: 20px;
    padding: 20px;
}

.video-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

video {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Section Divider Line Styling */
.section-divider {
    border: none;
    border-top: 2px solid #ffd700; /* Gold color */
    width: 80%; /* Adjust the width to fit your design */
    margin: 40px auto; /* Space above and below, center the line */
    opacity: 0.8; /* Slight transparency for a modern look */
}

/* Mobile Styles */
@media (max-width: 768px) {
    header {
        flex-direction: column; /* Stack logo and nav */
        align-items: center; /* Center items */
        text-align: center; /* Center text */
    }

    nav ul {
        flex-direction: column; /* Stack navigation items */
        margin-top: 10px; /* Add some space */
    }

    nav ul li {
        margin: 5px 0; /* Add space between items */
    }

    .hero {
        flex-direction: column; /* Stack content in hero section */
        padding: 30px; /* Adjust padding */
    }

    .hero-content {
        width: 100%; /* Full width */
        flex-direction: column; /* Stack the hero elements */
        align-items: center; /* Center elements */
    }

    .hero-left {
        margin-right: 0; /* Remove right margin */
        text-align: center; /* Center text */
    }

    .concepts-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
    }

    h2 {
        font-size: 1.5rem; /* Smaller heading for mobile */
        margin-bottom: 15px; /* Adjust margin if necessary */
    }

    h2::after {
        width: 100%; /* Ensure it covers the full width */
    }

    p {
        font-size: 1rem; /* Smaller text for mobile */
    }

    .fancy-btn {
        font-size: 1.2rem; /* Adjust button font size */
        padding: 12px 20px; /* Adjust padding */
    }

    #gameCanvas {
        width: 100%; /* Make the canvas responsive */
        height: auto; /* Maintain aspect ratio */
    }

    .bio-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
    }
}
