<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: 20em;
  height: 20em;
  border: 1em solid transparent;
  border-top-color: #3cefff;
  border-bottom-color: #3cefff;
  border-radius: 50%;
  animation: spin 1.5s linear infinite;
}

.div:before {
  content: '';
  display: block;
  margin: auto;
  width: 10em;
  height: 10em;
  border: 1em solid #3cefff;
  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>
