@font-face {
    font-family: 'Myfont-Regular';
    src: url('./Myfont-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'TW-Sung';
    src: url('./TW-Sung.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    position: fixed;
    overscroll-behavior: none;
    background-color: #000000;
}

body {
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    /* Dynamic viewport height for mobile */
    position: fixed;
    overscroll-behavior: none;
    font-family: 'Myfont-Regular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' style='font-size: 28px'%3E%3Ctext x='0' y='28'%3E💧%3C/text%3E%3C/svg%3E"), auto;
}

#canvas-container {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    /* Dynamic viewport height for mobile */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    overscroll-behavior: none;
    background-color: #000000;
    opacity: 0;
    transition: opacity 0.5s ease;
    will-change: opacity;
}

#canvas-container.fade-in {
    opacity: 1;
}

#canvas-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Liquid Glass Subscreen */
#subscreen {
    display: none;
    position: fixed;
    left: 10%;
    right: 10%;
    top: 15vh;
    bottom: 5%;
    width: 80%;
    z-index: 100;
    border-radius: 24px;
    box-shadow: 0 6px 6px rgba(0, 0, 0, 0.2), 0 0 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.8s ease;
    background: #000000;
}

#subscreen.visible {
    display: block;
}

#subscreen.fade-in {
    opacity: 1;
}

.liquidGlass-effect {
    position: absolute;
    z-index: 0;
    inset: 0;
    /* Removed backdrop-filter and glass distortion for solid black background */
    overflow: hidden;
    isolation: isolate;
}

.liquidGlass-tint {
    z-index: 1;
    position: absolute;
    inset: 0;
    /* Removed semi-transparent background - now solid black from parent */
}

.liquidGlass-shine {
    position: absolute;
    inset: 0;
    z-index: 2;
    overflow: hidden;
    box-shadow: inset 2px 2px 1px 0 rgba(255, 255, 255, 0.5),
        inset -1px -1px 1px 1px rgba(255, 255, 255, 0.5);
}

.liquidGlass-content {
    position: relative;
    z-index: 3;
    padding: 0;
    color: white;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#visualizer-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: opacity 0.5s ease;
}

#visualizer-canvas {
    width: 100%;
    height: 100%;
}

#stream-links {
    height: 10%;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 0 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 60%;
    aspect-ratio: 1/1;
    max-height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    backdrop-filter: blur(10px);
    border: none;
    cursor: pointer;
    padding: 0;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.social-link svg {
    width: 50%;
    height: 50%;
    fill: white;
}

/* About Me Content */
#about-content {
    display: none;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    overflow-y: scroll;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;

}

#about-content.visible {
    display: flex;
}

#about-content.fade-in {
    opacity: 1;
}

#back-button {
    position: fixed;
    top: 16vh;
    left: calc(10% + 1rem);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 20px;
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 150;
}

#back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-2px);
}

#back-button svg {
    width: 20px;
    height: 20px;
    fill: white;
}

#about {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 5vh;
    margin-bottom: 5vh;
}

#about-photo {
    height: 30vh;
    max-height: 400px;
    min-height: 100px;
    aspect-ratio: inherit;
    border-radius: 5%;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;

}

#about-text-english {
    min-width: 200px;
    text-align: center;
    line-height: 1.8;
    margin-bottom: 2rem;
    margin-right: 1rem;
    margin-left: 1rem;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

#about-text-chinese {
    min-width: 200px;
    text-align: center;
    line-height: 1.8;
    margin-bottom: 2rem;
    margin-right: 1rem;
    margin-left: 1rem;
    font-family: 'TW-Sung', serif;
}

#about-email {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

#about-email:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

#about-email svg {
    width: 20px;
    height: 20px;
    fill: white;
}

canvas {
    display: block;
}

/* Jelly Labels */
.jelly-label {
    position: fixed;
    top: 0;
    color: white;
    letter-spacing: 0.5em;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
    z-index: 50;
    text-transform: uppercase;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: opacity, transform, font-size;
    transform: translateZ(0);
}

.jelly-label.visible {
    opacity: 1;
}

#makka-label {
    left: 10%;
    width: 40%;
    text-align: center;
}

#dukka-label {
    right: 10%;
    width: 40%;
    text-align: center;
}