html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-color: #1a1a1a;
    color: #ffffff;    
}

main {
    background-image: url(/images/background.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    max-width: 100%;
}

/* 自定義暗黑模式樣式 */
[data-bs-theme="dark"] {
    --bs-body-color: #ced4da;
    --bs-body-bg: #212529;
}
    /* 自定義暗黑模式卡片樣式 */
    [data-bs-theme="dark"] .card {
        background-color: #343a40;
        border-color: #454d55;
    }

    [data-bs-theme="dark"] .card-header {
        background-color: #2c3136;
        border-color: #454d55;
    }

    [data-bs-theme="dark"] .card-text {
        color: #ced4da;
    }
/* 為不支援 data-bs-theme 的瀏覽器提供回退樣式 */
@media (prefers-color-scheme: dark) {
    body {
        color: #ced4da;
        background-color: #212529;
    }
}

@media (prefers-color-scheme: dark) {
    .card {
        background-color: #343a40 !important;
        border-color: #454d55 !important;
        color:white;
    }

    .card-header {
        background-color: #2c3136 !important;
        border-color: #454d55 !important;
    }

    .card-text {
        color: #ced4da !important;
    }

    .text-white {
        color: #ffffff !important;
    }
}


.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

.footer {
    /*position: absolute;*/
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-wrapper {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

#spinner-mask {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

#spinner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.hero-bg {
    /*position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    background-image: url('/images/background.webp');
    background-size: cover;
    background-position: center;
    filter: blur(5px);*/

    background-image: url('/images/background.webp');
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.login-container {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

    .login-container h2,
    .login-container label,
    .login-container .form-check-label,
    .login-container a,
    .login-container span {
        color: #fff;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
    }

    .login-container input[type="text"],
    .login-container input[type="password"] {
        background-color: rgba(255, 255, 255, 0.1);
        border: none;
        color: #fff;
    }

        .login-container input[type="text"]::placeholder,
        .login-container input[type="password"]::placeholder {
            color: rgba(255, 255, 255, 0.7);
        }

    .login-container .btn-primary {
        background-color: rgba(0, 123, 255, 0.7);
        border: none;
    }

        .login-container .btn-primary:hover {
            background-color: rgba(0, 123, 255, 0.9);
        }

.custom-border {
    border: 2px solid black; /* 黑色 */
    border-radius: 5px; /* 可選：圓角 */
}


/*文字特效*/
.magic_h1, .magic_h2, .magic_p, .magic_label {
    color: #000000 !important; /* 文字顏色 (黑色) */
    text-shadow: 0 0 5px #ffffff, /* 第一層，輕微模糊 */
    0 0 6px #ffffff, /* 第二層 */
    0 0 7px #ffffff, /* 第三層 */
    0 0 8px #ffffff, 0 0 9px #ffffff, 0 0 10px #ffffff, 0 0 11px #ffffff, 0 0 12px #ffffff, 0 0 13px #ffffff, 0 0 14px #ffffff, 0 0 15px #ffffff !important;
    text-align: center !important;
    font-weight:bold;
    /*padding: 20px !important;*/
}
.magic_input {
    color: #000000 !important; /* 文字顏色 (黑色) */
    text-shadow: 0 0 5px #ffffff, /* 第一層，輕微模糊 */
    0 0 6px #ffffff, /* 第二層 */
    0 0 7px #ffffff, /* 第三層 */
    0 0 8px #ffffff, 0 0 9px #ffffff, 0 0 10px #ffffff, 0 0 11px #ffffff, 0 0 12px #ffffff, 0 0 13px #ffffff, 0 0 14px #ffffff, 0 0 15px #ffffff !important;
    text-align: center !important;
    border: 1px solid black !important; /* 黑色 */
    border-radius: 5px !important; /* 可選：圓角 */
}