<template>
  <div id="Chapter1_1" class="content-wrap">
    <div class="title-box mb25 flex align-center mt40">
      <span class="title mr40">1. Hello WORLD</span>
      <span class="subtitle">my name is dd</span>
    </div>
    <div class="flex justify-between align-center">
      <div class="pre-btn" @click="goToPage('Chapter3_6')"><img src="../../../../resources/img/left.png" alt=""></div>
      <div class="content title-box">
        <p class="title mt25 title-bg">step3.</p>
        <div class="flex align-center mb30">
               <p class="subtitle2 mr20">듣고 알맞은 것을 고르세요.</p>
               <button><img src="../../../../resources/img/btn10_s.png" alt="">
               </button>
            </div>

        <div class="text-ct">
          <div class="time-bg">
            <div>
              <div class="time">
                <p class="second">{{ timer }}</p>
                <p class="text">sec</p>
              </div>
            </div>
          </div>
          
          <div class="pickGroup flex align-center justify-between" style="gap: 100px;">
            <p>1. 문제</p>
            <div class="flex justify-center" style="gap: 60px;">
              <article >
                <div class="flex align-center">
                  <button><img src="../../../../resources/img/img136_71s.png" alt="">
                    <p>1</p>
                  </button>
                  <img src="../../../../resources/img/img111_56s.png" alt="">
                </div>
              </article>
              <article >
                <div class="flex align-center">
                  <button><img src="../../../../resources/img/img136_71s.png" alt="">
                    <p>2</p>
                  </button>
                  <img src="../../../../resources/img/img112_56s.png" alt="">
                </div>
              </article>
            </div>
          </div>
          <div class="pickGroup mt40 flex align-center justify-between" style="gap: 100px;">
            <p>2. 문제 ㅇㅇㅇ</p>
            <div class="flex justify-center" style="gap: 60px;">
              <article >
                <div class="flex align-center">
                  <button><img src="../../../../resources/img/img136_71s.png" alt="">
                    <p>1</p>
                  </button>
                  <img src="../../../../resources/img/img111_56s.png" alt="">
                </div>
              </article>
              <article >
                <div class="flex align-center">
                  <button><img src="../../../../resources/img/img136_71s.png" alt="">
                    <p>2</p>
                  </button>
                  <img src="../../../../resources/img/img112_56s.png" alt="">
                </div>
              </article>
            </div>
          </div>
        </div>
      </div>
      <div class="next-btn" @click="goToPage('Chapter3_8')"><img src="../../../../resources/img/right.png" alt=""></div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      timer: '00'
    }
  },
  methods: {
    goToPage(page) {
      this.$router.push({ name: page });
    },
    startTimer() {
      if (this.intervalId) {
        clearInterval(this.intervalId);
      }
      this.timer = 5;
      this.intervalId = setInterval(() => {
        if (this.timer > 0) {
          this.timer--;
        } else {
          clearInterval(this.intervalId);
        }
      }, 1000);
    }
  },
  watch: {

  },
  computed: {

  },
  components: {
  },
  mounted() {

  }
}
</script>
<style scoped>
.inputbox {
  font-size: 38px;
  font-family: 'Pretendard-ExtraBold';
}

.imgGroup button {
  position: relative;
}

.imgGroup button p,
.textbox p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: fit-content;
  height: fit-content;
  background: #ffffffb8;
  border-radius: 5px;
  padding: 10px;
  font-size: 48px;
  font-family: 'ONEMobilePOP';
}
.pickGroup{padding: 0px 80px;}
.pickGroup p {
  font-size: 34px;
  font-weight: bold;
}

.pickGroup button {
  position: relative;
  margin-right: 30px;
}

.pickGroup button p {
  font-size: 34px;
  color: #c6c6c6;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
</style>