body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Arial', sans-serif;
    color: #ffffff;
    overflow: hidden; /* Prevent horizontal scrollbar */
    background: linear-gradient(to bottom, #000000, #1b1b32);
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 100vh; /* Ensure the container takes full viewport height */
    background: linear-gradient(to bottom, #000000, #1b1b32);
}

.container img {
    max-width: 30%; /* Ensure the image fits within the container */
    height: auto; /* Maintain aspect ratio */
    margin-bottom: 0.2em; /* Space between the image and the subtitle */
}

.container h2 {
    font-size: 1.2em; /* Adjusted size to match the image */
    color: #f0f0f0; /* Adjusted color to match the image */
    margin-bottom: 1em;
}

.container p {
    font-size: 1em; /* Adjusted size to match the image */
    text-align: left;
}


.container p.blinking {
    color: #ff5722; /* Adjusted color to match the image */
    animation: blink 2s infinite; /* Blinking animation remains */
}


@media (max-width: 600px) {
    .container img {
        max-width: 50%; /* Adjust size for smaller screens */
    }

    .container h2 {
        font-size: 1em; /* Adjusted size for smaller screens */
    }

    .container p {
        font-size: 0.8em; /* Adjusted size for smaller screens */
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

header {
    position: fixed;
    top: 0;    
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em;
    background-color: #000428;
    width: 100%;
    box-sizing: border-box;
    z-index: 1000;
}

header a {
    text-decoration: none; /* Remove underline from the link */
}

header a .logo {
    max-width: 250px;
    height: auto;
    display: block; /* Ensure the logo image is displayed as a block element */
}

header .logo {
    max-width: 250px;
    height: auto;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin: 0 1em;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5em 1em;
    display: block;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

main {
    width: 100%;
    box-sizing: border-box;
}

section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    min-height: 100vh; /* Ensure the section takes at least full viewport height */
    padding: 2em;
    padding-top: 8em;
    box-sizing: border-box;
    overflow-y: auto; /* Make the text scrollable if it exceeds the height */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #555 #333; /* Firefox */
}


/* Webkit browsers */
section::-webkit-scrollbar {
    width: 8px; /* Adjust width as needed */
}

section::-webkit-scrollbar-track {
    background: #333;
}

section::-webkit-scrollbar-thumb {
    background-color: #555;
    border-radius: 10px;
    border: 2px solid #333;
}

#history {
    max-width: 900px;
}

#contact p {
    margin: 0.5em 0; /* Add spacing between paragraphs */
}

#contact a {
    color: #ff5722; /* Match link color with theme */
    text-decoration: none; /* Remove underline from links */
}

#contact a:hover {
    text-decoration: underline; /* Add underline on hover for links */
}

/* Optional: Add border or background for a more defined section */
#contact {
    background-color: #1b1b32; /* Add a background color to match the theme */
    padding: 2em;
    border-radius: 5px;
    max-width: 800px;
    margin: 0 auto; /* Center align */
}


@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
        justify-content: center;
    }

    nav ul li {
        margin: 0 0.5em;
    }

    nav ul li a {
        padding: 0.5em 0.5em;
    }

    #history {
        padding-top: 18em; /* Add top padding to prevent text cut-off */
    }

}
