html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

.container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scale(-1, 1);            /*For Firefox (& IE) */
  -webkit-transform: scale(-1, 1);     /*for Chrome & Opera (& Safari) */
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.record-button {
  position: relative;
  border-radius: 50%;
  background-color: #ff4f4f;
  cursor: pointer;
  border: 4px solid white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.record-button-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 40px;
  font-weight: bold;
  text-transform: uppercase;
}

.record-button.recording {
  background-color: #ff0000;
}

.record-button.recording .record-button-text {
  content: "Stop";
}
.countdown {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 120px;
  color: white;
  display: none;
}

.controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.logo {
  position: absolute;
  right: 20px; /* Adjust the value to change the horizontal position */
  width: 150px; /* Adjust the width as needed */
  height: auto; /* This will maintain the aspect ratio of the logo */
}

.record-button {
    border-radius: 50%;
    background-color: #ff4f4f;
    cursor: pointer;
    border: 4px solid white;
  }

.record-button.recording {
  background-color: #ff0000;
}
#preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
#preview::-webkit-media-controls-volume-slider {
    display: none;
  }
  
  #preview::-webkit-media-controls-mute-button {
    display: none;
  }
#preview::-webkit-media-controls {
  position: relative;
  background-color: transparent;
  top: -10%; /* Adjust the value to move it up */
}
#preview::-webkit-media-controls-panel {
  background-image: none !important;
}

#preview::-webkit-media-controls--button {
    display: none;
  }
#preview::-webkit-media-controls-fullscreen-button {
  display: none;
}

#preview::-webkit-media-controls-enclosure {
  background-color: transparent;
}

#preview::-webkit-media-controls-current-time-display,
#preview::-webkit-media-controls-time-remaining-display {
  display: none;
}
.message {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 24px;
  color: white;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 5px;
  display: none;
}

.post-recording-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.new-recording-button,
.send-button {
  padding: 15px 30px;
  font-size: 35px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: inline-block;
  margin: 0 10px;
}


.new-recording-button {
  background-color: #FF4F4F;
  color: white;
}

.send-button {
  background-color: #2196F3;
  color: white;
}

.sending-message {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 120px;
  color: white;
  display: none;
}

.playback-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

.playback-record-button,
.playback-send-button {
  padding: 15px 30px;
  font-size: 35px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: inline-block;
  margin: 0 10px;
}

.playback-record-button {
  background-color: #FF4F4F;
  color: white;
}

.playback-send-button {
  background-color: #2196F3;
  color: white;
}

.mainpage-button {
  position: absolute;
  top: 50px;
  left: 0;
  padding: 20px 20px;
  font-size: 50px;
  background-color: #FFFF00;
  color: black;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.play-button-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.play-button {
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  font-size: 40px;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.play-button i {
  margin-left: 5px;
}