﻿@media screen and (min-width: 768px) {
    .d-phone {
        display: none;
    }

    .phone {
        width: 95vw;
    }

        .phone .phonecontent {
            width: calc(95vw - 30px);
        }
}

@media screen and (max-width: 767px) {
    .d-pc {
        display: none
    }
}



.notreadcardcontent {
    background-color: #eaa;
    overflow: hidden;
}

.notreadcardfooter {
    background-color: #d99;
    overflow: hidden;
}

.readcardcontent {
    background-color: whitesmoke;
    overflow: hidden;
}

.readcardfooter {
    background-color: #dfdfdf;
    overflow: hidden;
}




.dialogclass {
    background: white;
    max-width: 100vw;
    border-radius: 20px;
    border: none !important;
    box-shadow: 0 5px 30px 0 rgb(0 0 0 / 30%);
    animation: fadeIn 1s ease both;
}

    .dialogclass::backdrop {
        animation: fadeIn 1s ease both;
        background: rgb(255 255 255 / 40%);
        z-index: 2;
        backdrop-filter: blur(20px);
    }

    .dialogclass .x {
        cursor: default;
        margin-left: -2rem;
        margin-bottom: -2rem;
        z-index: 3;
    }

.dialogimage {
    height: 90vh;
    width: 90vw;
    object-fit: scale-down;
}

.imgtextcenterbottom {
    position: absolute;
    bottom: 0%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
}

.dialogcontainer {
    height: 90vh;
    width: 90vw;
}

    .dialogcontainer .phone {
        width: 340px;
        height: 600px;
        border-radius: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: black;
        box-shadow: 10px 10px 14px gray;
        margin-top: 30px;
    }

        .dialogcontainer .phone .phonecontent {
            width: 310px;
            height: 570px;
            border-radius: 20px;
            background-color: #eaeaea;
            overflow: hidden;
        }

    .dialogcontainer .dialogphonecontainer {
        height: calc((90vh - ((90vh - 650px)/2)));
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dialogcontainer .phone .phonenavbar {
        padding: 12px 1rem;
        background-color: #bbb
    }

.arrow {
    border: solid black;
    border-width: 0 3px 3px 0;
    display: inline-block;
    padding: 3px;
}

.right {
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

.left {
    transform: rotate(135deg);
    -webkit-transform: rotate(135deg);
}

.textnavy {
    color:navy;
}

.textdeeppink {
    color:deeppink;
}

.mr-2 {
    margin-right:8px;
}

.ml-2 {
    margin-left:8px;
}

.text-sm {
    font-size:12px;
}


/* 燈箱樣式 */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 10px; /* 增加內邊距，避免圖片緊貼邊緣 */
    box-sizing: border-box;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    border: 5px solid #fff;
    border-radius: 5px;
    object-fit: contain; /* 保持圖片比例並填充 */
    min-width: 50%; /* 設定最小寬度，防止圖片太小 */
    min-height: 50%; /* 設定最小高度，防止圖片太小 */
    background-color: black;
}

/* 在小螢幕上調整燈箱圖片大小 */
@media (max-width: 768px) {
    .lightbox {
        padding: 5px; /* 減少內邊距以最大化顯示空間 */
    }

    .lightbox-image {
        max-width: 95%; /* 確保圖片不會超過螢幕寬度 */
        max-height: 95%; /* 確保圖片不會超過螢幕高度 */
        border: 3px solid #fff; /* 在小螢幕上減少邊框厚度 */
        min-width: 60%; /* 保證圖片最小顯示為60%寬度 */
        min-height: 60%; /* 保證圖片最小顯示為60%高度 */
        background-color: black;
    }
}

