@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

:root {
    --color-01: #025622;
    --color-02: #1A8001;
    --color-03: #27EA00;
    font-size: 16px; /* Default medium size */
}

html, body {
    /* -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-overflow-scrolling : touch !important; */
}

body {
    font-size: 1rem;
    font-family: 'Roboto', 'Noto Sans TC', sans-serif;
    overflow: hidden;
}

body a.visually-hidden-focusable {
    color: var(--color-01);
    border-radius: 0 !important;
}
body a.visually-hidden-focusable:focus {
    box-shadow: 0 0 0 2px black;
    outline: solid 2px white;
    outline-offset: 2px;
}

body a:focus-visible {
    border-radius: 0 !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/********* Header *********/
header {
    /* border-bottom: 2px solid #9ca3af; */
}
header nav {
    background-color: white;
    padding: 0 !important;
}

header a {
    text-decoration: none;
}
header a:focus {
    box-shadow: 0 0 0 2px black;
    outline: solid 2px white;
    outline-offset: 2px;
}
header a.navbar-brand {
    display: flex;
    align-items: center;
    height: 50px;
}
/* Top right button container */
.nav-buttons-container {
    position: absolute;
    left: 412px;
    top: 11px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
@media (max-width: 991.98px) {
    .nav-buttons-container {
        left: 12px;
    }
}

/* Button group styling */
.nav-button-group {
    background-color: white;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    box-shadow: rgba(0, 0, 0, 0.7) 0px 0px 6px 0px;
}

header button.navbar-toggler {
    width: 28px;
    height: 28px;
    cursor: pointer;
    color: var(--color-01);
    background-color: white;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
    border: none;
    outline: none !important;
    box-shadow: none !important;
    padding: 0;
    margin: 0;
    font-size: 1rem;
    border-radius: 0;
}
header button.navbar-toggler:hover {
    background-color: #f3f4f6;
}
header button.navbar-toggler:first-child {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}
header button.navbar-toggler:last-child {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}
header button.navbar-toggler:not(:last-child) {
    border-bottom: 1px solid #ccc;
}
header button.navbar-toggler svg {
    width: 18px;
    height: 18px;
}
header button.navbar-toggler:focus-visible {
    outline: solid 1px black !important;
    outline-offset: -1px;
}
header .offcanvas-header {
    min-height: 52px;
    padding-top: 13px;
    padding-bottom: 13px;
}
header .offcanvas-body {
    padding: 0;
}
header .offcanvas-body .submenu-header {
    background-color: #D7D7D7;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 0.63rem 1rem;
}
header .offcanvas-body ul.navbar-nav {
    display: flex;
    justify-content: flex-end;
}
header .offcanvas-body li.nav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    min-height: 60px;
    border-bottom: 1px solid #C9C9C9;
}

header .offcanvas-body li.nav-item a {
    color: black;
    text-decoration: none;
    width: 100%;
}
header .offcanvas-body li.nav-item > :nth-child(1) {
    margin-bottom: 0;
}
header .offcanvas-body li.nav-item > :nth-child(2) {
    width: auto;
    background-color: transparent;
    text-align: end;
    border: 0;
    border-radius: 0;
}
header .offcanvas-body .form-check-input {
    width: 3rem;
    height: 1.5rem;
}
header .offcanvas-body .form-check-input:checked {
    background-color: var(--color-01);
    border: 0;
}

header .offcanvas-body li.nav-item .form-select:focus {
    box-shadow: 0 0 0 2px black;
    outline: solid 2px white;
    outline-offset: 2px;
}
header .offcanvas-body li.nav-item .form-switch .form-check-input:focus {
    box-shadow: 0 0 0 2px black;
    outline: solid 2px white;
    outline-offset: 2px;
    border-color: #C9C9C9;
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
}

.modal .modal-dialog {
    max-width: 1000px;
}
.modal .modal-content {
    border-radius: 0 !important;
}
.modal .modal-content .modal-header {
    background-color: #D7D7D7;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    border-bottom: 0;
}
.modal .modal-content .modal-body {
    padding: 1.5rem 1.5rem;
}
.modal .modal-content .modal-body .has-table table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #000;
}
.modal .modal-content .modal-body .has-table table td {
    border: 1px solid #000;
    padding: 0.5rem 1rem;
}

.logo-language {
    opacity: 0;
    visibility: hidden;
    display: none;
}
.logo-language.active {
    max-width: calc(100vw - 150px);
    max-height: 50px;
    height: auto;
    display: inline-block;
}

/********** Main **********/
main img {
    max-width: 100%;
}


/********** Desktop Only **********/
@media (min-width: 1200px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1200px;   /* Change the maximum content width here */
    }
}

/********** Large Desktop **********/
@media only screen and (max-width: 1199.98px) {

}

/********** Desktop **********/
@media only screen and (max-width: 991.98px) {

}

/********** Tablet **********/
@media only screen and (max-width: 767.98px) {

}

/********** Mobile **********/
@media only screen and (max-width: 479.98px) {

}
