*,
*::before,
*::after {
  box-sizing: border-box;
}
body {
  min-height: 100vh;
  background: #ffffff;
  font-size: 16px;
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
}
img {
  max-width: 100%;
}
a {
  text-decoration: none;
}
.hide_mobile {
  display: none;
}

.flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.limit {
  position: relative;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 30px;
}
header {
  height: 80px;
  background: #00a164;
}
.logo-main {
  max-height: 60px;
}
footer {
  height: 100px;
  background: #00a164;
}

.main {
  height: calc(100vh - 180px);
  background: url(../images/body-bg.jpg) no-repeat center center;
  background-size: cover;
}
.main .limit.flex {
  justify-content: flex-end;
}
.m-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 700px;
}
.m-content img {
  margin-bottom: 10px;
}
.limit.flex {
  height: 100%;
}
.hd-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.btn-dangnhap,
.btn-dangky {
  color: #2b2700;
  display: block;
  text-align: center;
  margin: 0 6px;
  height: 36px;
  width: 160px;
  font-size: 20px;
  line-height: 36px;
  font-weight: 700;
  display: inline-block;
  border-radius: 3px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
  background: #fee71b;
  background-image: linear-gradient(
    to right top,
    #ffc400,
    #ffca03,
    #ffd107,
    #ffd70d,
    #ffde13,
    #ffe22c,
    #fee73d,
    #feeb4c,
    #feee65,
    #fff17c,
    #fff391,
    #fff6a6
  );
}
.btn-dangnhap {
  background: #fff;
  background-image: linear-gradient(
    to right top,
    #dfdfdf,
    #e1e1e1,
    #e3e3e3,
    #e5e5e5,
    #e7e7e7,
    #eaeaea,
    #ececec,
    #efefef,
    #f3f3f3,
    #f7f7f7,
    #fbfbfb,
    #ffffff
  );
}

.btn-chatngay {
  position: absolute;
  left: 15px;
  color: #2b2700;
  display: block;
  height: 90px;
  margin: 0 6px;
  padding: 10px 0;
  border-radius: 3px;
  cursor: pointer;
  filter: drop-shadow(0 1px 2px black);
}
.btn-chatngay img {
  height: 100%;
}
footer .flex {
  justify-content: center;
}
.btn-sanqua {
  padding-top: 8px;
}
.ft-pop {
  position: relative;
  width: 300px;
  text-align: center;
}
.pop-content {
  position: absolute;
  width: 0px;
  height: 0px;
  bottom: 10px;
  max-height: 0;
  border-radius: 10px;
  overflow: hidden;
  transition: all 300ms ease-in-out;
  text-align: center;
  /* clip-path: polygon(
    0% 0%,
    100% 0%,
    100% 83%,
    57% 83%,
    50% 100%,
    43% 83%,
    0 83%
  );
  background-color: #e40000; */
  transform-origin: center;
  opacity: 0;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-weight: 600;
  font-size: 20px;
}
.pop-content.open {
  max-height: none;
  width: 800px;
  height: auto;
  padding: 20px 30px;
  opacity: 1;
  transform: translateX(-50%);
}
.pushable {
  background: hsl(340deg 100% 32%);
  border-radius: 12px;
  border: none;
  padding: 0;
  cursor: pointer;
  outline-offset: 4px;
  animation: scaling 1s ease-in-out infinite;
  background: transparent;
}
.front {
  display: block;
  border-radius: 12px;
  font-size: 1.25rem;
  /* background: hsl(345deg 100% 47%); */
  color: white;
  transform: translateY(-6px);
}

.pushable:active .front {
  transform: translateY(-2px);
}

.ani-blinking {
  animation: blinker 1s ease-in-out infinite;
}


@media (max-width: 800px) {

  .main {
    background: #fff;
    height: auto;
  }
  .main .limit.flex {
    flex-direction: column-reverse;
    padding: 0;
  }
  .limit.flex {
    padding: 0 5px;
  }
  .hide_mobile {
    display: block;
    padding-bottom: calc(20vw + 100px);
  }
  header,
  footer {
    height: auto;
    padding: 10px 15px;
  }
  header .limit.flex {
    flex-direction: column;
  }
  footer .limit.flex {
    align-items: flex-start;
    height: 150px;
  }
  .hd-buttons {
    margin-top: 10px;
  }
  .btn-dangnhap, .btn-dangky {
    color: #2b2700;
    display: block;
    text-align: center;
    margin: 0 6px;
    height: 32px;
    width: 140px;
    font-size: 16px;
    line-height: 32px;
  }
  .pop-content {
    max-height: none;
    max-width: 100%;
    width: 435px;
    height: auto;
    padding: 0px 10px;
    bottom: 35px;
    opacity: 1;
    transform: translateX(-50%);
  }
  .btn-chatngay {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
  }
  .m-content {
    padding: 0 15px;
  }
  .bss {
    width: 42vw;
  }
  .ft-pop {
    max-width: 450px;
    width: 100%;
  }
  .front {
    max-width: 200px;
    margin: 0 auto;
  }
}

@keyframes scaling {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05, 1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes blinker {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  60% {
    opacity: 0;
  }
  70% {
    opacity: 1;
  }
  80% {
    opacity: 0;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
