body {
  margin: 0;
  padding: 0;
  font-family: 'Courier New', Courier, monospace;
  height: 100vh;
  width: 100vw;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow-x: hidden;
  position: relative;
  background: linear-gradient(to right, rgb(48, 196, 255), rgb(204, 204, 204));
}

html, body {
  height: 100%;
}

header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 10px 20px;
  background-color: rgba(0, 0, 0, 0.7);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.hamburger {
  display: none;
  font-size: 24px;
  color: #ffffff;
  cursor: pointer;
}

.menu {
  list-style: none;
  display: flex;
  flex-direction: row;
  margin: 0;
  padding: 0;
}

.menu li {
  margin: 0 15px;
}

.menu a {
  text-decoration: none;
  color: white;
  font-size: 1rem;
  transition: color 0.3s;
}

.menu a:hover {
  color: #007BFF;
}


.header {
  text-align: center;
  padding: 10px;
  background-color: #ffffff;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
  font-size: larger;
  margin-top: 40px;
}

.header h1 {
  color: #00796b;
  margin: 0;
  font-size: 2.5rem;
}

/* Card Styles */
.box-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 15px;
  gap: 20px;
}

.box-item {
  position: relative;
  width: 100%;
  max-width: 415px;
  margin-bottom: 35px;
}

p, h3 {
  font-size: 1.5rem;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.655);
  padding: 10px;
  border-radius: 5px;
  text-align: center;
}

.flip-box {
  perspective: 1000px;
}

.flip-box-front,
.flip-box-back {
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  min-height: 475px;
  transition: transform 0.7s;
  backface-visibility: hidden;
  position: relative;
}

.flip-box-front {
  transform: rotateY(0deg);
}

.flip-box:hover .flip-box-front {
  transform: rotateY(-180deg);
}

.flip-box-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotateY(180deg);
}

.flip-box:hover .flip-box-back {
  transform: rotateY(0deg);
}

.inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
}

.flip-box-button {
  background-color: transparent;
  border: 2px solid #fff;
  border-radius: 5px;
  color: #fff;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.flip-box-button:hover {
  background-color: #fff;
  color: #000;
}

.box-item {
  opacity: 0;
  animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}


.box-item:nth-child(1) {
  animation-delay: 0.1s;
}

.box-item:nth-child(2) {
  animation-delay: 0.3s;
}

.box-item:nth-child(3) {
  animation-delay: 0.5s;
}

.box-item:nth-child(4) {
  animation-delay: 0.7s;
}

.box-item:nth-child(5) {
  animation-delay: 0.9s;
}

.box-item:nth-child(6) {
  animation-delay: 1  s;
}


@media (max-width: 768px) {
  .hamburger {
      display: block;
  }

  .menu {
      display: none;
      flex-direction: column;
      position: absolute;
      top: 60px;
      right: 20px;
      background-color: rgba(0, 0, 0, 0.9);
      padding: 10px;
      border-radius: 5px;
  }

  .menu.show {
      display: flex;
  }

  .menu li {
      margin: 10px 0;
  }

  .menu a {
      font-size: 1.2rem;
  }

  .box-container {
      padding: 10px;
  }

  .box-item {
      width: 100%;
  }

  p, h3 {
      font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .menu a {
      font-size: 1rem;
  }

  .header h1 {
      font-size: 2rem;
  }

  p, h3 {
      font-size: 1rem;
      padding: 8px;
  }

  .flip-box .inner {
      padding: 40px;
  }

  .flip-box-button {
      font-size: 0.9rem;
      padding: 8px 15px;
  }
}
