﻿body {
    font-family: 微軟正黑體 !important;
    margin-top:60px;
}

/*hide*/
.mb-hide, .mb-hide2 {
    display: none;
}
.pc-hide {
    display: block;
}
.tr-ihide, .div-hide {
    display: none;
}
.div-open-btn {
    line-height: 1rem;
    font-size: 1rem;
    padding-top: 0.5rem;
}
.div-tt {
    line-height: 1rem;
    background: linear-gradient(to bottom, #f1f1f1, #FEFEFE);
    font-size: 1rem;
    padding-top: 0.5rem;
    border-bottom-left-radius: 0.25rem;
    border-bottom-right-radius: 0.25rem;
}
.pc-inline{
    display:block;
}
.min-vh-50{
    min-height:50vh;
}
@media (min-width : 992px) { /*lg*/
    .modal-dialog-scrollable {
        max-width: 900px;
    }
    .mb-hide{
        display:block;
    }
    .mb-hide2{
        display:inline-block;
    }
    .pc-hide {
        display: none;
    }
    .div-hide {
        display: flex;
    }
    .div-open-btn{
        display:none;
    }
    .pc-inline {
        display: inline-block;
        padding-left:.5rem;
    }
    .text-info {
        display: inline-block;
        margin:0px .25rem;
    }
    .btn-qlink {
        width: 100%;
    }
    .w-lg-50{
        width:50% !important;
    }
}
@media (min-width : 768px) { /*md*/
    .bg-dark:hover {
        background-color: rgba(var(--bs-dark-rgb),0.8) !important;
    }
    .side-banner:hover {
        opacity: 0.7;
        transform: scale(1.025);
    }
    .btn-qlink:hover {
        background-color: #90f7dc;
        transform: scale(1.025);
    }
    .btn-top:hover {
        transform: scale(1.025);
    }
    .list-group-item:hover, .accordion-button:hover {
        font-weight: 600;
    }
        .list-group-item:hover::after {
            font-family: "Font Awesome 5 Free";
            content: " \f245";
        }
    .clickable-div:hover{
        cursor:pointer;
    }
    .clickable-div:hover strong {
        color: #24AC8C;
    }
    .alert-light:hover, .clickable-row:hover{
        cursor: pointer;
    }
    .alert-light:hover, .table-striped .clickable-row:hover {
        transform: scale(1.005);
    }
    .h-md-75{
        height:75%;
    }
    .h-md-85vh {
        height: 85vh;
    }
    .w-md-25{
        width:25%!important;
    }
}
/*Theme*/

.bg-tiffany {
    --bs-bg-opacity: 1;
    background-color: rgba(43,206,167,1) !important;
}
.bg-orange {
    --bs-bg-opacity: 1;
    background-color: rgba(252,101,50,1) !important;
}
.bg-tiffany-dark {
    background-color: #25b592!important;
}
    .bg-tiffany-dark .dropdown-item{
        font-weight:700;
    }

.bg-yellow {
    --bs-bg-opacity: 1;
    background-color: #fcfff2 !important;
}
.bg-yellow-about {
    --bs-bg-opacity: 1;
    background-color: #f3c733 !important;
}
.bg-red-about {
    --bs-bg-opacity: 1;
    background-color: #e96a5b !important;
}
.bg-pink {
    --bs-bg-opacity: 1;
    background-color: #fcdad5 !important;
}
.bg-purple {
    --bs-bg-opacity: 1;
    background-color: #9829dd !important;
}
.bg-skyblue-about {
    --bs-bg-opacity: 1;
    background-color: #8dcacf !important;
}

.text-tiffany {
    color: #24AC8C !important;
}
.text-red {
    color: #c92e2a !important;
}
.text-purple {
    color: #9829dd !important;
}

.table-tiffany {
    --bs-table-bg: #E5F8F3;
    --bs-table-striped-bg: #c4ffec; /*#7af7cc;*/
    --bs-table-striped-color: #000;
    --bs-table-active-bg: #bcd0c7;
    --bs-table-active-color: #000;
    --bs-table-hover-bg: #c1d6cc;
    --bs-table-hover-color: #000;
    color: #000;
    border-color: #bcd0c7;
}
.main-title {
    color: #39464F;
    font-weight: 700;
    position: sticky;
}
.title-point {
    background-color: #B8E8DC;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    position: absolute;
    margin: 10px 0px 0px -7px;
}
.point-red {
    background-color: #ffd4d4;
}

.main-title-red {
    color: #FF7070;
    font-weight: 700;
    position: sticky;
}

.text-share {
    font-size: 2rem;
}
    .text-share a {
        /*color: lightgreen;*/
    }

.btn-qlink {
    color: #43525D !important;
    background-color: #BDEDE0;
    border-radius: 3rem !important;
    font-weight: 700;
    font-size:0.9rem;
}

.btn-bd-light {
    color: #6c757d;
    border-color: #dee2e6
}

    .show > .btn-bd-light, .btn-bd-light:hover, .btn-bd-light:active {
        color: #7952b3;
        background-color: #fff;
        border-color: #7952b3;
    }

    .btn-bd-light:focus {
        box-shadow: 0 0 0 3px rgba(121,82,179,0.25);
    }

.btn-bd-primary {
    color: #0d6efd;
    border-color: #0d6efd;
}

    .btn-bd-primary:hover, .btn-bd-primary:active {
        border-color: #0d0a9d;
        cursor:pointer;
    }

    .btn-bd-primary:focus {
        box-shadow: 0 0 0 3px rgba(121,82,179,0.25)
    }

/*BottomInfo*/
.btn-top {
    color: #24AC8C !important;
    background-color: white !important;
    line-height: 10px;
    width: 5rem;
    height: 2.2rem;
    padding: 0px !important;
    font-weight: 900;
    font-size: .9rem;
    margin-top: -1.5rem;
}
.text-info {
    color: #24AC8C !important;
    background-color: white !important;
    border-radius: .5rem !important;
    padding:5px 10px;
}

/*About*/
.env-title {
    background-color:#98ECD8!important;
    width: fit-content;
    height: 2.2rem;
    font-weight: 900;
    border-radius: 50rem !important;
    margin:0 auto;
    z-index:1;
    position:absolute;
    left:0;
    right:0;
    padding: 0.25rem 1.5rem;
}
.env-block {
    background-color: white !important;
    border-radius: 1rem !important;
    margin: 0 auto;
    margin-top: 1.2rem;
    padding: 1.5rem 1rem 1rem 1rem;
}
.gmap_iframe{
    border:0;
    width:100%;
    height:25rem;
}

.loading_iframe {
    z-index: 99;
    position: absolute;
    top: 0;
    left: 0;
    background-color: white;
    height: -webkit-fill-available;
    height: -moz-fill-available;
    height: -moz-available;
    height: fill-available;
}

.full_iframe {
    width: 99%;
    max-width: 99%;
    height: 99%;
    max-height: 99%;
}

@media (min-width : 992px) {
    .gmap-lg-15 {
        height: 15rem;
    }
}

/*block*/
.block-red {
    background-color: #FFE5EA !important;
}

.block-green {
    background-color: #E5F8F3 !important;
}

.col-white {
    background-color: white;
    border: solid 1px white;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
}
.col-g-2 {
    background-color: #E5F8F3;
    border: solid 1px #E5F8F3;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
}
.col-w-2 {
    background-color: white;
    border: solid 1px white;
    border-radius: 10px;
    padding: 10px;
    margin-top:.5rem;
    margin-bottom:.5rem;
}
.col-w-2 img{
    width: 2rem;
    margin-right: .5rem;
}

.text-orange {
    color: #FC6532;
}

/*Search Button*/
.text-orange {
    color: #FC6532;
}

/*.searchbtn {
    color: rgba(43,206,167,1);
    height: 40px;
    width: -webkit-fill-available;
    width: -moz-fill-available;
    width: -moz-available;
    width: fill-available;
    border: 1px solid rgba(43,206,167,1);
    border-radius: 20px;
    padding: 5px 15px;
    text-align: left;
}*/
.searchbtn {
    color: navy;
    height: 40px;
    border: 0;
    border-radius: 30px;
    padding: 5px 15px;
    text-align: center;
    font-size: 18px;
    background-image: linear-gradient(144deg, rgb(57 119 211), rgba(43, 206, 167, 1) 50%, #00DDEB);
    font-weight: 700;
}

    .searchbtn:hover {
        /*color: rgba(43,206,167,1);*/        
        color: white;
    }

.searchbar {
    border-radius: 50rem !important;
    border:0px;
}

/*pills*/
.nav-link {
    width: 90% !important;
}

.pills-green .nav-link {
    color: #5BCEB0 !important;
    background-color: #BDEDE0;
    border-radius: 3rem !important;
}

    .pills-green .nav-link.active, .pills-green .show > .nav-link {
        color: #43525D !important;
        background-color: white;
        border-radius: 3rem !important;
    }

.pills-g-2 .nav-link {
    color: #5BCEB0 !important;
    background-color: #BDEDE0;
    border-radius: 3rem !important;
}
    .pills-g-2 .nav-link.active, .pills-g-2 .show > .nav-link {
        color: #43525D !important;
        background-color: #41C7A4;
        border-radius: 3rem !important;
    }

/*card*/
.card .card-title {
    font-weight: 700 !important;
}

.card-img {
    height: 120px;
    opacity: .4;
}


    .card-img.error {
        display: inline-block;
        transform: scale(1);
        content: '';
        color: transparent;
    }

        .card-img.error::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background: inherit;
        }

@media (min-width : 500px) {
    .card-img {
        height: auto;
        min-height:120px;
    }
}

/*navBar*/

@media (min-width : 992px) {
    .offcanvas {
        visibility: visible;
        /*position: absolute;*/
        left: 0;
        background: none;
        border: none;
        justify-content: flex-end;
        /*color: red;*/
    }
}


.offcanvas {
    width: 250px !important;
}

.navbar-brand {
    float: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.nav-link {
    font-weight: 700;
}

.navbar-nav li a {
    color: white !important;
}

/*class_join table*/
.table-width {
    width: max-content;
}
@media (min-width : 400px) {
    .table-width {
        width: -webkit-fill-available;
        width: -moz-fill-available;
        width: -moz-available;
        width: fill-available;
    }
}

.form-label{
    margin-bottom:0px;
    margin-top:0.2rem;
}


/*callout*/
.bd-callout {
    padding: .5rem;
    margin-top: .25rem;
    margin-bottom: .25rem;
    border: 1px solid #e9ecef;
    border-left-width: 0.25rem;
    border-radius: 0.25rem;
}
.bd-callout-info {
    border-left-color: #5bc0de;
}
.bd-callout-warning {
    border-left-color: #f0ad4e;
}
.bd-callout-danger {
    border-left-color: #d9534f;
}
.bd-callout-success {
    border-left-color: #2bcea7;
}

/*tags*/

.tags {
    font-family: 微軟正黑體 !important;
    font-size: 16px;
    border: 1px;
    border-radius: 15px;
    padding: 5px 15px;
    margin: 10px 10px 5px 0px;
    line-height: 15px;
    display: inline-block;
    color: #fff;
}

    .tags.default {
        background-color: #2bcea7;
    }

    .tags.main {
        background-color: #ff6a6a;
        font-weight: 900;
    }

    .tags.mirdc {
        background-color: #304ebd;
    }

/***NTDA2025***/

.award-modal .modal-dialog {
    max-width: 650px;
}

.award-modal .modal-content {
    background: linear-gradient(135deg, #0a1128 0%, #1a2947 50%, #0a1128 100%);
    border: 3px solid #d4af37;
    border-radius: 20px;
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.4);
    position: relative;
    overflow: hidden;
}

/* 彩帶效果 */
.confetti {
    position: absolute;
    width: 10px;
    height: 30px;
    background: #d4af37;
    animation: confettiFall linear infinite;
    z-index: 1;
}

@keyframes confettiFall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0.5;
    }
}

/* 金粉效果 */
.gold-dust {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, #ffd700 0%, #d4af37 100%);
    border-radius: 50%;
    box-shadow: 0 0 6px #ffd700;
    animation: dustFloat linear infinite;
    z-index: 1;
}

@keyframes dustFloat {
    0% {
        transform: translate(0, -100vh) rotate(0deg) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
        transform: translate(var(--dust-x), calc(-100vh + 50px)) rotate(180deg) scale(1);
    }

    90% {
        opacity: 0.8;
    }

    100% {
        transform: translate(calc(var(--dust-x) * -1), 100vh) rotate(360deg) scale(0);
        opacity: 0;
    }
}

/* 閃光效果 */
.sparkle {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(255, 215, 0, 0.15) 0%, transparent 30%), radial-gradient(circle at 80% 20%, rgba(255, 215, 0, 0.15) 0%, transparent 30%), radial-gradient(circle at 30% 70%, rgba(255, 215, 0, 0.15) 0%, transparent 30%), radial-gradient(circle at 70% 80%, rgba(255, 215, 0, 0.15) 0%, transparent 30%);
    animation: sparkleMove 4s ease-in-out infinite;
}

@keyframes sparkleMove {
    0%, 100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }
}

/* Modal 內容 */
.modal-body-ntda {
    padding: 1rem 1.5rem;
    position: relative;
    z-index: 2;
}

.award-title {
    color: #d4af37;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    animation: titleGlow 2s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
    }

    50% {
        text-shadow: 0 0 30px rgba(212, 175, 55, 0.8);
    }
}

.award-subtitle {
    color: #c0c0c0;
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.trophy-container {
    text-align: center;
    margin: 1.5rem 0;
    animation: trophyEntry 1s ease-out;
}

@keyframes trophyEntry {
    0% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.trophy-container img {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(212, 175, 55, 0.6));
    animation: trophyFloat 3s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none; /* 禁止 iOS 長按選單 */
    -webkit-user-drag: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
    .trophy-container img:hover {
        animation: trophyHoverGlow 0.6s ease-in-out forwards;
    }

@keyframes trophyHoverGlow {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 10px 30px rgba(212, 175, 55, 0.6));
    }

    50% {
        transform: scale(1.5) rotateY(10deg);
        filter: drop-shadow(0 20px 50px rgba(212, 175, 55, 1)) drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
    }

    100% {
        transform: scale(1.35) rotateY(0deg);
        filter: drop-shadow(0 15px 40px rgba(212, 175, 55, 0.9)) drop-shadow(0 0 20px rgba(255, 215, 0, 0.6));
    }
}

@keyframes trophyFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }

    50% {
        transform: translateY(-15px) scale(1.2);
    }
}

.award-details {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1rem 0;
    backdrop-filter: blur(10px);
}

    .award-details h3 {
        color: #ffe05b;
        font-size: 1.2rem;
        margin-bottom: 1rem;
        text-align: center;
        border-bottom: 2px solid #ffe05b;
        padding-bottom: 0.5rem;
        font-weight: 700;
    }

.award-info-item {
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
}

.award-icon {
    color: #d4af37;
    font-size: 1.2rem;
    margin-right: 0.8rem;
    min-width: 25px;
}

.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #d4af37, transparent);
    margin: 1rem 0;
}

.close-button {
    background: linear-gradient(135deg, #d4af37 0%, #f4e5b5 100%);
    color: #1a2947;
    border: none;
    padding: 0.7rem 2.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.4);
    margin-right:10px;
}

    .close-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6);
    }
.close-button2 {
    background: transparent;
    color: #d4af37;
    border: 2px solid #d4af37;
    padding: 0.7rem 2.5rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: none;
}

    .close-button2:hover {
        background: rgba(212, 175, 55, 0.1);
        color: #f4e5b5;
        border-color: #f4e5b5;
        box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
    }
/* Modal 淡入動畫 */
.award-modal.show .modal-dialog {
    animation: modalZoomIn 0.6s ease-out;
}

@keyframes modalZoomIn {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.ribbon {
    position: absolute;
    top: 15px;
    right: -45px;
    background: linear-gradient(135deg, #d4af37 0%, #f4e5b5 100%);
    color: #1a2947;
    padding: 5px 50px;
    font-weight: bold;
    font-size: 1rem;
    transform: rotate(45deg);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

/* RWD 響應式設計 */
@media (max-width: 768px) {
    .award-modal .modal-dialog {
        max-width: 95%;
        margin: 0.5rem;
    }

    .modal-body {
        padding: 1.5rem 1rem;
    }

    .award-title {
        font-size: 1.5rem;
    }

    .award-subtitle {
        font-size: 0.95rem;
    }

    .trophy-container img {
        max-width: 150px;
    }

    .award-details {
        padding: 1rem;
    }

        .award-details h3 {
            font-size: 1.1rem;
        }

    .award-info-item {
        font-size: 0.85rem;
    }

    .close-button, .close-button2 {
        padding: 0.6rem 2rem;
        font-size: 0.9rem;
    }

    .ribbon {
        top: 14px;
        right: -40px;
        padding: 5px 45px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .award-title {
        font-size: 1.3rem;
    }

    .trophy-container img {
        max-width: 120px;
    }

    .award-info-item {
        font-size: 0.8rem;
    }
}