body {
  margin: 0;
  padding: 0;
  border: none;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-size: 16px; /* Default font size for larger screens */
  font-family: 'Poppins', sans-serif; /* Set new font */
}

.appBody {
  margin: 0;
  padding: 0;
  border: none;
  width: 100%;
  height: 100vh;
}

canvas {
  display: block;
  position: relative;
  margin: 0;
  padding: 0;
  background: white;
  touch-action: none;
}

#controls {
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px;
  position: fixed;
  right: 10px;
  top: 10px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, 0.2);
  font-family: 'Poppins', sans-serif; /* Apply font to controls */
}

/* Button styling */
button {
  display: inline-block;
  width: auto;
  height: auto;
  margin: 0 5px 0 0;
  padding: 10px 20px;
  border-radius: 3px;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.5);
  color: #000;
  font-size: 1.25rem; /* 20px by default, will scale with screen */
  background: rgb(235, 235, 235);
  transition: background-color ease-in 0.3s;
  font-family: 'Poppins', sans-serif; /* Apply font to buttons */
}

button:hover {
  background: lightgreen;
  transition: background-color ease-out 0.3s;
}

select {
  display: inline-block;
  width: auto;
  height: auto;
  margin: 0 5px 0 0;
  padding: 10px;
  font-size: 1.25rem; /* 20px by default */
  border-radius: 3px;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif; /* Apply font to select */
}

canvas {
  margin-top: 5%;
}

@media (max-width: 960px) {
  body {
    font-size: 14px; /* Decrease base font size for medium screens */
  }

  button, select {
    font-size: 1.15rem; /* Adjusted for smaller screens */
  }

  canvas {
    margin-top: 12%;
  }
}

@media (max-width: 544px) {
  body {
    font-size: 12px; /* Further decrease for small screens */
  }

  button, select {
    font-size: 1rem; /* Adjusted for mobile */
  }

  canvas {
    margin-top: 30%;
  }
}

.toast {
  background-color: #333;
  color: #fff;
  padding: 15px;
  margin: 5px;
  border-radius: 5px;
  opacity: 0.9;
  font-size: 1rem; /* Default font size for toast */
  transition: opacity 0.5s ease-in-out;
  font-family: 'Poppins', sans-serif; /* Apply font to toast */
}

@media (max-width: 960px) {
  .toast {
    font-size: 0.9rem; /* Smaller font for medium screens */
  }
}

@media (max-width: 544px) {
  .toast {
    font-size: 0.85rem; /* Smaller font for mobile screens */
  }
}

#infinite-container {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  background: #fff;
  flex-direction: column;
}

@media (max-width: 544px) {
  #infinite-container {
    /* bottom: 290px; */
  }
}

#infinite-gif {
  max-width: 100px;
  height: auto;
}
