@font-face {
  font-family: 'Hubot Sans';
  src:
    url('./worawit/assets/font/webfonts/HubotSans-Regular.woff2') format('woff2 supports variations'),
    url('./worawit/assets/font/webfonts/HubotSans-Regular.woff2') format('woff2-variations');
  font-weight: 200 900;
  font-stretch: 75% 125%;
}

:root {
  --ch-display: 780px;
  --ch-color-primary: #A60909;
  --ch-color-primary-1: rgb(231, 4, 4);
  --ch-color-black: #000000;
  --ch-color-black-1: rgb(58, 57, 57);
}

* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html,
body {
  font-family: 'Hubot-Sans', sans-serif;
  line-height: 1.3;
  font-size: 16px;
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  cursor: pointer;
}

.content {
  max-width: var(--ch-display);
  width: 100%;
  margin: auto;
  padding: 0 .5rem;
  background-image: url(https://codehard.co.th/img/bg-home.d1229fb8.webp);
  background-repeat: no-repeat;
  background-position: right -12px;
  background-size: 750px;
}

.header {
  animation: fadeBackground 15s infinite;
  background-position: right;
  background-repeat: no-repeat;
  background-size: 400px;
  height: 225px;
  width: 100%;
  position: relative;
}


.header .box-img .img-profile {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--ch-color-primary);
  background-image: url(./profile.jpg);
  background-position: 0px -27px;
  background-repeat: no-repeat;
  background-size: cover;
}

.header .box-img {
  margin: auto;
  background: #FFFFFF;
  width: fit-content;
  width: -moz-fit-content;
  border-radius: 50%;
  padding: 2px;
  border: 2px solid var(--ch-color-primary);
  position: absolute;
  top: 24px;
  left: 12px;
  display: flex;
  align-content: center;
  justify-content: center;
}

.info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.info .name {
  font-size: 3rem;
}

.info .name-th {
  font-size: 2rem;
}

.info .position {
  font-size: 1.5rem;
}

.contact {
  background: #800404;
  padding: 3rem;
  margin: 2rem 0;
}

.info a {
  margin: 10px 0;
  color: black;
  border-radius: 10px;
}

.list-contact {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.list-contact li {
  width: 50%;
  float: none;
  text-align: center;
  padding: 10px 2rem;
}

.list-contact li a {
  width: 100%;
}

h2 {
  position: relative;
  text-align: center;
  color: #FFFFFF;
}

h2::before {
  content: "";
  display: block;
  width: 4rem;
  height: 2px;
  background: #ffffff;
  left: 28%;
  top: 50%;
  position: absolute;
}

h2::after {
  content: "";
  display: block;
  width: 4rem;
  height: 2px;
  background: #ffffff;
  right: 28%;
  top: 50%;
  position: absolute;
}

.address {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 4rem 0 7rem 0;
}

footer {
  position: fixed;
  bottom: 0;
  background-color: #afafaf;
  width: 100%;
  max-width: 765px;
}

.footer ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

.footer ul li {
  width: 50%;
  float: none;
  text-align: center;
  padding: 10px 0;
  color: var(--ch-color-black);
}

.footer ul li:nth-child(1) {
  background-color: var(--ch-color-primary);
  color: #FFFFFF;
}

.list-item a.download {
  justify-content: center;
  padding: 0;
  border-radius: 30px;
  height: 50px;
}

.list-item a.download .svg {
  width: 50px;
}

.qrcode {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid;
}

.icon-ani {
  animation: zoomImg 2s ease infinite;
}

@keyframes zoomImg {
  0% {
    font-size: 1rem;
  }

  50% {
    font-size: 1.5rem;
  }

  100% {
    font-size: 1rem;
  }
}

@keyframes fadeBackground {
  0% {
    background-image: url(./service-1.webp);
  }

  16.6% {
    background-image: url(./service-2.webp);
  }

  33.3% {
    background-image: url(./service-3.webp);
  }

  50% {
    background-image: url(./service-4.webp);
  }

  66.6% {
    background-image: url(./service-5.webp);
  }

  83.3% {
    background-image: url(./service-6.webp);
  }

  100% {
    background-image: url(./service-7.webp);
  }
}

.btn-qrcode {
  border-radius: 8px;
}

.overlay {
  background-color: #000;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  pointer-events: none;
  opacity: 0;
}

.model__content .qrcode {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal {
  background-color: #fff;
  border-radius: 15px;
  width: 100%;
  max-width: 540px;
  padding-bottom: 20px;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

/* .button-launch {} */

input[type="checkbox"]:checked~.modal {
  pointer-events: auto;
  opacity: 1;
}

input[type="checkbox"]:checked~.overlay {
  pointer-events: auto;
  opacity: 0.75;
}

.modal .button-close {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal .button-close .button {
  padding: 10px 45px;
}

.modal .qrcode {
  border: 0px;
}