<template>
  <div id="Chapter1_1" class="content-wrap">
    <div style="margin: 30px 0px 50px; width: 20%">
      <router-link to="/MyPlan.page">
        <div class="logo mb25"><img src="../../../../resources/img/logo2.png" alt=""></div>
      </router-link>
    </div>
    <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_8')"><img src="../../../../resources/img/left.png" alt=""></div>
      <div class="content title-box">
        <p class="title mt25 title-bg">step2</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="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="dropGroup" style="gap: 20px;">
              <img src="../../../../resources/img/img160_43s.png" alt="">
              <div class="dropimg">
                <img style="top: 21px;" src="../../../../resources/img/img161_44s.png" alt="">
                <img style="top: 119px;" src="../../../../resources/img/img162_43s.png" alt="">
                <img style="top: 215px;" src="../../../../resources/img/img163_43s.png" alt="">
                <img style="bottom: 36px;" src="../../../../resources/img/img164_43s.png" alt="">
              </div>
            </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_7')"><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>
.dropGroup{position: relative;}
.dropimg img{position: absolute; left: 27px;}
.pickGroup button {
  position: relative;
  margin: 10px 40px;
}

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