@font-face {
    font-family: 'Sinistre';
    src: url('Sinistre.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

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

body {
    font-family: 'Sinistre', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #fff;
    background: #0a0a0a;
}

/* Landing Page */
.landing-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.content {
    max-width: 600px;
    text-align: center;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 5rem;
    margin-top: -3rem;
    color: #fff;
    line-height: 1.2;
}

.instructions {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    color: #fff;
    line-height: 1.8;
}

.instructions a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #ff0055;
    transition: opacity 0.2s ease;
}

.instructions a:hover {
    opacity: 0.7;
}

.play-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    font-size: 1.3rem;
    font-weight: 500;
    font-family: 'Sinistre', sans-serif;
    color: #fff;
    background: #222;
    border: 2px solid #ff0055;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: lowercase;
    -webkit-text-stroke: 0.3px #ff0055;
    text-stroke: 0.3px #ff0055;
}

.play-button:hover {
    background: #ff0055;
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(255, 0, 85, 0.6);
}

.play-button:active {
    transform: translateY(0);
}

.download-link {
    display: block;
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
    font-family: 'Sinistre', sans-serif;
    color: #ff0033;
    text-decoration: none;
    text-transform: lowercase;
    text-align: center;
    transition: opacity 0.3s ease;
}

.download-link:hover {
    opacity: 0.7;
}

/* Video Container */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.video-container.hidden {
    display: none;
}

video {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* Cascading subtitles container */
.subtitles-container {
    position: absolute;
    left: 2rem;
    bottom: 5rem;
    width: 500px;
    max-height: calc(100vh - 10rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.5rem;
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
}

/* Header text at top left */
.header-text {
    position: absolute;
    left: 2rem;
    top: 2rem;
    font-family: 'Sinistre', sans-serif;
    font-size: 2.6rem;
    line-height: 1.2;
    color: #fff;
    padding: 1rem 1.5rem;
    z-index: 10;
    pointer-events: none;
}

/* Permanent info display on top right side */
.permanent-info {
    position: absolute;
    right: 2rem;
    top: 8rem;
    max-width: 450px;
    font-family: 'Sinistre', sans-serif;
    color: #fff;
    padding: 1.5rem;
    z-index: 10;
    pointer-events: none;
}

/* AHO logo link wrapper */
.aho-logo-link {
    position: absolute;
    right: 2rem;
    top: 2rem;
    max-width: 450px;
    width: 100%;
    z-index: 10;
    pointer-events: auto;
}

/* AHO logo positioned above permanent-info */
.aho-logo {
    width: 100%;
    height: auto;
    filter: invert(1);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.aho-logo-link:hover .aho-logo {
    opacity: 1;
}

/* Logos container on right side */
.logos-container {
    position: absolute;
    right: 2rem;
    bottom: 6rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    z-index: 10;
    pointer-events: auto;
}

.logos-container a {
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

.logos-container a:hover {
    opacity: 0.8;
}

.logo-img {
    max-width: 120px;
    height: auto;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Make Uroboros logo smaller and brighter */
.logo-img[src="uroboros_floatinglogo.png"] {
    max-width: 80px;
    filter: brightness(1.5);
}

/* Make Fuser logo white */
.logo-img[src="fuserLogo.png"] {
    filter: invert(1);
}

.info-url {
    font-size: 2.33rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.info-text {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.info-text a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #ff0055;
    pointer-events: auto;
    transition: opacity 0.2s ease;
}

.info-text a:hover {
    opacity: 0.7;
}

.subtitle-line {
    font-family: 'Sinistre', sans-serif;
    font-size: 2.25rem;
    line-height: 1.2;
    color: #fff;
    padding: 0.5rem 1rem;
    animation: slideIn 0.3s ease-out;
    word-wrap: break-word;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle-line.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.close-button {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    font-size: 2rem;
    font-weight: 300;
    color: #ff0033;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    padding: 0.5rem;
}

.close-button:hover {
    color: #ff0055;
    transform: scale(1.1);
}

.fullscreen-button {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    padding: 0.5rem;
    font-size: 1.2rem;
    color: #ff0033;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.fullscreen-button:hover {
    color: #ff0055;
    transform: scale(1.1);
}

/* Fullscreen mode support */
.video-container:fullscreen .subtitles-container,
.video-container:-webkit-full-screen .subtitles-container,
.video-container:-moz-full-screen .subtitles-container,
.video-container:-ms-fullscreen .subtitles-container {
    display: flex;
}

.video-container:fullscreen .permanent-info,
.video-container:-webkit-full-screen .permanent-info,
.video-container:-moz-full-screen .permanent-info,
.video-container:-ms-fullscreen .permanent-info {
    display: block;
}

.video-container:fullscreen .close-button,
.video-container:-webkit-full-screen .close-button,
.video-container:-moz-full-screen .close-button,
.video-container:-ms-fullscreen .close-button {
    display: flex;
}

/* Responsive */
@media (max-width: 768px) {
    /* Landing page adjustments */
    .landing-page {
        padding: 1rem;
    }
    
    h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .instructions {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .play-button {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .download-link {
        font-size: 0.9rem;
        margin-top: 1.5rem;
    }
    
    /* Video player adjustments */
    video {
        transform: translateY(-7rem);
    }
    
    .close-button {
        top: 0.5rem;
        left: 0.5rem;
        font-size: 1.5rem;
        padding: 0.3rem;
    }
    
    .fullscreen-button {
        bottom: 0.5rem;
        right: 0.5rem;
        padding: 0.4rem;
        font-size: 1rem;
    }
    
    /* Subtitles - scale down and reposition */
    .subtitles-container {
        left: 1rem;
        right: 1rem;
        bottom: 9rem;
        width: auto;
        max-width: calc(100vw - 2rem);
        gap: 0.3rem;
    }
    
    .subtitle-line {
        font-size: 1.1rem;
        padding: 0.3rem 0.5rem;
    }
    
    /* Header text - scale down */
    .header-text {
        left: 1rem;
        top: 3rem;
        font-size: 1.3rem;
        padding: 0.5rem 0.8rem;
        max-width: calc(100vw - 2rem);
    }
    
    /* AHO logo - scale down significantly */
    .aho-logo {
        right: 1rem;
        top: 1rem;
        max-width: 150px;
    }
    
    /* Permanent info - scale down and reposition */
    .permanent-info {
        right: 1rem;
        top: 5rem;
        max-width: calc(100vw - 2rem);
        padding: 0.8rem;
    }
    
    .info-url {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .info-text {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    /* Logos container - scale down and reposition */
    .logos-container {
        right: 1rem;
        bottom: 6rem;
        gap: 0.8rem;
    }
    
    .logo-img {
        max-width: 60px;
    }
    
    .logo-img[src="uroboros_floatinglogo.png"] {
        max-width: 40px;
    }
}
