/* Import fonts */
@import url("https://fonts.googleapis.com/css2?family=Arimo:wght@400;600;700");
@import url("https://fonts.googleapis.com/css2?family=Inter");

/* Global styles */
html {
  background: #101014;
  color: #fff;
  font-family: Inter, sans-serif;
}

/* Main content */
main {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 1400px;
  gap: 1rem;
  padding: 1.5rem;
}

@media (min-width: 640px) {
  main {
    padding: 2rem;
  }
}

/* Grid container */
.grid-container {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Text-to-speech section */
.tts-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Button container */
.button-container {
  display: flex;
  justify-content: space-between;
}

/* Button icon */
.button-icon {
  color: #00dda2;
  font-size: 1.5rem;
}

/* Spinner animation */
.fa-circle-notch {
  animation: spin 1s ease-in-out infinite;
  -webkit-animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
  }
}
@-webkit-keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
  }
}

/* Button styling */
button {
  background: linear-gradient(#000, #000) padding-box,
    linear-gradient(90deg, #201cff -91.5%, #13ef95 80.05%) border-box;
  height: 48px;
  width: 113px;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
}

/* Error message */
#error-message {
  color: rgb(255, 74, 93);
  font-weight: 800;
}

/* Dropdown select */
select {
  height: 54px;
  border-radius: 4px;
  border-width: 1px;
  border-color: rgba(44, 44, 51, 1);
  background-color: rgba(16, 16, 20, 1);
  padding: 1rem;
  font-family: Fira Code, monospace;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  color: white;
}

/* Label */
label {
  font-size: 14px;
}

/* Textarea */
textarea {
  color: white;
  display: flex;
  min-height: 256px;
  border-radius: 4px;
  border-width: 1px;
  border-color: rgba(44, 44, 51, 1);
  background-color: rgba(16, 16, 20, 1);
  padding: 1rem;
  font-family: Fira Code, monospace;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  resize: none;
}

/* Deepgram logo */
.dg-logo {
  padding-top: 0.75rem;
  width: 10rem;
}

/* Title */
.title {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 4rem;
}

@media (min-width: 640px) {
  .title {
    flex-direction: row;
  }
}

h1 {
  color: transparent;
  background-clip: text;
  background-image: linear-gradient(90deg, #201cff -91.5%, #13ef95 120.05%);
  font-size: 1.5rem;
  margin: 0;
  font-weight: 800;
  font-family: Arimo;
}

@media (min-width: 640px) {
  h1 {
    font-size: 3.5rem;
  }
}

h2 {
  font: 700 2rem / 3.75rem Arimo;
  letter-spacing: -0.02em;
}

/* Information section */
.information-section {
  margin-left: 0;
}

@media (min-width: 768px) {
  .information-section {
    margin-left: 120px;
    color: rgb(237, 237, 242);
  }
}

/* List */
ul {
  font-family: "Arimo";
  display: flex;
  padding-left: 0px;
  gap: 16px;
  flex-direction: column;
}

li {
  font-size: 20px;
  line-height: 1.75rem;
}

li::marker {
  color: #13ef95;
}

/* Links */
a {
  color: #13ef95;
  text-decoration: none;
}
