/* Reset default margin and padding */
body {
    background-color: white;
    margin: 0;
    padding: 0;
    height: 170%;
    font-family: 'ABC-Whyte-Mid';
    display: flex;
    flex-direction: column;
}

/* Style for the gif container */
#gif-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150%;
    overflow: hidden;
    z-index: -1;
}

#gif-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Style for the menu buttons */
#menu {
    display: flex;
    flex-direction: column;
    align-items: center; /* 水平居中 */
    justify-content: center; /* 垂直居中 */
    position: absolute;
    left: 50%;
    bottom: 25%;
    transform: translateX(-50%); 
}

.menu-button {
    background-color: transparent;
    font-size: 30px;
    color: #D74A7F;
    border: none;
    cursor: pointer;
    transition: all 0.5s ease-in;
    margin-bottom: 10px;  
    text-decoration: none;  /* Removes underline */
}

.menu-button:hover {
    text-decoration: underline;
}

.lang-container {
    display: flex;
    justify-content: center;
}

.lang-btn {
    margin: 0;
    padding: 0;
    flex: 1;
    text-align: center;
}



/* 指导窗口 */
.modal {
    display: none; /* 默认情况下隐藏模态窗口 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* 半透明背景 */
    z-index: 9999;
}

.modal-content {
    position: absolute;
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation-duration: 0.4s; 
    
}

.show-modal {
    animation-name: zoomIn;
    animation-duration: 0.3s; 
}

.hide-modal {
    animation-name: zoomOut;
    animation-duration: 0.3s; 
}


.close-btn {
    position: absolute;
    padding: 0;
    left: auto;
    right: 20px;
    top: 20px;
    cursor: pointer;
    /* border:1px solid green; */
}

.close-btn img:hover {
    content: url('cross-hover.png');
}

/* 窗口动画 */
@keyframes zoomIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes zoomOut {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0);
        opacity: 0;
    }
}

.fade-in {
    animation-name: fadeIn;
    animation-duration: 0.4s;
    animation-fill-mode: forwards;
}

.fade-out {
    animation-name: fadeOut;
    animation-duration: 0.4s;
    animation-fill-mode: forwards;
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* 脚注 */
.footer-container {
    display: flex;
    flex-direction: column;  /* 将子元素垂直堆叠 */
    margin-top: auto;  /* 这使容器始终保持在内容的底部 */
}

.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;
    padding: 0;
    margin-top: auto; /* 这使footer始终保持在内容的底部 */
    padding-bottom: 10px;
    padding-top: 10px;
}

.footer-content {
    display: flex;
    align-items: center;
    color: #D74A7F;
}

.footer-links a{
    gap: 0px;
    margin-right: 50px; /* 使链接离图片有一些距离 */
    color: #D74A7F;
    border: none;
    cursor: pointer;
    transition: all 0.5s ease-in;
    text-decoration: none;  /* Removes underline */
}

.footer-links a:hover{
    text-decoration: underline;
}

.footer img.yinyang{
    height: 40px;
    margin-right: 20px; /* 使图片离文字有一些距离 */
}


/* 媒体查询 检测屏幕 */
.error-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000; /* 确保它位于其他内容的上方 */
    background-color: rgba(0, 0, 0, 0.8); /* 添加一个半透明的背景 */
    justify-content: center;
    align-items: center;
}

.error-screen img {
    max-width: 100%; /* 根据需要调整 */
}

@media (max-width: 1000px) {
    .error-screen {
        display: flex; /* 当屏幕小于1000像素时显示错误屏幕 */
    }

    /* 如果你希望隐藏页面的其他内容，你可以使用以下代码 */
    body > *:not(.error-screen) {
        display: none;
    }
}


