@import "../fonts/Google_Sans_Flex.css";
/* @import "navbar.css"; */

:root {
    --bs-breakpoint-xs:0;
    --bs-breakpoint-sm:576px;
    --bs-breakpoint-md:768px;
    --bs-breakpoint-lg:992px;
    --bs-breakpoint-xl:1200px;
    --bs-breakpoint-xxl:1400px;

    --navbar-height: 80px;
    
    --primary-color: #2d5ffe;
    --primary-color-rgb: 45, 95, 254;
    --light-color: #DCDCDC;
    --dark-color: #161616;
    --dark-sub-color: #191919;
    --white: #FFFFFF;
    --black: #000000;

    --fs-base: 0.5625rem;
    --fs-xs: calc(var(--fs-base) * 1); /* 9px */
    --fs-sm: calc(var(--fs-base) * 1.5); /* 13.5px */
    --fs-md: calc(var(--fs-base) * 2); /* 18px */
    --fs-lg: calc(var(--fs-base) * 2.5); /* 22.5px */

    --text-white: #FFFFFF;
    --text-black: #000000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* font-family: "Noto Sans Thai", sans-serif; */
    /* font-family: 'Codec Pro', sans-serif; */
    font-family: "Google Sans Flex", sans-serif;
}

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

html {
    /* background: var(--dark-color); */
    background: var(--black);
    color-scheme: dark;
}

body {
    width: 100%;
    min-height: 100vh;
    /* background: var(--dark-color); */
    background: var(--black);
    scroll-behavior: smooth;
    /* cursor: none; */
    /* height: 100%; */
}

.custom-cursor {
    --cursor-size: 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: var(--cursor-size);
    height: var(--cursor-size);
    border-radius: 50%;
    /* border: var(--primary-color) solid 2px; */
    /* background: transparent; */
    background: var(--primary-color);
    pointer-events: none;
    transform: translate(-50%, -50%);
    /* display: flex; */
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity .2s ease, 
                transform .1s ease, 
                width .1s ease, 
                height .1s ease;
    z-index: 10001;
    display: none;
}

.custom-cursor::after {
    content: attr(data-text);
    font-size: var(--fs-sm);
    color: var(--text-white);
    position: absolute;
    background: var(--primary-color);
    padding: 0.5rem;
    left: 175%;
    top: 0;
    opacity: 0;
    transition: opacity .3s ease;
    text-wrap: nowrap;
    white-space: nowrap;
}

.custom-cursor.hover::after {
    opacity: 1;
}

.custom-cursor.show {
    display: flex;
}

.custom-cursor span {
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    opacity: 0;
}

.custom-cursor.active.hover::after {
    display: none;
}

.custom-cursor.active {
    background: var(--primary-color);
    --cursor-size: 80px;
    opacity: 1;
}

.custom-cursor.active span {
    opacity: 1;
}

.checkbox-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: nowrap;
    /* width: max-content; */
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 2rem;
    height: 2rem;
    background: #D5D5D5;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease-out;
    outline: none;
}

input[type="checkbox"]::after {
    font-family: "Font Awesome 5 Free";
    content: "\f00c";
    font-weight: 900;
    font-size: 1.5rem;
    translate: 0 -.5px;
    display: none;
    color: var(--white);
}

input[type="checkbox"]:hover, input[type="checkbox"]:focus {
    background: #A5A5A5;
}

input[type="checkbox"]:checked {
    background: var(--primary-color);
    &::after {
        display: block;
    }
}

a:focus {outline: none;}
label:focus {outline: none;}

header {
    width: 100%;
    height: var(--navbar-height);
}

.text-header {
    font-size: clamp(1.5rem, calc(2.5vw + 0.01rem), 2.5rem);
    font-weight: 700;
}

.text-body {
    font-size: 1rem;
    font-weight: 500;
}

.text-900 {font-weight: 900;}
.text-800 {font-weight: 800;}
.text-700 {font-weight: 700;}
.text-600 {font-weight: 600;}
.text-500 {font-weight: 500;}
.text-400 {font-weight: 400;}
.text-300 {font-weight: 300;}
.text-200 {font-weight: 200;}
.text-100 {font-weight: 100;}

.text-white {color: var(--text-white) !important;}
.text-black {color: var(--text-black) !important;}
.text-primary {color: var(--primary-color) !important;}
.text-center {text-align: center;}


.container{
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
    margin-right: auto;
    margin-left: auto;
}

.content-container {
    width: 100%;
    padding: 3% 5%;
}

.flex-center-center {
    display: flex;
    align-items: center;
    justify-items: center;
}

section.text-banner {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

#rocket-scroll {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 140px;
    height: 140px;
    z-index: 200;

    opacity: 0;
    pointer-events: none;
    transform: translateX(200px);
    transition:
        opacity .5s cubic-bezier(.19, 1, .22, 1),
        transform .5s cubic-bezier(.19, 1, .22, 1);
}

#rocket-scroll.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

#rocket-scroll a {
    display: block;
    width: 140px;
    height: 140px;
    background: none;
    outline: none;
    border: none;
    border-radius: 999px;
    position: relative;
    text-decoration: none;
}

#rocket-scroll a svg {
    width: 140px;
    height: 140px;
    animation: rocketScroll linear forwards;
    animation-timeline: scroll(root block);
    animation-range: 0% 100%;
}

#rocket-scroll a img {
    position: absolute;
    z-index: 199;
    height: 48px;
    width: 48px;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    object-fit: cover;
    -o-object-fit: cover;
}

@keyframes rocketScroll {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(360deg);
    }
}
    
@media (min-width: 576px){
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px){
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px){
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px){
    .container {
        max-width: 1140px;
    }
}
@media (min-width: 1400px){
    .container { 
        max-width: 1320px;
    }
}

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

@media screen and (max-width: 1199px) {
    .custom-cursor {display: none !important;}
}

@media screen and (max-width: 575px) {
    :root {
        --navbar-height: 60px;
    }
}
/*
@media screen and (max-width: 1399px) {}
@media screen and (max-width: 1199px) {}
@media screen and (max-width: 991px) {}
@media screen and (max-width: 767px) {}
@media screen and (max-width: 575px) {}
*/