@font-face {
  font-family: DessertMenuScript;
  src: url("/uploads/events/tet2025/font/SVN-Dessert Menu Script.ttf");
}

@font-face {
  font-family: SeagullBold;
  src: url("/uploads/events/tet2025/font/UTM SeagullBold.ttf");
}

@font-face {
  font-family: SeagullBoldItalic;
  src: url("/uploads/events/tet2025/font/UTM SeagullBoldItalic.ttf");
}

body,
html,
.container-login {
  height: 100%;
  background: #cecece;
  overflow-x: hidden;
}

body{
    background-image: url('/uploads/events/tet2025/bg/background-play.webp');
    background-position: center;
    background-size: cover;
}

/* Login */
.container-login {
    position: relative;    
}

.bg-login {
    position: absolute;
    width: 100%;
    height: 100%;
}

.title-event {
    z-index: 1;
    position: absolute;
    width: 100%;
}

.title-event img {
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.row-login {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  flex-wrap: wrap;
}

.row-login input {
  height: 40px;
  padding: 0 10px;
}



.btn-login {
  display: block;
  margin-left: auto;
  margin-right: 0;
  background: #de7626;
  border-color: #de7626;
}

#login-form {
  padding: 15px 30px;
  background: #faa96a;
  border-radius: 10px;
}

.con-lan,
.tui-mu {
    display: block;
    max-width: 100%;
}

.personal-information{
    margin-top: 85px;
}
/* Bag */
.blind-bag {
    display: flex;
    width: auto;
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin-top: 50px;
    position: relative;
    z-index: 2;
}
.blind-bag img {
  max-width: 150px;
  max-height: 150px;
}

.shake {
  display: inline-block;
  animation: shake 0.5s; /* Thời gian lắc là 0.5 giây */
  animation-iteration-count: infinite; /* Lặp lại hiệu ứng vô hạn */
}
.blind-bag-image{
    width: 150px;
    height: 150px;
    position: relative;
    transition: 0.5s;
    /*background-size: cover;*/
    background-size: 0 0;
    filter: drop-shadow(0 0 10px #3333339e);
}
.blind-bag-image > *{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: inherit;
    background-size: cover;
    transition: inherit;
}
.blind-bag-image > :nth-child(2n+1) {
    transform-origin: 200px 50%;
    clip-path: polygon(100% 0%, 51% 0%, 48% 9%, 50.75% 14.92%, 52% 23%, 50.75% 30.83%, 52.75% 39.08%, 53.25% 47.75%, 51.75% 56.42%, 54% 67%, 51% 75%, 51% 83%, 53.25% 91.08%, 52.25% 100%, 100% 100%);
}
.blind-bag-image > :nth-child(2n) {
    transform-origin: 200px 50%;
    clip-path: polygon(0% 0%, 51% 0%, 48% 9%, 50.75% 14.92%, 52% 23%, 50.75% 30.83%, 52.75% 39.08%, 53.25% 47.75%, 51.75% 56.42%, 54% 67%, 51% 75%, 51% 83%, 53.25% 91.08%, 52.25% 100%, 0% 100%);
}
.blind-bag-image.active > :nth-child(2n+1){
    transform: translateX(30px);
}

.blind-bag-image.active > :nth-child(2n){
    transform: translateX(-30px);
}

/* Info */
.personal-information .info {
    font-family: DessertMenuScript;
    text-align: center;
    font-size: 24px;
    margin-bottom: 10px;
}


.backdrop {
    height: 100%;
    width: 100%;
    background: #00000080;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
    opacity: 0;
    z-index: 2;
}

.popup-prize {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    display: none;
    opacity: 0;
}

.popup-prize .title {
    text-align: center;
    font-size: xxx-large;
    text-transform: uppercase;
    font-weight: 700;
    font-family: Arial, Helvetica, sans-serif;
}

.popup-prize .prize {
    display: flex;
    justify-content: center;
}
.button_area{
    align-items: center;
    display: flex;
    justify-content: center;
    gap: 10px;
    position: fixed;
    z-index:1;
    bottom: 30px;
    width: 100%;
}
.button_area .btn {
    font-size: 16px;
    font-family: SeagullBold;
}
.con-snake{
    position: absolute;
    right: 20px;
    bottom: 0;
    z-index: 0;
}
.button_area .btn.quytac {
    background-color: #d25f1b;
}
.button_area .btn.lichsu {
    background-color: #1a1f6f;
}
.button_area .btn.logout {
    background-color: #d02722;
}

@keyframes shake {
  0% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-10deg);
  }
  100% {
    transform: rotate(10deg);
  }
}

@media (max-width: 1400px) {
    .row-login > div {
        height: 100%;
    }
    
    .con-lan1,
    .tui-mu {
        position: absolute;
        bottom: 0;
        max-width: 100%;
    }

    #login-form {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
    }
}

@media (max-width: 768px) {
    .blind-bag .blind-bag-image {
        max-width: 100px;
        max-height: 100px;
    }
    .con-snake{
        width: 230px;
    }
}

@media (max-width: 479px) {
    .title-event {
        /*top: 15%;*/
        padding: 0 15px;
    }
    
    .row-login {
        padding: 0 15px;
    }
    
    .row-login > div {
        height: auto;
    }
    
    #login-form {
        position: unset;
        top: 50%;
        left: 50%;
        transform: unset;
        width: 100%;
    }
    
    .tui-mu {
        position: unset;
    }
}