@import url("https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Nunito Sans", sans-serif;
  background-color: #f0f0f0;
  color: #333;
}


.main {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 20px;
}

.container {
  max-width: 500px;
  width: 100%;
}


form {
  padding: 40px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  text-align: center;
}

.input__group h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.input__group p {
  font-size: 0.95rem;
  color: #555;
}

.input__group--mail {
  margin-top: 20px;
}

.input__group--mail input {
  width: 90%;
  padding: 12px;
  font-size: 1rem;
  color: #333;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 15px;
}

.input__group--mail input:focus {
  border-color: #e04b46;
  outline: none;
}

.input__group--mail button {
  width: 90%;
  padding: 12px;
  font-size: 1rem;
  background-color: #e04b46;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.input__group--mail button:hover {
  box-shadow: 0 4px 16px rgba(224, 75, 70, 0.2), 
              0 1.5px 4px rgba(0, 0, 0, 0.08);
}


#modalContainer {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  display: none;               
  justify-content: center;
  align-items: center;
  z-index: 9999;
}


#modalContainer.show {
  display: flex;
}

/* Modal Box */
.modal {
  background: white;
  padding: 30px 20px;
  border-radius: 10px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  animation: fadeIn 0.3s ease;
  position: relative;
}

.modal__header h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

span.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  color: #e04b46;
  cursor: pointer;
}

.modal__body {
  margin: 20px 0;
}

#unique_code {
  font-size: 1.8rem;
  color: #e04b46;
  font-weight: bold;
}

.modal__btn button {
  width: 80%;
  padding: 12px;
  font-size: 1rem;
  background-color: #e04b46;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.6s ease;
}

.modal__btn button:hover {
  background-color: #c33a37;
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 500px) {
  .input__group h1 {
    font-size: 1.5rem;
  }

  #unique_code {
    font-size: 1.5rem;
  }
}
