@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300&display=swap');

html {
    font-size: 1rem;
    height: 100%;
}

body {
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: 'Noto Sans TC', sans-serif !important;
}

@media (min-width: 1400px) {
    .custom-padding {
        padding: 0 12rem;
    }
}

#npgrclogo {
    overflow: hidden;
    position: absolute;
    top: 1.6rem;
}

#npgrclogo img {
    max-height: 2.5rem;
    object-fit: cover;
}

#ngmrc_name {
    position: absolute;
    left: 14%;
    top: 20px;
}

#ngmrc_name span {
    color: #438d5a;
    font-weight: 800;
}

/* header grid */
#grid {
    margin-bottom: 10px;
}

#grid,
#hot_key_word {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    list-style-type: none;
}

#grid li {
    padding: 0vw 0.3vw;
    cursor: pointer;
}

#grid a {
    color: #000;
}

.menu_title .welcome_dropdown {
    background: cadetblue;
    position: absolute;
    top: 50px;
}

.menu_title .dropdown-item:hover {
    background: #eee;
}

#hot_key_word span:first-child {
    padding: 0px 2px 0px 10px;
}

#hot_key_word span:not(:first-child) {
    margin-right: 2px;
    text-decoration: underline;
}

.font_size {
    border: unset !important;
    background-color: #c0c9d2;
    border-radius: 50%;
    width: 29px;
    padding: 3px !important;
    text-align: center;
    margin: 0px 5px;
}

.font_size:hover {
    background-color: #026520bd;
    color: #fff;
}

#search {
    position: relative;
}

.search_input {
    border-radius: 30px;
    border: 1px solid gray;
}

.search_input:focus {
    welcome_nav outline: unset;
}

.search_icon {
    position: absolute;
    right: 0px;
    background-color: #438d5a;
    color: white;
    border-radius: 50%;
    padding: 8px;
    font-size: 0.75rem;
}

/* header grid */

/* header grid new */
#header {
    padding: 30px 20px;
    justify-content: space-between;
}

#header_logo a {
    max-height: 3.5rem;
    object-fit: cover;
}

#header_grid {
    display: flex;
    align-items: center;
}

#header_grid li {
    padding: 0px 6px;
    cursor: pointer;
}

#header_grid a {
    color: #000;
}

#header_grid a:hover {
    color: #009933;
}

#header_login {
    width: 80px;
    background-color: #ffcc00;
    border-radius: 20px;
    box-shadow: 4px 5px 2px 0 rgb(0 0 0 / 5%);
    text-align: center;
    cursor: pointer;
    margin-left: 20px;
}

#header_login:hover {
    background-color: #e6c74e;
    top: 30px;
}

#header_login a {
    font-weight: bold;
    color: #fff;
}

#header_login a:focus {
    box-shadow: none;
}

/* header grid new */

/* nav */
#header_grid li,
nav li,
#footer_grid li {
    list-style-type: none;
}

#nav {
    background-color: #026520bd;
    color: white;
}

#nav_title {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0;
    margin: 0;
}

.navbar-toggler-icon {
    color: #64ad1f;
    background-color: white;
    border: 2px solid #e7e7e7;
    padding-top: 0.2rem;
    padding-right: 0.25rem;
}

.menu_title {
    cursor: pointer;
    padding: 10px 0px;

}

.menu_title.welcome_nav {
    cursor: default;
}

.menu_title a {
    color: white;
    text-decoration: none;
}

/* nav */

/* .intro_title p {
    border-bottom: 4px solid green;
    font-weight: bold;
    width: fit-content;
    margin: 15px auto;
    font-size: 2rem;
} */
p#intro_title {
    border-bottom: 4px solid green;
    font-weight: bold;
    width: fit-content;
    margin: 15px auto;
    font-size: 2rem;
}

.intro_title h1 {
    border-bottom: 4px solid green;
    font-weight: bold;
    width: fit-content;
    margin: 15px auto;
    font-size: 2rem;
}

#intro_title h1 {
    border-bottom: 4px solid green;
    font-weight: bold;
    width: fit-content;
    margin: 15px auto;
    font-size: 2rem;
}

.intro_title p {
    border-bottom: 4px solid green;
    font-weight: bold;
    width: fit-content;
    margin: 15px auto;
    font-size: 2rem;
}

#intro_title p {
    border-bottom: 4px solid green;
    font-weight: bold;
    width: fit-content;
    margin: 15px auto;
    font-size: 2rem;
}

.intro_title_description {
    text-align: center;
    font-weight: bold;
    font-size: 1.3em;
}

/* footer */
footer {
    min-height: 150px;
    background-color: #026520;
    color: white;
    padding-top: 15px;
    font-size: 0.7rem;
}

@media (min-width: 1159px) {
    footer {
        min-height: 100px;
    }

    #footer_content {
        padding: 5px 6rem 9px 12rem;
    }
}

#footer_grid {
    display: flex;
    justify-content: start;
    align-items: center;
    list-style-type: none;
    margin-bottom: 1.5%;
    padding: 0;
}

#footer_grid li {
    padding: 0px 10px;
    cursor: pointer;
    border-right: 1px solid white;
}

#footer_grid li:first-child {
    padding: 0 10px 0 0;
}

#footer_grid li:last-child {
    border-right: unset;
}

#footer_grid li a {
    color: #fff;

}

#footer_logo img {
    max-height: 65px;
}

#footer_info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#footer_visit {
    align-self: end;
}

/* footer */

/* modal */
.modal-header {
    background: #549688;
}

.modal-content {
    border: unset;
}

.modal-header .close span:hover {
    display: block;
    transform: rotate(20deg);
    transition: all 0.2s ease-in-out;
}

/* 暫時隱藏熱門關鍵字 */
#header .row {
    justify-content: flex-end;
}

#npgrclogo {
    overflow: unset !important;
    top: 0.725rem !important;
}

#ngmrc_name {
    width: max-content;
}

.main {
    flex: 1 1 0;
    min-height: 70vh;
}

/* chosen 選項 */
.chosen-container .chosen-results li.active-result {
    font-size: 0.875rem;
    margin: 7px 0;
}

/* rwd  */
@media (min-width: 992px) {
    .navbar-expand-md .navbar-collapse {
        justify-content: space-around;
    }

    .menu_content a {
        padding: 30px 0px 5px;
    }

}

@media (max-width:1120px) {
    #header_login {
        position: unset;
        height: 40px;
    }

    #footer_logo img {
        max-height: 60px;
    }
}

@media (max-width:991.98px) {
    #npgrclogo {
        position: static;
    }

    #npgrclogo img {
        max-height: 1.8em;
        display: block;
        width: auto;
        margin: auto;
    }

    #header_login {
        display: none;
    }

    #header_logo img {
        max-height: 1.8em;
        display: block;
        width: auto;
        margin: auto;
    }

    .navbar-toggler {
        font-size: 1.25rem;
        line-height: 1;
        background-color: transparent;
        border: 1px solid transparent;
        position: absolute;
        z-index: 5;
        top: 0.25rem;
        left: -0.5rem;
    }

    .navbar-toggler-icon {
        border-radius: 0.25rem;
    }

    /* footer */
    #footer {
        padding-left: 94px;
    }

    /* footer */

    /* Sidebar */
    #small_login {
        background-color: #878787;
        color: #fff;
        padding: 10px;
    }

    #small_login a {
        color: #ffcc00;
        font-weight: bold;
        text-decoration: underline;
    }

    #nav {
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        height: 100%;
        background-color: #f2f2f2;
        color: gray;
        transition: 1s;
        position: fixed;
        top: 0px;
        z-index: 5;
        margin-left: -15rem;
    }

    #nav_title {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        margin: 0;
    }

    #nav_title_div {
        width: 11.6rem;
    }

    #nav.active {
        height: 100%;
        margin-left: 0px;
        position: fixed;
        overflow-y: auto;
        top: 0px;
        z-index: 16;
        box-shadow: 8px 0px 5px 0px rgb(45 42 40 / 10%);
    }

    #nav p {
        text-align: center;
        font-size: 1.5rem;
        font-style: italic;
        padding: 10px;
    }

    #nav ul p {
        font-size: 0.5rem;
        text-align: left;
    }

    #nav ul li {
        padding: 10px 15px;
        font-size: 0.7rem;
        color: gray;
    }

    #nav ul li a:hover {
        color: rgb(5, 5, 5);
        background: #fff;
    }

    .menu_title {
        font-size: 0.7rem;
        width: -webkit-fill-available;
    }

    .menu_title a {
        color: gray;
    }

    .menu_title:hover .menu_content {
        display: none;
        flex-wrap: wrap;
    }

    .menu_content {
        position: relative;
        height: inherit;
        background-color: #eaebec;
        font-size: 0.6rem;
        width: auto;
        white-space: nowrap;
        margin-left: -0.6rem;
    }

    .menu_content li {
        position: relative;
        top: 1px;
        bottom: 0;
        width: -webkit-fill-available;
        padding: 6px !important;
    }

    #close {
        position: fixed;
        left: 11.6rem;
        top: 1rem;
        border: none;
        font-size: 1rem;
        padding: 0px 8px 0px 8px;
        color: #64ad1f;
        background-color: white;
        border: 2px solid #e7e7e7;
        border-radius: 0.5rem;
        z-index: 22;
        margin-left: -15em;
        transition: 1s;
    }

    #close.active {
        margin-left: 0px;
    }

    #close:hover {
        transition: none;
        color: #64ad1f;
        background-color: white;
        border: 2px solid #e7e7e7;
    }

    ul ul li a {
        font-size: 0.6rem;
    }

    /* Sidebar */
}

@media (max-width:768px) {
    #footer_logo img {
        max-height: 65px;
    }
}

@media (max-width:535px) {
    #footer {
        min-height: 180px;
        max-height: 180px;
        padding-left: 15px;
    }

    #footer_logo img {
        max-height: 55px;
    }

    #footer_info {
        font-size: 0.7rem;
    }
}

/* rwd */
