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

html {
    background: #000;
    color-scheme: dark;
}

body {
    background: #000;
    color: #fff;
    font-family: system-ui, -apple-system, sans-serif;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    position: fixed;
    top: 0;
    left: 0;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

#container {
    position: absolute;
    inset: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    background: #000;
    padding: 5vmin;
}

.slide.active {
    opacity: 1;
}

.slide-title {
    font-size: clamp(2rem, 6vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 2vmin;
}

.slide-content {
    font-size: clamp(1rem, 2.5vw, 2.5rem);
    font-weight: 300;
    text-align: center;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
    max-width: 80%;
    white-space: pre-line;  /* reavahed säilitatakse */
}

.slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background: #000;
}

.slide-embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

.slide-embed-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.slide-overlay {
    position: absolute;
    bottom: 5vmin;
    left: 5vmin;
    right: 5vmin;
    z-index: 2;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 3vmin 2vmin 2vmin;
}

.slide-overlay-top {
    bottom: auto;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(rgba(0,0,0,0.7), transparent);
    padding: 2vmin 3vmin 4vmin;
}

#controls {
    position: fixed;
    bottom: 4vmin;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    transition: opacity 0.5s ease;
}

#controls.hidden {
    opacity: 0;
    pointer-events: none;
}

#btn-fullscreen {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.15em;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease;
}

#btn-fullscreen:hover,
#btn-fullscreen:focus {
    background: rgba(255, 255, 255, 0.2);
    outline: none;
}

#debug {
    position: fixed;
    top: 8px;
    right: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    font-family: monospace;
    z-index: 9999;
    pointer-events: none;
    display: none;
}

#debug.visible {
    display: block;
}

body.kiosk {
    cursor: none;
}

body.hide-cursor {
    cursor: none;
}

:fullscreen {
    background: #000 !important;
}

:-webkit-full-screen {
    background: #000 !important;
}

:-moz-full-screen {
    background: #000 !important;
}

::backdrop {
    background: #000 !important;
}

::-webkit-scrollbar {
    display: none;
}
