
html {
    scroll-behavior: smooth;
    font-family: 'Source Sans Pro', sans-serif;
    overflow-x: hidden;
    overflow-y: scroll;
    scrollbar-width: thin;
}

body {
    scroll-behavior: smooth;
    font-family: 'Source Sans Pro', sans-serif;
}

.main {
    max-width: 60vw;
    margin: auto;
    max-height: 100vh;
}
@media only screen and (max-width: 1400px) {
    .main {
        max-width: 90vw;
    }
    #mySidebar {
        min-width: 220px;
    }
}
#mySidebar {
    background-color: rgb(240, 242, 246);
    position: fixed;
    padding: 10px;
    display: block;
    width: 17%;
    top: 0;
    bottom: 0;
    overflow-y: scroll;
    scrollbar-color: rgba(0, 66, 128, 0.07) rgb(240, 242, 246);
    scrollbar-width: thin;
    z-index: 100;
}

::-webkit-scrollbar {
    width: 5px;
}

.myBtn {
    padding: 10px;
    border-radius: 5px;
}
.myBtn:hover {
    background-color: rgb(228, 230, 235);
}

#opennav {
    margin: 10px;
}

.logo {
    text-align: center;
}
.logo img{
    max-width: 200px;
}

#mySidebar h4 {
    font-weight: 600;
    color: rgb(49, 51, 63);
    margin-top: 20px;
    margin-bottom: 10px;
}
.sidebarcontent {
    padding: 5px;
}
.textchunk {
    border-radius: 7px;
    background-color: rgb(222, 233, 247);
    padding: 18px;
    color: rgb(0, 66, 128);
}
.textchunk ol,
.textchunk ul {
    padding-left: 1rem;
    margin: 0;
}
.textchunk ol li,
.textchunk ul li {
    margin-bottom: 5px;
}
.footnote {
    color: grey;
    font-size: 0.9em;
}
.legal a{
    text-decoration: none;
    color: black;
    font-size: 0.9em;
}
.legal a:hover{
    text-decoration: underline;
}

.main .titleblock h1 {
    font-weight: 700;
    font-size: 2.8em;
}
.main .titleblock p {
    color: rgb(49, 51, 63);
}
.main .titleblock .tip {
    border-radius: 7px;
    background-color: rgb(222, 233, 247);
    padding: 15px;
    color: rgb(0, 66, 128);
}
.main .titleblock #pagename {
    float: left;
    font-weight: 600;
    color: rgb(0, 10, 65);
}
.main .titleblock #pagedesc {
    text-align: justify;
}

#messageArea label, 
#memoData label, #fbnoteData>label {
    font-size: 0.85em;
}
#messageArea input,
#messageArea select {
    background-color: rgb(241, 244, 250);
    border: none;
}

#messageArea .send_btn {
    border: none;
    background-color: rgb(222, 233, 247);
    margin-left: 2px;
}

#labelsubpol {
    color: rgb(143, 143, 143);
}

#chatArea {
    max-height: 800px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.chatBubble .msg_container{
    background-color: rgb(241, 244, 250);
    border-radius: 20px;
    padding: 5px 15px 5px 15px;
    min-height: 3em;
    max-width: 75%;
    margin: 0 6px 0 6px;
    position: relative;
}
.chatBubble .msg_container .answerlink {
    color: rgb(49, 59, 95);
}
.chatBubble .msg_container a{
    text-decoration: none;
}
.chatBubble .msg_time_send{
	position: absolute;
	right: 0;
	top: -15px;
	color: rgb(107, 107, 107);
	font-size: 0.7em;
}
.chatBubble .msg_time{
	position: absolute;
	left: 0;
	top: -15px;
	color: rgb(107, 107, 107);
	font-size: 0.7em;
}
.chatBubble img {
    max-width: 50px;
}
.chatBubble .user_img_msg {
    border: 5px solid black;
}

/* MEMO GEN */
#memoData input,
#memoData select {
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.menuitem a{
    text-decoration: none;
    color: black;
}
.menuitem a h4{
    font-weight: 600;
    font-size: max(1.4rem,22px);
}
.menuitem:hover a h4{
    color: rgb(0, 26, 110);
}

.underlinemenu {
    text-decoration: underline 2px;
    text-underline-offset: 3px;
}

#fileindex {
    /* border: 2px solid rgb(75, 75, 75); */
    box-shadow: 0 0 30px 10px rgb(133, 133, 133);
    border-radius: 5px;
    background: white;
    /* background-color: rgb(222, 233, 247); */
    /* cursor: pointer; */
    position: fixed;
    height: 80%;
    width: 50%;
    top: 10%;
    left: 25%;
    z-index: 200;
    padding: 10px;
    overflow-y: auto;
    display: none;
}

#fileindex table tbody tr:last-child{
    border: transparent;
}

#fileindex .tableheader{
    position: relative; 
}
#fileindex .tableheader h3{
    font-weight: 600;
    display: block;
    margin: auto;
}
#fileindex .tableheader .buttoncorner{
    position: absolute;
    padding: 0.4rem;
    top: 2px;
    right: 5px;
}
#fileindex .tableheader .buttoncorner .collapse-btn,
#fileindex .tableheader .buttoncorner .btn-langtog {
    display: inline-block;
}
#fileindex table tbody tr th{
    width: 16ch;
    text-align: left;
}
#fileindex table tbody tr td{
    text-align: left;
}
#fileindex .accordion-item{
    border-radius: 5px;
    border: 2px solid transparent;
}
#fileindex .accordion-item:hover{
    border-radius: 5px;
    border: 2px solid rgb(222, 233, 247);
}
#fileindex .accordion-button{
    padding: 0.3em 0.3em;
    font-size: 0.6em;
}
#fileindex table tbody tr{
    cursor: default;
}

@media only screen and (max-width: 576px) {
    #fileindex {
        height: 90%;
        width: 90%;
        top: 5%;
        left: 5%;
    }
}

/* PaCE Maker */
#pacemaker_desktop .tab-content {
    border: var(--bs-border-width) solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}
#pacemaker_desktop .tab-pane {
    padding: .375rem .75rem;
}

#pacemaker_desktop .activepage {
    color:rgb(0, 26, 110);
    text-decoration: underline;
}

#pacemaker_desktop .tab-pane {
    white-space: pre-wrap;
}

#bigbrother .table-responsive {
    height: 80vh;
    overflow: scroll;
    padding-bottom: 10vh;
}

/* Bottom notice banner */
#noticebanner {
    position: fixed;
    display: flex;
    align-items: center;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgb(255, 209, 167);
    z-index: 101;
    height: 2em;
    font-size: 0.9em;
    font-weight: 600;
    display: none; /* toggle to turn on/off */
}
#noticebanner .noticetext {
    margin-left: auto;
}
#noticebanner .noticetext p {
    margin-top: 2px;
    margin-bottom: 2px;
}
#noticebanner .noticetext2 {
    display: none;
}
@media only screen and (max-width: 768px) {
    #noticebanner .noticetext {
        white-space: nowrap;
        overflow: hidden;
        /* overflow-x: scroll; */
    }
    #noticebanner .noticetext p {
        padding: 0 100% 0 100%;
        display: inline-block;
        margin-top: 2px;
        margin-bottom: 2px;
        animation: hscroll 20s linear infinite;
    }
}
/* @media only screen and (max-width: 768px) {
    #noticebanner .noticetext {
        margin: 0 auto;
        white-space: nowrap;
        overflow: hidden;
        position: absolute;
    }
    #noticebanner .noticetext2 {
        display: block;
    }
    #noticebanner .noticetext p {
        display: inline-block;
        padding-left: 100%;
        animation: hscroll 14s linear infinite;
        margin-top: 2px;
        margin-bottom: 2px;
    }
    #noticebanner .noticetext2 p {
        animation-delay: 7s;
    }
} */
#noticebanner #noticeclosebtn {
    display: inline-block;
    margin-left: auto;
}
#noticebanner #noticeclosebtn i {
    padding: 0 10px;
}
@keyframes hscroll {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-100%, 0);
    }
}

/* Contact form popup */
#termsconditions {
    /* box-shadow: 0 0 30px 10px rgb(133, 133, 133); */
    border-radius: 5px;
    background: white;
    position: fixed;
    height: 80%;
    width: 50%;
    top: 10%;
    left: 25%;
    z-index: 200;
    overflow: hidden;
    display: none;
    box-shadow: 0 0 0 max(100vh, 100vw) rgba(0, 0, 0, .9);
}
@media only screen and (max-width: 576px) {
    #termsconditions {
        height: 90%;
        width: 90%;
        top: 5%;
        left: 5%;
    }
}

#termsconditions #termscontent {
    height: 100%;
    overflow-y: scroll;
}

#termsconditions #termstxt {
    padding: 1em;
    border:rgb(104, 107, 122) 2px solid;
    border-radius: 5px;
}

.todisable {
    pointer-events: none;
}

.main .warning {
    border-radius: 7px;
    background-color: rgb(247, 232, 222);
    padding: 15px;
    color: rgb(82, 23, 0);
}
