﻿
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: #EAE7DC; /* 莫蘭迪淡灰 */
}

.circle-btn {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #ffa07a;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    color: white;
    font-size: 16px;
    text-align: center;
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.row-custom {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.navbar-brand img {
    height: 50px;
}
/* 通用-控制可視範圍 */
@media (min-width: 992px) and (max-width: 1199px) {
    .invisible-only-ipad {
        display: none;
    }
}

@media (min-width: 992px) {
    .visible-ipad {
        display: none;
    }

    .visible-pc {
        display: inline-block;
    }
}

@media (max-width: 991px) {
    .visible-ipad {
        display: block;
    }

    .visible-pc {
        display: none;
    }

    .mt-xs-0 {
        margin-top: 0;
    }

    #content {
        top: 50px;
    }
}

@media (min-width: 768px) {
    .visible-only-mobile {
        display: none;
    }

    .visible-only-desktop {
        display: inline-block;
    }
}

@media (max-width: 767px) {
    .visible-only-mobile {
        display: inline-block;
    }

    .visible-only-desktop {
        display: none;
    }

    #content {
        top: 50px;
    }
}
/* header */
.my-navbar {
    background: #fff;
    border-bottom: 1px solid #ccc;
    max-height: 66px;
}

    .my-navbar .navbar-brand {
        margin-right: 0;
        max-width: 240px;
    }

        .my-navbar .navbar-brand img {
            width: 100%;
            height: auto;
            max-width: 240px;
        }

    .my-navbar .navbar-linktext {
        text-decoration: none;
        color: #333;
        border-left: 1px solid #787878;
        padding-left: 10px;
        margin-left: 10px;
        font-weight: bold;
    }

.my-navbar-nav {
    font-size: 14px;
}

    .my-navbar-nav .nav-item .nav-link img {
        height: 16px;
        width: auto;
        margin-right: 2px;
        vertical-align: text-top;
    }

.my-navbar .navbar-toggler img {
    height: 30px;
    width: auto;
    padding: 4px 0;
}

.my-navbar-nav .nav-item .nav-link {
    position: relative;
}

.my-navbar-nav .header-menu-dropdown {
    display: none;
    position: absolute;
    top: 42px;
    left: 0;
    padding: 10px 12px;
    background: #d6f5f7;
    color: #221e1f;
    z-index: 999;
    box-shadow: 1px 1px 1px rgba(51, 51, 51, 0.2);
    line-height: 2.2;
    border: 0;
    white-space: nowrap;
}

.my-navbar-nav .nav-item .nav-link:hover .header-menu-dropdown {
    display: block;
}

    .my-navbar-nav .nav-item .nav-link:hover .header-menu-dropdown:before {
        content: "";
        width: 0;
        height: 0;
        border-width: 13px;
        border-style: solid;
        border-color: transparent transparent #d6f5f7 transparent;
        position: absolute;
        top: -26px;
        left: 40px;
        z-index: 998;
    }

@media (max-width: 991px) {
    .navbar-collapse {
        background: #fff;
        margin: 10px -12px -8px -12px;
        border-top: 1px solid #ccc;
        z-index: 1;
    }

        .navbar-collapse .nav-item + .nav-item {
            border-top: 1px solid #ccc;
        }

        .navbar-collapse .my-navbar-nav > .nav-item:last-child {
            border-bottom: 1px solid #ccc;
            box-shadow: 5px 5px 10px rgba(51, 51, 51, 0.08);
        }

        .navbar-collapse .nav-link {
            padding: 15px 12px;
            font-size: 16px;
        }

    .my-navbar-nav .nav-item .nav-link img {
        position: relative;
        bottom: -1px;
    }

    .my-navbar-nav .nav-item .nav-link:hover .header-menu-dropdown {
        display: none;
    }

        .my-navbar-nav .nav-item .nav-link:hover .header-menu-dropdown:before {
            content: none;
        }
}

@media (max-width: 768px) {
    .my-navbar {
        width: 100%;
        position: fixed;
        top: 0;
        z-index: 1000;
    }

        .my-navbar .navbar-brand,
        .my-navbar .navbar-brand img {
            max-width: 300px;
        }

    .my-navbar-nav {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

        .my-navbar-nav .nav-item .nav-link {
            font-size: 18px;
            padding: 10px 15px;
        }

    .navbar-toggler {
        margin-right: 15px;
    }
}

/*相機設置*/


.camera-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.video-wrapper {
    position: relative;
    width: 480px;
    height: 360px;
    background-color: #D8C3A5; /* 莫蘭迪米色 */
    overflow: hidden;
}

.video-border {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 240px;
    border: 2px dashed #A8B2C1; /* 莫蘭迪藍 */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A8B2C1; /* 莫蘭迪藍 */
    font-size: 14px;
    text-align: center;
    z-index: 2;
}

.custom-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持比例并裁剪超出部分 */
    z-index: 1;
}

.btn-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
    transition: background-color 0.3s, border-color 0.3s;
}

.controls {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.btn-primary {
    background-color: #A8B2C1; /* 莫蘭迪藍 */
    border-color: #A8B2C1;
}

    .btn-primary:hover {
        background-color: #8799AF; /* 悬停时的莫蘭迪藍 */
        border-color: #8799AF;
    }

.btn-secondary {
    background-color: #C8C2B4; /* 莫蘭迪灰 */
    border-color: #C8C2B4;
}

    .btn-secondary:hover {
        background-color: #B0AFA6; /* 悬停时的莫蘭迪灰 */
        border-color: #B0AFA6;
    }

.navbar {
    background-color: #8E8D8A; /* 莫蘭迪褐色 */
}

.navbar-brand {
    color: #EAE7DC;
}

    .navbar-brand img {
        height: 50px;
    }

.slider {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 100px;
    height: 360px;
    background-color: rgba(255, 255, 255, 0.7);
    z-index: 3;
}

    .slider input[type="range"] {
        writing-mode: vertical-rl; /* 垂直排列 */
        -webkit-appearance: slider-vertical; /* 适用于 Webkit */
        width: 8px;
        height: 100%;
    }