/* Basic Styling */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-image: url('img/pc_20_80t.jpg');
  min-height: 100%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  padding-bottom: 60px;
  /* Height of the footer */
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 5px 0px 5px;
  background: linear-gradient(to right, white 150px, black); 
  /*background: linear-gradient(to right, white 0%, lightgrey 20%, black 100%); */
  /* Gradient from white to black */
}

.header-left {
  flex: 0 0 285px ;
  text-align: center;
  color: #292d6a;
}

.logo {
  width: 180px;
  /* Adjust the size of the logo */
  height: auto;
}

/* Navigation menu */
.nav {
  display: flex;
}

/* Navigation list styling */
.nav-list {
  list-style-type: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav-list li {
  margin-left: 20px;
}

.nav-list a {
  color: white;
  text-decoration: none;
  font-size: 1.2em;
}

/*----------------------------------------*/
.welcome {
  color: black;
  font-size: 1.4em;
  /*font-weight: bold; */
}

.menu {
  float: right;
  color: white;
  margin: 20px 10px;
  width: 120px;
  font-size: 1.2em;
  cursor: pointer;
}


/* Menu Toggle Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  margin-left: 20px;
}

.menu-toggle .bar {
  width: 30px;
  height: 5px;
  background-color: white;
  margin: 5px 0;
}

/* Media Query for Mobile */
@media (max-width: 850px) {

  .nav-list {
    display: none;
    width: 100%;
    text-align: center;
    position: absolute;
    top: 60px;
    left: 0;
    background-color: #333;
  }

  .nav-list.active {
    display: flex;
    justify-content: flex-end;
  }

  .nav-list li {
    margin: 10px 0;
  }

  .menu-toggle {
    display: flex;
  }

  .header-left {
    /*flex: none;*/
  }
}

/* Main content area */
main {
  flex: 1;
  /* This makes the main content area take the remaining space */
  padding: 20px;
}

/* Footer Styling */
footer {
  background: linear-gradient(to right, white, black);
  /* Gradient from white to black */
  color: white;
  /*text-align: center; */
  padding: 0px 0px;
  position: fixed;
  bottom: 0;
  height: 60px;
  width: 100%;
  /*z-index: 100;  */
  /* Ensures the footer stays on top of other elements */
}

/* Modal Styles */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Fixed to the screen */
  z-index: 1;
  /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  /* Full-width */
  height: 100%;
  /* Full-height */
  background-color: rgba(0, 0, 0, 0.5);
  /* Semi-transparent background */
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  /* Adjust the width of the modal */
  max-width: 500px;
}

.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 25px;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}