@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@700&display=swap');

html {
  background-color: #4a0001;
}

body {
  height: auto;
  min-width: 320px;
  max-width: 768px;
  margin: 0 auto;
  position: relative;
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: bold;
  color: #ffffff;
}

a {
  color: #ffffff;
  text-decoration: none;
}

.background {
  background-image: url("../img/bg.jpg");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.main {
  position: relative;
  height: calc(100vw * (1098 / 768));
  width: 100vw;
}

.link{
  padding-top: calc(100vw * (910 / 768));
  padding-left: calc(100vw * (15 / 768));
  padding-right: calc(100vw * (15 / 768));
  display: flex;
  align-items: center;
}

.link_button {
  display: none;
  width: calc(100vw * (135/ 768));
  height: calc(100vw * (135 / 768));
  filter: drop-shadow(5px 0px 15px rgba(220, 38, 108, 0.8));
  animation: pulseAnim 2s infinite;
  border-radius: 20px;
}

.link_button2 {
  display: none;
  width: calc(100vw * (135/ 768));
  height: calc(100vw * (135 / 768));
  animation: pulseAnim2 1s infinite;
  scale: 1.05;
  border-radius: 20px;
}

.link_button img,
.link_button2 img {
  transform: rotate(-45deg);
}

.link_button:not(:last-child) {
  margin-right: calc(100vw * (15 / 768));
}

.show { 
  display: flex;
}

.photo {
  position: absolute;
  top: calc(100vw * (180 / 768));
  left: calc(100vw * (52 / 768));
}

.photo_qrcode {
  display: block;
  width: calc(100vw * (127 / 768));
  height: calc(100vw * (127 / 768));
}

@keyframes pulseAnim {
  0% { transform:rotate(45deg) scale(1); }
  70% { transform:rotate(45deg) scale(1.05); }
  100% { transform:rotate(45deg) scale(1);}
}

@keyframes pulseAnim2 {
  0% { transform:rotate(45deg) scale(1); box-shadow: 0 0 0px 0px rgba(220, 244, 85, 0.392); }
  70% { transform:rotate(45deg) scale(1.05); box-shadow: 0px 0px 30px 30px rgba(255,102,0, 0); }
  100% { transform:rotate(45deg) scale(1); box-shadow: 0 0 0px 0px rgba(255,102,0, 0); }
}

@media (min-width: 768px) {
  .main {
    height: 1098px;
    width: 768px
  }

  .link{
    padding-top: 910px;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    align-items: center;
  }

  .link_button {
    width: 135px;
    height: 135px;
  }

  .link_button2 {
    width: 156px;
    height: 152px;
  }

  .link_button:not(:last-child) {
    margin-right: 15px;
  }

  .photo {
    top: 180px;
    left: 52px;
  }

  .photo_qrcode {
    width: 125px;
    height: 125px;
  }
}
