body {
  background: #4e4e4e;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.brand-header {
  text-align: center;
  padding: 20px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  color: white;
  margin-bottom: 20px;
}

.brand-header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: bold;
}

.brand-header p {
  margin: 5px 0 0 0;
  font-size: 1.2rem;
  opacity: 0.9;
}

.main-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  box-sizing: border-box;
}

.record-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 300px;
}

.transcript-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 300px;
}

.box {
  position: relative;
  margin-bottom: 20px;
}

.object {
  display: flex;
  justify-content: center;
  align-items: center;
}

.outline {
  display: none;
}

.recording .outline {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 8px solid #b5a4a4;
  animation: pulse 3s;
  animation-timing-function: ease-out;
  animation-iteration-count: infinite;
  position: absolute;
}

.button {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #50cddd;
  box-shadow: 0px 0px 80px #0084f9;
  position: relative;
  cursor: pointer;
  z-index: 1;
  touch-action: manipulation;
}

.recording .button {
  background: #dd5050;
  box-shadow: 0px 0px 80px #f90000;
}

@keyframes pulse {
  0% {
    transform: scale(0);
    opacity: 0;
    border: 65px solid #000000;
  }

  50% {
    border: solid #ffffff;
    opacity: 0.8;
  }

  90% {
    transform: scale(3.2);
    opacity: 0.2;
    border: 3px solid #000000;
  }

  100% {
    transform: scale(3.3);
    opacity: 0;
    border: 1px solid #ffffff;
  }
}

#delayed {
  animation-delay: 1.5s;
}

#circlein {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #6bd6e1;
  box-shadow: 0px -2px 15px #e0ff94;
  position: absolute;
  top: 10px;
  left: 10px;
}

.recording #circlein {
  background: #e16b6b;
  box-shadow: 0px -2px 15px #e0ff94;
}

.mic-icon {
  height: 60px;
  position: absolute;
  top: 21px;
  left: 21px;
}

.captions {
  font: 1.5rem/1.4 'Georgia', serif;
  text-align: center;
  font-weight: 400;
  margin-top: 20px;
}

.captions span {
  display: inline-block;
  line-height: 1.6rem;
  padding: 0.5rem 1rem;
  color: white;
  background-color: #003366;
  border-radius: 10px;
  max-width: 100%;
  word-wrap: break-word;
}

#transcript-zone {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 1.5rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

#transcript-zone h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

textarea#full-transcript {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  min-height: 200px;
  -webkit-overflow-scrolling: touch;
  resize: none;
  white-space: pre-wrap;
  font-family: inherit;
  border: none;
  color: white;
}

#copy-btn {
  background: #50cddd;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  touch-action: manipulation;
}

#copy-btn:hover {
  background: #3ba8c0;
}

#clear-btn {
  background: #dc3545;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  margin-left: 10px;
  touch-action: manipulation;
}

#clear-btn:hover {
  background: #c82333;
}

#save-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  touch-action: manipulation;
}

#save-btn:hover {
  background: #218838;
}

.button-group {
  display: flex;
  gap: 10px;
}

#word-count {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 10px;
}

#timer {
  font-size: 1.2rem;
  color: #fff;
  margin-top: 10px;
  font-weight: bold;
}

#status {
  font-size: 1rem;
  color: #ccc;
  margin-top: 5px;
}

.controls {
  margin-top: 10px;
  text-align: center;
}

.controls label {
  color: white;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .main-content {
    gap: 15px;
    padding: 15px;
  }

  .record-section {
    order: 1;
  }

  .transcript-section {
    order: 2;
  }

  .brand-header {
    padding: 15px;
  }

  .brand-header h1 {
    font-size: 2rem;
  }

  .brand-header p {
    font-size: 1rem;
  }

  .button {
    width: 150px;
    height: 150px;
  }

  #circlein {
    width: 130px;
    height: 130px;
    top: 10px;
    left: 10px;
  }

  .mic-icon {
    height: 70px;
    top: 30px;
    left: 30px;
  }

  .captions {
    font-size: 1.8rem;
  }

  .captions span {
    padding: 0.75rem 1.25rem;
    max-width: 100%;
  }

  #timer {
    font-size: 1.5rem;
  }

  #status {
    font-size: 1.2rem;
  }

  .controls {
    margin-top: 15px;
  }

  .controls label {
    font-size: 1rem;
    display: block;
    text-align: left;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    cursor: pointer;
  }

  .controls input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
  }

  #transcript-zone {
    padding: 1rem;
  }

  #transcript-zone h3 {
    font-size: 1.8rem;
  }

  textarea#full-transcript {
    font-size: 1.1rem;
    min-height: 250px;
  }

  #copy-btn,
  #save-btn,
  #clear-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    min-height: 48px;
  }

  .button-group {
    flex-direction: column;
    gap: 10px;
  }

  #word-count {
    font-size: 1rem;
  }
}