body {
    background-image: url('../images/background.png'); /* Ensure your image file is named 'background.png' and placed in the same directory as this CSS file */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /*background-color: #1C1C1C;*/ /* Fallback color */
    color: #FFFFFF;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #00FF00;
    text-decoration: none;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: #AAFFAA;
    text-shadow: 0px 0px 10px #00FF00;
}

section {
    padding: 20px;
}

button {
    background-color: #00FF00;
    color: #000;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

button:hover {
    background-color: #AAFFAA;
    box-shadow: 0px 0px 10px #00FF00;
}

footer {
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #00FF00;
}

header, footer {
    position: relative;
    min-height: 60px; /* Adjust based on your design */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: rgba(28, 28, 28, 0.9); /* Ensures it remains opaque */
    transition: padding 0.3s ease-in-out;
}

/* Expanding effect when user tries to scroll past limits */
body:has(:root:focus-within) header {
    padding-top: 150px; /* Adjust based on preference */
}

body:has(:root:focus-within) footer {
    padding-bottom: 50px; /* Adjust based on preference */
}

html, body {
    overflow-x: hidden; /* Prevents horizontal scrolling */
    min-height: 100vh;  /* Ensures full viewport height */
}

header, footer {
    position: fixed;
    width: 100%;
    background-color: rgba(28, 28, 28, 0.9); /* Keeps the background solid */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px; /* Default height */
    transition: height 0.3s ease-in-out;
}

/* Header expands when attempting to scroll up beyond the top */
@keyframes expandHeader {
    0% { height: 60px; }
    100% { height: 120px; } /* Adjust the max expansion height */
}

html:has(body:before) header {
    animation: expandHeader 0.3s ease-in-out forwards;
}

/* Footer expands when attempting to scroll past the bottom */
@keyframes expandFooter {
    0% { height: 60px; }
    100% { height: 120px; } /* Adjust the max expansion height */
}

html:has(body:after) footer {
    animation: expandFooter 0.3s ease-in-out forwards;
}



