body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #E6B9A6;
}

/* Navigation bar styles */
.navbar {
  background-color: #333;
  overflow: hidden;
}

.navbar a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 20px;
  text-decoration: none;
}

.navbar a:hover {
  background-color: #ddd;
  color: black;
}

/* Main content container */
.content {
  max-width: 800px; /* Set a maximum width for content */
  margin: 20px auto; /* Center content horizontally */
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* Card container for swipeable cards */
.card-container {
  display: flex;
  overflow-x: auto; /* Enable horizontal scrolling */
  scroll-snap-type: x mandatory; /* Snap to cards */
  -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on iOS */
}

/* Individual card styles */
.card {
  flex: 0 0 auto; /* Flexible, fixed size */
  width: 300px; /* Initial width of card */
  margin-right: 20px; /* Space between cards */
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  scroll-snap-align: start; /* Snap alignment */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card h1 {
  font-size: 24px;
  margin-bottom: 10px;
}

.card p {
  line-height: 1.6;
  margin: 0;
}

/* Control buttons for previous and next */
.controls {
  position: relative;
  margin-top: 20px;
  display: flex;
  justify-content: space-between; /* Space evenly */
  align-items: center; /* Center vertically */
}

/* Styling for control buttons */
.control-btn {
  background-color: #333;
  color: #fff;
  padding: 10px 15px;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 20px;
  border-radius: 5px;
}

.control-btn:hover {
  background-color: #555;
}

/* Media query for responsive design */
@media (max-width: 600px) {
  .card {
    width: calc(100vw - 40px); /* Full viewport width minus margins */
    max-width: 100%; /* Ensure card does not exceed screen width */
    margin-right: 0; /* Remove margin between cards */
    margin-bottom: 20px; /* Add spacing between cards */
  }

  .controls {
    flex-direction: column; /* Stack buttons vertically */
  }

  .control-btn {
    margin-top: 10px; /* Add margin between buttons */
    width: 100%; /* Full width */
    text-align: center; /* Center text */
  }
}
