/* Configurações globais */
:root {
  --bg-color: #1b1b22;
  --green: #00e5c0;
  --body-font-family: "Poppins", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  place-content: center;
  text-align: center;
  min-height: 100vh;
 
  padding: 30px;
 
  font-family: var(--body-font-family);
  box-sizing: border-box;
  font-size: 16px;
   background: url('boat-4899802_1280.jpg') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
}

/* Player de áudio */
.audio-player {
  --player-color-featured: #00e5c0;
  --player-color-background: #262d31;
  --player-color-text: #c5c6c8;
  --player-percent-played: 0;
  --player-current-time: "00:00";
  --player-current-date-time: "00:00";

  background: var(--player-color-background);
  display: inline-flex;
  min-width: 240px;
  width: 336px;
  max-width: 100%;
  border-radius: 0.4rem;
  padding: 0.4rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  font-family: Arial, sans-serif;
}

.audio-player + .audio-player {
  margin-top: 1rem;
}

.audio-player .player {
  flex: 1;
  display: flex;
}

.audio-player .player .btn-play {
  outline: none;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0 0.8rem 0 0.4rem;
}

.audio-player .player .btn-play:disabled{
  cursor: default;
}

.audio-player .player .btn-play span {
  color: var(--player-color-text);
  font-size: 38px;
  opacity: 0.8;
}

.audio-player .player .btn-play span:not(.icon-play),
.audio-player.playing .player .btn-play span:not(.icon-pause),
.audio-player.loading .player .btn-play span:not(.icon-loop){
  display: none;
}

.audio-player.playing .player .btn-play .icon-pause {
  display: inline-block;
}

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

@keyframes load{
  to{
    transform: rotate(360deg);
  }
}

.audio-player.loading .player .btn-play{
  pointer-events: none;
}

.audio-player.loading .player .btn-play span{
  -webkit-animation: load 1s linear infinite;
          animation: load 1s linear infinite;
}

.audio-player.loading .player .btn-play .icon-loop {
  display: inline-block;
}

.audio-player .player .timeline {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 0.2rem;
}

.audio-player .player .timeline .line {
  --line-height: 0.24rem;

  flex: 1;
  display: flex;
  align-items: center;
  position: relative;
}

.audio-player .player .timeline .line:before {
  content: "";
  width: var(--player-percent-played);
  position: absolute;
  background: var(--player-color-featured);
  height: var(--line-height);
  border-radius: calc(var(--line-height) / 2);
}

.audio-player .player .timeline .line input[type="range"] {
  flex: 1;
  all: unset;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-color: initial !important;
  border: none;
  outline: none;
  width: 100%;
  position: relative;
}

.audio-player
  .player
  .timeline
  .line
  input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
          appearance: none;
  background: var(--player-color-featured);
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  margin-top: calc(var(--line-height) * -1.4);
}

.audio-player
  .player
  .timeline
  .line
  input[type="range"]::-moz-range-thumb {
  unset: all;
  -moz-appearance: none;
       appearance: none;
  border: 0;
  background: var(--player-color-featured);
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  margin-top: calc(var(--line-height) * -1.4);
}

.audio-player
  .player
  .timeline
  .line
  input[type="range"]::-ms-thumb {
  appearance: none;
  background: var(--player-color-featured);
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  margin-top: calc(var(--line-height) * -1.4);
}


.audio-player
  .player
  .timeline
  .line
  input[type="range"]::-webkit-slider-runnable-track {
  background: rgba(255, 255, 255, 0.2);
  height: var(--line-height);
  border-radius: calc(var(--line-height) / 2);
}

.audio-player
  .player
  .timeline
  .line
  input[type="range"]::-moz-range-track {
  background: rgba(255, 255, 255, 0.2);
  height: var(--line-height);
  border-radius: calc(var(--line-height) / 2);
}

.audio-player
  .player
  .timeline
  .line
  input[type="range"]::-ms-track {
  background: rgba(255, 255, 255, 0.2);
  height: var(--line-height);
  border-radius: calc(var(--line-height) / 2);
}

.audio-player .player .timeline .data {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--player-color-text);
  position: absolute;
  width: 100%;
  bottom: 0;
}

.audio-player .player .timeline .data .current-time::before {
  content: var(--player-current-time);
}

.audio-player .player .timeline .data .time {
  display: flex;
  align-items: center;
}

.audio-player .player .timeline .data .time::before {
  content: var(--player-current-date-time);
}

.audio-player .player .timeline .data .time span {
  font-size: 1rem;
  margin-left: 0.4rem;
  color: var(--player-color-featured);
}

.audio-player .user {
  position: relative;
  width: 55px;
  height: 55px;
  margin-left: 1.4rem;
}

.audio-player .user img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  background: rgba(255, 255, 255, 0.01);
}

.audio-player .user span {
  position: absolute;
  left: 0;
  bottom: 0;
  color: var(--player-color-featured);
  transform: translateX(-50%);
  font-size: 1.6rem;
  text-shadow: -1px -1px 0 var(--player-color-background),
    1px -1px 0 var(--player-color-background),
    -1px 1px 0 var(--player-color-background),
    1px 1px 0 var(--player-color-background);
}

/* Áudio enviado */
.audio-player.mine {
  --player-color-background: #056162;
}

.audio-player.mine .user {
  margin-left: 0;
}

.audio-player.mine .player {
  margin-right: 0.8rem;
}

.audio-player.mine .player .btn-play{
  padding: 0 0.8rem;
}

.audio-player.mine .user span {
  right: 0;
  left: auto;
  transform: translateX(50%);
}

/* Título */
h1 {
  margin-bottom: 32px;
  font-size: 1.8rem;
  font-weight: bold;
}

h1 span {
  color: #00e5c0;
}

/* Créditos */
footer {
  margin-top: 32px;
}

footer a {
  font-weight: bold;
  text-decoration: none;
  color: inherit;
}
/*Estilos generales del boton whatsapp*/
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  animation: breathe 2s ease-in-out infinite;
}

/*Estilos solo al icono whatsapp*/
.whatsapp-btn i {
  color: #fff;
  font-size: 24px;
  animation: beat 2s ease-in-out infinite;
  text-decoration: none;
}

/*Estilos con animation contorno respirando*/
@keyframes breathe {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
}

/*Estilos de animacion del icono latiendo*/
@keyframes beat {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}