/* General Body Styling */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
  transition: background-color 1s ease-in-out, opacity 0.5s ease-in-out;
}

/* Index Page Specific Styling */
.index-page {
  background-color: #f1f5f9; /* Light background color for index page */
}

/* Content Page Specific Styling */
.content-page {
  background-color: #d4dde6; /* Slightly darker background for content pages */
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.fade-in-bg {
  animation: fadeIn 1s forwards;
}

.fade-out-bg {
  animation: fadeOut 1s forwards;
}

/* Header Styling */
header {
  text-align: center;
  margin-bottom: 20px;
}

header h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.centered-text {
  text-align: center;
  margin: 0 auto;
  max-width: 800px;
}

/* Menu Container and Items */
.menu-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: auto;
}

.menu-item {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.menu-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 16px rgba(0, 0, 0, 0.2);
}

.icon-large {
  color: #1cb101;
  font-size: 50px;
  margin-bottom: 15px;
}

.menu-item h3 {
  font-size: 18px;
  margin: 10px 0;
}

.menu-item p {
  color: #777;
  font-size: 14px;
}

.plus-container {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background-color: #ececec;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 16px;
  text-decoration: none;
}

.plus {
  line-height: 20px;
}

@media (max-width: 900px) {
  .menu-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .menu-container {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* Content Container Styling */
.content-container {
  max-width: 600px;
  width: 100%;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  box-sizing: border-box;
}

.menu-page-icon {
  font-size: 50px;
  color: #1cb101;
  display: block;
  text-align: center;
  margin: 0 auto 20px auto;
}

h1 {
  color: #000000;
  text-align: center;
  margin-bottom: 10px;
}

h2 {
  color: #0076b9;
  text-align: center;
  margin-bottom: 15px;
}

.quote {
  color: #777;
  text-align: center;
  font-style: italic;
  margin-bottom: 20px;
  font-size: 24px;
}

p, .cleaning-steps {
  color: #777;
  line-height: 1.6;
  text-align: left;
}

.cleaning-steps div {
  margin-bottom: 8px;
}

/* X Icon Styling */
.topx-container, .bottomx-container {
  background-color: #ececec;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 18px;
  text-decoration: none;
  position: absolute;
  z-index: 10;
}

.topx-container {
  top: 10px;
  right: 10px;
}

.bottomx-container {
  bottom: 10px;
  right: 10px;
}

/* Audio player styling */
.audio-player-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.audio-player {
  display: flex;
  align-items: center;
}

.custom-audio-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 77px;
  height: 77px;
  border: none;
  border-radius: 50%;
  background-color: #333;
  color: white;
  cursor: pointer;
  margin: 0 10px;
  transition: background-color 0.3s;
}

.custom-audio-controls:focus,
.custom-audio-controls:active {
  background-color: #000;
}

.icon {
  width: 40px;
  height: 40px;
  fill: white;
}

.audio {
  display: none;
}

@media (max-width: 767px) {
  .custom-audio-controls {
    width: 70px;
    height: 70px;
  }

  .icon {
    width: 30px;
    height: 30px;
  }
}

/* Keyframes for Fade-In and Fade-Out */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}