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

* {
  font-family: 'Product Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

textarea {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 160px;
  margin: 5px auto 20px;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 10px;
  padding: 10px 20px;
  font-size: 1.5em;
  resize: none;
  color: #3c4043;
}

textarea:focus {
  border: 1px solid rgba(0,0,0,.24);
  outline: none;
}

.logo-image {
  width: 400px;
}

.image-container {
  padding: 60px 0px;
  width: 100%;
}

.subtitle {
  font-size: 1.2em;
  padding-left: 30px;
  color: #666666;
}

.box-col {
  height: 250px;
}

.disabled {
  border: none;
  background-color: #f5f5f5;
}

.text-tr {
  color: #4d90e1;
  text-decoration: underline;
  text-underline-offset: 17px;
  text-decoration-thickness: 2px;
}

.swap {
  border: 1px solid white;
  border-radius: 20px;
  padding: 0px 10px 5px 10px;
}

.swap:hover {
  background-color: rgba(0,0,0,.06);
  border: 1px solid white;
  border-radius: 10px;
  padding: 0px 10px 5px 10px;
  cursor: pointer;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .logo-image {
    width: 280px;
  }

  .image-container {
    padding: 40px 0px 30px 0px;
  }

  .subtitle {
    font-size: 1em;
    padding-left: 20px;
  }

  .box-col {
    height: auto;
    margin-bottom: 10px;
  }

  textarea {
    height: auto !important;
    min-height: 60px !important;
    font-size: 1.5em;
    padding: 10px 12px;
    margin: 5px auto 5px;
    color: #3c4043;
;
  }

  textarea:disabled {
    -webkit-text-fill-color: #3c4043;
    opacity: 1;
  }

  /* Make language labels and arrow closer together on mobile */
  .row.align-items-center .col {
    padding-left: 8px; 
    padding-right: 8px;
  }

  .row.align-items-center .col-auto {
    padding-left: 4px;
    padding-right: 4px;
  }

  .text-tr {
    font-size: 0.9em;
    text-underline-offset: 12px;
  }

  .swap svg {
    height: 14px;
    width: 14px;
  }
}

/* Loading overlay */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #e0e0e0;
  border-top: 4px solid #4d90e1;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-text {
  margin-top: 20px;
  font-size: 1.2em;
  color: #4d90e1;
}

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