* {
  box-sizing: border-box;
}

body {
  font-family: Arial;
  margin: 0;
}

/* Header */
.header {
  text-align: center;
  background: #232424;
  color: white;

}

/* Style the navigation container */

nav ul {
  list-style-type: none; /*required* Removes default bullet points */
  margin: 0;
  padding: 0;
  display: flex;         /* Makes list items flex items in a row */
  justify-content: center;
  align-items: center;
  background-color: #333;
}

nav ul li a {
  display: block;      /* Makes the whole link area clickable */
  padding: 15px;
  text-decoration: none; /* Removes default underline */
  color: white;
}

nav ul li a:hover {
  background-color: #555; /* Adds a hover effect */
}


/* Column container */
.container {  
  display: flex;
  flex-wrap: wrap;
}    

/* Sidebar/left column */
.aside {
  flex: 20%;
  background-color: #f1f1f1;
  padding: 20px;
}

/* Main column */
.main {
  flex: 80%;
  background-color: white;
  padding: 20px;
}

/* Footer */
footer {
  padding: 20px;
  text-align: center;
  background: #161616;
   color: white;
}

.banner-container {
    /* Use background-image property to set the image */
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('/image/steamgirl2.jpg');
    /* linear-gradient adds a dark overlay to make text more readable */
    
    height: 40vh; /* Set height relative to viewport height */
    background-position: center; /* Center the image */
    background-repeat: no-repeat; /* Prevent the image from repeating */
    background-size: cover; /* Scale the image to cover the entire container */
    position: relative;
    display: flex; /* Use flexbox to center content easily */
    justify-content: center;
    align-items: center;
    color: white; /* Text color */
    text-align: center; /* Center text horizontally */
}

/* Styles for the content inside the banner */
.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.banner-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.header-container {
    background-color: white;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid #ddd;
    position:sticky;
    padding: 10px 0;
    top: 0;
    z-index: 1000;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

.search-bar form {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 20px;
    overflow: hidden;
}

.search-bar input {
    padding: 8px 15px;
    border: none;
    outline: none;
    width: 250px;
}

.search-bar button {
    padding: 8px 15px;
    background-color: #747474;
    border: none;
    cursor: pointer;
}

.btn-login {
    text-decoration: none;
    background-color: #747474;
    margin-right: 20px;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    transition: background 0.3s;
}

.btn-login:hover {
    background-color: #797a7a;
}

/* Basic responsiveness with a media query */
@media (max-width: 768px) {
    .banner-content h1 {
        font-size: 2rem;
    }
    .banner-content p {
        font-size: 1rem;
    }
}
/* Responsive layout - when the screen is less than 700px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 700px) {
  .container, nav ul {   
    flex-direction: column;
  }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-bar input {
        width: 100%;
    }
}