<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('Dashboard')"><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>
            </div>
  
          <div class="mt80 flex align-center justify-center" style="gap: 113px;">
            <div class="imgGroup">
              <div class="flex" style="gap: 60px;">
              <img src="../../../../resources/img/img106_48s.png" alt="">
              </div>
              <div class="time-bg">
                  <div>
                    <div class="time">
                      <p class="second">{{ timer }}</p>
                      <p class="text">sec</p>
                    </div>
                  </div>
                </div>
            </div>
            <div class="pickGroup">
              <div>
                <article  class="flex justify-center mb50" style="gap: 60px;">
                  <div class="flex">
                    <button><img src="../../../../resources/img/img136_71s.png" alt="">
                      <p>1</p>
                    </button>
                    <p>a</p>
                  </div>
                </article>
                <article  class="flex justify-center mb50" style="gap: 60px;">
                  <div class="flex">
                    <button><img src="../../../../resources/img/img136_71s.png" alt="">
                      <p>2</p>
                    </button>
                    <p>a</p>
                  </div>
                </article>
                <article  class="flex justify-center" style="gap: 60px;">
                  <div class="flex">
                    <button><img src="../../../../resources/img/img136_71s.png" alt="">
                      <p>3</p>
                    </button>
                    <p>a</p>
                  </div>
                </article>
              </div>
  
            </div>
          </div>
        </div>
        <div class="next-btn" @click="goToPage('Chapter3_1')"><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>
  .imgGroup{width: fit-content;}
  .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 button {
    position: relative;
    margin-right: 30px;
  }
  
  .pickGroup button p {
    font-size: 34px;
    color: #c6c6c6;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .pickGroup article img{object-fit: contain; width: -webkit-fill-available;}
  .pickGroup article >div >p {
    font-size: 64px;
  }
  </style>