﻿/* BURGER MENU */

body {
    font-family: 'Kanit', sans-serif !important;
    height: 100vh;
    overflow: auto;
}

.stop-scrolling {
    height: 100%;
    overflow: hidden;
}

html {
    height: 100vh;
}

.header-container{
    max-width: 100vw !important;
}

.header-logo{
    z-index: 500;
}

.menu-btn {
    width: 2em;
    height: 2em;
    position: fixed;
    z-index: 3;
    overflow: hidden;
    margin-left: 0.6em;
    margin-top: 1.5em;
    transition: opacity 0.3s ease;
}

    .menu-btn .bar {
        width: 30px;
        height: 4px;
        position: absolute;
        top: 50%;
        left: 50%;
        border-radius: 4px;
        transform: translate(-50%, -50%);
        background-color: #273489;
        transition: all 0.3s;
    }

        .menu-btn .bar:nth-of-type(2) {
            top: calc(50% - 9px);
        }

        .menu-btn .bar:nth-of-type(3) {
            top: calc(50% + 9px);
        }

    .menu-btn.active {
       opacity: 0;
    }

        /*.menu-btn.active .bar:nth-of-type(1) {
            display: none;
        }

        .menu-btn.active .bar:nth-of-type(2) {
            top: 50%;
            transform: translate(-50%, 0%) rotate(45deg);
            background-color: white;
        }

        .menu-btn.active .bar:nth-of-type(3) {
            top: 50%;
            transform: translate(-50%, 0%) rotate(-45deg);
            background-color: white;
        }*/


.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 25vw;
    height: 95%;
    padding: 15px;
    transform: translateX(-400%);
    transition: transform 0.5s;
    overflow-y: auto;
    background-color: #273489;
    color: white;
    z-index: 3;
}

    .nav.active {
        transform: translateX(0);
        box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    }

    .nav.active::-webkit-scrollbar{
        display:none;
    }

    .nav .nav__list_item {
        margin-top: 50px;
        list-style-type: none;
        text-decoration: none !important;
    }

.nav__list_item .nav__list_subitem {
    margin-top: 50px;
    text-decoration: none !important;
}

@media (max-width : 600px){
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 95%;
        padding: 15px;
        transform: translateX(-400%);
        transition: transform 0.5s;
        overflow-y: auto;
    }
}

@media (min-width: 601px) and (max-width: 1200px) {
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 50vw;
        height: 97%;
        padding: 15px;
        transform: translateX(-400%);
        transition: transform 0.5s;
        overflow-y: auto;
    }
}

@media (min-height: 1000px) and (max-height: 1200px) and (min-width: 1500px) and (max-width: 1920px) {
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 25vw !important;
        height: 97%;
        padding: 15px;
        transform: translateX(-400%);
        transition: transform 0.5s;
        overflow-y: auto;
        background-color: #273489;
        color: white;
    }
}

@media (min-height: 1000px) and (max-height: 1200px) {
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 45vw;
        height: 97%;
        padding: 15px;
        transform: translateX(-400%);
        transition: transform 0.5s;
        overflow-y: auto;
        background-color: #273489;
        color: white;
    }
}

@media (min-height: 1201px) and (max-height: 2000px) {
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 25vw;
        height: 99%;
        padding: 15px;
        transform: translateX(-400%);
        transition: transform 0.5s;
        overflow-y: auto;
        background-color: #273489;
        color: white;
    }
}

@media (min-height: 1201px) and (max-height: 2000px) and (min-width: 601px) and (max-width: 1200px) {
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 50vw;
        height: 99%;
        padding: 15px;
        transform: translateX(-400%);
        transition: transform 0.5s;
        overflow-y: auto;
        background-color: #273489;
        color: white;
    }
}


#over {
    z-index: 3;
}

a {
    text-decoration: none;
    font-size: 25px;
}


.divider {
    border-top: 2px solid #5c66a6;
    width: 100%;
    margin: 0 auto;
}

.btn-toggle {
    display: inline-flex;
    align-items: center;
    padding: .25rem .5rem;
    font-weight: 400;
    color: white;
    background-color: transparent;
    border: 0;
    font-size: 1.4rem
}

    .btn-toggle::before {
        width: 1.25em;
        line-height: 0;
        content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
        transition: transform .35s ease;
        transform-origin: .5em 50%;
    }
        .btn-toggle[aria-expanded="true"]::before {
            transform: rotate(90deg);
        }

.btn-toggle-nav a {
    display: inline-flex;
    font-weight: 600;
    color: white;
    background-color: transparent;
    border: 0;
    margin-top: .125rem;
    margin-left: 0.2rem;
    text-decoration: none;
    font-size: 1.4rem
}

.text-underlined{
    text-decoration:underline !important;
}

.has-icon::before {
    padding-right:0.2em;
/*    content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="white" viewBox="0 0 448 512"><!--!Font Awesome Free 6.5.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M96 0C43 0 0 43 0 96V416c0 53 43 96 96 96H384h32c17.7 0 32-14.3 32-32s-14.3-32-32-32V384c17.7 0 32-14.3 32-32V32c0-17.7-14.3-32-32-32H384 96zm0 384H352v64H96c-17.7 0-32-14.3-32-32s14.3-32 32-32zm32-240c0-8.8 7.2-16 16-16H336c8.8 0 16 7.2 16 16s-7.2 16-16 16H144c-8.8 0-16-7.2-16-16zm16 48H336c8.8 0 16 7.2 16 16s-7.2 16-16 16H144c-8.8 0-16-7.2-16-16s7.2-16 16-16z"/></svg>')
*/
}

.menu-item-icon {
    margin-top: 2em;
    font-size: 2em;
}

.menu-item-icon-search-result {
    margin-top: 2em;
    font-size: 1.6em;
}

.align-super{
    vertical-align: super;
}


.no-tags-msg {
    overflow: hidden !important;
    text-overflow: initial !important;
    white-space: initial;
}

.close-menu-btn{
    font-size: 1.7em;
    margin-left: 0.5em;
}

.close-btn-container{
    
}

    .close-btn-container.active {
        display: block;
    }

.text-overflow {
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* END BURGER MENU */

/* SEARCH BAR*/

.search-bar-form{
    margin-top: 70px;
}

.search-bar-form {
    margin-top: 20px;
    position: relative; 
    margin-right:0px !important;
    width: 100%;
}

   
    .search-bar-form input[type="text"] {
        padding-right: 30px; 
    }



.clear-search-button {
    position: relative;
    right: 2em;
    top: 0em;
    color: white;
    height: 1.5em;
}

    .clear-search-button:hover {
        color: lightgray;
        transition: color 200ms;
    }

.fa-house {
    height: 1.15em;
}


.fa-magnifying-glass {
    position:relative;
    right: 2em;
    top: 0em;
    height:1.5em;
    color:white;
}

    .fa-magnifying-glass:hover {
        color: lightgray;
        transition: color 200ms;
    }

.invisible-button {
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
}

    .invisible-button:focus {
        outline:none;
    }

.clickable {
    cursor: pointer
}

.blue-underlined {
    color: #0000EE !important;
}

.blue-underlined:hover{
    text-decoration: underline !important;
}

.custom-search {
    background-color: #273489 !important;
    color: white !important;
    border: none;
    border-radius: 0px;
    border-bottom: 3px solid white;
    font-size: 1.5em;
    width:100% !important;
}

.custom-search::placeholder{
    color:white !important;
}

/* END SEARCH BAR*/

/* IFRAME */
iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    border: none;
    display: none;
    z-index:1;
    overscroll-behavior-block: contain;
}

iframe.active{
    display: block;
}

.resize{
    width: 0% !important;
    height: 0% !important;
}

/*END IFRAME*/

/*EASYGENERATOR MENU BLOCKING BAR*/

.block-iframe-menu {
    z-index: 2;
    position: absolute;
    height: 100vw;
    background-color: #27348a;
    width: 29vw;
    display:none;
}

    .block-iframe-menu.active {     
        display: block;
    }

.block-iframe-accesibility-button {
    z-index: 2;
    position: absolute;
    height: 5vw;
    background-color: #27348a;
    width: 6vw;
    display: none;
    top: 0;
    right: 0;
}

    .block-iframe-accesibility-button.active {
        display: block;
    }

.iframe-loading-screen-bg {
    z-index: 2;
    position: fixed;
    background-color: #27348a; /* Adjust opacity if needed */
    display: flex;
    justify-content: center; /* Horizontally center the content */
    align-items: center; /* Vertically center the content */
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.iframe-loading-screen {
    display: none;
}

    .iframe-loading-screen.active {
        display: block;
    }


@media (max-width : 420px) {
        .block-iframe-menu.active {
            z-index: 2;
            position: absolute;
            height: 20vw;
            background-color: #27348a;
            width: 100vw;
            display: block;
        }

    iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
        display: none;
        z-index: 1;
        overscroll-behavior-block: contain;
    }  
}

@media (max-width : 500px) {

        .block-iframe-menu.active {
            z-index: 2;
            position: absolute;
            height: 18vw;
            background-color: #27348a;
            width: 100vw;
            display: block;
        }

    iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
        display: none;
        z-index: 1;
        overscroll-behavior-block: contain;
    }
}

@media (min-width: 500px) and (max-width: 600px) {
    .block-iframe-menu.active {
        z-index: 2;
        position: absolute;
        height: 100vh;
        background-color: #27348a;
        width: 5.2vw;
        display: block;
    }

    iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
        display: none;
        z-index: 1;
    }

    .block-iframe-accesibility-button.active {
        width: 15vw;
        height: 11vw;
    }
}

@media (min-width: 600px) and (max-width: 763px) {
    .block-iframe-menu.active {
        z-index: 2;
        position: absolute;
        height: 100vh;
        background-color: #27348a;
        width: 5.1vw;
        display: block;
    }

    iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
        display: none;
        z-index: 1;
    }

    .block-iframe-accesibility-button.active {
        width: 14vw;
        height: 10vw;
    }
}

@media (min-width: 760px) and (max-width: 1023px) {
    .block-iframe-menu.active {
        z-index: 2;
        position: absolute;
        height: 100vh;
        background-color: #27348a;
        width: 7vw;
        display: block;
    }

    iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
        display: none;
        z-index: 1;
    }

    .block-iframe-accesibility-button.active {
        width: 11vw;
        height: 8vw;
    }
}

@media (min-width: 760px) and (max-width: 768px) {
    .block-iframe-menu.active {
        z-index: 2;
        position: absolute;
        height: 100vh;
        background-color: #27348a;
        width: 5vw;
        display: block;
    }

    iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
        display: none;
        z-index: 1;
    }

    .block-iframe-accesibility-button.active {
        width: 11vw;
        height: 8vw;
    }
}

@media (min-width: 1024px) and (max-width: 1076px) {
    .block-iframe-menu.active {
        z-index: 2;
        position: absolute;
        height: 100vh;
        background-color: #27348a;
        width: 10vw;
        display: block;
    }

    iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
        display: none;
        z-index: 1;
    }

    .block-iframe-accesibility-button.active {
        width: 11vw;
        height: 8vw;
    }
}

@media (min-width: 1076px) and (max-width: 1280px) {
    .block-iframe-menu.active {
        z-index: 2;
        position: absolute;
        height: 100vh;
        background-color: #27348a;
        width: 15vw;
        display: block;
    }

    iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
        display: none;
        z-index: 1;
    }

    .block-iframe-accesibility-button.active {
        width: 11vw;
        height: 8vw;
    }
}

@media (min-width: 1280px) and (max-width: 1439px) {
    .block-iframe-menu.active {
        z-index: 2;
        position: absolute;
        height: 100vh;
        background-color: #27348a;
        width: 34vw;
        display: block;
    }

    iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
        display: none;
        z-index: 1;
    }

    .block-iframe-accesibility-button.active {
        width: 11vw;
        height: 8vw;
    }
}


@media (min-width: 1440px) and (max-width: 2560px) {
    .block-iframe-menu.active {
        z-index: 2;
        position: absolute;
        height: 100vh;
        background-color: #27348a;
        width: 30vw;
        display: block;
    }

    iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
        display: none;
        z-index: 1;
    }

    .block-iframe-accesibility-button.active {
        width: 11vw;
        height: 8vw;
    }
}

/* surface duo*/
@media (height:720px) and (width:540px) {
    .block-iframe-menu.active {
        z-index: 2;
        position: absolute;
        height: 100% !important;
        background-color: #27348a;
        width: 5.2vw;
        display: block;
    }

    iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        border: none;
        display: none;
        z-index: 1;
    }

    .block-iframe-accesibility-button.active {
        width: 13vw;
        height: 10vw;
    }
}



/*END EASYGENERATOR MENU BLOCKING BAR*/

/*LOADING SPINNER */

.spinner {
    /*   for centering div */
    position: absolute;
    transform: translate(-50%, -50%);
    /*   spinner div css */
    height: 100px;
    width: 100px;
    border-radius: 50%;
    border: 10px solid white;
    border-top-color: #ffc107;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*AUTOCOMPLETE*/

.autocomplete {
    /*the container must be positioned relative:*/
    position: relative;
    display: inline-block;
    width: 70%;
}

input {
    border: 1px solid transparent;
    background-color: #f1f1f1;
    padding: 10px;
    font-size: 16px;
}

    input[type=text] {
        background-color: #f1f1f1;
        width: 100%;
    }

    input[type=submit] {
        background-color: DodgerBlue;
        color: #fff;
    }

.autocomplete-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    /*position the autocomplete items to be the same width as the container:*/
    top: 100%;
    left: 0;
    right: 0;
    overflow-y: auto;
}

    .autocomplete-items div {
        padding: 10px;
        cursor: pointer;
        background-color: #fff;
        color:black;
        overflow: hidden;
        
    }

        .autocomplete-items div:hover {
            /*when hovering an item:*/
            background-color: #e9e9e9;
        }

        .autocomplete-items div:last-child {
            border-bottom: 1px solid #d4d4d4;
        }


.autocomplete-active {
    /*when navigating through the items using the arrow keys:*/
    background-color: DodgerBlue !important;
    color: #ffffff;
}

/*END AUTOCOMPLETE*/


/*HOME SCREEN*/

.home-container{
    z-index:0;
    position:relative;
}

.welcome-text {
    font-size: 2.1rem;
    font-weight: bold;
    text-align: center;
}

.leading-text {
    text-align: center;
    margin: 1rem;
}

.logo {
    max-width: 5rem;
    transition: opacity 0.3s ease;
}

    .logo.active {
        max-width: 5rem;
        opacity: 0;       
    }

.footer-image {
    max-width: 5rem;
}

/*MESSAGING PAGE*/

.messaging-input {
    background-color: white !important;
}








