body {
  font-family: "Nunito", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #282c34;
  color: #ffffff;
  margin: 0;
}

.timer-container {
  text-align: center;
  background-color: #444;
  padding: 20px;
  border-radius: 10px;
  margin: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 50%;
  box-sizing: border-box;
}

h1 {
  font-weight: 800;
  margin: 0;
}

p {
  font-weight: 400;
  margin: 10px 0 20px 0;
}

.input-container {
  margin-bottom: 20px;
}

#timer {
  font-size: 3em;
  font-weight: 600;
  margin: 20px 0;
}

.time-inputs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.input-group {
  display: flex;
  align-items: center;
}

.ping-interval {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  justify-content: center;
  width: 100%;
  flex-direction: column;
}

label {
  margin-bottom: 5px;
}

input {
  margin: 5px;
  padding: 8px;
  border: none;
  border-radius: 5px;
  font-size: 1em;
  width: 50px;
  height: 30px;
  text-align: center;
  -moz-appearance: textfield;
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

button {
  margin: 10px 5px 0 5px;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background-color: #61dafb;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 1rem;
  color: white;
  font-weight: 500;
}

button:hover {
  background-color: #21a1f1;
}

.button-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 768px) {
  .timer-container {
    width: 80%;
    padding: 15px;
  }

  #timer {
    font-size: 2.5em;
  }

  button {
    padding: 8px 15px;
    font-size: 1rem;
  }

  .time-inputs {
    flex-direction: row;
    justify-content: center;
  }

  .input-group {
    margin: 0 10px;
  }
}

@media (max-width: 480px) {
  .timer-container {
    width: 90%;
    padding: 10px;
  }

  #timer {
    font-size: 2em;
  }

  button {
    padding: 6px 10px;
  }

  input {
    width: 200px;
    height: 30px;
    margin: 5px;
  }

  .time-inputs {
    flex-direction: column;
    align-items: center;
  }

  .input-group {
    margin: 5px 0;
    flex-direction: column;
  }
}
