/*
Theme Name: QSTT
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Arizonia&display=swap');

body {
  overflow: hidden; /* Hides both vertical and horizontal scrollbars and prevents scrolling */
}

#header,
#footer {
    display: none;
}
#main{

}
.hide-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;     /* Firefox */
}

/* For Chrome, Safari, Opera, and other WebKit browsers */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

/* ===== BASIC ===== */
body { margin:0; }
.vq-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-image: url('https://quayso.quanghuymedia.com/wp-content/uploads/2026/02/TRUNG-THUONG-LON-1000-x-600-px.png');
  background-repeat: no-repeat;
  background-size: cover;
  flex-direction: column;
}

/* ===== WHEEL ===== */
.vq-vector {
  position: relative;
}
.vq-vector::after{
    content: "";
    position: absolute;
    background-image: url(https://quayso.quanghuymedia.com/wp-content/uploads/2026/02/baolixi1.png);
    width: 800px;
    height: 446px;
    top: -32%;
    background-repeat: round;
    left: -60%;
    z-index: 1;
}
.vq-wheel-wrap {
  position: relative;
  width: 320px;
  height: 320px;
  top: -15%;
  z-index: 2;
}
.vq-wheel-wrap::after{
    content: "";
    position: absolute;
    background-image: url(https://quayso.quanghuymedia.com/wp-content/uploads/2026/02/vienqq.png);
    width: 360px;
    height: 360px;
    top: -20px;
    background-repeat: round;
    left: -26px;
}

.vq-wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  background:
    conic-gradient(
      #ffffff 0deg 30deg,
      #f70000 30deg 60deg,

      #ffffff 60deg 90deg,
      #f70000 90deg 120deg,

      #ffffff 120deg 150deg,
      #f70000 150deg 180deg,

      #ffffff 180deg 210deg,
      #f70000 210deg 240deg,

      #ffffff 240deg 270deg,
      #f70000 270deg 300deg,

      #ffffff 300deg 330deg,
      #f70000 330deg 360deg
    );
  transition: transform 5s cubic-bezier(.17,.67,.14,1);
}


.vq-center {
  position: absolute;
  inset: 29%;
}
.vq-center img{
    width: 150px;
    height: 150px;
    object-fit: contain;
}
.vq-btn {
    position: absolute;
    bottom: -75%;
    left: 50%;
    transform: translateX(-50%);
    width: 270px;
    height: 115px;
    border: none;
    background-image: url(https://quayso.quanghuymedia.com/wp-content/uploads/2026/02/1-e1770608288299.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 23px;
    font-weight: 900;
    color: #f70000;
    text-align: center;
    text-shadow: 0 2px 0 #e8b658, 0 6px 12px rgb(238 0 0 / 35%);
}

/* ===== POPUP ===== */
.winner-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.winner-popup.hidden { display:none; }

.popup-box {
  background:#fff;
  padding:40px 60px;
  border-radius:16px;
  text-align:center;
}
/* ================= POPUP LÌ XÌ ================= */
.popup{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.popup.hidden{ display:none; }

/* ================= BAO LÌ XÌ ================= */
.lixi-image{
  position: relative;
  width: min(80vw, 520px);   /* 👈 TO HẲN */
  max-width: 520px;
  animation: lixiFlyUp .8s cubic-bezier(.22,.61,.36,1) forwards;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.35));
}


.lixi-image img{
  width: 100%;
  height: auto;
  display: block;
}

/* text đè lên ảnh */
.lixi-content{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  padding-bottom: 18%;
  text-align: center;
  
}

.lixi-content .title{
    font-size: 60px;
    color: #b20000;
    font-family: "Arizonia", cursive;
    font-weight: 100;
    font-style: normal;
    margin-top: 60px;
}

.lixi-content .name{
  margin-top: 10px;
  font-size: 30px;   /* 👈 TO RÕ */
  font-weight: 900;
  color: #111;
  width: 345px;
  font-family: 'Be Vietnam Pro', sans-serif;
}
/* ================= CONFETTI ================= */
#confetti{
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 9998;
}

.confetti-piece{
  position: absolute;
  width: 8px;
  height: 14px;
  opacity: .9;
  animation: confettiFly 1.6s ease-out forwards;
}


@keyframes confettiFly{
  from{
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  to{
    transform: translateY(600px) rotate(360deg);
    opacity: 0;
  }
}

/* ================= ANIMATIONS ================= */
@keyframes lixiFlyUp{
  from{
    transform:translate(-120px,120vh) rotate(-25deg) scale(.9);
    opacity:0;
    filter:blur(2px);
  }
  70%{
    transform:translate(10px,-20px) rotate(-10deg) scale(1.02);
    opacity:1;
    filter:blur(0);
  }
  to{
    transform:translate(0,0) rotate(0deg) scale(1);
    opacity:1;
    filter:blur(0);
  }
}

@keyframes openFlap{
  from{ transform:rotateX(0deg); }
  to{ transform:rotateX(18deg); }
}

@keyframes showText{
  from{ opacity:0; transform:translateY(6px); }
  to{ opacity:1; transform:translateY(0); }
}
@media (min-width: 1600px){
  .lixi-image{
    max-width: 680px;   /* TV 55–65 inch */
  }

  .lixi-content .name{
    font-size: 56px;
  }
}
#petals-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.petal {
    position: absolute;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle at center, #ff6b9d, #ff1744);
    border-radius: 50% 0 50% 0;
    opacity: 0.7;
    animation: petal-fall linear infinite;
}

@keyframes petal-fall {
    from {
        transform: translateY(-10px) rotate(0deg);
    }
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

.vq-lixi-select{
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}

.lixi-item{
  cursor: pointer;
  text-align: center;
  transition: transform .3s, filter .3s;
  margin-top: 40px;
}

.lixi-item img{
  width: 55px;
  filter: grayscale(1);
}

.lixi-item span{
  display: block;
  margin-top: 6px;
  color: #ffd400;
  font-weight: 600;
}

.lixi-item.active img{
  filter: none;
  transform: scale(1.15);
  box-shadow: 0 0 25px rgba(255,212,0,.8);
}

.lixi-item:hover{
  transform: translateY(-6px);
}
.mc-control{
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}

.mc-btn{
  padding: 10px 26px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg,#ffd400,#ff9800);
  color: #a30000;
}

.mc-btn.danger{
  background: linear-gradient(135deg,#ccc,#999);
  color: #333;
}

/*Smart phone */
  @media (max-width: 480px) {
    .vq-stage {
        background-position: center;
    }
    .lixi-content .title{
      font-size: 38px;
    }
    .lixi-content .name {
    font-size: 15px;
    width: 230px;
    }
}

/* Mobile lớn + Tablet dọc */
@media (max-width: 768px) {}

/* PC / TV */
@media (min-width: 769px) {}