* {
    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;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

nav {
    flex-grow: 1; /* Allow nav to take available space */
}

nav ul {
    display: flex;
    list-style: none;
    justify-content: right; /* Center navigation items */
}

nav ul li {
    margin: 0 10px; /* Space out items */
}

nav ul li a {
    color: #ffd700;
    text-decoration: none;
}

.hero {
    display: flex;
    justify-content: center; /* Center content */
    align-items: center;
    padding: 50px;
    background-color: #000;
    color: #ffd700;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.hero-content {
    display: flex;
    justify-content: center; /* Center hero content */
    align-items: center;
    width: 100%;
}

.hero-left {
    flex: 1;
    margin-right: 30px;
    text-align: center; /* Center text */
}

.hero-right {
    flex: 1;
    text-align: center; /* Center image */
}

.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; /* Keep this for centering */
    color: #ffd700;
    white-space: normal; /* Allow wrapping */
}

h2::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -5px; /* Adjust distance below the text */
    width: 100%; /* Full width of the 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 */
}

@media (max-width: 768px) {
    header {
        flex-direction: column; /* Stack logo and nav */
        align-items: center; /* Center items */
        text-align: center; /* Center text */
    }

    h2 {
        font-size: 1.5rem; /* Adjust font size for mobile */
        white-space: normal; /* Allow wrapping */
        margin-bottom: 15px; /* Adjust margin if necessary */
    }
    
    h2::after {
        width: 100%; /* Ensure it covers the full width */
    }

    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 */
    }

    .hero-left {
        margin-right: 0; /* Remove right margin */
        text-align: center; /* Center text */
    }

    .concepts-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
    }

    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 */
    }
}

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;
}

#helicopter-game {
    text-align: center;
    margin: 20px 0;
}

#gameCanvas {
    background-color: #222;
}

/* Fancy Button Styles */
.fancy-btn {
    background-color: #ffd700; /* Gold background */
    color: #000; /* Black text */
    padding: 15px 30px; /* More padding for a larger button */
    font-size: 1.5rem; /* Larger font size */
    border: none; /* No border */
    border-radius: 25px; /* Rounded corners */
    cursor: pointer; /* Pointer cursor on hover */
    transition: background-color 0.3s, transform 0.2s; /* Smooth transitions */
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3); /* Shadow for depth */
}

/* Hover effect */
.fancy-btn:hover {
    background-color: #ffcc00; /* Slightly darker gold on hover */
    transform: scale(1.05); /* Slightly enlarge button on hover */
}

/* Active effect */
.fancy-btn:active {
    transform: scale(0.95); /* Scale down on click */
}

/* 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 */
    }

    .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: 2rem; /* Smaller heading for mobile */
    }

    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 */
    }
}

/* 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 */
}
