:root {
    --primary: #8b4513;
    --accent: #00ff00;
    --bg-color: #f5f5dc;
    --glass: rgba(255, 255, 255, 0.15);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: #1a1a1a;
    color: white;
    overflow: hidden;
}

.screen {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.hidden {
    display: none !important;
}

/* Landing Page */
#landing-page {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/kahve.png');
    background-size: cover;
    background-position: center;
}

.landing-content {
    text-align: center;
    z-index: 2;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    letter-spacing: 5px;
    margin-bottom: 1rem;
}

.logo-text span {
    color: var(--primary);
    -webkit-text-stroke: 1px white;
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.glow-button {
    padding: 1.5rem 4rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    background: var(--primary);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(139, 69, 19, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

.glow-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(139, 69, 19, 0.8);
}

/* Main App Layout */
.main-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.app-header {
    text-align: center;
    margin-bottom: 1rem;
}

#status-text {
    font-size: 2.5rem;
    background: linear-gradient(to right, #fff, #8b4513);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.interface-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#canvas-wrapper {
    position: relative;
    width: 1200px;
    height: 675px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    overflow: hidden;
}

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

#output_canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

/* Mobile Responsiveness */
@media (max-width: 1200px) {
    #canvas-wrapper {
        width: 95vw;
        height: 53.43vw;
        /* 16:9 Aspect Ratio (675/1200) */
        border-radius: 10px;
    }

    #status-text {
        font-size: 1.5rem;
    }

    .logo-text {
        font-size: 3rem;
    }
}

@media (max-width: 600px) {
    .glow-button {
        padding: 1rem 2rem;
        font-size: 1.2rem;
    }

    .app-header {
        margin-bottom: 0.5rem;
    }
}

#webcam {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}