/* style.css */
* {
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* Internet Explorer/Edge */
    user-select: none; /* Standard syntax */
}

/* navbar */
/* Hamburger menu style */
.navbar {
    font-family: 'Almendra';
    text-align: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(249, 249, 249, 0.801);
    transition: top 0.3s;
}

.navbar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
}

@media (max-width: 991px) {
    .navbar-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        padding: 10px 15px;
        min-height: 70px;
    }
    
    .logo-container {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: 6.5px;
    }
    
    .navbar-toggler {
        margin-left: auto;
        order: 2;
    }
    
    .logo-responsive {
        height: 50px;
        width: auto;
    }
}

.logo-responsive {
    max-width: clamp(0px, 45vw, 190px);
    height: clamp(30px, 7vw, 40px);
    width: auto;
    object-fit: contain;
}


.navbar-toggler {
    margin-left: auto;
    order: 2;
    padding: clamp(4px, 1.2vw, 8px) clamp(6px, 1.8vw, 12px);
    font-size: clamp(12px, 3.5vw, 16px);
}


.navbar-toggler-icon {
    width: clamp(16px, 6vw, 22px);
    height: clamp(16px, 6vw, 22px);
    background-size: clamp(16px, 4vw, 22px);
}

.navbar-collapse {
    order: 3;
}

.nav-item.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-item.dropdown .dropdown-arrow::after {
    display: none !important;
}

.nav-item.dropdown .dropdown-arrow i {
    font-size: 10px;
    transform: translate(-8px, -1px);
}

@media (max-width: 991px) {
    .nav-item.dropdown {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-item.dropdown .nav-link:first-child {
        width: 100%;
        padding: 8px 12px;
    }
    
    .nav-item.dropdown .dropdown-arrow {
        position: absolute;
        right: 10px;
        top: 8px;
        padding: 8px;
    }

    .nav-item.dropdown .dropdown-arrow i {
        font-size: 10px;
        transform: translateY(-11px);
        line-height: 1;
    }
    
    .navbar-nav .dropdown-menu {
        width: 100%;
    }
}

/* Add scrolling functionality to dropdown menus below 991px */
@media (max-width: 991px) {
    .navbar-collapse {
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .navbar-nav {
        max-height: 100%;
        overflow-y: auto;
    }
    
    .dropdown-menu {
        position: static !important;
        float: none;
        border: none;
        box-shadow: none;
        background-color: transparent !important;
    }

    .dropdown-toggle {
        font-size: 17px;
    }
    
    .dropdown-item {
        padding: 4px 8px;
        font-size: 15px;
        text-align: center;
    }
    
    .navbar-collapse::-webkit-scrollbar {
        width: 6px;
    }
    
    .navbar-collapse::-webkit-scrollbar-thumb {
        background-color: rgba(0,0,0,0.2);
        border-radius: 3px;
    }
}

/* logo & navbar */
/* The logo is centered and the tilte is centered below the logo when larger than 991px */
@media (min-width: 991px) {
    .navbar {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        padding: 15px 0;
    }
}
@media (min-width: 1090px) {
    .navbar-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        position: relative;
    }
    .logo-container {
        text-align: center;
        width: 100%;
    }
    .logo-responsive {
        height: 60px;
        width: auto;
    }
    .navbar-nav {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }
    .nav-item {
        margin: 0 10px;
    }
    .nav-link {
        color: #333;
        font-weight: 500;
        transition: color 0.3s;
    }
    .nav-link:hover {
        color: #d4a373;
    }
    .dropdown-menu {
        border: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
}
/* The logo is centered and the tilte is centered below the logo when larger than 991px */

.logo-responsive {
    width: 90%;
    height: auto;
}
@media(max-width: 991px) {
    .logo-responsive {
        width: 80%;
        height: auto;
    }
}
@media(max-width: 480px) {
    .logo-responsive {
        width: 70%;
        height: auto;
    }
}

/* navbar */
.navbar.hidden {
    top: -120px;
}
.navbar-toggler {
    border: none;
    box-shadow: none !important;
}
.navbar img {
    height: auto;
    width: 200px;
}
.dropdown-menu {
    margin-top: -0.4rem !important;
}
.dropdown-item {
    text-align: center;
    padding: 0.15rem;
}
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    z-index: 1;
}
.nav-item.dropdown:hover .dropdown-content {
    display: block;
}
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}


.dropdown-menu, .dropdown-menu a, .dropdown-item {
    background-color: #f9f9f9e3; 
    border: none !important;
}

@media(max-width: 991px) {
    .dropdown-menu, .dropdown-menu a, .dropdown-item { background-color: transparent !important; }
}

.dropdown-item:hover {
    background-color: #f1f1f1 !important;
}

/* homepage */
.homepage-image {
    text-align: center;
}
h1 {
    font-family:  Almendra;
    text-align: center;
    font-size: 32px;
    margin: 20px 0;
}
h3 {
    text-align: center;
    font-size: 26px;
}
h4 {
    text-align: center;
    font-size: 23px;
}
h5 {
    font-size: 20px;
}
p {
    font-size: 18px;
}
.right-content { 
    text-align: right;
}
body {
    font-family:  Almendra;
    /* font-family: Arial, sans-serif; */
    line-height: 1.6;
    padding: 20px;
    background-color: #f9f9f9;
    padding-top: 150px;
}
.row p {
    font-size: 1.2em;
}
@media(max-width: 991px) {
    body { font-size: 16px; padding-top: 100px;}
    .container { padding: 20px 90px; }
    h1 { font-size: 27px; }
    h3 { font-size: 22px; }
    h5 { font-size: 17px; }
    p { font-size: 20px; }
    .row p { font-size: 1.1em; }
}
@media(max-width:480px) {
    body { font-size: 16px; padding-top: 90px;}
    .container { padding: 10px 50px; }
    h1 { font-size: 20px; }
    h3 { font-size: 16px; }
    h5 { font-size: 13px; }
    p { font-size: 15px; }
    .row p { font-size: 1em; }
}

/* breadcrumb */
.breadcrumb {
    font-size: 0.9em;
    color: #666;
}

.breadcrumb a {
    color: #333;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* edit table */
.container {
    font-family:  Almendra;
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #f9f9f9;
}

/* message & alert */
.flash-message {
    color: red;
    text-align: center;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
}
body .alert {
    color: red;
    text-align: center;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    padding: .75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: .25rem;
}

/* 404image */
.img-responsive {
    max-width: 100%;
    height: auto;
}

/* folder page video */
.container-folder-videos {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 60% = 5:3 比例 (3 / 5 * 100) */
}
iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none !important;
}
/* folder page image */
.container-folder-images {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 10px;
    border: none !important;
}
@media only screen and (max-width: 991px) {
    .container-folder-images {
        padding: 0;
    }
}
@media only screen and (max-width: 480px) {
    .container-folder-images {
        padding: 0;
    }
}
.openModalBtn {
    border: none;
    outline: none;
}

/* sz10000 window */
/* cursor = mouse diagram */
.modal {
    z-index: 999;
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    text-align: center;
}
.modal-content {
    cursor: grab;
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 95%;
    max-width: 90vw;
    text-align: center;
    position: relative;
}
.close {
    position: absolute;
    top: -10px;
    right: 5px;
    cursor: pointer;
    font-size: 30px;
}
.fa-chevron-left,
.fa-chevron-right {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
}
.fa-chevron-left {
  left: 5px;
}
.fa-chevron-right {
  right: 5px;
}
/* last page & next page image  */


/* folder page image sz10000 pagination */
/* .pagination {
    display: flex;
    justify-content: space-between;
    width: 100%;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
}

.pagination-left {
    margin-left: 1.5%;
}
@media(max-width: 991px) {
    .pagination-left { padding: 0%; }
}

.pagination-right {
    margin-right: 1.5%;
}
@media(max-width: 991px) {
    .pagination-right { padding: 0%; }
}

.container-folder-images-sz10000 {
    padding: 3%;
}
@media(max-width: 991px) {
    .container-folder-images-sz10000 { padding: 4%; }
}
.container-folder-images-sz10000 img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    text-align: center;
}
.arrow-left {
position: absolute;
top: 10px;
right: 10px;
} */

/* manage page */
.container-manage {
    font-family:  Almendra;
    font-size: 20px;
    margin: 0 10%;
    display: block;
}
.container-manage a {
    color: black;
    }

/* contact us */
.container-contact {
    font-family:  Almendra;
    display: flex;
    margin: 0 10%;
}
.contact-item {
    width: 50%;
    color: black;
}
.contact-item * {
    color: inherit;
    text-decoration: none;
}
.info-container {
    display: flex;
    align-items: center;
}

.icon-info {
    display: flex;
    align-items: center;
}

.icon-info .icon {
    margin-right: 10px;
}

.info-wrapper {
    display: flex;
    flex-direction: column;
}

.info-title {
    margin-right: 12px;
}

.info-info {
    white-space: nowrap;
}
.contact-item i,
.form i {
    font-size: 38px;
    color: black;
}
@media(max-width: 991px) {
    .contact-item i,.form i { font-size: 35px; }
}
@media(max-width: 480px) {
    .contact-item i,.form i { font-size: 31px; }
}
.contact-item img,
.form img {
    max-width: 49px;
    height: auto;
}
@media(max-width: 991px) {
    .contact-item img,.form img {
        max-width: 45px;
        height: auto;
    }
}
@media(max-width: 480px) {
    .contact-item img,.form img {
        max-width: 39px;
        height: auto;
    }
}

/* contact us form */
.form {
    width: 50%;
}
.form label {
    display: block;
    margin-bottom: 5px;
}
.form input[type="text"]{
    border: none;
    border-bottom: 1px solid #ccc;
    margin-bottom: 10px;
    padding: 5px;
}
.checkbox-container {
    display: flex;
    align-items: center;
}
.checkbox-container input[type="checkbox"] {
    margin-right: 5px;
}
@media (max-width: 991px) {
    .container-contact {
        flex-direction: column;
        margin: 0;
    }
    .form, .contact-item {
        width: 100%;
    }
}

/* create page form */
input[type="text"],
input[type="text"],
input[type="password"],
input[type="tel"],
input[type="mail"],
textarea,
select {
    width: 100%;
    padding: 8px;
    margin: 5px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
    border-radius: 4px;
}

button[type="submit"] {
    background-color: #8bc6e9;
    color: white;
    padding: 10px 15px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

button[type="submit"]:hover {
    background-color: #62a1c5;
}

input[type="submit"] {
    background-color: #b8b7b7;
    color: white;
    padding: 10px 15px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

input[type="submit"]:hover {
    background-color: #808080;
}

.img-contact-logo {
    max-width: 100px;
    max-height: 100px;
}

.edit-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #debb8cb6;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
}

.edit-button:hover {
    background-color: #debb8ce2;
}

.right-align {
    text-align: right;
}

label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
}

/* Caroupic 
.splide__slide img {
    width: 100%;
    height: auto;
}*/

 /* Caroupic pro */
.glide__slide img {
    max-width: 100%;
    height: auto;
}

/* Related info */
.related-info-container {
    border: 1px solid #ccc;
    padding: 10px;
    margin: 20px 0;
}
.random-image {
    display: flex;
    justify-content: center;
}
.random-image a {
    position: relative;
    flex: 1;
    width: 20%;
    padding-bottom: 20%; /* Create a 1:1 aspect ratio (square) */
    margin: 0 5px; /* Add spacing between images */
    overflow: hidden;
}
.random-image img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensure images maintain aspect ratio and cover the container */
    transition: transform 0.3s;
}
.random-image .hover-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
    justify-content: center;
    align-items: center;
}
.random-image a:hover .hover-content {
    display: flex;
}

/* back to top button */
#back-to-top-btn {
    z-index: 998;
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    font-size: 26px;
    width: 50px;
    height: 50px;
    color: #000000c3;
    cursor: pointer;
    outline: none;
    border:  rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    transition-duration: 0.2s;
    transition-timing-function: ease-in-out;
    transition-property: background-color, color;
    background-color: rgba(255, 255, 255, 0.5);
}
#back-to-top-btn:hover, #back-to-top-btn:focus {
    background-color: rgba(0, 0, 0, 0.2);
    color: #fff;  
}
@media(max-width: 991px) {
    #back-to-top-btn { font-size: 22px; width: 40px; height: 40px; bottom: 15px; right: 15px; }
}
@media(max-width:480px) {
    #back-to-top-btn { font-size: 18px; width: 32px; height: 32px; bottom: 6px; right: 6px; }
}
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
/* html {
scroll-behavior: smooth;
} */

/* Animations */
.btnEntrance {
    animation-duration: 0.5s;
    animation-fill-mode: both;
    animation-name: btnEntrance;
}
/* zoomIn */
/* @keyframes btnEntrance { 
from {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
}
to {
    opacity: 1;
}    
} */

/* fadeInUp */
@keyframes btnEntrance {
from {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
}
to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}
}

.btnExit {
    animation-duration: 0.25s;
    animation-fill-mode: both;  
    animation-name: btnExit;
}
/* zoomOut */
/* @keyframes btnExit {
from {
    opacity: 1;
}
to {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
}
} */

/* fadeOutDown */
@keyframes btnExit {
from {
    opacity: 1;
}
to {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
}
}
/* contact button */
.floating-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    /* background-color: #fff; */
    color: #000000c3;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 998;
    /* border: 3px solid #000000c3; */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    background-color: rgba(255, 255, 255, 0.5);
}
.floating-button:hover, .floating-button:focus {
    background-color: rgba(0, 0, 0, 0.2);
    color: #fff;  
}
.floating-button i {
    font-size: 30px;
    pointer-events: auto;
}
.icon {
    font-size: 50px;
    pointer-events: none;
}
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 997;
    display: none;
}

.overlay.active {
    display: block;
}

/* contact window  */
.options {
    z-index: 998;
    position: fixed;
    bottom: 80px;
    right: 8px;
    border-radius: 10px;
    display: none;
    /* border: 2px solid #000; */
    padding: 10px;
    /* background-color: #ffffffcb; */
    text-align: center;
}
.options a {
    z-index: 998;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    /* border: 2px solid #000; */
    border-radius: 50%;
    padding: 10px;
    margin-right: 6px;
    background-color: #ffffffd5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
    text-decoration: none;
    color: inherit;
}
.options a:hover, .options a:focus {
    background-color: rgba(0, 0, 0, 0.2);
}
.options i {
    z-index: 998;
    font-size: 30px;
    color: #000000c3;
    
}
.options a:hover i, .options a:focus i {
    color: #fff;
}
.options i:hover, .options i:focus {
    color: #fff;  
}
.options img {
    width: 60px;
    height: 60px;
}
@media only screen and (max-width: 480px) {
    .floating-button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    .floating-button i {
        font-size: 21px;
    }
    .icon {
        font-size: 20px;
    }
    .options a {
        padding: 6px;
    }
    .options {
        bottom: 60px;
    }
    .options i {
        font-size: 20px;
    }
}

/* footer */
.footer {
    font-family:  Almendra;
    color: #000000;
    text-align: center;
}
.footer p {
    font-size: 16px;
}
@media(max-width: 991px) {
    .footer p { font-size: 14px; }
}
@media(max-width:480px) {
    .footer p { font-size: 12px; }
}
.footer i {
    color: #000000;
    font-size: 24px
}
@media(max-width: 991px) {
    .footer i { font-size: 22px; }
}
@media(max-width:480px) {
    .footer i { font-size: 20px; }
}
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-header h1 {
    flex: 1;
    text-align: center;
    margin: 0;
}

.nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    font-size: 24px;
    padding: 10px;
    transition: color 0.3s ease;
}

.nav-arrow:hover {
    color: #d4a373;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-header h1 {
    flex: 1;
    text-align: center;
    margin: 0;
}

.nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #333;
    font-size: 24px;
    padding: 10px;
    transition: color 0.3s ease;
}

.nav-arrow:hover {
    color: #d4a373;
}

@media (max-width: 768px) {
    .page-header {
        gap: 15px;
        padding: 0 15px;
    }
    
    .nav-arrow {
        font-size: 20px;
        padding: 8px;
    }
}