/* cinematic.css */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Inter:wght@400;600&display=swap');

body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    color: white;
}

#cinematic-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

#cinematic-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center center;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 2;
    pointer-events: none; /* Let clicks pass through if needed */
}

#captions {
    position: absolute;
    bottom: 15%;
    width: 80%;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), -2px -2px 8px rgba(0,0,0,0.9);
    z-index: 3;
    opacity: 0;
}

/* Visual Novel Dialogue Box */
#dialogue-box {
    position: absolute;
    bottom: 5%;
    width: 80%;
    height: 25%;
    max-height: 250px;
    background: rgba(15, 15, 20, 0.85);
    border: 2px solid #a88d48; /* Elegant gold border */
    border-radius: 8px;
    display: flex;
    z-index: 4;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

#portrait-container {
    flex: 0 0 200px;
    height: 100%;
    border-right: 2px solid #a88d48;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 6px 0 0 6px;
}

#portrait-img {
    height: 100%;
    width: auto;
    object-fit: cover;
}

#text-container {
    flex: 1;
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
}

#speaker-name {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#dialogue-text {
    font-size: 1.3rem;
    line-height: 1.6;
    color: #e0e0e0;
}

/* Start Screen (Requires interaction to play audio) */
#start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #050505;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#start-screen h1 {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    color: #fff;
    margin-bottom: 40px;
    letter-spacing: 5px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

#start-btn, #skip-btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    font-family: 'Inter', sans-serif;
    background: transparent;
    color: #fff;
    border: 2px solid #a88d48;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

#start-btn:hover, #skip-btn:hover {
    background: #a88d48;
    color: #000;
    box-shadow: 0 0 15px rgba(168, 141, 72, 0.6);
}

#skip-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    padding: 10px 20px;
    font-size: 0.9rem;
    opacity: 0.5;
}

#skip-btn:hover {
    opacity: 1;
}
