:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
}

main {
  text-align: center;
  padding: 0em;
  margin: 0 auto;
}

#res-container {
  display: none;
}

.proBox {
  display: block;
  margin-top: 2em;
}

.proBoxCopy {
  color: grey;
}

.proLink {
  display: inline-block;
  font-family: inherit;
  font-size: 12px;
  padding: 1em 2em;
  margin: 4px 2px;
  color: #ff3e00;
  background-color: rgba(255, 62, 0, 0.1);
  border-radius: 2em;
  border: 2px solid rgba(255, 62, 0, 0);
  outline: none;
  width: 100px;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  cursor: pointer;
}

.button-container {
  display: flex;
  justify-content: space-evenly;
  margin: 1em auto;
  margin-bottom: 2em;
  text-align: center;
}

.button {
  background-color: #80d983;
  border: none;
  color: white;
  padding: 12px 24px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  cursor: pointer;
}

.button:focus {
  background-color: #4caf50;
  border: none;
}

.server-response {
  background-color: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 10px;
  margin: 10px auto;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  max-width: 90%;
}

#response {
  max-width: 100%;
}

img {
  height: 16rem;
  width: 16rem;
}

textarea {
  margin: 2rem auto;
  max-width: 80%;
  font-size: 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
}

h1 {
  color: #ff3e00;
  font-size: 2rem;
  font-weight: 100;
  line-height: 1.1;
  margin: 1rem auto;
  max-width: 90%;
}

p {
  max-width: 14rem;
  margin: 1rem auto;
  line-height: 1.35;
}

button {
  font-family: inherit;
  font-size: inherit;
  padding: 1em 2em;
  color: #ff3e00;
  background-color: rgba(255, 62, 0, 0.1);
  border-radius: 2em;
  border: 2px solid rgba(255, 62, 0, 0);
  outline: none;
  width: 200px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  filter: alpha(opacity=50);
  background-color: #ccc;
  border-color: #ccc;
  color: #666;
}

button:disabled:hover {
  background-color: #ccc;
  border-color: #ccc;
  color: #666;
}

/* button:focus {
  border: 2px solid #ff3e00;
} */

.loading-container {
  display: none;
  justify-content: center;
  align-items: center;
  height: 100%;
  margin-top: 2em;
}

.loading {
  border: 10px solid #f3f3f3;
  border-top: 10px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.typing {
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid #fff;
  animation: blink 0.75s step-end infinite;
}

.copy-button {
  background-color: #4CAF50;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

.copy-button:hover {
  background-color: #3e8e41;
}

footer {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  max-width: 100%;
  background-color: #ffffff;
  padding: 10px;
  font-size: 0.8em;
  color: #8a8a8a;
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

@media only screen and (min-width: 480px) {
  h1 {
    max-width: 80%;
  }

  p {
    max-width: none;
  }

  .server-response {
    max-width: 600px;
  }

  .button-container {
    max-width: 600px;
  }

}

@media only screen and (max-width: 768px) {
  .button-container {
    flex-direction: column;
  }

  .button {
    margin-bottom: 10px;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;

  }

  .button-container {
    justify-content: center;
  }

  /* footer {
    position: relative;
    bottom: 0;
    max-width: 100%;
    width: 100%;
  } */

  footer {
    position: relative;
    margin: auto;
    width: 100%;
    display: flex;
    justify-content: center;
  }

}