:root {
    --scene-dark-color: #3a1010;
    --scene-light-color: #f5e6d3;
    --scene-immersive-color: #f5e6d3;
}

html {
    background-color: var(--scene-immersive-color);
}

body,
.main-wrapper-scene {
    transition: background-color 0.25s ease-in;
    background-color: var(--scene-immersive-color);
}

.main-wrapper-scene {
    aspect-ratio: 16 / 9;
    width: 100%;
    max-height: 100vh;
    max-width: calc(100vh * 16 / 9);
    margin: 0;
    position: relative;
    overflow: hidden;
    margin: auto;
}

#main-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.movable-layer,
.scene-background,
.scene-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Text layers configurations */
.text-layer.left .layer-content {
    position: absolute;
    top: 15%;
    left: 9%;
    width: 38%;
}

.text-layer.right .layer-content {
    position: absolute;
    top: 15%;
    right: 9%;
    width: 34%;
    text-align: right;
}

.text-layer.top .layer-content {
    position: absolute;
    top: 15%;
    left: 9%;
    width: 82%;
}

.text-layer.bottom .layer-content {
    position: absolute;
    bottom: 15%;
    left: 9%;
    width: 82%;
}

.text-layer.center .layer-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    text-align: center;
}

.layer-content h1 {
    margin-bottom: 2px;
    font-size: clamp(min(6vh, 3.3vw), 6vh, 3.3vw);
    line-height: 1.1;
    font-family: "Solway", serif;
    font-weight: 800;
    font-style: normal;
    color: var(--scene-light-color);
    text-shadow: 0 0 2vw rgba(25, 25, 26, 0.6);
}

.layer-content p {
    margin-top: 0;
    font-size: clamp(min(3.8vh, 2.3vw), 3.8vh, 2.3vw);
    line-height: 1.1;
    color: #F2F2F2;
    text-shadow: 0 0 2vw rgba(25, 25, 26, 0.6);
}

/* Buttons */
.buttons-container {
    margin-top: .5rem;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .75vw;
    justify-content: flex-start;
    pointer-events: all;
}

.right .buttons-container {
    justify-content: flex-end !important;
}

.center .buttons-container {
    justify-content: center !important;
}

.buttons-container button {
    font-size: clamp(min(3vh, 2.1vw), 3vh, 2.1vw);
    background: var(--scene-light-color);
    background: linear-gradient(162deg, var(--scene-light-color), color-mix(in srgb, var(--scene-light-color), var(--scene-dark-color) 35%));
    box-shadow: 0 0 1.8vw rgba(25, 25, 26, 0.6);
    border: 0.25vw solid var(--scene-dark-color);
    color: var(--scene-dark-color);
    cursor: pointer;
    border-radius: 5vw;
    padding: 0.4rem 0.8rem;
    width: fit-content;
    pointer-events: all;
    transition: transform 0.3s ease;
}

.buttons-container button:hover {
    transform: scale(1.04);
    opacity: 0.97;
}

.buttons-container button span {
    vertical-align: middle;
}

.button-icon {
    align-items: center;
    display: inline-flex;
    flex-shrink: 0;
    justify-content: center;
    margin-left: 0.3rem;
}

/* Text Gradient Box */
.text-gradient .gradient-content {
    position: absolute;
    pointer-events: none;
}

.text-gradient.left .gradient-content {
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: var(--scene-dark-color);
    background: linear-gradient(90deg, var(--scene-dark-color) 0%, var(--scene-dark-color) 72%, transparent 100%);
}

.text-gradient.right .gradient-content {
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--scene-dark-color);
    background: linear-gradient(270deg, var(--scene-dark-color) 0%, var(--scene-dark-color) 72%, transparent 100%);
}

.text-gradient.top .gradient-content {
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: var(--scene-dark-color);
    background: linear-gradient(180deg, var(--scene-dark-color) 0%, var(--scene-dark-color) 72%, transparent 100%);
}

.text-gradient.bottom .gradient-content {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: var(--scene-dark-color);
    background: linear-gradient(0deg, var(--scene-dark-color) 0%, var(--scene-dark-color) 72%, transparent 100%);
}

.text-gradient.center .gradient-content {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65%;
    height: 40%;
    background: var(--scene-dark-color);
    background: radial-gradient(ellipse, var(--scene-dark-color) 0%, var(--scene-dark-color) 30%, transparent 70%, transparent 100%);
}

/* Progress bar */
.layer-progress{
    position: absolute;
    top: 0;
    left: 0;
    height: 1.2vh;
}

.layer-progress div{
    height: 100%;
    background: var(--scene-light-color);
    background: linear-gradient(90deg,var(--scene-immersive-color) 0%, var(--scene-light-color) 100%);
    border-radius: 0 1rem 1rem 0;
}

@media (max-width: 767px) {

    .layer-content h1,
    .layer-content p {
        line-height: 0.8;
    }
}