* {
    font-family: Inter, sans-serif;
}

html, body {
    margin: 0;
    height: 100%;
    overflow: hidden;
}

body {
    background-image: url('../images/bg.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
}

header {
    width: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

ul {
    list-style-type: none;
}

li {
    float: left;
}

#video-bg {
    position: fixed;
    top: 55%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: -1000;
    object-fit: cover;
}

.menu-mobile ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
}

.menu-item.selected img {
    height: 6vh;
}

.menu-item img {
    height: 3vh;
}

@media (min-width: 1025px) or (orientation: landscape) {
    html, body {        
        padding: 0 25px;
    }
    
    .menu li a {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .menu {
        position: relative;
        width: 100%;
    }
    
    .menu ul {
        display: flex;
        justify-content: space-between;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .menu-item {
        margin: 0 10px;
        width: 191px;
    }
    
    .menu-toggle {
        z-index: 9999;
    }

    .menu-toggle img {
        height: 8vh;
    }
    
    .temp-menu {
        margin-left: auto;
        z-index: 9999;
    }

    .logo {
        margin-right: auto;
    }

    .logo img {
        height: 30vh;
    }

    .blockchain-icons {
        position: fixed;
        bottom: calc(5vh + 30px);
        right: 3%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    .social-btn {
        margin: 4vh;
    }

    .social-btn > img {
        width: 7vh;
        max-width: 40px;
    }

    .social-icons {
        position: fixed;
        bottom: 5vh;
        left: 3%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
    }

    .menu-mobile {
        display: none;
    }

    .community ul {
        padding: 0;
    }

    footer, .footer-mobile {
        display: none;
    }

    .lore-stack {
        position: relative;
    }

    .lore-stack-mobile {
        display: none;
    }

    .lore-bg, .lore-place {
        height: 40vh;
    }

    .lore-place {
        position: absolute;
        top: 0;
        left: 0;
    }

    .lore-item {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.5s ease;
        display: flex;
        justify-content: center;
    }

    .chara-selection {
        display: flex;
        justify-content: space-between;
        gap: 25%;
    }

    .chara-sel, .chara-left, .chara-right, .charas {
        height: 40vh;
    }

    .chara-opt, .lore-chara {
        position: relative;
    }
    
    .chara-sel {
        position: absolute;
        top: 0;
        left: 60px;
    }
    
    .chara-left {
        position: absolute;
        top: 0;
        left: calc(40vh * 1336 / 663 * 0.05);
    }
    
    .chara-right {
        position: absolute;
        top: 0;
        right: calc(40vh * 1336 / 663 * 0.01);
    }

    .chara-mobile {
        display: none;
    }

    .mobile-display {
        display: none !important;
    }

    .back-btn {
        display: none;
    }

    .section-gameplay {
        flex-direction: column;
        justify-content: space-between;
        height: inherit;
        padding-bottom: 5vh;
    }

    .gameplay-iframe {
        width: 60vw;
        height: calc(60vw * 315 / 560);
        max-height: 40vh;
        max-width: calc(40vh * 560 / 315);
    }

    .toggle-side.show, .toggle-side > img {
        right: 0;
    }

    .side-menus a img {
        width: 80%;
    }
}

@media (max-width: 1024px) and (orientation: portrait) {
    html, body {        
        padding: 0;
    }
    
    .menu {
        display: none;
    }

    .menu-mobile li a {
        display: block;
        text-align: center;
    }
    
    .menu-mobile {
        position: relative;
        width: 100%;
        padding: 0 25px;
    }
    
    .menu-mobile ul {
        display: flex;
        justify-content: space-between;
        align-items: center;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .logo {
        padding-top: 2vh;
    }

    .logo img {
        height: 15vh;
    }

    .blockchain-icons {
        display: flex;
    }

    .blockchain-icons > .social-btn:first-child {
        transform: translateX(-85%);
    }

    .side-display {
        display: none !important;
    }

    .social-btn.menu-btn > img {
        height: 15px
    }

    .social-btn > img {
        height: 20px;
    }

    footer {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 100;
    }

    .footer-mobile {
        display: none;
    }

    .footer-mobile.active {
        display: block;
        position: absolute;
        width: 100%;
        height: calc(7vh + 30px);
        left: 0;
        bottom: 0;
    }

    .social-icons {
        display: flex;
        justify-content: space-around;
        width: 100%;
        z-index: 150;
        padding-bottom: 3.5vh;
    }

    .social-icons > .social-btn > img {
        height: 30px;
    }

    .play-btn {
        display: none;
    }

    .lore-stack {
        display: none;
    }

    .lore-stack-mobile {
        position: relative;
    }

    .lore-place {
        position: absolute;
        top: 0;
        left: 5%;
        width: 80%;
        max-width: 350px;
    }

    .lore-bg {
        width: 100%;
        position: absolute;
        top: 15vh;
        height: 70vh;
    }

    .lore-item {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.5s ease;
    }

    .chara-sel {
        display: none;
    }

    .charas {
        display: none;
    }

    .chara-mobile {
        height: 38vh;
    }

    .chara-opt {
        position: absolute;
    }

    .chara-opt:first-child {
        top: 0;
        left: 5%;
    }

    .chara-opt:last-child {
        bottom: 0;
        right: 5%;
    }
    
    .chara-left {
        position: absolute;
        top: 0;
        left: -120px;
    }
    
    .chara-right {
        position: absolute;
        top: 0;
        right: -120px;
    }

    .back-btn {
        display: block;
        position: absolute;
        top: 13vh;
    }

    .back-btn > img {
        width: 100px;
    }

    #lore-3 .back-btn {
        right: 60px;
    }

    #lore-4 .back-btn {
        left: 40px;
    }

    .section-gameplay {
        flex-direction: column;
        height: inherit;
        justify-content: center;
        padding-bottom: 9vh;
    }

    .gameplay-iframe {
        width: 80vw;
        height: calc(80vw * 315 / 560);
    }

    .toggle-side.show, .toggle-side > img {
        left: 0;
    }

    .toggle-side > img {
        width: 100vw;
        min-height: 100vh;
    }

    .side-menus.mobile-display img {
        height: 4vh;
    }

    .side-menus.mobile-display div {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 5vh;
    }

    .side-menus.mobile-display {
        gap: 7vh;
        width: 50vw;
        align-items: flex-start;
        padding-left: 7vw;
    }

    .navbar-login img {
        height: 4vh !important;
    }
}

@media (min-width: 726px) {
    .explore-btn {
        margin: 0;
        padding-left: 107px;
    }
    
    .community-btn {
        margin: 0;
    }
}

@media (max-width: 725px) {
    .explore-btn {
        margin-bottom: 1vh;
    }

    .community ul {
        gap: 3vh;
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    .explore-btn > img {
        max-width: 60%;
        width: 600px;
    }

    .community-btn img {
        max-width: 60%;
        width: 400px;
    }
}

@media (orientation: landscape) and (max-height: 800px) {
    .gameplay-iframe {
        max-height: 30vh;
        max-width: calc(30vh * 560 / 315);
    }

    .section.active {
        height: 65vh !important;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .section.active {
        height: 55vh !important;
    }
}

@media (orientation: landscape) and (max-height: 430px) {
    .section.active {
        height: 70vh !important;
    }

    .explore-btn > img {
        max-width: 60%;
    }

    .community-btn img {
        max-width: 60%;
    }
}

.community-btn {
    text-align: center;
}

.menu-toggle {
    z-index: 9999;
}

.section-lore > .play-btn {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
}

.section {
    display: none;
}

.section.active {
    display: flex;
    flex-direction: column;
    height: 70vh;
}

.play-btn img {
    width: 30vw;
}

.f-direction-col-reverse {
    flex-direction: column-reverse !important;
}

.f-direction-col {
    flex-direction: column !important;
}

.section-content {
    display: flex;
    align-items: center;
    justify-items: flex-end;
}

.section-home {
    flex-direction: column;
    justify-self: flex-end;
    padding-bottom: 5vh;
}

.explore-btn {
    display: block;
    text-align: center;
    text-decoration: none;
}

.section-lore {
    height: 100vh;
    overflow: hidden;
    position: relative;
    flex-direction: column;
    justify-content: space-between;
    height: inherit;
    padding-bottom: 5vh;
}
    
.lore-item.active {
    opacity: 1;
    pointer-events: auto;
}

.section-timeline {
    flex-direction: column;
    justify-content: space-between;
    height: inherit;
    padding-bottom: 5vh;
}

.section-timeline > img {
    width: 60%;
}

.toggle-side.show {
    display: block;
    position: fixed;
    top: 0;
    z-index: 9998;
}

.toggle-side.hide {
    display: none;
}

.toggle-side > img {
    position: absolute;
    top: 0;
    height: 100vh;
    z-index: 1;
}

.side-menus {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    height: 100vh;
    gap: 20px;
}

.side-menus a {
    display: inline-block;
    text-align: center;
}