/*
Theme Name: Codebyday
Theme URI: https://tncthemes.com
Author: Codebyday
Author URI: https://tncthemes.com
Description: Theme Codebyday - Trang đăng ký/landing.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: codebyday
*/


.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline: 0;
  opacity: 0;
  transition: opacity .15s linear;
  text-align: center;
}
.modal.show {
  display: block;
  opacity: 1;
}
.modal-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0, 0.88);
}
.modal-dialog {
  position: relative;
  width: 500px;
  max-width: 90%;
  top: 50%;
  margin: 0 auto;
  pointer-events: none;
  transition: -webkit-transform .3s ease-out;
  transition: transform .3s ease-out;
  transition: transform .3s ease-out,-webkit-transform .3s ease-out;
  -webkit-transform: translate(0,-50px);
  transform: translate(0,-50px);
}
.modal.show .modal-dialog {
  -webkit-transform: none;
  transform: none;
}
.modal-content {
  position: relative;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  border-radius: .3rem;
  outline: 0;
  padding: 20px 15px;
  background-color: #000;
  border: 2px solid #fff;
}
.modal-title {
  width: 100%;
  display: inline-block;
  color: #f2e200;
  text-transform: uppercase;
  text-align: center;
  font-weight: 700;
}
.modal-body {
  color: #fff;
  padding: 0;
  line-height: 1.3;
  padding: 1rem 0;
}
.modal-content .close {
  position: absolute;
  right: -4%;
  bottom: 104%;
  z-index: 2;
  color: #f2e200;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-text-size-adjust: 100%;
}

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

}

body {
    background: url(./assets/images/bg.webp);
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-white);
    min-height: 100dvh;
    max-width: 100dvw;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

.lpa-header {
    position: sticky;
    top: 0;
    width: 100%;
    left: 0;
    background-color: #030C07;
    display: none;
    grid-template-columns: 24px 1fr 24px;
    padding: 3dvw 5dvw;
    z-index: 60;

}

.lpa-header .lpa-logo {
    text-align: center;
}

.lpa-header .lpa-logo img {
    max-height: 10dvw;
}

.lpa-header button {
    background-color: transparent;
    border: unset !important;
    outline: unset !important;
    box-shadow: unset !important;
    font-size: 2rem;
}

.lpa-header .lpa-menu-btn {
    color: #FFED17;
}

.lpa-header .lpa-search-btn {
    color: #fff;
}

.lpa-main {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    align-items: center;
    overflow-x: hidden;
}

.lpa-main img {
    max-width: 100%;
}

.lpa-top {
    display: grid;
    grid-template-columns: 45% 55%;
    width: 100%;
    max-width: 90dvw;
    padding-top: 5dvh;
}

.lpa-layer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(2.3dvw);
}

.lpa-layer-top .lpa-logo-pc {
    display: block;
    width: 13dvw;
}

.lpa-layer-top .lap-layer-img {
    margin-top: -7%;
}

.lpa-layer-top .lap-layer-img img {
    max-width: unset;
    width: 45dvw;
}

.lap-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    /* transform: translateX(-4dvw); */
}

.lpa-slogan {
    width: 30dvw;
    transform: translateY(15%);
}

.lpa-form-group {
    position: relative;

}

.lpa-form-group .lpa-bg-form {
    max-width: unset;
    width: 59dvw;
}

.lpa-input-group {
    position: absolute;
    width: 70%;
    height: 45%;
    top: 50%;
    left: 0;
    display: flex;
    flex-direction: column;
    transform: translate(21%, -45%);
    z-index: 20;
}

.lpa-input {
    position: relative;
    height: 100%;
    width: 100%;
    font-size: clamp(0.5rem, 1rem + 0.1dvw + 0.1dvh, 1.5rem);
    margin-bottom: clamp(0.75rem, .5rem + 1.5vw, 2.5rem);
}

.lpa-input input {
    background-color: #fff!important;
    border: unset !important;
    outline: unset !important;
    box-shadow: unset !important;
    /* height: 13dvh; */
    /* aspect-ratio: 11 / 1.73; */
    width: 100%;
    height: 100%;
    border-radius: 999999px;
    padding-left: 7dvw;
    font-size: clamp(0.75rem, 1rem + 1.5vw, 4rem);
}


.lpa-input input:-webkit-autofill,
.lpa-input input:-webkit-autofill:hover,
.lpa-input input:-webkit-autofill:active,
.lpa-input input:-webkit-autofill:focus {
    -webkit-transition: "color 9999s ease-out, background-color 9999s ease-out" !important;
    -webkit-transition-delay: 9999s !important;
}

.lpa-input.lpa-input-password input {
    padding-right: 7dvw;
}

.lpa-input .fa {
    position: absolute;
    font-size: clamp(0.75rem, 1rem + 1.5vw, 4rem);
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    cursor: pointer;
    pointer-events: all;
    z-index: 10;
}

.lpa-input-icon {
    position: absolute;
    z-index: 10;
    left: 5%;
    height: 50%;
    width: clamp(0.75rem, 1rem + 1.5vw, 4rem);
    height: clamp(0.75rem, 1rem + 1.5vw, 4rem);
    top: 50%;
    transform: translateY(-50%);
}

.text-error {
    color: rgb(255, 240, 240);
    position: absolute;
    z-index: 10;
    top: 103%;
    left: 50%;
    width: auto;
    text-align: center;
    font-size: clamp(0.75rem, .75rem + 1vw, 1.2rem);
    background: radial-gradient(circle, rgba(25, 25, 29, 1) 60%, rgba(101, 13, 15, 0) 100%);
    font-weight: 600;
    transform: translateX(-50%);
    text-wrap: nowrap;
}

.lpa-btn {
    background-color: transparent !important;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    position: absolute;
    z-index: 10;
    top: 70%;
    left: 50%;
    transform: translate(-50%, 0);
    width: 70%;
    aspect-ratio: 13 / 4;
    animation: pulse .5s linear infinite;
}

.lpa-bottom-container {
    position: fixed;
    z-index: 50;
    bottom: 2dvh;
    right: 2dvh;
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: center;
    gap: 10px;
}

.lpa-toast {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
}

.lpa-toast-box {
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    opacity: 0;
    transform: translateY(20px);
    display: none;
    flex-shrink: 0;
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.lpa-toast-box.lpa-toast-show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.lpa-toast-box.lpa-toast-exit {
    opacity: 0;
    animation: slideOut 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.lpa-toast-box.lpa-toast-animate {
    display: flex;
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(100px);
        /* Bắt đầu từ dưới cùng màn hình */
    }

    to {
        opacity: 1;
        transform: translateY(0);
        /* Về vị trí chuẩn */
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
        /* Bắt đầu từ vị trí chuẩn */
    }

    to {
        opacity: 0;
        transform: translateY(-30px);
        /* Rơi xuống dưới cùng màn hình */
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-1.5rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        -webkit-filter: brightness(1.6);
        filter: brightness(1.6);
    }

    50% {
        -webkit-filter: brightness(1);
        filter: brightness(1);
    }

    100% {
        -webkit-filter: brightness(1.6);
        filter: brightness(1.6);
    }
}

.lpa-toast-error {
    background-color: #d32f2f;
    color: white;
}

.lpa-toast-error::before {
    content: "⚠";
    display: inline-block;
    margin-right: 10px;
    font-weight: bold;
}

.lpa-toast-success {
    background-color: #2fd350;
    color: white;
}

.lpa-toast-success::before {
    content: "✔";
    display: inline-block;
    margin-right: 10px;
    font-weight: bold;
    color: white
}

.lpa-toast-warning {
    background-color: #d3812f;
    color: white;
}

.lpa-toast-warning::before {
    content: "⚡";
    display: inline-block;
    margin-right: 10px;
    font-weight: bold;
}

.lpa-toast-info {
    background-color: #2f8fd3;
    color: white;
}

.lpa-toast-info::before {
    content: "ℹ";
    display: inline-block;
    margin-right: 10px;
    font-weight: bold;
}

.lpa-scrollup {
    background-color: #fff;
    height: 40px;
    width: 40px;
    min-width: 40px;
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #d32f2f;
    cursor: pointer;
}

.lpa-scrollup[data-show] {
    display: flex;
}

.lpa-hot-game {
    width: 90dvw;
    overflow: hidden;
    margin: -17% auto 0;
}

.lpa-hot-game-mb {
    display: none;
}

.lpa-game-item {
    border-radius: 1dvw;
    overflow: hidden;
    background-image: linear-gradient(167deg, rgba(25, 25, 29, 1) 20%, rgba(101, 13, 15, 1) 100%);
    aspect-ratio: 1.65/1;
    position: relative;
}

.lpa-game-img {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 98%;
}

.lpa-game-control {
    position: relative;
    width: 55%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
    height: 100%;
    padding: 10% 10% 5% 10%;
    z-index: 20;
}

.lpa-game-title {
    font-size: clamp(1rem, 1rem + 0.5dvw, 1.5rem);
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
}

.lpa-game-button {
    background-image: linear-gradient(90deg, #FA7C00, #FFB008);
    border-radius: 5px;
    border: 1px solid #FFED17;
    /* width: 100%; */
    padding: 5px;
    text-align: center;
    text-transform: capitalize;
    font-size: clamp(.5rem, .55rem + 0.5dvw, .75rem);
}

.lpa-cover {
    display: grid;
    grid-template-columns: 48% 52%;
    align-items: start;
    width: 90dvw;
    margin: auto;
}

.lpa-covert-left {
    display: flex;
    flex-direction: column;
    gap: 3dvh;
    margin-top: 5%;
}

.lpa-cover-box {
    border-radius: 2dvh;
    overflow: hidden;
    background-image: linear-gradient(90deg, #FADE27, #872020);
    padding: 1px solid transparent;
}

.lpa-covert-right {
    display: flex;
    align-items: center;
    justify-content: end;
}

.lpa-covert-right img {
    width: 90%;
}

.lpa-footer {
    width: 100%;
    background-color: rgba(6, 27, 12, .44);
    margin-top: -7%;
    min-height: 15dvh;
}

.lpa-footer-content {
    width: 90dvw;
    margin: auto;
    padding: 20px 0;
}

.lpa-banks-pc .lpa-bank-icon {
    width: 30px;
    max-width: 30px;
    height: 30px;
}

.swiper-wrapper {
    transition-timing-function: linear !important;
    align-items: center;
}

.lpa-brands {
    margin-top: 1.5dvh;
}

.lpa-dashed {
    height: 1px;
    background-color: #717171;
    width: 100%;
    margin: 1.5dvh auto;
}

.lpa-footer-logo {
    width: 150px;
    max-width: 20%;
    margin: auto;
    display: block;
}

.lpa-footer-description {
    text-align: center;
    color: #AFBBB7;
    font-size: 1rem;
    width: 80%;
    margin: 1rem auto 0;
}

.lpa-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 2dvh;
}

.lpa-copyright {
    color: #fff;
    font-size: 1rem;
}

.lpa-payments {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1dvw;
}

.lpa-payment-label {
    color: #fff
}

.lpa-payment-img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lpa-payment-img img {
    display: inline-block;
    height: 20px;
}

.lpa-banks-mb {
    display: none;
}

@media (500px <=width <=900px) and (orientation: portrait) {
    .lpa-footer {
        margin-top: -6%;
    }
}

@media (width <=730px) {

    .lpa-footer-bottom {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
    }

    .lpa-copyright {
        order: 1;
    }
}

@media (width <=700px) and (height >=400px) and (orientation: portrait) {
    .lpa-header {
        display: grid;
    }

    .lpa-top {
        display: flex;
        flex-direction: column;
        width: 110dvw;
        max-width: unset;
    }

    .lpa-layer-top {
        order: 1;
        transform: unset;
    }

    .lpa-layer-top .lap-layer-img {
        margin-top: -7%;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100vw;
    }
    
    .lpa-layer-top .lpa-logo-pc {
        display: none;
    }
    
    .lpa-layer-top .lap-layer-img img {
        width: 80%;
        margin: 0 auto;
    }

    .lpa-slogan {
        width: 75%;
        transform: unset;
    }

    .lpa-form-group {
        margin-top: -4%;
    }

    .lpa-form-group .lpa-bg-form {
        width: 100%;
    }

    .lpa-input-group {
        height: 50%;
        transform: translate(21%, -40%);
    }

    .lpa-input input {
        height: 80%;
        padding-left: 10vw;
    }

    .lpa-input-icon,
    .lpa-input .fa {
        transform: translateY(-82%);
    }

    .text-error {
        top: 85%;
    }

    .lpa-btn {
        aspect-ratio: 10/4;
    }

    .lpa-hot-game {
        margin-top: -25%;
    }

    .lpa-cover {
        display: flex;
        flex-direction: column;
    }

    .lpa-covert-left {
        order: 1;
        margin-top: -5dvh;
    }

    .lpa-footer {
        margin-top: 3dvh;
        min-height: unset;
    }

    .lpa-footer-content {
        width: 100%;
        padding: 10px 0;
    }

    .lpa-banks-mb {
        display: block;
    }

    .lpa-banks-mb #bank2 {
        margin-top: 1dvh;
    }

    .lpa-footer-logo,
    .lpa-banks-pc,
    .lpa-dashed,
    .lpa-footer-description,
    .lpa-payments {
        display: none;
    }

    .lpa-footer-bottom {
        justify-content: center;
    }

    .lpa-copyright {
        text-align: center;
    }

    .lpa-bank-icon {
        height: 17px;
    }

    .lpa-hot-game {
        display: none;
    }

    .lpa-hot-game-mb {
        display: block;
    }
}

/* @media (height <=500px) and (orientation: landscape) {
    .lap-header {
        display: none;
    }

    .lpa-top {
        max-width: 65dvw;
        margin: auto;
    }

    .lpa-layer-top .lap-layer-img img {
        width: 100%;
    }

    .lpa-input input {
        padding-left: 5dvw;
    }

    .lpa-input.lpa-input-password input {
        padding-right: 5dvw;
    }

    .lpa-form-group .lpa-bg-form {
        width: 100%;
    }

    .lpa-hot-game {
        display: none;
    }

    .lpa-hot-game-mb {
        display: block;
    }

    .text-error {
        font-size: .75rem;
    }

}

@media (810px <=width <=900px) and (370px <=height <=380px) and (orientation: landscape) {
    .lpa-input-group {
        gap: 1.5rem;
    }
}

@media (width >=600px) and (height <=350px) and (orientation: landscape) {
    .lpa-input {
        margin-bottom: 1.2rem;
    }

    .lpa-input input, .lpa-input .fa {
        font-size: 1rem;
    }

    .lpa-input-icon {
        width: 1rem;
        height: 1rem;
    }

    .text-error {
        font-size: .75rem;
    }
}

@media (width >=600px) and (height <=280px) and (orientation: landscape) {
    .lpa-top {
        width: 60dvw;
    }

    .lpa-hot-game {
        margin: -12% auto 0;
    }

    .lpa-game-control {
        padding: 5px 10px;
    }
}

@media (510px <=width <=525px) and (height <=280px) and (orientation: landscape) {
    .lpa-top {
        width: 80dvw;
    }
} */

/* Thiết bị cực hẹp (iPhone đời cũ, Android cũ) */
@media screen and (orientation: landscape) and (width <=1000px) {
    .lap-header {
        display: none;
    }

    .lpa-top {
        width: 500px;
        max-width: 500px;
        margin: auto;
    }

    .lpa-layer-top .lap-layer-img img {
        width: 100%;
    }

    .lpa-input {
        margin-bottom: 1.2rem;
    }

    .lpa-input input {
        padding-left: 5dvw;
    }

    .lpa-input.lpa-input-password input {
        padding-right: 5dvw;
    }

    .lpa-form-group .lpa-bg-form {
        width: 100%;
    }

    .lpa-hot-game {
        display: none;
    }

    .lpa-input input,
    .lpa-input .fa {
        font-size: 1rem;
    }

    .lpa-input-icon {
        width: 1rem;
        height: 1rem;
    }

    .lpa-hot-game-mb {
        margin-top: -23vh;
        display: block;
    }

    .text-error {
        font-size: .75rem;
    }

    .lpa-payment-img img {
        height: 16px;
    }

    .lpa-footer-logo {
        width: 100px;
    }
}

/* @media screen and (width >=1300px) {
    .lpa-cover {
        grid-template-columns: 48% 52%;
    }
} */