@font-face {
    font-family: "Montserrat-Regular";
    src: url('assets/font/Montserrat-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Montserrat-Bold";
    src: url('assets/font/Montserrat-Bold.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.87);
    font-size: 16px;
    background-color: #222222;

    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
}

#app {
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    /* flex will ignore width */
    display: flex;
    justify-content: center;
    align-items: start;
}

.main-bg {
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    overflow: hidden;
    z-index: -1;
    min-height: 100dvh;
    min-width: 100dvw;
}

#game-container {
    background: #fff;
}

.c1-bg1 {
    background-image: url(assets/images/chapter1/BG-01.jpg);
}

.c1-bg2 {
    background-image: url(assets/images/chapter1/BG-02.jpg);
}

.c1-bg3 {
    background-image: url(assets/images/chapter1/BG-03.jpg);
}

.c1-bg4 {
    background-image: url(assets/images/chapter1/BG-04.jpg);
}

.c1-bg5 {
    background-image: url(assets/images/chapter1/BG-05.jpg);
}

.c1-bg6 {
    background-image: url(assets/images/chapter1/BG-06.jpg);
}

#videoContainer {
    position: relative;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    background: #fff;
}

iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    border: 0;
}

.top-nav-container {
    position: absolute;
    width: 100dvw;
    height: 3rem;
    background-color: rgba(0, 0, 0, 0.2);
    /* outline: 1px solid blue; */
}

.top-nav-aspect-ratio-container {
    /* outline: 1px solid orange; */
    width: calc(9 / 16 * 100dvh);
    height: 3.125rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.top-nav {
    /* outline: 1px solid red; */
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
}

div#chapter-title-text {
    /* height: 40px;
    width: 190px; */
    aspect-ratio: 182 / 43;
    /* 110px */
    max-width: 6.875rem;
    /* 95px */
    min-width: 5.938rem;
    width: 12dvw;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

div.nav-btn {
    width: 13%;
    max-width: 2rem;
    height: 13%;
    max-height: 2rem;
    cursor: pointer;
}

div.nav-btn img {
    width: 100%;
    height: 100%;
}

.mute-btn {
    width: 13%;
    max-width: 1.75rem;
    height: 13%;
    min-height: 1.75rem;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    cursor: pointer;
}

div.mute-btn img {
    width: 100%;
    height: 100%;
}

div#chapter-code-overlay-container {
    position: absolute;
    width: 100%;
    height: min(1.5dvh, 3dvw, 16px);
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

div#chapter-code-overlay-aspect-ratio-container {
    width: calc(9 / 16 * 100dvh);
    display: flex;
    justify-content: end;
}

div#chapter-code-overlay {
    height: min(1.5dvh, 3dvw, 16px);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 42%;
}

@media screen and (max-width: 600px) {
    .top-nav-aspect-ratio-container {
        width: 100dvw;
    }
}