/*
Theme Name: 藥品查詢
Author: kenny
Version: 1.0
*/
:root {
    --at-main-color: #6B9362;
    --at-second-color: #9aac96;
}

body {
    font-family: "Microsoft JhengHei";
}

:focus {
    outline: 3px dotted var(--at-second-color);
    transition: 0.2s;
}

h1 {
    font-size: 1.6em;
    font-weight: normal;
}

h2 {
    font-size: 1.4em;
    font-weight: normal;
}

h3 {
    font-size: 1.125em;
}

p,
span,
a,
li {
    font-size: 1rem;
}

a {
    color: #000000;
    transition: all 0.3s ease;
}

:hover {
    color: #000000;
    transition: all 0.3s ease;
}

ul {
    padding: 0;
    margin: 0;
}

button:focus {
    outline: 0;
}

.aligncenter {
    display: block;
    margin: auto;
}


a[accesskey="C"] {
    position: absolute;
    top: -2px;
    left: -14px;
    color: #FFF;
}

a[accesskey="C"]:focus {
    color: #000000;
}

@media(min-width:576px) {
    :focus {
        outline: 3px dotted red;
        transition: 0.2s;
    }
}

header .container {
    max-width: 980px;
}

/* at-top-logo */
.logo {
    margin-bottom: 0;
    text-align: center;
    padding: 32px 0;
}

.logo a {
    font-size: 2.2rem;
    color: var(--at-main-color);
    font-weight: bold;
}

.logo a:hover {
    text-decoration: none;
}

/* /at-top-logo */

/* at-top-menu */
.at-top-menu {
    background: var(--at-main-color);
}

/* /at-top-menu */

/* at-mobile-top-menu */
.at-mobile-top-menu p {
    margin: auto;
    color: #FFF;
    font-size: 1.3em;
    border-bottom: 1px #FFF solid;
    width: fit-content;
    font-style: italic;
}

.at-mobile-top-menu {
    margin-top: 32px;
}

.at-mobile-top-menu ul {
    padding: 0;
}

.at-mobile-top-menu ul li {
    list-style: none;
    border-bottom: 1px #000000 solid;
    padding: 10px 10px 10px 15px;
}

.at-mobile-top-menu ul li a {
    color: #FFF;
    font-size: 1.2em;
}

.at-mobile-social-list {
    text-align: center;
    font-size: 2em;
    margin: 32px 0;
}

/* /at-mobile-top-menu */

@media(max-width: 991px) {
    nav.navbar .dropdown [data-toggle="dropdown"]:after {
        padding-left: 0;
        float: right;
    }

    .at-top-menu .at-mobile-menu span {
        display: block;
        width: 220px;
        border-bottom: 1px #000000 solid;
        padding-bottom: 6px;
    }

    .at-top-menu .dropdown .col-md-1-5,
    .at-top-menu .dropdown .col-md-2 {
        margin-top: 15px;
    }

    .at-top-menu .col-md-1-5 a,
    .at-top-menu .col-md-2 a {
        margin: 10px 0 0 30px;
    }
}

.at-top-menu nav span {
    margin-left: 15px;
}

.at-top-menu nav span:after {
    font-family: "Font Awesome 5 Free";
    font-weight: bold;
    content: "\f078";
    font-size: 0.8em;
    padding-left: 5px;
}

#at-mobile-menu-close {
    border: none;
    background: var(--at-second-color);
    color: #FFF;
    padding: 20px 25px;
    margin-bottom: 20px;
}

.at-top-menu nav ul li {
    list-style: none;
}

.at-top-menu nav ul li a {
    color: #FFF;
    text-decoration: none;
}

.at-top-menu nav.navbar {
    justify-content: center;
    padding: 0;
}

.at-top-menu span {
    color: #FFF;
    font-weight: bold;
}

@media(min-width: 992px) {
    .at-top-menu nav {
        text-align: center;
    }

    .at-top-menu nav ul {
        display: flex;
        margin: 0;
    }

    .at-top-menu nav ul li a {
        display: block;
        padding: 10px 15px;
        font-weight: bold;
    }

    .at-top-menu nav ul li a:hover {
        background: var(--at-second-color);
        color: #FFF;
    }

    .at-top-menu nav ul li a:focus {
        background: var(--at-second-color) !important;
        color: #FFF !important;
    }

    .at-top-menu .at-mega-menu-item {
        position: static;
    }

    .at-top-menu .at-mega-menu-content {
        left: 25%;
        margin-top: 0px;
        padding: 10px;
    }

    .at-mega-menu-width {
        min-width: 1000px;
        background: #3E8ED8;
    }

    .at-top-menu .at-mega-menu-content a {
        white-space: pre-wrap;
    }

    .at-top-menu .dropdown-menu {
        background: var(--at-main-color);
    }
}

@media(max-width: 991px) {
    .at-main-bg-color {
        background: #999999;
    }

    .at-top-menu .navbar {
        display: block;
    }

    .at-top-menu .navbar ul {
        margin-top: 20px;
        padding: 0;

    }

    .at-top-menu .navbar li {
        border-bottom: 1px #000000 solid;
        padding: 10px 10px 10px 15px;
    }

    .at-top-menu .navbar li a {
        color: #FFF;
        display: block;
    }

    .at-top-menu .navbar .dropdown-menu a {
        margin-bottom: 10px;
        padding-left: 5px;
        padding-bottom: 5px;
        border-bottom: 1px #000000 solid;
    }

    .at-top-menu {
        position: fixed;
        top: 0;
        bottom: 0;
        background: var(--at-main-color);
        width: 0;
        transition: 0.4s;
        overflow: scroll;
        z-index: 9999;
    }

    .in {
        transition: 0.4s;
        width: 270px;
    }

    .at-top-menu .at-mobile-search {
        text-align: center;
    }

    .at-top-menu input[type="text"] {
        border: 1px #a3a3a3 solid;
        width: 150px;
        height: 36px;
        background: rgba(247, 248, 248, 0.85);
        color: #000;
        padding-left: 10px;
    }

    .at-top-menu input[type="submit"] {
        border: none;
        width: 40px;
        height: 36px;
        background-color: var(--at-second-color);
        margin-left: -6px;
        margin-top: -2.2px;
        color: #FFF;
    }

    .at-top-menu .at-mobile-menu {
        position: static;
        background: var(--at-main-color);
        float: none;
        border: none;
        border-radius: 0;
        margin-top: 0;
        margin-left: 2%;
        overflow: hidden;
        max-width: 100%;
    }

    .at-top-menu .dropdown-menu .container {
        padding-left: 0;
    }
}

/* /at-top-menu */



/* at-home-search-area */
.at-home-search-area {
    padding: 32px 0;
}

.at-search-condition-area {
    padding-top: 15px;
}

.at-section-title {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin: 32px 0;
}

.at-med-search {
    max-width: 100%;
}

.at-input-area {
    margin-bottom: 15px;
}

.at-med-form {
    background: #FFF;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 0 10px #d6d5d5;
}

.at-med-form label {
    margin-bottom: 3px;
    font-size: 0.9rem;
}

.at-med-form input {
    width: 100%;
    border: none;
    background: #f4f3f3;
    padding: 5px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.at-form-button {
    display: block;
    margin: auto;
    border: none;
    margin-top: 20px;
    background: var(--at-main-color);
    color: #FFF;
    padding: 8px 0;
    font-weight: bold;
    width: 100%;
    border-radius: 10px;
}

.at-reset-button {
    background: #a3a3a3;
}

.at-med-form [type=submit] {
    display: block;
    margin: auto;
    border: none;
    margin-top: 32px;
    background: var(--at-main-color);
    color: #FFF;
    padding: 8px 0;
    font-weight: bold;
}

.at-med-form table {
    width: 100%;
}

.at-med-form table input {
    padding: 5px 5px;
    width: 80%;
}

.at-med-form table thead tr {
    background: var(--at-main-color);
    text-align: center;
    color: #FFF;
}

.at-med-form table thead tr td {
    padding: 10px 0;
}

.at-med-form table label {
    margin-bottom: 0;
}

.at-med-form table td {
    border: 2px var(--at-main-color) solid;
    padding: 20px 10px;
    font-weight: bold;
}

@media(min-width: 588px) {
    .at-med-form table td:first-child {
        width: 25%;
    }
}

@media(max-width: 587px) {
    .at-med-form table td {
        display: block;
        text-align: center;
    }

    .at-med-form table td:first-child {
        border-bottom: none;
        border-top: none;
    }

    .at-med-form table td:nth-child(even) {
        border-top: none;
    }
}

/* /at-home-search-area */

/* at-table */
.at-table {
    width: 100%;
    text-align: center;
    border: 1px solid #d6d5d5;
}


.at-table tr:first-child {
    background: var(--at-main-color);
    color: #FFF;
    font-weight: bold;
}

.at-table tr td {
    border: 1px solid var(--at-main-color);
    padding: 10px;
}

.at-table tr td a {
    color: var(--at-main-color);
    font-weight: bold;
}

.at-table tr td a:hover {
    color: var(--at-second-color);
    text-decoration: none;
}

/* /at-table */

/* at-search-list */
.at-search-list {
    width: 100%;
    margin: 80px 0;
    border: 1px solid #d6d5d5;
}

.at-search-list tr th {
    background: var(--at-main-color);
    color: #FFF;
    text-align: center;
    font-weight: bold;
    border: 1px solid var(--at-main-color);
    padding: 10px;
}

.at-search-list tr td {
    border: 1px solid var(--at-main-color);
    padding: 15px 10px;
}

.at-search-list tr td a {
    text-decoration: underline;
}

.at-search-list tr td a:hover {
    color: var(--at-second-color);
}

.diaplymobile {
    display: block !important;
}

@media(max-width: 576px) {
    .at-search-list tr th:not(:first-child) {
        display: none;
    }

    .at-search-list tr th:first-child {}

    .at-search-list tr td {
        display: block;
        text-align: center;
    }

    .at-search-list tr td:first-child:after {
        content: "▼";
        position: absolute;
        right: 25px;
    }

    .at-search-list tr td:not(:first-child) {
        display: none;
    }

    .at-search-list tr td:before {
        content: attr(data-title);
        display: block;
        font-weight: bold;
        padding-bottom: 10px;
    }

    .at-search-list tr td:first-child {
        border-top: 1px solid var(--at-main-color);
    }

    .at-search-list tr td {
        border-top: none;
        border-bottom: none;
    }

    .at-search-list tr:last-child {
        border-bottom: 1px solid var(--at-main-color);
    }

    .at-search-list tr td:nth-child(even) {
        background: #f8f8f8;
    }
}

/* /at-search-list */

/* at-search-result-pic */
.at-search-result-pic {
    width: 100%;
    margin: 80px 0;
    border: 1px solid var(--at-main-color);
}

.at-search-result-pic thead tr td {
    background: var(--at-main-color);
    color: #FFF;
    text-align: center;
    font-weight: bold;
    border: 1px solid #999999;
    padding: 15px 0;
}

.at-search-result-pic tr th {
    text-align: center;
    border: 1px solid #999999;
    width: 30%;
}

.at-search-result-pic tr td {
    /*border: 1px solid #999999;*/
}

.at-search-result-pic tr th img {
    border: 1px solid #999999;
    max-width: 100%;
    height: auto;
}

@media(max-width: 576px) {
    .at-search-result-pic tr th {
        display: block;
        width: 100%;
        padding: 15px 0;
    }

    .at-search-result-pic tr td {
        display: block;
        width: 100% !important;
        text-align: center;
    }
}

/* at-inside-table */
.at-inside-table {
    width: 100%;
    border: 1px solid var(--at-main-color);
}

.at-inside-table tr td {
    padding: 10px;
}

.at-inside-table tr td:first-child {
    background: var(--at-main-color);
    color: #FFF;
    font-weight: bold;
    text-align: center;
    width: 30%;
}

/* /at-inside-table */


/* /at-search-result-pic */

/* at-search-result-table */
.at-search-result-table {
    width: 100%;
}

.at-search-result-table tr th,
.at-search-result-table tr td {
    word-break: break-all;
}

.at-search-result-table tr th {
    background: var(--at-main-color);
    color: #FFF;
    text-align: center;
    border: 1px solid #999999;
    padding: 15px 10px;
    width: 15%;
}

.at-search-result-table tr td {
    border: 1px solid #999999;
    padding: 15px 10px;
}

@media(max-width: 768px) {

    .at-search-result-table tr th,
    .at-search-result-table tr td {
        display: block;
    }

    .at-search-result-table tr th {
        text-align: left;
        padding: 5px 10px;
        position: absolute;
        width: auto;
        border: none;
    }

    .at-search-result-table tr td {
        padding-top: 50px;
        padding-bottom: 25px;
    }

    .at-search-result-table tr:not(:last-child) td {
        border-bottom: none;
    }
}

.at-search-result-table video {
    max-height: 250px;
    margin: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 0 10px #d6d5d5;
}

/* /at-search-result-table */

/* footer*/
footer {
    margin-top: 50px;
}

.at-home-footer-area {
    background: var(--at-main-color);
    color: #FFF;
    padding-top: 25px;
}

.at-home-footer-area p {
    font-weight: bold;
}

.at-fat-footer-title {
    display: block;
}

#at-fat-footer li {
    list-style: none;
    line-height: 40px;
}

#at-fat-footer span {
    font-weight: bold;
    color: #C94364;
}

.at-home-footer-area a {
    color: #FFF;
    padding: 5px;
}

.at-home-footer-area a:hover {
    text-decoration: none;
    font-weight: bold;
    color: #FFF;
}

.at-fat-footer {
    background: var(--at-main-color);
}

.at-footer-info p {
    line-height: 25px;
    font-weight: bold;
}

/* /footer */

.at-error-textarea-input {
    min-height: 150px !important;
}

.at-gallery-area {
    margin: auto;
    max-width: 60%;
}

.at-gallery-area .slick-slide {
    height: auto;
}

.at-gallery img {
    max-width: 60%;
    display: block;
    margin: auto;
}

.at-single-medicine-detail {
    padding-top: 25px;
}

.at-single-medicine-detail .at-error-report-area {
    margin-bottom: 5px;
}

.at-single-medicine-detail .at-error-report-area button {
    background: var(--at-main-color);
}

.at-error-report-area {
    position: relative;
}

.at-single-medicine-back {
    float: right;
    margin-right: 10px;
    background: var(--at-main-color);
    color: #FFF;
    padding: .375rem .75rem;
    border-radius: .25rem;
}

.at-single-medicine-back:hover {
    text-decoration: none;
    color: #FFF;
}

.at-admin-edit-link-container {
    text-align: center;
    margin: 32px 0;
}

.at-admin-edit-link-container a {
    text-align: center;
    font-size: 1.8rem;
    color: #FFF;
    background: var(--at-main-color);
    padding: 10px 15px;
    border-radius: 5px;
}

/* med_teach_paper page */
.at-med-teach-page-title {
    text-align: center;
    margin: 32px 0;
    font-weight: bold;
}

.at-med-teach-list-area {
    max-width: 700px;
    margin: auto;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px #d6d5d5;
}

.at-med-teach-list-item-area {
    margin-bottom: 3px;
    padding: 0 2px;
}

.at-med-teach-list-item {
    text-align: center;
    width: 100%;
    background: #f9f9f9;
    height: 100%;
    border-radius: 5px;
    overflow: hidden;
}

.at-med-teach-list-item a {
    width: 100%;
    display: block;
    padding: 5px;
}

.at-med-teach-list-item a:hover {
    background: var(--at-second-color);
    color: #FFF;
    text-decoration: none;
    transition: none;
}

.at-med-download-section {
    margin-bottom: 20px;
}

.at-med-download-area-title {
    font-weight: bold;
    margin-bottom: 3px;
}

.at-med-download-table {
    width: 100%;
    margin-top: 0;
}

.at-med-download-table tr th {
    background: var(--at-main-color);
    color: #FFF;
    text-align: center;
    padding: 8px 0;
    border: 1px solid #FFF;
}

.at-med-download-table tr th:first-child {
    width: 20%;
}

.at-med-download-table tr th:nth-child(2) {
    width: 40%;
}

.at-med-download-table tr td {
    border: 1px solid var(--at-main-color);
    padding: 10px;
    text-align: center;
}

.at-med-download-table tr td a i {
    font-size: 1.3rem;
}

.at-med-download-table-news tr td:first-child {
    width: 20%;
}

.at-med-download-table-news tr td:nth-child(2) {
    text-align: left;
}

/* at-med-use-paper */
.at-med-use-paper {
    text-align: center;
    margin-top: 20px;
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
}

.at-med-use-paper a {
    background: var(--at-main-color);
    color: #FFF;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
}

.at-home-contact-info {
    border: 3px dotted var(--at-main-color);
    margin-top: 32px;
    padding: 10px;
}

.at-home-contact-info p {
    margin-bottom: 0;
}