/* Global body styling for font, margins, padding, background color, and text color */
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #333;
}

/* Header container styling, using flexbox for layout and spacing between elements */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px;
}

/* Styling for the next button with padding, font size, and background color */
.next-btn {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  border-radius: 20px;
  background-color: #007AFF;
  color: #fff;
}

/* Grid layout for displaying aircraft cards, using three equal-width columns */
.aircraft-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 20px 20px;
}

/* Basic card styling for each aircraft card with borders, padding, and text alignment */
.aircraft-card {
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s; /* Smooth hover effect for scaling */
}

/* Hover effect that slightly enlarges the card for better interactivity */
.aircraft-card:hover {
  transform: scale(1.02);
}

/* Styling for the images inside the aircraft cards to make them responsive */
.aircraft-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Heading style for aircraft names inside the cards, with a bottom border for separation */
.aircraft-card h2 {
  margin: 0 0 10px;
  font-size: 1.6em;
  color: #222;
  font-weight: 600;
  border-bottom: 2px solid #eaeaea;
  padding-bottom: 10px;
}

/* Paragraph styling for aircraft info and description, with spacing and font size */
.aircraft-card p {
  margin: 5px 0;
  font-size: 0.95em;
  line-height: 1.6;
  color: #555;
}

/* Italicized description text for the second paragraph in the card */
.aircraft-card p:nth-of-type(2) {
  font-style: italic;
  color: #777;
}

/* Horizontal separator line styling for section division within the aircraft cards */
.separator {
  border: none;
  border-top: 1px solid #eaeaea;
  margin: 8px 0;
}

/* Styling for the select button inside each card, including padding and background */
.select-btn {
  margin-top: 10px;
  padding: 10px 20px;
  cursor: pointer;
  border: none;
  border-radius: 20px;
  background-color: black;
  color: #fff;
  font-size: 16px;
}

/* When selected, the button changes to light gray background and gray text */
.select-btn.selected {
  background-color: lightgray;
  color: gray;
}

/* Styling for the back button with padding, background color, and hover effect */
.back-button {
  padding: 10px 20px;
  background-color: #007AFF;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s;
  margin-right: 20px;
}

/* Hover effect for the back button to change its background color */
.back-button:hover {
  background-color: #005BB5;
}
