@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

body {
  width: 100%;
  min-height: 100vh;
  background-color: rgb(83, 83, 230);
  display: flex;
  justify-content: center;
  padding: 1rem;
  align-items: flex-start; /* Align items to the top instead of the center */
}

.all {
  display: grid;
  place-items: center;
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  margin-top: 2rem; /* Adjust the margin to push it away from the top */
}

.logo {
  margin-bottom: 1rem;
}

.logo img {
  width: 200px;
}

h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #333;
}

label {
  display: block;
  margin-top: 1rem;
  font-size: 1rem;
  color: #555;
  font-weight: 600;
}

select,
input {
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.5rem;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.3);
  font-size: 1rem;
  outline: none;
  color: #333;
  background-color: #f9f9f9;
}

select:focus,
input:focus {
  border-color: rgb(83, 83, 230);
}

button {
  width: 100%;
  padding: 1rem;
  cursor: pointer;
  margin-top: 1rem;
  background-color: rgb(83, 83, 230);
  color: #fff;
  border: none;
  outline: none;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

button:hover {
  background-color: rgb(63, 63, 200);
}

.cont {
  width: 100%;
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.btn2,
.btn3 {
  flex: 1;
  padding: 0.8rem 1rem;
  background-color: limegreen;
}

.btn2 {
  background-color: #333;
}

#message {
  text-align: center;
  margin-top: 1rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: #333; /* Default color */
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 768px) {
  h2 {
    font-size: 1.2rem;
  }

  select,
  input,
  button {
    padding: 0.6rem;
    font-size: 0.9rem;
  }

  .logo img {
    width: 150px;
  }
}

@media screen and (max-width: 600px) {
  body {
    padding: 1rem 1rem; /* Ensure it still has some padding but not centered */
  }

  /* Adjust the top margin for smaller screens */
  .all {
    margin-top: 2rem; /* Adjust the margin to place it closer to the top */
  }

  /* Adjust input and button spacing */
  #input {
    margin-top: 20px;
  }

  #btn {
    margin-top: 10px;
  }
}
