body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f2f2f2;
}

header {
  background-color: #333;
  color: white;
  --tw-gradient-from: #c7d2fe var(--tw-gradient-from-position);
  --tw-gradient-to: #e5e7eb var(--tw-gradient-to-position);
  padding: 10px;
  text-align: center;
  font-family:
    Inter Tight,
    sans-serif;
}

nav {
  display: flex;
  justify-content: center;
  background-color: #444;
  padding: 10px;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 20px;
}

main {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh;
}

.content-container {
  display: flexbox;
  width: 60%;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.left-section {
  flex: 1;
  padding: 20px;
}

.right-section {
  flex: 1;
  padding: 20px;
  background-color: #f2f2f2;
}

.textbox {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.label {
  font-weight: bold;
}

.button {
  background-color: #333;
  color: white;
  padding: 10px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
}

.textarea {
  width: 100%;
  height: 100px;
  padding: 10px;
  box-sizing: border-box;
}

#outputURL,
#timeTaken {
  height: 50px;
  margin-bottom: 10px;
}

.url-container {
  position: relative;
  margin-bottom: 10px;
}

.url-container .textarea {
  margin-bottom: 0;
  padding-right: 45px; /* Make room for the copy button */
}

.copy-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  color: #666;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.copy-btn:hover {
  background-color: #f0f0f0;
  color: #333;
}

.copy-btn:active {
  background-color: #e0e0e0;
}

/* Toast styles */
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.toast {
  background-color: #333;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  font-size: 14px;
  opacity: 0;
  transform: translateX(100%);
  animation: slideIn 0.3s ease-out forwards, fadeOut 0.3s ease-in 2.7s forwards;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

.progress-container {
  display: none;
  width: 100%;
  height: 20px;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(to right, lightgreen, darkgreen);
  animation: progressBarAnimation 2s linear;
  /* Default animation duration for tracks */
}

@keyframes progressBarAnimation {
  to {
    width: 100%;
  }
}

.api-test-container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  margin-bottom: 10px;
}

.api-test-container p {
  margin: 0;
  white-space: nowrap;
}

/* if width is below 700 then make content container has 90% width */
@media (max-width: 700px) {
  .api-test-container {
    flex-direction: column;
    align-items: stretch;
  }

  .api-test-container button {
    margin-bottom: 5px;
  }

  .api-test-container p {
    text-align: center;
    margin-bottom: 5px;
  }

  main {
    min-height: calc(100vh - 120px);
    margin-top: 20px;
    padding: 20px;
  }

  .content-container {
    width: 90%;
  }
}