@font-face{
    font-family: "MHeiHK-Medium";
    src: url("../font/1cd90503ccb8043031bf87c4e45d53d7.eot");
    src: url("../font/1cd90503ccb8043031bf87c4e45d53d7.eot?#iefix")format("embedded-opentype"),
        url("../font/1cd90503ccb8043031bf87c4e45d53d7.woff")format("woff"),
        url("../font/1cd90503ccb8043031bf87c4e45d53d7.woff2")format("woff2"),
        url("../font/1cd90503ccb8043031bf87c4e45d53d7.ttf")format("truetype"),
        url("../font/1cd90503ccb8043031bf87c4e45d53d7.svg#MHeiHK-Medium")format("svg");
    font-weight:normal;
    font-style:normal;
    font-display:swap;
}
@font-face{
    font-family: "MHeiHK-Bold";
    src: url("../font/73d66a3b489aef482db11623bb5e322e.eot");
    src: url("../font/73d66a3b489aef482db11623bb5e322e.eot?#iefix")format("embedded-opentype"),
        url("../font/73d66a3b489aef482db11623bb5e322e.woff")format("woff"),
        url("../font/73d66a3b489aef482db11623bb5e322e.woff2")format("woff2"),
        url("../font/73d66a3b489aef482db11623bb5e322e.ttf")format("truetype"),
        url("../font/73d66a3b489aef482db11623bb5e322e.svg#MHeiHK-Bold")format("svg");
    font-weight:normal;
    font-style:normal;
    font-display:swap;
}
@font-face{
    font-family: "MSung HK Bold";
    src: url("../font/db7801e3a48575fe08d6e2fd0c3662ad.eot");
    src: url("../font/db7801e3a48575fe08d6e2fd0c3662ad.eot?#iefix")format("embedded-opentype"),
        url("../font/db7801e3a48575fe08d6e2fd0c3662ad.woff")format("woff"),
        url("../font/db7801e3a48575fe08d6e2fd0c3662ad.woff2")format("woff2"),
        url("../font/db7801e3a48575fe08d6e2fd0c3662ad.ttf")format("truetype"),
        url("../font/db7801e3a48575fe08d6e2fd0c3662ad.svg#MSung HK Bold")format("svg");
    font-weight:normal;
    font-style:normal;
    font-display:swap;
}
h1,h2,.h1,.h2{
    font-family: "Noto Serif TC", serif;
}
h3,h4,h5,h6,.h3,.h4,.h5,.h6{
    font-family: "Noto Serif TC", serif;
}
.mst-font{
    font-family: "MHeiHK-Medium";
    font-weight: 400!important;
}
.MSungHK-Bold{
    font-family: "MSung HK Bold";
    font-weight: 400!important;
}
 /* 右邊垂直文字容器 */
 .vertical-text-container {
    position: absolute;
    right: 20px;
    top: 30px;
    display: flex;
    flex-direction: row;
    gap: 0;
    align-items: flex-start;
    z-index: 2;
    font-weight: 600;
    letter-spacing: 2px;
}

/* 右邊垂直文字 - Fade in 效果 */
.vertical-text {
    writing-mode: vertical-rl;
    font-size: 1.4rem;
    color: #eb904a;
    background: rgb(255, 255, 255, 0.7);
    padding: 10px 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeIn 2s ease-in forwards;
    font-weight: bold!important;
}

.vertical-text:nth-child(1) {
    animation-delay: 0.5s;
}
.text-line {
    font-size: 3rem;
    color: #FFFFFF;
    
    margin: 10px 0;
    opacity: 0;
    transform: translateY(30px);
    letter-spacing: 10px;
    font-weight: 500;
}
.text-line.shadow{
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    box-shadow: none!important;
}
.large-text {
    font-size: 4.5rem;
    display: inline-block;
    line-height: 1;
}
#letter-icon .icon-title{
    font-size: 0.9rem!important;
    font-family: "Noto Serif TC", serif;
    font-weight: 500;
    margin-bottom: 5px;
}
.letter-content .h5{
    font-size: 1.2rem!important;
    font-weight: 400;
}
.main-text{
    position: absolute;
    left: 20px;
    z-index: 1;
    bottom:20px;
}
.envelope-container.active{
    display: block;
    min-height: 300px;
}
/* RESTART Button Styles */
.restart-button-container {
    position: absolute;
    top: 5%;
    left: 0;
    width: 100%;
    justify-content: center;
    z-index: 10;
    display: flex;
    opacity: 0;
}
.question-text span{
    padding-left: 30px;
}
.text-line img{
    max-width: 500px;
}
@media (max-width: 1200px) {
    .text-line img{
        max-width: 450px;
    }
}
@media (max-width: 992px) {
    .text-line img{
        max-width: 400px;
    }
}
@media (max-width: 768px) {
    .text-line img{
        max-width: 240px;
    }
}
@media (max-width: 1200px) {
    .vertical-text-container{
        top: 15px;
        right: 15px;
    }
    .envelope-container.active{
        display: flex;  
        align-items: center;
        padding-top: 220px;
    }
}
@media (max-width: 768px) {
    .question-text span{
        padding-left: 15px;
    }
    .vertical-text-container {
        top: 15px;
        right: 15px;
    }

    .envelope-container.active{
        display: flex;
       
        align-items: center;
    }
    .vertical-text {
        font-size: 1rem;
        padding: 5px;
    }
    .text-line {
        font-size: 1.5rem;
        
    }
    .text-line.shadow{
        text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
    }
    .large-text {
        font-size: 2rem;
    }
    .letter-content .h5{
        font-size: 1rem!important;
    }

    
    #letter-icon .icon-title{
        font-size: 0.8rem!important;
    }
}