h1,h2,.h1,.h2{
    font-family: "Noto Serif SC", serif;
}
h3,h4,h5,h6,.h3,.h4,.h5,.h6{
    font-family: "Noto Serif SC", serif;
}
.mst-font{
    font-family: "Noto Sans SC", sans-serif;
    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 span{
    font-family: 'Times New Roman', Times, serif;
    font-weight: bold;
}

.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: 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;
        padding-top: 220px;
        align-items: center;
    }
}
@media (max-width: 768px) {
    .question-text span{
        padding-left: 15px;
    }
    .vertical-text-container {
        top: 15px;
        right: 15px;
    }
    #letter-icon .icon-title{
        font-size: 0.8rem!important;
    }
    .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;
    }

    .envelope-container.active{
        display: flex;

        align-items: center;
    }
}
