@import url('https://fonts.googleapis.com/css2?family=Afacad:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Anton&family=Phudu:wght@300;400;500;600;700;800;900&display=swap');

:root {
    --white: #F1EFE4;
    --black: #12110D;
    --green: #2EC19F;
    --blue: #384395;
    --red: #FF3D00;
    --yellow: #F2BC00;
    --line: 0.3125rem;

}

html {
    margin: 0;
    padding: 0;
    font-size: 14px;
}

ul li {
    list-style-type: none;
}

a,
li a,
span a {
    text-decoration: none;
    /* Loại bỏ đường gạch chân mặc định */
    color: inherit;
    /* Kế thừa màu sắc từ phần tử cha */
    cursor: pointer;
    /* Hiển thị con trỏ khi trỏ vào */
    display: inline-block;
}

/* Setting scrollbar track color explicitly */
::-webkit-scrollbar {
    width: var(--line);
}

::-webkit-scrollbar-track {
    background-color: var(--black);
    /* Track color */
}

/* Setting scrollbar thumb color explicitly */
::-webkit-scrollbar-thumb {
    background-color: var(--yellow);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--red);
}

#preloader {
    align-items: center;
    background-color: var(--black);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;

}

.hide-preloader {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 48px;
    height: 48px;
    border: 3px solid var(--white);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.loader::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    background: var(--red);
    width: 16px;
    height: 16px;
    transform: translate(-50%, 50%);
    border-radius: 50%;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.yellow-fill {
    fill: var(--yellow);
}

.red-fill {
    font: var(--red);
}

body {
    background-color: var(--black);
    color: var(--red);
    font-family: 'Phudu', sans-serif;
}

p {
    font-family: 'Afacad', sans-serif;
}

header {
    z-index: 99;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
}

.header-container {
    width: auto;
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 0.2rem;
}

.header-container hr {
    margin: auto 0;
    width: 100%;
    height: var(--line);
    background-color: var(--red);
    grid-column: 1 / 3;
    border: none;
    opacity: 1;
}

.header-container svg {
    width: 4rem;
    height: 2.1875rem;
    flex-shrink: 0;
}

@keyframes blinkAnimation {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(0);
    }
}

#blink {
    animation: blinkAnimation 5s infinite ease-out;
}


.header-left,
.header-right {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: center;
    /* Căn giữa theo chiều dọc */
    justify-content: center;
    /* Căn giữa theo chiều ngang */
}

.header-left,
.header-right>span {
    text-align: center;
    font-family: Anton;
    font-size: 1.25rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    color: var(--white);
    cursor: pointer;
}

.header-left>span:hover,
.header-right>span a:hover {
    text-decoration-color: var(--red);
    text-decoration-thickness: var(--line);
    text-decoration-line: underline;
    text-decoration-skip: 1px;
}

.header-left {
    direction: ltr;
}

.header-right {
    direction: rtl;
}

.black-fill {
    fill: var(--black) !important;
    background-color: var(--black) !important;
    color: var(--black) !important;
}

.container,
.header-container {
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

.mobile {
    display: none;
}

.slide-in-top {
    -webkit-animation: slide-in-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: slide-in-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@-webkit-keyframes slide-in-top {
    0% {
        -webkit-transform: translateY(-1000px);
        transform: translateY(-1000px);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slide-in-top {
    0% {
        -webkit-transform: translateY(-1000px);
        transform: translateY(-1000px);
        opacity: 0;
    }

    100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 1;
    }
}


.slide-out-top {
    -webkit-animation: slide-out-top 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
    animation: slide-out-top 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}

@-webkit-keyframes slide-out-top {
    0% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        -webkit-transform: translateY(-1000px);
        transform: translateY(-1000px);
        opacity: 0;
    }
}

@keyframes slide-out-top {
    0% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        -webkit-transform: translateY(-1000px);
        transform: translateY(-1000px);
        opacity: 0;
    }
}


#menu-mobile {
    display: none;
    padding-top: 8rem;
    top: 0;
    position: fixed;
    width: 100%;
    background-color: var(--white);
    height: 100vh;
}

#menu-mobile ul {
    text-align: center;
    margin: auto;
    width: 80%;
    padding: 0;
}

#menu-mobile ul li {
    padding-top: 20px;
    padding-bottom: 20px;
    text-align: center;
    color: var(--black);
    font-family: Anton;
    font-size: 1.8rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    cursor: pointer;
    list-style-type: none;
}

#menu-mobile ul li:first-child {
    padding-top: 0;
}

#menu-mobile ul li:last-child {
    padding-bottom: 20px;
    border-bottom: none;
}

#menu-mobile ul li a:active {
    text-decoration-color: var(--red);
    text-decoration-thickness: var(--line);
    text-decoration-line: underline;
    text-decoration-skip: 1px;
}

.language {
    text-align: center;
    padding: 20px 0;
}

.language .box {

    width: 80%;
    margin: 0 auto;
    height: 2.5rem;
    border: 1px var(--red) solid
}

.language .text-in-box {
    text-align: center;
    color: var(--red);
    line-height: 2rem;
    font-size: 1.8rem;
    font-family: Phudu;
    font-weight: 800;
    word-wrap: break-word;
    cursor: pointer;
}

.language .box-fill {
    color: var(--white);
    background-color: var(--red);
}

#eye-mobile {
    transform-origin: right top;
    transform: scale(0.8);
    vertical-align: none;
    top: 0;
}

.tilt-in-right-1 {
    -webkit-animation: tilt-in-right-1 0.6s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
    animation: tilt-in-right-1 0.6s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
}

@-webkit-keyframes tilt-in-right-1 {
    0% {
        -webkit-transform: rotateX(-30deg) translateX(300px) skewX(30deg);
        transform: rotateX(-30deg) translateX(300px) skewX(30deg);
        opacity: 0;
    }

    100% {
        -webkit-transform: rotateX(0deg) translateX(0) skewX(0deg);
        transform: rotateX(0deg) translateX(0) skewX(0deg);
        opacity: 1;
    }
}

@keyframes tilt-in-right-1 {
    0% {
        -webkit-transform: rotateX(-30deg) translateX(300px) skewX(30deg);
        transform: rotateX(-30deg) translateX(300px) skewX(30deg);
        opacity: 0;
    }

    100% {
        -webkit-transform: rotateX(0deg) translateX(0) skewX(0deg);
        transform: rotateX(0deg) translateX(0) skewX(0deg);
        opacity: 1;
    }
}

.slide-out-right {
    -webkit-animation: slide-out-right 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
    animation: slide-out-right 0.5s cubic-bezier(0.550, 0.085, 0.680, 0.530) both;
}

@-webkit-keyframes slide-out-right {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        -webkit-transform: translateX(1000px);
        transform: translateX(1000px);
        opacity: 0;
    }
}

@keyframes slide-out-right {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        -webkit-transform: translateX(1000px);
        transform: translateX(1000px);
        opacity: 0;
    }
}

/* Icon 1 */

#hamburger {
    width: 50px;
    height: 45px;
    position: relative;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .5s ease-in-out;
    -moz-transition: .5s ease-in-out;
    -o-transition: .5s ease-in-out;
    transition: .5s ease-in-out;
    cursor: pointer;
}

#hamburger span {
    display: block;
    position: absolute;
    height: 5px;
    width: 70%;
    background: var(--red);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    -webkit-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    transform: rotate(0deg);
    -webkit-transition: .25s ease-in-out;
    -moz-transition: .25s ease-in-out;
    -o-transition: .25s ease-in-out;
    transition: .25s ease-in-out;
}

#hamburger span:nth-child(1) {
    top: 0px;
}

#hamburger span:nth-child(2) {
    top: 8px;
}

#hamburger span:nth-child(3) {
    top: 16px;
}

#hamburger.open span:nth-child(1) {
    top: 18px;
    -webkit-transform: rotate(135deg);
    -moz-transform: rotate(135deg);
    -o-transform: rotate(135deg);
    transform: rotate(135deg);
}

#hamburger.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

#hamburger.open span:nth-child(3) {
    top: 18px;
    -webkit-transform: rotate(-135deg);
    -moz-transform: rotate(-135deg);
    -o-transform: rotate(-135deg);
    transform: rotate(-135deg);
}

.container {
    margin-top: 8rem;
    display: block;
}



@media (max-width: 991px) {


    .mobile {
        display: grid;
    }

    .desktop {
        display: none;
    }

    .container {
        max-width: 100%;
        padding-right: 10px;
        padding-left: 10px;
    }

    .header-container {
        padding-right: 10px;
        padding-left: 10px;
    }
}

@media (max-width: 767px) {
    .container {
        margin-top: 0 !important;
    }

    .mobile {
        display: grid;
    }

    .desktop {
        display: none;
    }


}

section {
    height: 100vh;
    overflow: hidden;
}


footer {
    margin-bottom: 1rem;
    padding-right: 15px;
    padding-left: 15px;
}

footer>div:first-child {
    border-top: var(--line) var(--red) solid;
}

footer p {
    color: var(--white);
    text-align: center;
    font-family: PhuDu;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 3rem;
}