@tailwind base;
@tailwind components;
@tailwind utilities;

/* inter-tight-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 400;
  src: url("./fonts/inter-tight-v7-latin-regular.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-tight-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500;
  src: url("./fonts/inter-tight-v7-latin-500.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* inter-tight-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 700;
  src: url("./fonts/inter-tight-v7-latin-700.woff2") format("woff2"); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* VARIABLES */
:root {
  /* Color */
  --color-primary: #0c3a30; /* Màu chính */
  --color-secondary: #2ecc71; /* Màu phụ */
  --color-accent: #9edd05; /* Màu nhấn */
  --color-background: #fffaeb; /* Màu nền */
  --color-text: #333; /* Màu văn bản */
  --color-border: #ccc; /* Màu viền */

  /* Font family */
  --Family-Sans: "Inter Tight", sans-serif;
}

/* COMMON */
@media screen and (max-width: 390px) {
  html {
    font-size: calc(15 / 375 * 100vw);
  }
}

@media screen and (min-width: 1600px) {
  html {
    font-size: calc(16 / 1600 * 100vw);
  }
}

html {
  font-size: clamp(15px, 1.95vw, 16px);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

.gu-btn-primary {
  padding: 0.5rem 0.75rem;
  display: flex;
  gap: 0.625rem;
  border-radius: 0.75rem;
  border: 1px solid var(--color-accent);
  background: var(--color-accent);
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 700;
  line-height: 150%;
  transition: all 0.15s;
}
.gu-btn-primary:hover {
  border-color: white;
  background: var(--color-primary);
  color: white;
}
.gu-btn-primary:hover svg {
  stroke: white;
}

.gu-btn-secondary {
  padding: 0.5rem 0.75rem;
  display: flex;
  gap: 0.625rem;
  border-radius: 0.75rem;
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  line-height: 150%;
  transition: all 0.15s;
}
.gu-btn-secondary:hover {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-primary);
}
.gu-btn-secondary:hover svg {
  stroke: var(--color-primary);
}

.gu-btn-ghost {
}

.gu-btn-white {
  padding: 0.5rem 0.75rem;
  display: flex;
  gap: 0.625rem;
  border-radius: 0.75rem;
  border: 1px solid white;
  background: white;
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 700;
  line-height: 150%;
  letter-spacing: -2%;
  transition: all 0.15s;
}
.gu-btn-white:hover {
  background: transparent;
  color: white;
}
.gu-btn-white:hover svg {
  stroke: white;
}

.gu-btn-white-border {
  padding: 0.5rem 0.75rem;
  display: flex;
  gap: 0.625rem;
  border-radius: 0.75rem;
  border: 1px solid white;
  background: white;
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 700;
  line-height: 150%;
  letter-spacing: -2%;
  transition: all 0.15s;
  border: 2px solid var(--color-primary);
}
.gu-btn-white-border:hover {
  background: var(--color-primary);
  color: white;
}
.gu-btn-white-border:hover svg {
  stroke: white;
}

.animate_right{
  animation: scrollingRight 20s linear infinite;
}
.animate_left{
  animation: scrollingLeft 20s linear infinite;
}

@keyframes scrollingRight {
  0%{
    transform: translateX(0%);
  }100%{
    transform: translateX(50%);
  }
}

@keyframes scrollingLeft {
  0%{
    transform: translateX(0%);
  }100%{
    transform: translateX(-50%);
  }
}
.drawer-menu{
  position: fixed;
  width: 100%;
  inset: 0;
  left: 100%;
  z-index: 100;
  background-color: white;
  transition: all 500ms;
}
#checkbox-drawer:checked + .drawer-menu{
  left: 0;
}
.block-video{
  display: none;
}
#checkbox-playvideo:checked + .block-video{
  display: flex;
  align-items: center;
  justify-content: center;
}

.message {
  position : fixed;
  top: -6.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  opacity: 1;
  padding: 1rem 2rem;
  border: 2px solid var(--color-border);
  border-radius: 0.5rem;
  background-color: var(--color-background);
  color: var(--color-primary);
}

@keyframes slideIn {
  0% {
    top:-6.25rem;
      opacity: 0;
  }
  100% {
    top: 2rem;
    opacity: 1;
  }
}

@keyframes stay {
  0% {
      top: 2rem;
      opacity: 1;
    }
  100% {
    top: 2rem;
    opacity: 1;
  }
}
@keyframes slideOut {
  0% {
      opacity: 1;
    }
  
  100% {
    opacity: 0;
  }
}

.message.slide-in {
  animation: slideIn 0.3s ease-out, stay 2s 0.3s, fadeOut 10s 10s forwards;
}

@media screen and (max-width: 375px) {
  .mini-double-card {
    display : flex;
    flex-direction: column;
  }
  .container-double-card {
    gap: 0.125rem !important;
  }
}