body {
  font-family: Arial, sans-serif;
  background-color: #2a3546;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 125vh;
  margin: 0;
}

h1 {
    color: rgb(0, 206, 206);
    font-size: 6vh;
}

h2 {
    color: rgb(0, 206, 206);
    font-size: 4vh;
    margin-left: 20%;
}

h3 {
    color: rgb(0, 206, 206);
    font-size: 2vh;
    margin-left: 22.5%;
}

p {
    color: white;
    max-width: 100vh;
    text-align: left;
    margin-left: 25%;
}

a {
  color: #00a2ff;
  text-decoration: none;
}

.explanation {
  margin-left: 2%;
  list-style: none;
}

span img {
  max-width: 25px;
  max-height: 25px;
  height: auto;
  width: auto;
}

ul {
  color: white;
  margin-left: 25%;
}

.box-outer {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #212734;
  width: 175vh;
  border-radius: 2vh;
  padding-top: 2vh;
}

.box-content {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  background-color: #191d27;
  width: 150vh;
  border-radius: 2vh;
  margin-bottom: 5vh;
}

.crafting-grid {
  margin-left: 27.5%;
  display: grid;
  grid-template-columns: repeat(3, 60px);
  grid-template-rows: repeat(3, 60px);
  gap: 10px;
  background-color: rgba(0, 0, 0, 0.25);
  padding: 15px;
  border-radius: 2vh; /* match box style */
  border: 2px solid rgba(0, 206, 206, 0.5);
  width: max-content;
}

.slot {
  position: relative;
  width: 60px;
  height: 60px;
  background-color: rgba(0, 206, 206, 0.2);
  border: 2px solid rgba(0, 206, 206, 0.5);
  border-radius: 0.5vh;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.3s, transform 0.2s;
}

.slot:hover {
  background-color: rgba(0, 206, 206, 0.4);
  transform: scale(1.05);
}

.icon {
  display: block;
  font-size: 30px;
  transition: opacity 0.3s;
}

.text {
  position: absolute;
  display: block;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 14px;
  color: white;
  text-align: center;
}

.slot:hover .icon {
  opacity: 0;
}

.slot:hover .text {
  opacity: 1;
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
    align-items: stretch;
    height: auto;
    margin: 0;
    padding: 1vh;
  }

  h1 {
    font-size: 8vw;
    text-align: center;
    margin-left: 0;
  }

  h2, h3 {
    margin-left: 0;
    text-align: center;
    font-size: 5vw;
  }

  p, ul {
    margin-left: 0;
    padding: 0 5vw;
    max-width: 90vw;
    text-align: left;
  }

  .box-outer {
    width: 95vw;
    padding: 2vh 2vw;
  }

  .box-content {
    width: 90vw;
    margin-bottom: 3vh;
  }

  .crafting-grid {
    margin-left: 0;
    grid-template-columns: repeat(3, 50px);
    grid-template-rows: repeat(3, 50px);
    gap: 5px;
    padding: 10px;
  }

  .slot {
    width: 50px;
    height: 50px;
  }

  .icon {
    font-size: 24px;
  }

  .text {
    font-size: 12px;
  }
}
