@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&family=IBM+Plex+Sans:wght@300;400;500;700&display=swap');

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    font-family: 'IBM Plex Sans', 'Noto Sans TC', sans-serif;
    overflow-x: hidden;
}

header {
    padding: 20px;
    flex-shrink: 0;
    z-index: 100;
    text-align: center;
    overflow: hidden;
}

.titleleft, .titleright {
    display: inline-block;
    opacity: 0;
    font-size: clamp(1.8rem, 7vw, 4.5rem);
    font-weight: bold;
    white-space: nowrap;
}

.titleleft {
    transform: translateX(-100vw);
    animation: moveIn 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.titleright {
    transform: translateX(100vw);
    animation: moveIn 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

header nav {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

a {
    text-decoration: none;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    padding: 5px 10px;
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
    transition: all 0.3s ease;
}


a:hover {
    text-decoration: underline;
    filter: brightness(1.2);
    text-decoration: none;
}

main {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

footer {
    color: white;
    padding: 10px 20px;
    text-align: center;
    flex-shrink: 0;
}

@keyframes moveIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}