:root {
    /*Which of these do we not need*/
    /* !! NO FOOTER !! */
    --footerHeight: 5%;
    --footerFontSize: 0.8rem;
    --footerLogoSize: 90%;

    --pagetitlesize: 5rem;

    --h1Size: 2.25rem;
    --h2Size: 1.7rem;
    --pSize: 1.1vw;
    /*Original:1.3rem;*/
    --borderRadius: 100px;
    --borderRadius_pattern: calc(10px + 0.1vw);
    --borderRadius_card: calc(5px + 0.1vw);
    --borderWeight: 0.27vw;
    --titleBorderWeight: 4px;
    --timingFunction: cubic-bezier(0.98, 0.01, 0.59, 1.49);

    /*:::: NAV BAR::::*/
    --navBar_Playspace_margin: 3%;
    --navBarHeight: 5.5vh;
    --nav_p_size: var(--pSize);
    /*Original: 1.6rem; */
    --navBar_gap: 80px;

    /*::::SIDE BAR ICONS:::*/
    --icon_size: 2.6vw;
    /*Original: 45px;*/
    /*::::COLOUR SCHEME:::*/
    --col_primary: #f3ffc7;
    /*:#D6FF00;*/
    --col_secondary: rgb(65, 86, 7);
    --col_tertiary: #521500;
    --col_quaternary: #911400;
    --col_quaternary_accent: #ff2300;
    --col_quinary: #e24301;
    --col_quinary_accent: #ff7300;
    --col_text_fx: #96BAF8;
    /*:::::FX OFFSET::::*/
    --title_fx_disp1: 3px 3px;
    --title_fx_disp2: 0px 3px;
    --nav_fx_disp1: translate(3px, 3px);
    --nav_fx_disp2: translate(0px, 3px);
    --fx_blur: 0px;
    /*:::::Dialogue ::::*/
    --dialogueWidth: 27%;
    --WiderdialogueWidth: 40%;
    --popup_height: calc(100vh * 0.85);
}

div.browser_test {
    display: none;
    width: 100vw;
    background-color: black;
    /* margin: 0; */
    margin-left: -2%;
    margin-right: -1vw;
    margin-top: -1.5%;
    z-index: 10;
}

div.browser_test#chrome {
    height: 80px
}

h1,
h2,
h3,
h4 {
    /* font-family: "Changa", sans-serif; */
    font-family: "Bai Jamjuree", sans-serif;
    font-weight: 400;
    font-style: normal;
    color: var(--col_primary)
}

p {
    font-family: "Bai Jamjuree", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: var(--pSize);
    color: var(--col_primary);
}

a {
    color: #ffdcfa;
    /* text-decoration: none; */
    font-weight: 600;
}

button,
input {
    line-height: 1.5rem;
    text-align: left;
    text-transform: uppercase;
    font-family: "Bai Jamjuree", sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: calc(var(--pSize) *0.9);
    color: var(--col_primary);
    white-space: normal;
    /* Allows text to wrap inside the button */
    word-wrap: break-word;
    /* Forces wrapping even for long words */

    height: auto;
    width: fit-content;
    border-radius: var(--borderRadius);
    border: var(--borderWeight) solid var(--col_secondary);
    background-color: rgba(0, 0, 0, 0);
    cursor: pointer;
    transition: all 0.25s;
    transition-timing-function: var(--timingFunction);
    padding: calc(var(--borderWeight)* 2);
    padding-top: calc(var(--borderWeight)* 0.5);
    padding-bottom: calc(var(--borderWeight)* 0.5);
    margin-bottom: 2%;
}

div.burger>div>a>p {
    text-transform: uppercase;
    color: var(--col_primary);
    font-size: var(--nav_p_size);
    font-family: "Bai Jamjuree", sans-serif;
    font-weight: 600;
    font-style: normal;
}

body {
    display: flex;
    flex-wrap: wrap;
    /* gap: 8%; */
    margin: 0;
    margin-left: 2%;
    margin-right: 1vw;
    margin-top: 1.5%;
    height: calc(100vh * 0.87);
    justify-content: space-between;
    background-color: var(--col_secondary);
    overflow: hidden;
    /* animation-name: bckgrnd_anim;
    animation-duration: 120s;
    animation-timing-function: linear;
    animation-iteration-count: infinite; */
    /* animation-direction: alternate-reverse; */

}

div.bg {
    height: 100%;
    background-image: url(../images/Background.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: scroll;
    /* Less heavy than fixed NEW */
    position: fixed;
    z-index: 0;
    width: 100%;
    margin: 0;
    top: 0;
    left: 0;
}


::-webkit-scrollbar {
    width: 5px;
    height: 5px;

}

/* Track */
::-webkit-scrollbar-track {
    background-color: rgba(128, 128, 128, 0.25);

}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--col_primary);

}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    /* background: var(--hoverCol); */
}

.nav {
    /* background-color: pink; */
    /* border-bottom: solid 1px black; */
    width: 100vw;
    height: var(--navBarHeight);
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
    margin-bottom: var(--navBar_Playspace_margin);
    column-gap: 5%;
}

.nav.sitedown>a:nth-last-of-type(1) {
    margin: auto;
}

.nav>a:nth-last-of-type(1) {
    height: var(--navBarHeight);
    width: var(--playspace_width);
}

.nav>a>div:nth-of-type(1) {
    /* flex-grow: 1; */
    content: "";
    /* background-color: var(--col_text_fx); */
    background-color: var(--col_primary);
    -webkit-mask-image: url('../svg/title_expanded.svg');
    mask-image: url('../svg/title_expanded.svg');
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    width: 100%;
    height: 100%;
    /*backdrop-filter: blur(var(--fx_blur));
     mask-position: var(--title_fx_disp2);
    -webkit-mask-position: var(--title_fx_disp2); */
    cursor: pointer;

}

.nav>a>div:nth-of-type(1)>h1 {
    display: none;
}

/* .nav>div:nth-of-type(1)::before {
    content: "";
    position: absolute;
    flex-grow: 1;

    background-color: var(--col_quaternary);
    -webkit-mask-image: url('assets/title_expanded.svg');
    mask-image: url('assets/title_expanded.svg');
    mask-repeat: no-repeat;
    mask-position: var(--title_fx_disp1);
    -webkit-mask-position: var(--title_fx_disp1);
    -webkit-mask-repeat: no-repeat;
    height: var(--navBarHeight);
    width: 100%;
    backdrop-filter: blur(var(--fx_blur));
    transform: var(--title_fx_disp1);
}

.nav>div:nth-of-type(1)::after {
    content: "";
    position: absolute;
    flex-grow: 1;
    background-color: var(--col_primary);
    -webkit-mask-image: url('assets/title_expanded.svg');
    mask-image: url('assets/title_expanded.svg');
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    height: var(--navBarHeight);
    width: 100%;
    z-index: 1;
    mix-blend-mode: color-dodge;
} */

.nav>a>div:nth-of-type(1)>h1 {

    text-transform: lowercase;
    letter-spacing: -0.07em;
    font-size: var(--pagetitlesize);
    display: inline-block;
    margin: 0px;
    margin-right: 1%;
    line-height: 0.9;
    text-overflow: unset;
    font-weight: 800;
    display: none;
    /*Text shadow will be reused for desired effect*/
    /* text-shadow: var(--titleBorderWeight) var(--titleBorderWeight) 0 var(--tertiary_color),
    -1px -1px 0 var(--tertiary_color),
    1px -1px 0 var(--tertiary_color),
    -1px 1px 0 var(--tertiary_color),
    1px 1px 0 var(--tertiary_color); */
}


.nav>a>div:nth-of-type(1)>h2 {
    /* letter-spacing: 0.06em; 
  line-height: 1em;
  font-size: var(--pagetitleSUBsize); */
    margin: 0px;
    margin-left: 1%;
    /* line-height: 1;
  color: var(--tertiary_color);
  font-weight: 300; */
}


div.burger {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: flex-start;
    /* gap: var(--navBar_gap); */
    flex-grow: 0.25;
    margin-right: 0.5%;

}

div.burger>div:not(.icon) {
    transition-duration: 0.5s, 0.5s;
    transition-delay: 0s, 0.1s;
    transition-property: width, opacity;
    transition-timing-function: var(--timingFunction);
}

div.burger[state='closed']>div:not(.icon) {
    /* display: none;  */
    opacity: 0;
    width: 0%;
    transition-delay: 0s, 0s;

}

div.burger[state='open']>div:not(.icon) {
    /* display: block;  */
    opacity: 1;
    width: 40%;
}

div.burger[state='open']>div.icon {
    background-image: url('../icons/burger_open.png');
    opacity: 1;
}

div.burger>div.icon {
    /* background-color: pink; */
    background-image: url('../icons/burger_closed.png');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    height: calc(var(--icon_size) * 0.6);
    width: calc(var(--icon_size) * 0.75);
    flex-basis: calc(var(--icon_size) * 0.6);
    flex-grow: 0;
    flex-shrink: 0;
    margin: 0;
    z-index: 2;
    transition-property: transform, opacity, background-image;
    transition-duration: 0.1s, 0.1s, 0.5s;
    transition-timing-function: steps(3) !important;
    opacity: 0.8;
    transform: scale(1);
}

div.burger>div.icon:hover {
    /* background-image: url('assets/icons/burger_open.png'); */
    opacity: 1;
    transform: scale(1.05);
    /* background-color: rgba(200,100,0,.5); */
    background-blend-mode: hard-light;

}

div.burger>div,
div.burger>div>a>p {
    margin: 0;
    transition: all;
    transition-duration: 0.5s;
    transition-timing-function: var(--timingFunction);
    margin-right: 5%;
}

div.burger>div[hide='true'] {
    display: none;
}

div.burger>div:hover {
    transition: all;
    transition-duration: 0.5s;
    transition-timing-function: var(--timingFunction);
    cursor: pointer;
}

div.burger>div>a {
    text-transform: lowercase;
    text-decoration: none;
    color: black;
}

div.burger>div:hover>a>p {
    /*something here*/

}




div.dialogue {
    /* background-color: rgba(255, 247, 0, 0.842); */
    height: 95%;
    order: 2;
    max-width: var(--dialogueWidth);
    flex-grow: 1;
    padding-left: 1%;
    padding-right: 1%;
    z-index: 1;
    overflow-y: auto;
}

div.dialogue.wider {
    max-width: var(--WiderdialogueWidth);
}

div.dialogue>div.statement {
    overflow-y: auto;
    max-height: 60vh;
    overflow-x: clip;
}

div.dialogue.wider>div.statement {
    max-height: fit-content;
}

div.dialogue>div.statement.shorter {
    overflow-y: auto;
    max-height: 35vh;
}

div.dialogue>div.routing {
    /* background-color: pink; */
    width: 100%;
    height: calc(var(--icon_size) * 0.6);
    margin-bottom: 5%;
    opacity: 1;
    transition-property: display, opacity;
    transition-duration: 0s, 1s;
    transition-delay: 0s, 0.5s;
    transition-timing-function: ease-in-out;
}

div.dialogue.sitedown {
    max-width: var(--playspace_width);
    min-width: 320px;
    padding: 0;
    margin: auto;
    display: flex;
    /* align-items: center; */
    padding-right: 1%;
}

div.dialogue.sitedown>div.statement {
    /* height: 100%; */
    display: flex;
    flex-direction: row;
    margin: 0;
    /* flex-wrap: nowrap; */
    align-items: unset;
    overflow-y: visible;
    justify-content: center;
}

div.dialogue.sitedown>div.statement>h1,
h2 {
    /* text-align: left;
    width: 100%; */
}

div.dialogue.sitedown>div.statement>p {
    /* order: 1; */
    text-align: justify;
    /* flex-grow: 1; */
    width: 100%;
}

div.dialogue.sitedown>div.statement>figure {
    /* order: 2; */
    /* margin: auto; */
    margin-top: 3%;
    margin-bottom: 4%;
    align-self: center;
    height: fit-content;
}

div.dialogue.sitedown>div.statement>figure>img {
    max-width: 12vw;
}

div.dialogue.sitedown>div.statement>div.buttons {
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3%;
    flex-wrap: wrap;
    margin-top: 3%;
    order: 3;
    width: 100%;
}

div.dialogue.sitedown>div.statement>div.buttons>button>a {
    color: var(--col_primary);
    text-decoration: none;
}

div.routing[hide='true'] {
    display: none;
    animation: none;
}

div.routing[hide='false'] {
    animation: fade-in;
    animation-duration: 0.5s;
    animation-timing-function: var(--timingFunction);
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
}

div.dialogue>div.routing>div {
    width: calc(var(--icon_size) * 0.6);
    height: 100%;
    /* changed to fit content, the statement area will be overflow-y:auto and change depending on game state i.e. deck view will have shorter height for the text passage to make space for the deck*/
    display: inline-block;
    margin-right: 2%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.5;
    transition: all 0.5s;
    transform: scale(1);
    transition-timing-function: var(--timingFunction);

}

div.dialogue>div.routing>div:not([active='false']):hover {
    transform: scale(1.2);
    cursor: pointer;
}

div.dialogue>div.routing>div[category="home"] {
    background-image: url("../icons/home.png");
}

div.dialogue>div.routing>div[category="next"] {
    background-image: url("../icons/next.png");
}

div.dialogue>div.routing>div[category="back"] {
    background-image: url("../icons/back.png");
}

div.routing[hide='false']>div[category='home'] {
    opacity: 1;
}

div.routing[hide='false']>div[category='back'][active='true'] {
    opacity: 1;
}

div.routing[hide='false']>div[category='next'][active='true'] {
    opacity: 1;
}

div.dialogue>div.statement>p {
    /*Text Box*/
    /* background-color: pink; */
    font-size: var(--pSize);
    margin-top: 0;

}

div.dialogue>div.statement>p>span,
div.dialogue>div.statement>p>a>span {
    opacity: 0;
    animation: typing;
    animation-duration: 0.5s;
    animation-delay: calc(35ms * var(--char-index));
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0, 1.2, 0, 1.01);
    animation-iteration-count: 1;
    animation-play-state: running;

    -webkit-animation: typing 0.5s cubic-bezier(0, 1.2, 0, 1.01) 0s forwards;
    -webkit-animation-delay: calc(35ms * var(--char-index));
    -webkit-animation-fill-mode: forwards;
    -webkit-animation-timing-function: cubic-bezier(0, 1.2, 0, 1.01);
    -webkit-animation-iteration-count: 1;
    -webkit-animation-play-state: running;

}

/* div.dialogue>div.statement[safari="false"]>p>span, div.dialogue>div.statement[safari="false"]>p>a>span{
    opacity: 1;
    animation: none;
    animation-duration:0s;
    animation-delay: 0ms;

    -webkit-animation: none;
    -webkit-animation-duration:0s;
    -webkit-animation-delay: 0ms;
  } */
div.dialogue>div:last-of-type {
    /*Input*/
    /* background-color: #ff3300; */
    /* width: 100%; */
    /* height: 20%; */
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3%;
    flex-wrap: wrap;
    margin-top: 3%;
}

div.dialogue>div:last-of-type>button {
    opacity: 0;
}

div.dialogue>div:last-of-type>button>p {
    margin: 0;
    font-weight: 600;
    font-size: calc(var(--pSize)* 0.9);
}

div.dialogue>div:last-of-type>button>p>a {
    text-decoration: none;
    font-weight: 600;
    color: var(--col_primary);
    font-size: calc(var(--pSize)* 0.9);
}

div.dialogue>div:last-of-type>button>a {
    color: var(--col_primary);
    text-decoration: none;


}

div.dialogue>div:last-of-type>button>a>p {
    margin: 0;
}

div.dialogue>div:last-of-type>button[hide="true"] {
    display: none;
    animation: none;
}

div.dialogue>div:last-of-type>button[ready="false"] {
    display: none;
    animation: none;
}

div.dialogue>div:last-of-type>button[ready="true"] {
    animation: fade-in !important;
    animation-duration: 0.5s !important;
    animation-timing-function: var(--timingFunction) !important;
    animation-fill-mode: forwards !important;
    animation-iteration-count: 1 !important;

}

div.dialogue>div:last-of-type>button[hide="false"] {
    animation: fade-in;
    animation-duration: 0.5s;
    animation-timing-function: var(--timingFunction);
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
}

div.dialogue>div:last-of-type>button:hover {
    background-color: var(--col_secondary);
}

button:hover {
    background-color: var(--col_secondary);
}

input:hover {
    background-color: var(--col_secondary);
}


div.dialogue>div:last-of-type>button:last-of-type {
    /* margin-left: auto; */
}

div.sidebar {
    width: var(--icon_size);
    display: flex;
    order: 3;
    gap: 5%;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    overflow-y: visible;
    margin-bottom: 2%;
}

div.sidebar[hide='true'] {
    display: none;
}



span.tooltip {
    display: none;
    padding: 10%;
    padding-left: 30%;
    padding-right: 30%;
    width: fit-content;
    background: var(--col_secondary);
    transform: translateX(-105%);
    color: var(--col_primary);
    font-family: 'Bai Jamjuree';
    border-radius: 15px;
    text-transform: uppercase;
    font-weight: 600;

}

div[data-type="icon"]:hover>span.tooltip {
    display: block;
}

div.pop-up>.content>div.buttons>div[data-type="icon"],
div[data-type="icon"] {
    width: var(--icon_size);
    height: var(--icon_size);

    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    transition-duration: 0.25s;
    transition-timing-function: steps(3);
    transform: scale(1);
    /*HERE*/
    border-radius: 0px !important;

}

div[data-type="icon"][highlight="true"] {
    animation-name: glow;
    animation-duration: 1s;
    /* animation-timing-function: var(--timingFunction) !important; */
    animation-timing-function: steps(3);
    animation-fill-mode: forwards;
    animation-iteration-count: 3 !important;
}

div[category="threads"] {
    background-image: url('../icons/threads.png');
    display: none !important;
}

div[category="x"] {
    background-image: url('../icons/x.png');
    display: none !important;
}

div[category="insta"] {
    background-image: url('../icons/insta.png');
    display: none !important;
}

div[category="guide"] {
    background-image: url('../icons/guide_1.png');
}

div[category="community"] {
    background-image: url('../icons/community_1.png');
}

div[category="facilitation"] {
    background-image: url('../icons/seeking facilitation.png');
}

div[category="resources"] {
    background-image: url('../icons/play_resources_1.png');
}

div[category="shuffle"] {
    background-image: url('../icons/shuffle_1.png');
    align-self: end;
}

div.deckButtons[hide='true'] {
    display: none;
    animation: none;
}

div[category="shuffle"][highlight="true"] {
    animation-name: shuffle_icon_open !important;
    animation-duration: 0.5s !important;
    animation-iteration-count: 6 !important;
    animation-direction: alternate-reverse;
}

div.deckButtons[hide='false'] {
    animation: fade-in;
    animation-duration: 0.5s;
    animation-timing-function: var(--timingFunction);
    animation-fill-mode: forwards;
    animation-iteration-count: 1;
}

div[data-type="icon"]:hover {
    cursor: pointer;
    animation-duration: 0.5s !important;
    animation-direction: alternate-reverse;
    animation-iteration-count: infinite;
}

div[category="guide"]:hover {
    animation-name: guide_icon_open;
    animation-direction: normal !important;
    animation-iteration-count: 1 !important;
    ;
    animation-fill-mode: forwards !important;
    ;
}

div[category="community"]:hover {
    animation-name: community_icon_open;
}

div[category="facilitation"]:hover {
    animation-name: facilitation_icon_open;
}

div[category="resources"]:hover {
    animation-name: resources_icon_open;
}

div[category="shuffle"]:hover {
    animation-name: shuffle_icon_open;
}

div[category="guide"][highlight="true"] {
    animation-name: guide_icon_open_delayed !important;
    animation-duration: 1s !important;
    animation-iteration-count: 3 !important;
}


div.sidebar>div>a>p {
    display: none;
}

div.pop-up {
    background-color: var(--col_secondary);
    z-index: 2;
    position: fixed;
    width: calc(var(--dialogueWidth) * 1.1);
    max-height: var(--popup_height);
    padding-bottom: 1.5%;
    right: calc(var(--icon_size) + 3%);
    top: calc(var(--navBarHeight)*2);
    border-radius: 15px;
    overflow: hidden;
    z-index: 4;
}

div.pop-up[hide='true'] {
    display: none;
}

.exit {
    position: relative;
    width: calc(var(--icon_size) * 0.6);
    height: calc(var(--icon_size) * 0.6);
    float: right;
    margin-right: 3%;
    margin-top: 3%;
    background-image: url('../icons/close.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition-property: transform, opacity, background-image;
    transition-duration: 0.1s, 0.1s, 0.5s;
    transition-timing-function: steps(3) !important;
    opacity: 0.8;
    transform: scale(1);
}

.exit:hover {
    /* background-image: url('assets/icons/burger_open.png'); */
    opacity: 1;
    transform: scale(1.05);
    /* background-color: rgba(200,100,0,.5); */
    background-blend-mode: hard-light;

}

div.pop-up>div.content>div.title {
    /* background-color: pink; */
}

div.pop-up>h1.title,
div.pop-up>div.content>div.title>h1 {
    color: var(--col_primary);
    text-transform: capitalize;
    margin: 0;
    margin-top: 2%;
    margin-left: 3%;
    text-align: center;
    line-height: 1;
    font-size: var(--h1Size);
    /*2.7rem; */
    font-weight: 800;

}

div.pop-up>.content {
    /* background-color: pink;  */
    /* height: fit-content; */
    width: 95%;
    overflow-y: auto;
    margin: 0;
    /* display: block; */
    margin: auto;
    margin-top: 0%;
    margin-left: 3%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    max-height: calc(var(--popup_height)* 0.8);
}

div.pop-up>.content>canvas {
    width: 90%;
    height: auto;
    border-radius: 10px;
    margin: auto;
    margin-bottom: 4%;
}

div.pop-up>div.content>div.cardSum {
    position: relative;
    margin: auto;
    top: unset !important;
    left: unset !important;
    width: calc(var(--card_w) * 2);
    height: calc(var(--card_h) * 2);
    margin-top: 2%;
    flex-shrink: 0;
    flex-grow: 0;
    flex-basis: auto;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: var(--borderRadius_card);
}


div.pop-up>.content>div.buttons {
    width: 90%;
    margin: auto;
    margin-bottom: 2%;
}

div.pop-up>.content>div.buttons>div[data-type="icon"] {
    float: right;
    display: inline-block;
    margin-left: 2%;
}

div.pop-up>.content>div.buttons>button,
div.pop-up>div.content>button {
    border-radius: var(--borderRadius);
    border: calc(var(--borderWeight) * 0.75) solid var(--col_primary);
    background-color: rgba(0, 0, 0, 0);
    align-self: center;
    /* height: 80%; */
    /* width: fit-content;
    cursor: pointer;
    transition: all 0.25s;
    transition-timing-function: var(--timingFunction);
    padding: 4%;
    text-wrap: nowrap;
    margin-bottom: 2%;
    color: var(--col_primary);
    margin: auto; */
    /* display: block; */
}

div.pop-up>.content>div.buttons>button {
    margin: 0 !important;
    display: inline-block;
}

div.pop-up>div.content>button>a {
    color: var(--col_primary);
    text-decoration: none;
}

div.pop-up>.content>h1 {
    color: var(--col_primary);
    /* margin-left: 5%; */
    margin-bottom: 1%;
    font-weight: 600;
    text-align: center;
}

div.pop-up>.content>p {
    /* margin: 5%; */
    margin-top: 3%;
    text-align: center;
    padding-left: 3%;
    padding-right: 3%;
}

div.pop-up>.content>p.itallic {
    font-style: italic;
}

div.pop-up>.content>p>a {
    text-decoration: none;
    color: var(--col_primary);
    font-weight: 600;

}

div.pop-up>.content>ul {
    /* margin: 5%; */
    margin-bottom: 10%;
}

div.pop-up>.content>li {
    margin: 5%;
}

li {
    color: var(--col_primary);
    font-family: "Bai Jamjuree", sans-serif;
    font-weight: 400;
    font-style: normal;
    /* list-style-type: "-"; */
    /*☍⎎⏣☼▸⬖☂⧨✷✺*/
    padding-left: 1%;
    /* font-size: var(--pSize); */
    margin-bottom: 1%;
    font-weight: 300;
    line-height: 1.5;
    font-size: var(--pSize);
    padding-right: 10%;
}

li::marker {
    color: var(--col_primary);
    /* animation-name: spin;
    animation-duration: 5s;
    animation-timing-function: linear;
    animation-iteration-count: infinite; */
}



@keyframes spin {
    0% {
        transform: rotate(0deg) translateY(0px);
    }

    50% {
        transform: rotate(180deg) translateY(0px);
    }

    100% {
        transform: rotate(360deg) translateY(0px);
    }
}

li.highlight {
    color: var(--thirdCol);
}

ul {
    padding-left: 5%;
    margin-top: 0;
    width: 100%;
}

div.intro[hide="true"] {
    display: none;
}

div.intro {
    z-index: 5;
    position: fixed;
    top: 0;
    margin: auto;
    width: 100vw;
    height: 100%;
    background: rgb(65, 86, 7);
    margin-left: -2%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    align-content: center;
    justify-content: center;
    transition-delay: 0s !important;
    transition-timing-function: linear !important;
    transition-duration: 0.1s !important;
    gap: 2%;

}

div.intro>div.dialogue {
    /* background-color: pink; */
    flex-grow: 1;
    max-width: 45%;
    order: 1;
    max-height: 80%;
}

div.intro>div.dialogue>p {
    /* background-color: rgb(195, 192, 255); */
    font-size: calc(var(--pSize) *1.1) !important;
    /* text-align: justify; */
}

p>span.header {
    font-weight: 600;
    font-size: calc(var(--pSize) * 2) !important;
    line-height: 1.5;
}

p>span.bold {
    font-weight: 600;
}

p>span.itallic {
    font-style: italic;
}

div.intro>div.other {
    /* background-color: rgb(255, 251, 192); */
    flex-grow: 0.3;
    width: 40%;
    order: 2;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
}

div.intro>div.other>div.cards {
    /* background-color: rgb(192, 255, 229); */
    flex-grow: 1;
    height: fit-content;
    width: 95%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 7%;
    align-self: flex-end;
}

div.intro>div.other>div.reviews {
    max-width: 80%;
}

div.intro>div.other>div.reviews>p {
    text-align: center;
    /* background-color: rgb(195, 192, 255); */
    font-size: calc(var(--pSize) * 0.9) !important;
}

div.intro>div.button {
    /* background-color: rgb(250, 124, 124); */
    height: fit-content;
    width: 100%;
    order: 3;
    display: flex;
    /* padding-top: 1%; */
}

div.intro>div.button>button {
    margin: auto;
    border: var(--borderWeight) solid var(--col_primary);
}

div.intro>div.button>button:hover {
    background-color: var(--col_primary);
    color: var(--col_secondary);
}

/*//\\//\\//\\//\\// REUSED CSS FROM PREVIOUS //\\//\\//\\//\\//\\*/
div.page {
    display: block;
    height: calc(100vh * 0.89);
    width: 100%;
    left: 0;
    bottom: 0%;
    position: fixed;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 1;
}

div.page[data-state="open"] {
    display: flex;
}

div.content {
    /* background-color: red; */
    height: 99%;
    order: 2;
    width: 98%;
    overflow: hidden;
    display: flex;
    /* margin-top: 1%; */
    margin-left: 2%;
    margin-right: 2%;
}
div.content.cards {
    margin-left: 0%;
    margin-right: 0%;
    width: 100%;
}
div.desc>h1,
div.desc>div>h1 {
    color: var(--col_primary);
    margin: 0;
    width: fit-content;
    /* width: 100%; */
    font-weight: 500;
    padding: 0;
    line-height: 1;
    font-size: var(--h1Size);
    /* margin-left: var(--marginLeft)!important; */
}

div.desc>h2,
div.desc>div>h2 {
    color: var(--col_primary);
    margin: 0;
    /* margin-left:var(--marginLeft)!important; */
    /* width: fit-content; */
    width: 100%;

}

div.desc>h3,
div.desc>div>h3 {
    color: var(--col_primary);
    margin: 0;
    /* margin-left:var(--marginLeft)!important; */
    /* width: fit-content; */
    width: 100%;

}

div.desc>h2:has(div) {
    width: fit-content;
}

div.desc>h3 {
    margin: 0;
    display: inline-block;
    width: fit-content;
    /* margin-left:var(--marginLeft)!important; */
    width: 100%;
}

div.desc {
    font-size: var(--pSize);
    font-weight: 200;
    display: flex;

}

div.desc>div {
    min-width: 40%;
    min-height: 100%;
    display: flex;
    background-color: var(--col_secondary);
    border-radius: var(--borderRadius_pattern);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    /*space-around; */
    gap: 2%;
}

div.desc>div>img {
    max-width: 80%;
    max-height: 35%;
    /*was 60%*/
}

div.desc>p,
div.desc>div>p {

    /* overflow-y: auto;  */
    /* margin-left:var(--marginLeft)!important; */
    width: 100%;
    text-align: left;
    font-weight: 360;
    /* 300; */
    line-height: 1.5;
    font-size: var(--pSize);
    margin: 0;
}

div.desc>p>strong {
    font-size: var(--h2Size);
    font-weight: 500;
    padding: 0;
    line-height: 1;
}

div.desc>p.feat {
    /* font-size: var(--pSize); */
    margin-bottom: 2%;
    margin-top: 0;
    width: 100%;
}



div.content>div>div.desc {
    width: 98%;
    flex-basis: auto;
    display: flex;
    height: 100%;
    /* flex-direction: row; */
    padding-right: 1%;
    gap: 2%;
    align-items: stretch;
    border-right: calc(var(--borderWeight) * 5) solid var(--tertiary_color);
}
div.content>div>div.desc.cards{
    width: 96%;
    padding-left: 2%;
    padding-right: 2%;

}
div.content>div>div.media {
    /* background-color: salmon; */
    width: 40%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: stretch;
    justify-content: space-between;
    overflow-y: auto;

}

div.content>div>div.form {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: stretch;
    justify-content: space-between;
    overflow-y: auto;
    overflow-x: clip;
}

div.content>div>div.form.noMedia {
    width: 95vw !important;
    padding-left: 1%;
    padding-right: 2%;
    /* background-color: #96BAF8; */
}

p.success {
    /* position: absolute;
    right: 1.5%;
    bottom: 40%;*/
    width: 65%;
    background: var(--col_secondary);
    padding-top: 1%;
    padding-bottom: 1%;
    padding-left: 2%;
    padding-right: 1%;
    border-radius: 20px;
    margin: 0;
}

div.form>h1 {
    margin: 0;
}

div.form>p {
    margin-top: 1%;
}

form {
    width: 99%;
    padding-right: 5%;
    /* background-color: pink; */
}

form>p.label {
    margin: 0;
    margin-bottom: 1%;
}

form>label {
    display: block;
    margin: 0;
    /* margin-top: 1%; */
    margin-bottom: 1%;
    width: 100%;
    text-align: left;
    font-weight: 360;
    line-height: 1.5;

    font-family: "Bai Jamjuree", sans-serif;
    font-style: normal;
    color: var(--col_primary);
    text-transform: capitalize;
}

form>textarea,
form>input[type="email"],
form>input[type="text"],
form>input[type="number"],
form>select {
    all: unset;
    width: 100%;
    border-radius: 20px;
    border: var(--borderWeight) solid var(--col_secondary);
    color: var(--col_primary);
    cursor: text;
    transition: all 0.25s;
    transition-timing-function: var(--timingFunction);
    font-family: "Bai Jamjuree", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: var(--pSize);
    padding: 0.5%;
    padding-left: 1%;
    padding-right: 1%;
    margin-bottom: 1%;
    width: 65%;
}

form>select {
    background-image: url(../icons/down.png);
    background-repeat: no-repeat;
    background-position: 99% center;
    background-size: auto 15px;
    cursor: pointer;
}

form>select>option {
    background-color: var(--col_secondary);
}

/* form>select>option:hover{
    background-color: var(--col_quinary_accent);  
} */

form>input::-webkit-outer-spin-button,
form>input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
form>input[type=number] {
    -moz-appearance: textfield;
}

form>textarea {
    height: 40vh;
}

form>textarea:hover {
    background-color: rgba(243, 255, 199, 0.1);
}

input:autofill,
input:auto-fill,
input:-internal-autofill-selected,
input:-internal-autofill-previewed,
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    appearance: menulist-button;
    background-image: none !important;
    background-color: var(--col_secondary) !important;
    background-image: none !important;
    color: var(--col_primary) !important;
}

input:-internal-autofill-selected {
    appearance: menulist-button;
    background-image: none !important;
    background-color: var(--col_secondary);
    background-image: none !important;
    color: var(--col_primary) !important;
}

div.media.pdf {
    width: 100%;
}

div.media {
    overflow: hidden;
    align-content: center;
}

div.media>p {
    text-align: center;
    width: 100%;
    margin: 0;
    margin-top: 1%;
    margin-bottom: 6%;
    height: fit-content;
}

div.media>img {
    height: auto;
    width: 100%;
    margin: auto;
}

div.media>img.portrait {
    width: auto;
    height: 100%;
}

div.media>video {
    height: auto;
    width: 100%;
    margin: auto;
    margin-top: 2%;
}

div.media>video.portrait {
    height: 100%;
    width: auto;
}

div.media>img:not(:first-of-type) {
    margin-top: 2%;
}

div.media>.pdf {
    height: 100%;
    width: 98%;
    margin: auto;
}

div.media>.youtube {
    height: 90%;
    width: 100%;
    margin: auto;
}

div.media>div.slideshow {
    width: 100%;
    height: 100%;
    background-color: black;
}

div.media>div.slideshow>div:not(div.UI) {
    height: 100%;
    text-align: center;
    display: none;
}

div.media>div.slideshow>div[data-state="0"] {
    display: block !important;
}

div.slideshow>div>img {
    height: 100%;
}

div.slideshow>div.UI {
    /* background-color: red; */
    width: 6.5%;
    height: 4%;
    position: absolute;
    display: flex;
    flex-direction: row;
    gap: 2%;
    margin-left: 27%;
    margin-top: 1%;
}

div.slideshow>div.UI>div {
    /* background-color: yellow; */
    height: 100%;
    width: 50%;
    z-index: 2;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    transition: all 0.5s;
    transition-timing-function: var(--timingFunction);
}

div.slideshow>div.UI>div:hover {
    /* background-color: red; */
    transform: scale(0.8);
}

div.slideshow>div.description {
    /* background-color: pink; */
    background-color: #0000008a;
    width: 60%;
    height: auto !important;
    position: sticky;
    bottom: 20%;
    margin: auto;
}

div.slideshow>div.description>p {
    font-size: var(--slideShowDescription);
    color: white;
    background-color: #0000007a;
    width: fit-content;
    text-align: center;
    margin: auto;
}

div.UI>div[data-role="forward"] {
    background-image: url("assets/left_arrow.png");
}

div.UI>div[data-role="back"] {
    background-image: url("assets/right_arrow.png");
}

div.slideshow>div>video {
    height: 100%;
    width: auto;
}


div.media>div>a {
    color: black;
    text-decoration: none;
    font-weight: 400;
    text-align: center;
}

div.media>div>a>h2 {
    /* margin: 0; */
    height: 100%;
    /* margin-top: auto; */
    width: 95%;
    text-align: left;
    padding: 5%;
    font-weight: 1000;
    text-shadow: 1px 1px 0 var(--secondary_color),
        -1px 1px 0 var(--secondary_color),
        -1px -1px 0 var(--secondary_color),
        1px -1px 0 var(--secondary_color);
}


div.desc>div>a,
div.desc>h2>div>a {
    color: black;
    text-decoration: none;
    font-weight: 400;
    text-align: center;
}

div.desc>p>img {
    width: 100%;
    margin-top: 5%;
}

div.desc>p>span {
    font-size: calc(var(--pSize) * 0.6);
    font-style: italic;

}

div.desc>p>span.quote {
    font-size: var(--h2Size);
    font-style: italic;
}

div.desc>p>span.quote::before {
    content: '"';
    line-height: 0.05rem;
    font-size: var(--h1Size);
}

div.desc>p>span.quote::after {
    content: '"';
    line-height: 0.05rem;
    font-size: var(--h1Size);
}



div.main,
div.main2by1,
div.main1by1,
div.main1by1f,
div.main1by2,
div.main1by2f {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: 100%;
}

div.main1desc>div.desc>div.title {
    height: 80%;
    min-width: 40%;
    max-width: 41%;
    justify-content: space-evenly;
}

div.main1desc>div.desc>div.title>h2 {
    font-size: 200%;
    /*calc(var(--h1Size) * 0.75);*/
}
div.main1desc>div.desc>div.title>p{
    text-align: center;
}

div.main1by1>div.desc {
    width: 50%;
}

div.main1by1>div.media {
    width: 50%;
}

div.main1by1f>div.desc {
    width: 50%;
    order: 2;
}

div.main1by1f>div.media {
    width: 50%;
    order: 1;
}

div.main1,
div.main1desc {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

div.main1desc>div.desc>p:nth-of-type(1) {
    display: none !important;
}

div.main1desc>div.desc>h1 {
    position: fixed;
    top: 12%;
    text-transform: capitalize;
}
/* div.desc.cards>h1 {
    position: fixed;
    margin-left: 2%;
    top: 12%;
    text-transform: capitalize;
} */
div.main1desc>div.desc>div>h2 {
    font-size: 200%;
    /*calc(var(--h2Size) * 0.75); */
    width: 90%;
}

div.main1desc>div.desc>div>h3 {
    font-size: 140%;
    /*calc(var(--h2Size) * 0.75); */
    width: 90%;
}

div.main1desc>div.desc:not(.class)>div>h3 {
    margin-top: 5%;
}

div.main1desc>div.desc>div>h4 {
    font-size: 120%;
    /*calc(var(--h2Size) * 0.75); */
    width: 90%;
}

div.main1>div.desc,
div.main1desc>div.desc {
    width: 100%;
    height: fit-content;
    /* display: none !important; */
    text-align: center;
}

div.main1desc>div.desc {
    /* display: flex!important;
    flex-direction: column!important;
    flex-wrap: wrap!important;
    gap: 2%!important;
    justify-content: flex-start!important;
    margin-top: 5%; */
    overflow-y: clip;
    overflow-x: auto;
    flex-direction: unset;
    flex-wrap: unset;
    gap: 2%;
    justify-content: unset;
    margin-top: 5%;
    padding-bottom: 1%;
}

div.main1desc>div.desc>div>p {
   
    margin-top: 1%;
    margin-bottom: 2%;
    font-size: 1vw;
}
div.desc.cards>div>p{
    width: 90%;
}
div.main1>div.media {
    width: 100% !important;
    height: 95%;
    /*fit-content;*/
    overflow: hidden !important;
}

div.main1desc>div.media {
    display: none !important;
}

div.main1by2>div.desc {
    width: 30% !important;
}

div.main1by2>div.media {
    width: 70% !important;
}

div.main1by2f>div.desc {
    width: 30% !important;
    order: 2;

}

div.main1by2f>div.media {
    width: 70% !important;
    order: 1;
}

div.main2by1>div.desc {
    width: 55% !important;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: clip;
}

div.main2by1>div.desc.noMedia {
    width: 96% !important;
}

div.main2by1>div.media {
    width: 40% !important;
    padding-left: 1%;
    padding-right: 2%;
}

#loading {
    width: 100%;
    height: fit-content;
    /* background-color: purple; */
    position: absolute;
    top: 0;
    z-index: 3;
    top: 50%;
    /* display: none; */
}

#loading>div {
    width: 100px;
    height: 100px;
    margin: auto;
    background-image: url("assets/video_loading.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    margin-left: calc(50% - 25%);
    animation-name: loading;
    animation-duration: 0.5s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;

}

div.media>img+#loading {
    display: none;
}

div.media>iframe {
    border: none;
    overflow: hidden;
    width: 100%;
    height: 45%;
}

div.media>iframe+#loading {
    display: none;
}

div.media>div.link+#loading {
    display: none;
}

div.media>div.slideshow+#loading {
    display: none;
}

@keyframes loading {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(-180deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

#loading.hide {
    display: none !important;
}

div.footer {
    /* background-color: pink; */
    display: flex;
    flex-wrap: nowrap;
    /* gap: 5%; */
    justify-content: space-evenly;
    align-items: baseline;
    flex-direction: row-reverse;
    width: calc(98% - var(--marginLeft));
    height: calc(var(--footerHeight) - 2%);
    position: fixed;
    bottom: 0px;
    margin: 0;
    padding-bottom: 1%;
    overflow: hidden;
    align-content: space-around;
}

div.footer>div.desc {
    max-width: 100%;
    text-align: center;
    align-self: end;

}

div.footer>div.desc>p {
    margin: 0;
    font-size: var(--footerFontSize);
}

div.desc>p:last-of-type {
    margin-bottom: 5%;
}

div.footer>div:not(.desc) {
    height: var(--footerLogoSize);
    align-self: end;
}

div.footer>div:not(.desc):nth-of-type(1) {}

div.footer>div:not(.desc):nth-last-of-type(1) {
    height: calc(var(--footerLogoSize) - 10%);

}

div.footer>div:not(.desc)>a>img {
    height: 120%;
}

div.chatbot {
    position: fixed;
    display: block;
    bottom: 0;
    right: 0;
    background-color: red;
    z-index: 50;
}