/* GTA SA Fonts */
@font-face {
  font-family: 'Pricedown';
  src: url('fonts/pricedown bl.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Diploma';
  src: url('fonts/Diploma.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'BankGothic';
  src: url('fonts/Bank Gothic Light Regular.otf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  padding: 0;
  background-color: #000;
  color: #ffffff;
  font-family: 'Pricedown', sans-serif;
  overflow-x: hidden; /* Prevents horizontal scrolling */
  overflow-y: auto; /* Allows vertical scrolling */
}

#container {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  padding: 1em;
  box-sizing: border-box;
  position: relative;
  overflow-x: hidden;

}

#menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Diploma', sans-serif;
  margin-top: 2em;
  width: 100%; /* Ensure it stays within container bounds */
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
}

.header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 1em;
  box-sizing: border-box;
}

.title {
  font-family: 'Diploma', sans-serif;
  font-size: 3em;
  color: #87A1B4;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
  margin-bottom: 1em;
  text-align: center;
}

#background-image {
  position: absolute;
  right: 0;
  top: 0;
  height: 40vh;
  width: 60vw;
  background-image: url("images/fDWMLvS.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.4;
  clip-path: polygon(0 0, 100% 0%, 100% 100%, 66% 90%, 27% 48%);
  max-width: 100vw; /* Prevents overflow on smaller screens */
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  width: 100%;
}

.menu-option {
  font-family: 'BankGothic', sans-serif;
  font-size: 2em;
  margin: 0.3em 0;
  color: #87A1B4;
  cursor: pointer;
  position: relative;
  transition: color 0.3s, text-shadow 0.3s;
  display: flex;
  align-items: center;
  width: 100%;
}

.menu-text {
  flex: 1;
  text-align: center;
}

.menu-option::before {
  content: "";
  position: absolute;
  left: -2em;
  top: 50%;
  transform: translateY(-50%);
  width: 2em;
  height: 2em;
  opacity: 0;
  transition: opacity 0.3s;
  background-image: url("images/arrow.png");
  background-size: contain;
  background-repeat: no-repeat;
}

.menu-option:hover::before {
  opacity: 1;
}

.menu-option:hover {
  color: #ffffff;
  text-shadow: 0 0 10px #ffffff;
}

footer {
  position: relative;
  bottom: 0;
  width: 100%;
  text-align: center;
  padding: 1em;
  background-color: #000;
  color: #87A1B4;
  font-family: 'BankGothic', sans-serif;
  font-size: 1em;
  opacity: 0.8;
}

/* Scrollable table container */
.table-container {
  overflow-y: auto;
  overflow-x: auto;
  margin: 2em 0;
}

/* Mission Table Styling */
.mission-table {
  /* width: 100%; */
  min-width: 600px;
  border-collapse: collapse;
  color: #87A1B4;
  font-family: 'BankGothic', sans-serif;
  text-align: center;
  display: block;
  max-width: 100%;
  overflow-x: auto;
}

/* Table headers and cells */
.mission-table th, .mission-table td {
  padding: 1em;
  border: 1px solid #87A1B4;
  transition: background 0.3s;
}

.mission-table th {
  background-color: #1b1b1b;
  font-size: 1.2em;
}

.mission-table tr {
  cursor: pointer;
}

.mission-table tr:hover {
  background-color: #333;
  color: #ffffff;
}

.status.active {
  color: #00FF00;
}

.status.inactive {
  color: #FF0000;
}

/* Custom Scrollbar for Dark Theme */
.table-container::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.table-container::-webkit-scrollbar-track {
  background: #1b1b1b;
}

.table-container::-webkit-scrollbar-thumb {
  background-color: #333;
  border-radius: 10px;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}

/* Mission Details Section */
.mission-details {
  background-color: #1b1b1b;
  padding: 2em;
  margin-top: 2em;
  border-radius: 8px;
  width: 100%;
  max-width: 800px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
  font-family: 'BankGothic', sans-serif;
}

.mission-details h2 {
  font-size: 2em;
  color: #87A1B4;
  text-align: center;
  margin-bottom: 1em;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.mission-details h3 {
  text-align: center;
  margin-bottom: 0.4em;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.mission-details p {
  font-size: 1.2em;
  line-height: 1.5em;
  margin: 0.5em 0;
}

.mission-details p strong {
  color: #87A1B4;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
  #container {
    padding: 1em;
  }

  .header {
    flex-direction: column;
    align-items: center;
    padding: 0.5em;
  }

  .title {
    font-size: 2.2em;
    margin-top: 1em;
    text-align: center;
  }

  .table-container {
    width: 100%;
  }

  .mission-table {
    font-size: 0.9em;
  }

  .mission-table th, .mission-table td {
    padding: 0.6em;
  }

  .menu-option {
    font-size: 1.5em;
  }

  .mission-details {
    padding: 1.5em;
  }
  
  .mission-details h2 {
    font-size: 1.8em;
  }

  .mission-details p {
    font-size: 1em;
  }
}
