<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('Chapter2_11')"><img src="../../../../resources/img/left.png" alt=""></div>
      <div class="content title-box">
        <p class="title mt25 title-bg">단어 짝 맞추기 게임</p>
        <p class="subtitle2 ">앗...책들이 엉망이야 단어책과 뜻책을 맞추어 책을 책꽃이로 돌려놓자!</p>

        <div class="mt50 text-ct">
          <div class="pickGroup flex align-center justify-center mt50" style="gap: 100px;">
            <div>
              <div class="mb20">
                <button><img src="../../../../resources/img/img100_45s.png" alt="">
                  <p>1</p>
                </button>
                <button><img src="../../../../resources/img/img101_45s.png" alt="">
                  <p>1</p>
                </button>
                <button><img src="../../../../resources/img/img102_45s.png" alt="">
                  <p>1</p>
                </button>
                <button><img src="../../../../resources/img/img103_45s.png" alt="">
                  <p>1</p>
                </button>
              </div>
              <div>
                <button><img src="../../../../resources/img/img100_45s.png" alt="">
                  <p>1</p>
                </button>
                <button><img src="../../../../resources/img/img101_45s.png" alt="">
                  <p>1</p>
                </button>
                <button><img src="../../../../resources/img/img102_45s.png" alt="">
                  <p>1</p>
                </button>
                <button><img src="../../../../resources/img/img103_45s.png" alt="">
                  <p>1</p>
                </button>
              </div>
            </div>
            <div class="flex" style="gap: 20px;">
              <img src="../../../../resources/img/img99_45s.png" alt="">
            </div>

          </div>

          <div class="time-bg">
            <div>
              <div class="time">
                <p class="second">{{ timer }}</p>
                <p class="text">sec</p>
              </div>
            </div>
          </div>
        </div>
      </div>
      <div class="next-btn" @click="goToPage('Chapter2_13')"><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>
.pickGroup button {
  position: relative;
  margin: 10px 40px;
}

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