@font-face {
    font-family: 'Inter';
    src: url(fonts/Inter-Light.otf) format('opentype');
    font-weight: 300;
}
@font-face {
    font-family: 'Inter';
    src: url(fonts/Inter-Regular.otf) format('opentype');
    font-weight: 400;
}
@font-face {
    font-family: 'Inter';
    src: url(fonts/Inter-Medium.otf) format('opentype');
    font-weight: 500;
}
@font-face {
    font-family: 'Inter';
    src: url(fonts/Inter-SemiBold.otf) format('opentype');
    font-weight: 600;
}
@font-face {
    font-family: 'GreatVibes';
    src: url(fonts/GreatVibes-Regular.ttf) format('opentype');
    font-weight: 400;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter';
    color: #fff;
}

html, body {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

html {
    opacity: 0;
    transition: opacity 550ms ease;
}

a {
    text-decoration: none;
}

img, video {
    display: block;
    max-width: 100%;
}

#root {
    height: 100%;
    background-color: #695f59;
}

@media (min-width: 759px) {
    #root {
        box-shadow: inset 0 0 0 3000px #000000a0;
        background: url(imgs/error_bg.jpg) no-repeat center / cover;
    }
    section {
        background: transparent !important;
    }
}

.wrapper {
    height: 100%;
    position: relative;
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
}

p {
    font-size: 24px;
    font-weight: 300;
    line-height: 120%;
    letter-spacing: 0%;
    text-align: center;
}

section {
    top: 0;
    left: 50%;
    opacity: 0;
    width: 100%;
    height: 100%;
    max-width: 610px;
    translate: -50% 0;
    position: absolute;
    pointer-events: none;
    transition: opacity 350ms ease;
}

section.active {
    opacity: 1;
    pointer-events: auto;
}

section video {
    top: 0;
    left: 50%;
    translate: -50% 0;
    height: 100%;
    position: absolute;
}

.intro .btn {
    top: 70%;
    left: 50%;
    z-index: 4;
    width: 100%;
    translate: -50%;
    position: absolute;
}

.intro {
    display: flex;
    align-items: center;
    justify-content: center;
}

body.start .intro p {
    opacity: 0;
}

.intro p {
    z-index: 3;
    color: #fff;
    font-size: 20px !important;
    font-weight: 500;
    pointer-events: none;
    transition: all 550ms;
}

.intro .btn {
    top: 70%;
    left: 50%;
    z-index: 4;
    opacity: 0;
    translate: -50%;
    position: absolute;
    pointer-events: none;
    box-shadow: 0 0 8px #00000052;
    transition: background-color 150ms ease, opacity 550ms ease;
}

#introStart {
    z-index: 3;
    cursor: pointer;
    transition: opacity 10ms linear;
}

.start.hidden-text .hr {
    visibility: hidden;
}

.start.hidden-text .start-item-2 {
    pointer-events: none;
    visibility: hidden !important;
}

#introLoop {
    z-index: 2;
}

.intro.loop #introStart {
    opacity: 0;
}
.intro.loop #introLoop {
    display: block;
}
.intro.loop .btn {
    opacity: 1;
    pointer-events: auto;
}

.btn {
    width: 100%;
    color: #fff;
    padding: 20px;
    cursor: pointer;
    font-size: 20px;
    max-width: 370px;
    font-weight: 600;
    line-height: 100%;
    user-select: none;
    letter-spacing: 0%;
    text-align: center;
    border-radius: 50px;
    transition: background-color 150ms ease;
    background-color: rgba(227, 3, 46, 1);
}

.btn:hover {
    background-color: rgb(184, 0, 37);
}

.start {
    background: url(imgs/bg.jpg) no-repeat center / cover !important;
}

.start.active {
    z-index: 6;
}

.start .container-img {
    gap: 15px;
    display: flex;
}

.start .container-img svg {
    width: 40px;
}

.start .container-img svg.active path {
    fill: #fff;
}

h1 {
    font-size: 34px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
}

.start .hr {
    height: 1px;
    width: 100%;
    opacity: 0.5;
    max-width: 350px;
    margin-top: 35px;
    background-color: #000;
    box-shadow: 0 -1px 1px #fff;
    transition: opacity 150ms ease;
}

.start p {
    margin-top: 25px;
    margin-bottom: 40px !important;
}

.start h3 {
    font-size: 20px;
    font-weight: 400;
    line-height: 100%;
    letter-spacing: 0%;
}

.container {
    height: 100%;
    display: flex;
    max-width: 400px;
    padding: 0 10px;
    z-index: 2;
    margin: 0 auto;
    position: relative;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.start-item {
    width: 100%;
    display: flex;
    max-width: 320px;
    margin-top: 20px;
    align-items: center;
    justify-content: space-between;
    transition: opacity 150ms ease;
}

.start .btn {
    margin-top: 100px;
}

.checkbox .tgl {
    display: none;
}

.checkbox .tgl::-moz-selection,
.checkbox .tgl:after::-moz-selection,
.checkbox .tgl:before::-moz-selection,
.checkbox .tgl *::-moz-selection,
.checkbox .tgl *:after::-moz-selection,
.checkbox .tgl *:before::-moz-selection,
.checkbox .tgl + .tgl-btn::-moz-selection,
.checkbox .tgl::selection,
.checkbox .tgl:after::selection,
.checkbox .tgl:before::selection,
.checkbox .tgl *::selection,
.checkbox .tgl *:after::selection,
.checkbox .tgl *:before::selection,
.checkbox .tgl + .tgl-btn::selection {
    background: none;
}
.checkbox .tgl + .tgl-btn {
    outline: 0;
    display: block;
    width: 4em;
    height: 2em;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
            user-select: none;
}
.checkbox .tgl + .tgl-btn:after,
.checkbox .tgl + .tgl-btn:before {
    position: relative;
    display: block;
    content: "";
    width: 50%;
    height: 100%;
}
.checkbox .tgl + .tgl-btn:after {
    left: 0;
}
.checkbox .tgl + .tgl-btn:before {
    display: none;
}
.checkbox .tgl:checked + .tgl-btn:after {
    left: 50%;
}

.checkbox .tgl-light + .tgl-btn {
    background: #fff;
    border-radius: 2em;
    padding: 2px;
    transition: all 0.4s ease;
}
.checkbox .tgl-light + .tgl-btn:after {
    border-radius: 50%;
    background: rgb(121 109 121 / 80%);
    transition: all 0.2s ease;
}
.checkbox .tgl-light:checked + .tgl-btn {
    background: #fff;
}
.checkbox .tgl-light:checked + .tgl-btn:after {
    background: rgba(129, 63, 130, 1);
}

.main {
    z-index: 7;
}

.main.hidden-text .text {
    visibility: hidden;
}

.main .container {
    gap: 50px;
    justify-content: space-evenly;
}

.text {
    width: 100%;
    text-align: center;
    min-height: 150px;
    position: relative;
}

.text-item {
    top: 0;
    opacity: 0;
    width: 100%;
    font-size: 22px;
    font-weight: 500;
    color: #753f3d;
    margin-top: 30px;
    line-height: 140%;
    letter-spacing: 0%;
    position: absolute;
    transition: opacity 550ms linear;
}

.text-item span {
    opacity: 0;
    color: #753f3d;
    transition: opacity 350ms 2s linear;
}

.text-item span.first {
    transition: opacity 350ms 550ms linear;
}
.text-item span.second {
    transition: opacity 350ms 2.85s linear;
}
.text-item span.last {
    transition: opacity 350ms 1.5s linear;
}

.text-item span.active {
    opacity: 1;
}
.text-item--margin-0 {
    margin-top: 0;
    font-size: 20px;
}
.text-item--margin-50 {
    margin-top: 50px;
}

/* .text-item--margin-20 {
    margin-top: 20px;
}
.text-item--margin-40 {
    margin-top: 40px;
} */

.text-item.active {
    opacity: 1;
}

.player-wrapper {
    gap: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.player-wrapper .btn {
    margin-top: 0 !important;
    border: 1px solid #fff;
    backdrop-filter: blur(16px);
    background-color: rgba(96, 194, 251, 0.2);
}

.player {
    gap: 16px;
    width: 100%;
    display: flex;
    padding: 20px;
    max-width: 370px;
    text-align: center;
    border-radius: 16px;
    flex-direction: column;
    border: 1px solid #fff;
    backdrop-filter: blur(16px);
    background-color: rgba(96, 194, 251, 0.2);
}

.player-title {
    font-size: 18px;
    font-weight: 600;
}

.player-line {
    gap: 10px;
    width: 100%;
    display: flex;
    align-items: center;
}

.player-line .time {
    font-size: 12px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0%;
    vertical-align: middle;
}

.line {
    height: 6px;
    width: 100%;
    cursor: pointer;
    pointer-events: none !important;
    overflow: hidden;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.2);
}

.line-item {
    width: 0%;
    height: 100%;
    border-radius: 4px;
    background-color: #fff;
}

.player-btn {
    margin: 0 auto;
    cursor: pointer;
    padding: 4px 8px;
    width: fit-content;
}

.player-btn .unplay { display: none; }
.player-btn.play .play { display: none; }
.player-btn.play .unplay { display: block; }

.player-btn img {
    width: 24px;
    height: 24px;
}

.final {
    transition: opacity 1s ease !important;
    z-index: 8;
    /* background: url(imgs/bg2.jpg) no-repeat center / cover; */
}

.final .container {
    padding: 35px 10px 50px;
    justify-content: space-between;
}

.final-item {
    gap: 25px;
    display: flex;
    align-items: center;
    flex-direction: column;
    height: 100%;
    padding: 10px 0 12px;
    justify-content: space-between;
}

.final .logo {
    width: 100%;
    max-width: 250px;
}

.final h2 {
    font-size: 50px;
    font-weight: 500;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    font-family: 'GreatVibes';
    color: rgba(227, 3, 46, 1);
}

.final p {
    font-size: 36px;
    font-family: 'GreatVibes';
    color: rgb(101 42 42);
}

.jump-video {
    z-index: 3;
    opacity: 0;
    object-fit: cover;
    height: 100%;
    pointer-events: none;
}

.main .container {
    transition: opacity 350ms ease;
}

.main.jump .container {
    opacity: 0;
    pointer-events: none;
}

.main.jump1 #jumpVideo1 {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 350ms 150ms ease;
}

.main.jump2 #jumpVideo2 {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 350ms 550ms ease;
}

.preview {
    z-index: 3;
    opacity: 0;
    pointer-events: none;
    background: url(imgs/bg.jpg) no-repeat center / cover !important;
}

.preview.active {
    opacity: 1;
    pointer-events: auto;
}

.preview .container {
    padding: 50px 2px 60px;
    justify-content: space-between;
}

.preview .logo {
    width: 300px;
}

.preview-item {
    gap: 55px;
    display: flex;
    flex-direction: column;
    max-width: 350px;
}

.preview-item p:nth-child(1) {
    font-size: 20px;
    font-weight: 500;
}

.preview-item p:nth-child(2) {
    font-size: 18px;
    font-weight: 500;
}

.preview-item span {
    opacity: 0;
    line-height: 140%;
}
.preview-item .span-1 {
    transition: opacity 550ms 300ms ease;
}
.preview-item .span-2 {
    transition: opacity 550ms 3200ms ease;
}
.preview-item .span-3 {
    transition: opacity 550ms 7100ms ease;
}

.preview.anim span {
    opacity: 1;
}


@media (min-height: 739px) {
    .final .container {
        padding: 60px 10px 80px;   
    }
}

@media (max-height: 700px) {
    .preview .logo {
        width: 200px;
    }
    .preview .container {
        padding: 30px 2px 40px;
    }
    .preview-item {
        gap: 10px;
    }
    .start .btn {
        margin-top: 50px;
    }
    .start p {
        margin-top: 15px;
    }
    h1 {
        font-size: 30px;
    }
    .start h3 {
        font-size: 18px;
    }
    .start .hr {
        margin-top: 25px;
    }
    .start-item {
        margin-top: 15px;
    }
    .final .container {
        padding: 30px 10px;
    }
    .final .logo {
        max-width: 200px;
    }
    .final p {
        font-size: 30px;
    }
    .final h2 {
        font-size: 40px;
    }
}

@media (min-height: 969px) {
    .final .logo {
        max-width: 350px;
    }
    .final h2 {
        font-size: 70px;
    }
    .final p {
        width: 135%;
        font-size: 56px;
    }
    section {
        max-height: 925px;
        top: 50%;
        translate: -50% -50%;
    }
    .start p {
        margin-bottom: 0;
    }
}

@media (min-height: 1169px) {
    .wrapper {
        scale: 1.25;
    }
}

@media (min-height: 1569px) {
    .wrapper {
        scale: 1.5;
    }
}

@media (max-width: 619px) {
    #mainLoop {
        width: 100%;
        object-fit: cover;
    }
    .preview-item {
        gap: 20px;
    }
    .start .btn {
        margin-top: 30px;
    }
    .preview-item p {
        max-width: 320px;
        font-size: 18px !important;
    }
}
