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

html,
body {
    height: 100%;
    overflow: hidden;
    background: #111;
    transition: background-color 2.5s ease-in-out;
}

#container {
    height: 100%;
    width: 100vw;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

.image-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.image {
    display: block;
    max-width: 1000px;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 3s ease-out;
}

.image.visible {
    opacity: 1;
}

#text-container {
    position: fixed;
    top: 15%;
    left: 50%;
    transition:
        opacity 3s ease-in-out,
        transform 2.5s ease-in-out;
    transform: translate(-50%, 10%);
    color: #eee;
    text-shadow:
        -2px -2px 0 black,
        2px -2px 0 black,
        -2px 2px 0 black,
        2px 2px 0 black,
        0px -2px 0 black,
        0px 2px 0 black,
        -2px 0px 0 black,
        2px 0px 0 black;
    padding: 1em 2em;
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    max-width: 80%;
    font-size: 1.3em;
    font-weight: bold;
    opacity: 0;
    white-space: pre-line;
    z-index: 1000;
    font-family: 'Segoe UI', sans-serif;
}

#text-container.visible {
    opacity: 1;
}

button {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -40%);
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    z-index: 10;
	background-color: #aaa;
}
button:hover {
	background-color: #444;
	color: #ddd;
	cursor: pointer;
}
#videoBtn {
    top: 60%;
    left: 50%;
    transform: translate(-50%, -60%);
}

#preload-progress {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 5px;
    z-index: 1000;
    display: none;
}

#credits {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    border-radius: 5px;
    z-index: 1000;
    display: block;
}

a, a:active, a:visited {
	color: #fff;
	text-decoration: none;
}

a:hover{
	text-decoration: underline;
}

#videoContainer {
	display: none;
	margin-top: 20px;
}

video {
	max-width: 100%;
	height: auto;
}