/* ---------- General Styles BEGIN ------------ */
*, *:after, *:before {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    width: 100%;
    margin: 0;
    background-color: rgb(242, 242, 242); /* Light grey background */
    color: black; /* Black for normal text */
    font-size: 20px;
    line-height: 1.6;
    font-family: "Georgia", serif;
    display: flex;
    flex-direction: column;
}

input, button {
    font-size: 1rem;
}

a {
    color: #1E90FF;
    text-decoration: underline;
}

a:hover, a:focus {
    color: #87CEEB;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: black;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: bold;
}

h1 { font-size: 36px; margin-top: 20px; }
h2 { font-size: 32px; margin-top: 20px; }
h3 { font-size: 28px; }
/* ---------- General Styles END ------------ */

/* ---------- Title Style BEGIN ------------ */
.hero-image {
  background-image: url("../img/intro-bg.jpg");
  height: 100%;
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  /*max-height: 1000px;*/
}

.hero-text p {
  position: absolute;
  bottom: 10%;
  left: 25%;
  margin: 0;
  text-transform: uppercase;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 2em;
  font-weight: bold;
  color: whitesmoke;
}
/* ---------- Title Style END ------------ */

/* ---------- Navbar Styles BEGIN ------------ */
#navbar {
    position: fixed;
    background-color: black;
    top: 0;
    left: 0;
    width: 100%;
    border-bottom: 1px solid whitesmoke;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* The > is the child combinator, which means it only targets direct children of #navbar that are div elements. */
#navbar > div {
    width: 300px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo a {
    text-decoration: none;
    color: whitesmoke;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.5em;
    font-weight: 700;
}

#logo, #menue {
    display: flex;
    align-items: center;
}

#menue {
    justify-content: flex-end;
}

#menue a {
    text-decoration: none;
    color: whitesmoke;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    display: block;
    padding: 10px 15px;
    position: relative;
    overflow: hidden;
}

#menue a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background-color: whitesmoke;
    width: 0;
    /*transition: width 0.3s ease;*/
}

#menue a:hover::after {
    width: 100%;
}

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

#menue ul li {
    display: flex;
    align-items: center;
    padding-right: 15px;
    font-size: 1.5em;
    font-weight: 700;
}

/* Burger menu icon only visible on small screens */
#hide, #nav-burger-item {
    display: none;
}

/* Label for checkbox should be clickable */
label[for="hide"] {
    cursor: pointer;
}

/* ---------- Responsive Styles for Navbar on Small Screens ------------ */
@media only screen and (max-width: 768px) {

    /* Ensure the logo stays on the left */
    #logo {
        flex-grow: 1; /* This pushes the burger icon to the right */
        display: flex;
        justify-content: flex-start; /* Keep the logo aligned to the left */
    }

    #navbar {
        justify-content: flex-end; /* Push the burger icon to the right */
    }

    /* Show the burger menu icon in the upper right */
    #nav-burger-item {
        display: block;
        color: whitesmoke;
        cursor: pointer;
        font-size: 1.5em;
        padding: 10px;
    }

    /* Initially hide the menu */
    #menue {
        display: none;
        flex-direction: column; /* Stack the menu items vertically */
        align-items: flex-end; /* Align the menu items to the right */
        width: 100%;
        position: absolute;
        top: 70px; /* Position the menu under the burger icon */
        right: 0;
        background-color: darkslategrey;
    }

    /* Show the menu when the burger (checkbox) is clicked */
    #hide:checked ~ #menue {
        display: flex;
    }

    /* Style for vertical menu items */
    #menue ul {
        flex-direction: column;
        width: 100%; /* Full width for the menu */
    }

    #menue ul li {
        text-align: right;
        padding: 15px 20px;
        border-bottom: 1px solid whitesmoke; /* Horizontal separator line */
        font-size: 1.5em;
        justify-content: flex-end;
    }

    /* Remove the border for the last menu item */
    #menue ul li:last-child {
        border-bottom: none;
    }
}
/* ---------- Navbar Styles BEGIN ------------ */

/* ---------- Section Styles BEGIN ------------ */
section {
    width: 768px;
    background-color: white;
    align-items: center;
    text-align: center;
    margin: auto;
    padding: 5px 10px 15px;
    border-top: 90px solid rgb(242, 242, 242);
    flex: 1;
}

@media (max-width: 768px) {
    section {
        width: 100%;
    }
}
/* ---------- Section Styles END ------------ */

/* ---------- Footer Styles BEGIN ------------ */
footer {
    width: 768px;
    text-align: left;
    margin: auto;
    padding: 10px;
    flex: 1;
}

@media (max-width: 768px) {
    footer {
        width: 100%;
    }
}
/* ---------- Footer Styles END ------------ */
