body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background-color: #121212;
  font-family: Arial, sans-serif;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 20px;
  min-width: 200px;
  min-height: 150px;
  max-width: 80%;
}

.container button {
  width: 100%;
  padding: 10px;
  margin: 5px 0;
  background-color: #444;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  transition: background-color 0.3s, transform 0.2s;
  cursor: pointer;
}

.container button:hover {
  background-color: #666;
  transform: translateY(-2px);
}

.container button:active {
  background-color: #333;
  transform: translateY(2px);
}

h1 {
	color:white;
}

@media only screen and (max-width: 430px) and (orientation: portrait) {
  body {
    background-color: #f8f8f8;
  }

  .container {
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    min-width: 250px;
    min-height: 200px;
    max-width: 90%;
    padding: 15px;
  }

  .container button {
    background-color: #e0e0e0;
    color: #333;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .container button:hover {
    background-color: #d4d4d4;
    transform: translateY(-1px);
  }

  .container button:active {
    background-color: #c8c8c8;
    transform: translateY(1px);
  }
}

/* Style for "Show Number Pad" button */
#showNumberPad {
  position: fixed;
  top: 10px;
  right: 10px;
  padding: 10px 20px;
  background-color: #444;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  z-index: 1100;
  /* Ensures it stays on top */
}

#showNumberPad:hover {
  background-color: #666;
  transform: translateY(-2px);
}

#showNumberPad:active {
  background-color: #333;
  transform: translateY(2px);
}

/* Modal styles */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* Dim background */
  justify-content: center;
  align-items: center;
  z-index: 1000;
  /* Layer beneath the button */
}

.modal .number-pad {
  background-color: white;
  border-radius: 10px;
  border: 4px solid tranparent;
  transition: border-color 0.9s ease;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal .number-pad .buttons button {
  margin: 5px;
  padding: 15px;
  font-size: 1.2rem;
  border: none;
  background-color: #666;
  color: white;
  border-radius: 5px;
  cursor: pointer;
}

.modal .number-pad .buttons button:hover {
  background-color: #444;
}

/* Input field for displaying entered code */
#numberPadInput {
  width: 100%;
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 20px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  outline: none;
}

/* Return button styling */
.return-button {
  width: 100%;
  padding: 10px;
  font-size: 1.2rem;
  background-color: #444;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.return-button:hover {
  background-color: #666;
}

/* Dynamic modal border (default is transparent) */
.modal .number-pad {
  border: 4px solid transparent;
}

.buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 columns */
  gap: 10px;
  margin-bottom: 20px;
  justify-items: center;
}

.buttons button:active {
  background-color: #333;
  /* Darker color for active state */
  transform: scale(0.95);
  /* Slightly shrink the button */
}
