* {
  box-sizing: border-box;
}
h1 {
  color: blue;
  text-align: center;
}
body { 
  margin: 20px;
  background-color: #0d0d0d;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Karla', sans-serif;
}
.centerDiv {
  margin: 0 auto;
}
.mycontainer {
  max-width: 800px;
}
label {
  font-weight: bold;
}

textarea,
input,
select {
  margin: 10px;
  width: 95%;
  max-width: 100%;
  padding: 12px;
  box-sizing: border-box;
  border: solid 1px blue;
  border-radius: 4px;
  outline: none;
  line-height: 2;
  background-color: black;
  color: white;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

@media screen and (max-width: 600px) {
  textarea,
  input,
  select {
    width: 100%;
    margin: 10px 0;
    font-size: 16px;
  }
  
  audio {
    width: 90vw;
  }
  
  #myForm {
    flex-direction: column;
    padding: 0 10px;
  }
  
  #myForm button {
    width: 100%;
    margin: 5px 0;
    padding: 15px 0;
    font-size: 16px;
  }
  
  .mycontainer {
    width: 95%;
    padding: 0 10px;
  }
  
  h1 {
    font-size: 24px;
    margin: 15px 0;
  }
}

/* Create 2 equal columns that floats next to each other */
.column {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px; /* Add space between buttons */
  width: 100%;
  padding: 15px;
}

.column select {
  text-align: center;
}
/* Clear floats after the columns */
.row::after {
  content: "";
  display: table;
  clear: both;
}

/* Responsive layout - makes the three columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .column {
    width: 100%;
  }
}

button {
  width: 100%;
  padding: 15px 10px;
  margin: 10px;
  background-color: Blue;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

button:hover {
  background-color: darkblue;
}

select {
  text-align: center;
  font-size: 16px;
}

#successMessage {
  color: lime;
  margin-top: 10px;
  text-align: center;
  font-size: 16px;
}

#errorMessage {
  color: red;
  margin-top: 10px;
}

#myForm {
  display: flex; 
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
}

#myForm button {
  flex: 1;
  min-width: 80px;
  max-width: 100%;
  flex-wrap: wrap;
  padding: 12px 8px;
  white-space: nowrap;
  font-size: 14px;
}

@media screen and (max-width: 600px) {
  #myForm {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0 5px;
    justify-content: center;
  }
  
  #myForm button {
    flex: 0 1 calc(50% - 10px);
    min-width: 120px;
    font-size: 12px;
    padding: 10px 8px;
    margin: 2px;
  }
}

#getAudio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
}

audio {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

#listen {
  width: 100%;
  text-align: center;
}

#api-icon {
   position: fixed;
   top: 2%;
   right: 3%;
  font-size: 18px;
   cursor: pointer;
   z-index: 400;
  color: white;
 }

#inputText {
  padding-left: 30px;
  padding-right: 30px;
  padding-top: 30px;
}

#fileUploaderIMG {
  width: 30px;
  height: 30px;
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  cursor: pointer;
}

footer {
  position: relative;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
}

footer p {
  font-size: 14px;
  color: white;
}

#waitingGif {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  position: fixed;
  width: 250px;
  height: 250px;
  z-index: 999999999;
}

textarea {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border-radius: 4px;
  resize: vertical;
  border: solid 1px blue;
}

#instructions {
  min-height: 60px;
  margin-top: 5px;
  width: calc(100% - 20px);
  margin: 10px;
  border: solid 1px blue;
}