*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
    --tntblack: #222428;
    --tntwhite: #fdfdfd;
    --tntblue: #303591;
    --tntgray: #848484;
    --tntlightblue: #979ad1;

}

html {
    background-color: var(--tntwhite);
    scroll-behavior: smooth;
    width: 100%;
    min-width: 100%;
    overflow-x: hidden;
    overflow-y:auto;
}

body {
    margin: 0;
    width: 100%;
    min-width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

b {
    font-family: Cairo-Bold, Thai-Bold, Chinese-Bold, sans-serif;
}


@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px); /* Starts 20px lower */
    }
    to {
        opacity: 1;
        transform: translateY(0px);    /* Moves up to its natural position */
    }
}

.fadeup,
.fadeleft,
.faderight {
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
}

.fadeup {
    transform: translateY(20px);
}

.fadeleft {
    transform: translateX(-30px);
}

.faderight {
    transform: translateX(30px);
}

.fadeup.is-visible,
.fadeleft.is-visible,
.faderight.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

@font-face {
    font-family: "ArialLogo";
    src: url('../assets/fonts/arialbi.ttf') format('truetype');
}

@font-face {
    font-family: Cairo-Regular;
    src: url('../assets/fonts/Cairo-Regular.ttf') format('truetype');
}

@font-face {
    font-family: "Cairo-Bold";
    src: url('../assets/fonts/Cairo-Bold.ttf') format('truetype');
}

@font-face {
    font-family: "Cairo-Light";
    src: url('../assets/fonts/Cairo-Light.ttf') format('truetype');
}

@font-face {
    font-family: Thai-Regular;
    src: url(../assets/fonts/MiSansThai-Normal.ttf) format('truetype');
}

@font-face {
    font-family: Thai-Light;
    src: url(../assets/fonts/MiSansThai-Light.ttf) format('truetype');
}

@font-face {
    font-family: Thai-Bold;
    src: url(../assets/fonts/MiSansThai-Semibold.ttf) format('truetype');
}

@font-face {
    font-family: Chinese-Regular;
    src: url(../assets/fonts/MiSans-Normal.ttf)  format('truetype');
}

@font-face {
    font-family: Chinese-Bold;
    src: url(../assets/fonts/MiSans-Semibold.ttf) format('truetype');
}

@font-face {
    font-family: Chinese-Light;
    src: url(../assets/fonts/MiSans-Light.ttf) format('truetype');
}

header {
    position: absolute;
    width: 100%;
    height: 100vh;
    /*border: 1px solid #ccc;*/

}

.topnav {
    position: fixed;
    display: flex;
    top: 0;
    left: 0;
    width: 100%;
    height: 7rem;
    /*border: 1px solid #ccc;  */
    background-color: transparent;
    z-index: 1000;
    transition: all 0.3s ease-in;

}

.topnavscrolled {
    background-color: #161618ef;
    transition: all 0.3s ease-in;
    -webkit-box-shadow: 0px 0px 50px -23px #000000; 
    box-shadow: 0px 0px 50px -23px #000000;
    height: 6rem;

}

.backgroundimage {
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-image: url('../assets/images/topblock.png');
    background-size: cover;
    background-position: center;
}

.brandingcontainer {
    position: absolute;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    left:0;
    top:50%;
    transform: translateY(-50%);
    height:50%;
    width: 50%;
    padding-left: 5rem;
    /* border: 1px solid #ccc; */
}

.textlogo {
    font-family: "ArialLogo", sans-serif;
    font-size: 3.5rem;
    color: var(--tntwhite);
    margin:0;
    line-height: 0.8;
}

.companyname {
    font-family: Cairo-Regular, Thai-Regular, Chinese-Regular;
    font-size: 1.5rem;
    color: var(--tntwhite);
    margin:0;
    margin-left: 0.5rem;
    letter-spacing: 1px;
    text-wrap: nowrap;
    line-height: 1;
}

.navitemscontainer {
    position:absolute;
    display: flex;
    flex-direction: row;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 50%;
    width: 55%;
    /* border: 1px solid #ccc; */
}

.navitems {
    flex: 1 1 0;
    height: 100%;
    /*border: 1px solid #00ff00;*/
    display: flex;
    align-items: flex-end;
    justify-content: center;
    z-index: 999;
}

#current {
    font-family: Cairo-Bold, Thai-Bold, Chinese-Bold, sans-serif;
    text-decoration: underline 2px var(--tntwhite);
    text-underline-offset: 5px;
}

.navtext {
    text-decoration: none;
    color: var(--tntwhite);
    font-family: Cairo-Light, Thai-Light, Chinese-Light, sans-serif;
    font-size: 1.5rem;
    transition: all 1s ease;
    line-height: 1;
    text-wrap: nowrap;
    z-index: 999;

}

.navtext:hover {
    color: var(--tntwhite);
    font-family: Cairo-Bold, Thai-Bold, Chinese-Bold, sans-serif;
    transform: translateY(-2px);
    text-decoration: underline 2px var(--tntwhite);
    text-underline-offset: 5px;
    transition: all 1s ease;
}

.splashbox {
    position: absolute;
    bottom: 0;
    left: 0;
    margin-bottom: 13vh;
    margin-left: 8vw;
    /* border: 1px solid #ccc; */
    width: 70%;
    height: 30vh;

}

.splashtext {
    
    position: absolute;
    color: var(--tntwhite);
    font-size: 4.5rem;
    line-height: 1.1;
    font-family: Cairo-Light, Thai-Light, Chinese-Light, sans-serif;
    margin:0;
    bottom:0;

    
}

.splashtextheavy {
    position: relative; 
    display: inline-block;  
    font-family: Cairo-Bold, Thai-Bold, Chinese-Bold, sans-serif;
}

.splashtextheavy::after {
    content: "";
    position: absolute;

    left: 0;
    bottom: 0.15em;               

    width: 100%;
    height: 0.08em;          
    background: var(--tntwhite);

    transform-origin: left;
    transform: translateY(0.12em) scaleX(0);

    animation: underlineSwoosh 2s cubic-bezier(.22,1,.36,1) forwards;
    animation-delay: 0.2s
}

@keyframes underlineSwoosh {
    from {
        transform: translateY(0.12em) scaleX(0);
    }
    to {
        transform: translateY(0.12em) scaleX(1);
    }
}

.languageselector {
    position: absolute;
    top: 0;
    right: 0;
    height:32%;
    width: 30rem;
    /* border: 1px solid #ccc; */
    background: #ffffff;
    background: linear-gradient(90deg,rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: end;
    padding-right: 1rem;
    cursor: pointer;
    z-index: 1000;
}


.languageselectoroptions.is-open {
    display: flex;
}

.languageselectoroptions {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    /* min-width: 120px; */
    max-width: 90vw;
    background-color: var(--tntwhite);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    z-index: 1100;
    transition: all 0.3s ease-in-out;
    border-radius: 5px;
    padding: 10px;
    display: none;
    z-index: 2000;
}

.langoption {
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 5px;
    border-radius: 2px;
    height: 2.5rem;
    text-decoration: none;


}

.langtext {
    font-family: Cairo-Bold, Thai-Bold, Chinese-Bold, sans-serif;
    margin-left: 10px;
    line-height: 1;
    color: var(--tntblack);
    text-decoration: none;
}

.langtextgray {
    font-family: Cairo-Regular, Thai-Regular, Chinese-Regular;
    color: var(--tntgray);
    font-size: 0.7rem;
    text-decoration: none;


}

.langoption:hover {
    background: #00000017;
}

.langflag {
    height: 1.2rem;
    width: 1.2rem;
    object-fit: contain;
}

.languageselectortext {
    font-family: Cairo-Bold, Thai-Bold, Chinese-Bold, sans-serif;
    color: var(--tntwhite);
    font-size: 1rem;
    transition: ease-in-out 0.3s all;

}

.languageselectortext:hover {
    opacity: 60%;
    transition: ease-in-out 0.3s all;
}



.languageselectortext::after{
    content: "";
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    margin-left: 0.35em;
    vertical-align: middle;
    background-image: url(../assets/icons/arrowdown.png);
    background-size: contain;
    background-repeat: no-repeat;
}


.bold {
    font-family: Cairo-Bold, Thai-Bold, Chinese-Bold, sans-serif;
}


footer {
    position: relative;
    width: 100%;
    bottom: 0;
    overflow: hidden;
    display: flex;
    padding-top: 3rem;
    z-index: 10;
}

.paragraph {
    width: 100%;
    height: auto;
    font-family: Cairo-Regular, Thai-Regular, Chinese-Regular;
    font-size: 1.5rem;
    margin:0;
    color: var(--tntblack);
    line-height: 2rem;
}

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

.footerdetailcontainer {
    margin-left: 3rem;
    position: absolute;
    bottom: 5%;
    height: 60%;
    width: 50%;
    display: flex;
    flex-direction: column;
    /* border: 1px #ccc solid; */
}

.footerbrandingcontainer {
    width: 100%;
    height: 4rem;
    /* border: 1px #ccc solid; */
    display: flex;
    flex-direction: row;
    align-items: self-end;
    margin-bottom: 2rem;

}

.footertextlogo {
    font-family: "ArialLogo", sans-serif;
    font-size: 3rem;
    color: var(--tntwhite);
    bottom: 0;
    margin:0;
    line-height: 2.5rem;
}

.footerparagraph {
    color: #FFFFFF50;
    margin-top: 0.7rem;
    line-height: 1.1;
    font-size: 1.2rem;
}

.copyright {
    margin-top: 2rem;
    color:var(--tntwhite);
}

.quicklinks {
    right: 10vw;
    position: absolute;
    bottom: 5%;
    height: 60%;
    width:10%;
    display: flex;
    flex-direction: column;
    /* border: 1px #ccc solid; */
}

.quicklinksitem {
    width: 100%;
    /* height: 3.5rem; */
    /* border: 1px #ccc solid; */
    display: flex;
    align-items: center;
    /* justify-content: center; */
    font-family: Cairo-Regular, Thai-Regular, Chinese-Regular;
    color: var(--tntwhite);
    font-size: 1.5rem;
    text-decoration: none;
    line-height: 3;
    height: 3.5rem;
}

.quicklinksitem:hover {
    font-family: Cairo-Bold, Thai-Bold, Chinese-Bold, sans-serif;
}



@media screen and (max-width: 767px) {

    .topnav {
        align-items: center;
        height: 3rem;

    }

    .brandingcontainer {
        padding-left: 1rem;
        align-items: center;
    }

    .brandingcontainer .companyname {
        display: none;
    }

    .navitemscontainer {
        display: none;
    }

    .languageselector {
        display: none;
    }

    .textlogo {
        font-size: 1.5rem;
    }


    .paragraph {
        font-size: 1rem;
    }

    .quicklinks {
        display: none;
    }

    footer {
        position: relative;
        width: 100%;
        height: auto;
        bottom: 0;
        overflow: hidden;
        display: flex;
        padding: 2rem;
        border: 1px #000 solid;
        background: #22244C;
        background: linear-gradient(90deg, rgba(34, 36, 76, 1) 0%, rgba(48, 53, 145, 1) 100%);
        align-items: center;
        justify-content: center;
    }

    .footerdetailcontainer {
        width: 100%;
        height: 90%;
        position: relative;
        margin: 0;
    }

    .footertextlogo {
        text-align: left;
    }
    
    .footerbrandingcontainer {
        flex-direction: column;
        align-items: flex-start;
    }

    .companyname {
        text-wrap: wrap;
        margin: 0;
    }

    .footer-image {
        display: none;
        width: 100%;
        height: auto;
    }
}