* General Reset *
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Styles */
body {
  font-family: 'viga';
  background: linear-gradient(to bottom, rgb(252, 251, 251), rgb(212, 218, 211)); /* Lighter gradient */
  color: white;
  margin: 0; /* Remove all default margin and padding */
  padding: 0; /* Remove padding that caused the spacing issue */
  text-align: center;
}

/* Section Styling */
.instruction {
  max-width: 100%; /* Ensure the section spans the entire width */
  padding: 40px 20px; /* Add padding specific to this section */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin: 0 auto; /* Center-align the section */
}

/* Header Styling */
.instruction h1 {
  font-family: 'Lilita One', cursive;
  font-size: 7rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  -webkit-text-stroke: 4px white;
  text-stroke: 3px white;
  color: #141414;
}

.instruction h2 {
  font-family: 'Lilita One', cursive;
  font-size: 3.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: #0c0c0c;
  margin-top: -0.5rem;
}

/* Steps Container */
.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Reduced minimum width for smaller boxes */
  justify-content: center;
  padding: 0;
  margin-left:150px;
  margin-right:150px;
}

/* Individual Step Boxes */
.step {
  background: #070707;
  padding: 20px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 320px;
  max-width: 330px; /* Set a maximum width for the boxes */
  margin: 0 auto; /* Center the boxes within their grid cells */
}

.step h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  text-shadow: none;
  margin-bottom: 10px;
}

.step p {
  font-size: 1rem;
  flex-grow: 1;
  margin-bottom: 10px;
}

/* Button Inside */
.step button {
  font-family: 'Poppins', sans-serif;
  background: white;
  color: #121312;
  padding: 15px 20px;
  border: none;
  border-radius: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  align-self: center;
}

.step button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Responsive Design for Phone View */
@media (max-width: 600px) {
  .instruction h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
  }

  .instruction h2 {
    font-size: 2.5rem;
  }

  .steps-container {
    gap: 20px;
  }

  .step {
    padding: 15px;
    height: auto;
  }

  .step h2 {
    font-size: 1.25rem;
  }

  .step p {
    font-size: 0.9rem;
  }

  .step button {
    font-size: 1rem;
    padding: 10px 15px;
  }
}