@font-face {
    font-family: 'Faustina';
    src: url('fonts/Faustina-Variable.ttf');
}

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

html,body{
    height:100%;
    font-family: Faustina, Helvetica, sans-serif;
    background:#000;
    color:#fff;
}

h1 {
    font-size: clamp(3.4214rem, 2.1471rem + 5.6637vw, 8.9435rem);
    line-height: 1;
    margin-bottom: 5vh;
}

h2 {
    font-size: clamp(1.98rem, 1.5656rem + 1.8419vw, 3.7759rem);
    line-height: 1.2;
}

h3 {
    font-size: clamp(1.98rem, 1.5656rem + 1.8419vw, 3.7759rem);
    line-height: 1.2;
}

#loading-screen {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

#logo {
    width: 20vw;
    /* Start hidden, then animate in */
    opacity: 0;
    animation: fadeIn 1s forwards;
}

/* Fade‑in animation that runs once when the page loads */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Fade‑out animation (used on hover) */
@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.spinner-container {
    position: absolute;
    margin-top: 25%;
}

#spinner {
    content: "";
    margin: 0;
    width: 2em;
    height: 2em;
    border: 6px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#main {
    position: fixed;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: none;
}

#start {
    position: fixed;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.start-container {
    position: absolute;
    margin-top: 25vh;
    margin-left: 20vw;
    margin-right: 20vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.title {
    font-family: Faustina;
}

.start-text {
    margin-top: 5vh;
    font-size: clamp(1.2rem, 0.9961rem + 0.9064vw, 2.0838rem);
}

.image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    object-fit: cover;
    display: block;
}

#image {
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
    top: 0;
    left: 0;
    background: radial-gradient(circle at center, 
    rgba(0, 0, 0, 0) 0%, 
    rgba(0, 0, 0, 0.5) 80%, 
    rgba(0, 0, 0, 1) 100%);
}

.text-container {
    position: absolute;
    bottom: 0;
    top: 20vh;
    left: 21vw;
    width: 58vw;
    height: 45vh;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.75vh;
    /* background: radial-gradient(circle 33vw at center,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.1) 80%,
    rgba(0, 0, 0, 0) 100%); */
}

#text {
    -webkit-mask-image: linear-gradient(rgba(0, 0, 0, 0), 
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 1));
    mask-image: linear-gradient(rgba(0, 0, 0, 0), 
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 1));
    font-size: clamp(1.44rem, 0.9707rem + 2.0858vw, 3.4736rem);
    filter: drop-shadow(5px 5px 5px black);
    line-height: 1.5;
    padding: 2vh;
    overflow-y: auto;
    /* Hide scrollbars */
    -ms-overflow-style: none; /* IE 10+ */
    scrollbar-width: none; /* Firefox */
}

#monologue.left {
    text-align:left
}
#monologue.right{ 
    text-align:right
}

@media screen and (max-width: 600px) {
    #logo {
        width: 50vw;
        margin-bottom: 10vh;
    }
}

@media screen and (min-width: 601px) {
    #mobile-warning {
            display: none;
    }
}