﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */
.container main {
    margin-bottom: 120px;
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

    a.navbar-brand .sub-title {
        color: #f00;
        font-weight: bold;
        margin: auto;
        width: 50%;
        padding: 0;
        letter-spacing: 1px;
        font-family: 'Noto Sans TC';
    }

    a.navbar-brand img {
        max-height: 90px;
    }

        a.navbar-brand img.hide {
            display: none;
        }

@media (max-width: 768px) {
    a .navbar-brand img {
        max-height: 64px;
    }

        a.navbar-brand img.hide {
            display: unset;
        }
}

.text-content p {
    text-indent: -2rem;
    margin-left: 2rem;
}

    .text-content p span {
        text-indent: 0;
    }
/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.home {
}

    .home img {
        max-width: 60%;
    }

        .home img.menu {
            margin: 8px 0 12px 0;
            max-width: 96px;
        }

    .home .full {
    }

    .home .mobile {
        display: none;
    }

header .nav-link {
    margin: 2px;
    border: 1px solid #ccc;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

header .nav-pills .nav-link.active,
header .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    border-top: 30px solid #3c4268;
    box-shadow: 0 .25rem .75rem #3c4268;
    /*border-bottom: 20px solid #3c4268;*/
    /*box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);*/
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    margin-bottom: 60px;
}

.footer {
    font-size: 1rem;
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
    background-color: #3c4268;
}

    .footer .pb-3 {
        padding-top: 1rem;
    }

    .footer .footer-content {
        color: #fff;
    }

        .footer .footer-content div {
            float: left;
            line-height: 24px;
        }

        .footer .footer-content .title {
            font-size: 1.4rem;
            font-weight: 900;
        }

        .footer .footer-content a,
        .footer .footer-content a:hover {
            color: #fff;
            font-weight: 600;
        }

        .footer .footer-content img {
            max-width: 60px;
        }

        .footer .footer-content .txt-pd-10 {
            padding-top: 0.6rem;
        }

@media (max-width: 768px) {
    .container main {
        margin-bottom: 280px;
    }

    .footer .footer-content {
        min-width: 240px;
        padding: 6px 3px;
    }

        .footer .footer-content img {
            max-width: 40px;
        }

        .footer .footer-content .txt-pd-10 {
            padding-top: 0;
        }
}

.back-to-top {
    display: block;
    position: fixed;
    bottom: 2em;
    right: 0px;
    text-decoration: none;
    color: #000000;
    background-color: rgba(235, 235, 235, 0.80);
    font-size: 12px;
    padding: 1em;
}

    .back-to-top:hover {
        background-color: rgba(135, 135, 135, 0.50);
        text-decoration: none;
        color: #ffffff;
    }

/* News */
.media {
    padding: 10px 5px;
    border-bottom: 1px dashed #808080;
}

    .media img,
    .media-body img {
        max-height: 80px;
    }

.media-icon {
    width: 80px;
    text-align: center;
}

    .media-icon img {
        max-width: 90%;
    }

.media-body h6 {
    float: right;
}

.news-detail .news-content {
    text-indent: 2rem;
}

@media (min-width: 768px) {
    .news-detail .news-content img.col-md-float-right {
        float: right;
        width: 50%;
    }
}

.news-detail img {
    max-width: 100%;
}

.highlights img {
    max-width: 100%;
}

@media (max-width: 768px) {
    .media img, .media-body img {
        max-height: 80px;
    }

    .media-icon {
        display: none;
    }

    .home {
    }

        .home .full {
            display: none;
        }

        .home .mobile {
            display: inherit;
        }

        .home img {
            max-width: 90%;
        }

            .home img.menu {
                max-width: 64px;
            }
}
/* info */
.info {
}

    .info img {
        max-width: 100%;
    }

    .info td {
        padding: 3px 5px;
        max-width: 480px;
    }

/* apply */
.apply {
}

    .apply img {
        max-width: 100%;
    }

    .apply td {
        padding: 3px 5px;
        max-width: 480px;
    }
/* video */
.video-wrapper {
    position: relative;
    margin-bottom: 10px;
    /*padding-bottom: 56.25%;*/
    padding-bottom: 46%;
    overflow: hidden;
}

    .video-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

.pic-wrapper img {
    margin: 6px auto;
}
/* traffic */
.traffic .card-body iframe {
    border: 0;
    width: 100%;
    min-height: 360px;
}

td.silver {
    background-color: silver;
}

td.yellow {
    background-color: yellow;
}