<template>
  <div style="position: relative;">
    <div class="div" />
    <p class="text">
      AI播放中
    </p>
  </div>
</template>

<style scoped>
.text{
  display: block;
  width: 100%;
  font-size: 1.5em;
  text-align: center;
  position: absolute;
  left: 0;
  bottom: -2em;
}

.div {
  display: flex;
  width: 28em;
  height: 28em;
  border: 2em solid transparent;
  border-top-color: #7fe7c4;
  border-bottom-color: #7fe7c4;
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
}

.div:before {
  content: '';
  display: block;
  margin: auto;
  width: 13em;
  height: 13em;
  border: 2em solid #7fe7c4;
  border-radius: 50%;
  animation: pulse 1s alternate ease-in-out infinite;
}

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

@keyframes pulse {
  from {
    transform: scale(0.5);
  }
  to {
    transform: scale(1);
  }
}
</style>
