/* Add font-display block strategy to prevent FOUT */
@font-face {
  font-family: 'Yanone Kaffeesatz';
  font-style: normal;
  font-weight: 400;
  font-display: block; /* Use block instead of swap to prevent FOUT */
  src: local('Yanone Kaffeesatz'), url(https://fonts.gstatic.com/s/yanonekaffeesatz/v29/3y9I6aknfjLm_3lMKjiMgmUUYBs04aUXNxt9gW-LZQ.woff2) format('woff2');
}

* {
  font-family: inherit;
  font-size: inherit;
}

body {
  font-family: "Yanone Kaffeesatz", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background: rgb(14,14,14);
  background: radial-gradient(circle, rgba(14,14,14,1) 0%, rgba(57,57,57,1) 100%);
}
      
.container {
  width: 600px;
  text-align: center;
  padding: 20px;
}

.title {
  font-size: 50px;
  margin-bottom: 10px;
  color:white;
}

input::placeholder {
  color: yellow;
}

.textbox {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 25px;
  background: linear-gradient(135deg, rgba(64,64,64,1), rgba(110,110,110,1));
  color: #ffffff;
  outline: none;
  transition: background 0.3s;
  box-sizing: border-box;
}
.textbox:focus {
  background: linear-gradient(135deg, rgba(110,110,110,1), rgba(64,64,64,1));
}

.loading {
  display: block;
  color: yellow;
  padding: 15px;
  transition: opacity 0.5s ease;
}

/* New fade animations for loading messages */
.loading.fade-out {
  opacity: 0;
}

.loading.fade-in {
  opacity: 1;
}

.response {
  opacity: 0;
  padding: 15px;
  color: #ffffff;
}
.hide {
  display: none;
}
.response.animate {
  animation: fadeInOut 4s forwards;
}
@keyframes fadeInOut {
  0% {
      opacity: 0;
  }
  25% {
      opacity: 1;
  }
  75% {
      opacity: 1;
  }
  100% {
      opacity: 0;
  }
}
.submit-button {
  margin-top: 20px;
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  background-color: #4a90e2;
  color: #ffffff;
  cursor: pointer;
  transition: background 0.3s;
}
.submit-button:hover {
  background-color: #50e3c2;
}