html,
body {
    overflow-x: hidden;
    position: relative;
    margin: auto;
    word-spacing: 5px;
}

body {
    max-width: 100%;
    overflow: hidden;
}

#header {
    position: fixed;
    width: 100%;
    height: 60px;
    overflow: hidden;
    z-index: 50;
}

#header-content {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 50%;
    transform: translate(-50%, 0%);
}

#glowTitleImage {
    position: fixed;
    top: -18px;
    left: 50%;
    transform: translate(-50%, 0%);
}

#titleImage {
    position: fixed;
    height: 130%;
    top: -3px;
    left: 50%;
    transform: translate(-50%, 0%);
}

#shop_link_container {
    padding-right: 10px;
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translate(-100%, -50%);
    width: 150px;
}

#main {
    min-height: calc(100vh - 346px);
    display: block;
    width: 100%;
    padding-top: 60px;
    padding-bottom: 20px
}

#background {
    position: static;
}

#game_and_adv {
    display: flex;
    position: static;
    margin: 0px 1vw 0px 1vw;
    justify-content: center;
}

#game {
    z-index: 1;
}

#game_iframe {
    position: relative;
    height: min(calc(100vw/2), 100vh - 60px);
    width: min(100vw, calc(100vh/0.3));
    margin: 0px auto;
    left: 50%;
    transform: translateX(-50%);
}

.aspace {
    /*    border: 2px solid rgba(0, 0, 0, .4);*/
}

.aspace-v {
    height: min(calc(70vw/16*9), 70vh);
    width: 7vw;
    width: calc((100vw - min(70vw, calc(70vh/9*16)))/2 - 3vw);
    z-index: 0;
}

#aspace-left {
    margin-right: 1vw;
}

#aspace-right {
    margin-left: 1vw;
}

#fullscreenbtn {
    position: relative;
    width: 38px;
    height: 38px;
    margin: 10px auto;
    left: calc(min(70vw, calc(70vh/9*16))/2);
    transform: translateX(-50%);
}

#content {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 600px;
    margin: auto;
    pointer-events: none;
}

#store-links {
    display: flex;
    margin: 20px auto;
    justify-content: center;
    flex-wrap: wrap;
}

.store-link {
    margin: 0 10px;
    text-decoration: none;
    pointer-events: auto;
    height: 10vw;
    min-height: 40px;
    max-height: 80px;
    padding: 5px;
}

.link-badge {
    object-fit: contain;
    height: 100%;
    width: auto;
}

.aspace-h {
    position: relative;
    display: block;
    margin: 20px auto;
    width: 95%;
    max-width: 728px;
    height: 90px;
}

.section {
    position: relative;
    margin: 40px 2vw;
    max-width: min(70vw, calc(70vh/9*16));
    left: 50%;
    transform: translateX(calc(-50% - 2vw));
}

.section h1,
.section h2 {
    text-align: center;
    text-shadow: 1px 1px 1px #000
}

.section h1 {
    font-size: 2.5rem;
}

.section .section-body {
    padding: 7px 15px;
    text-shadow: 1px 1px 1px #333
}

.section .section-body p {
    text-align: center;
    font-size: 1.5rem;
    padding: 14pt
}

.section .section-body ul {
    margin-left: 23px;
    font-size: 1.5rem;
    padding: 14pt;
    line-height: normal
}

.section .section-body ul li {
    padding: 8px
}

.section .section-body ol {
    margin-left: 23px;
    font-size: 1.5rem;
    padding: 14pt;
    line-height: normal
}

.section .section-body ol li {
    padding: 8px
}

.section .section-body a {
    color: #fff
}

.section .section-body a:hover {
    color: #ffba00
}

#diceBottom {
    position: relative;
    margin: 17px auto;
    left: 50%;
    transform: translate(-50%, 0%);
}

#footer {
    display: flex;
    height: 250px;
    max-height: 250px;
    overflow: hidden;
    z-index: 1;
    /*    background: linear-gradient(180deg, rgba(2, 39, 68, 1) 0%, rgba(2, 75, 142, 0.81) 100%);*/
    background-blend-mode: screen;
    background-color: #0b0c1f;
    text-align: center;
    font-size: 16pt;
    text-shadow: 1px 1px 1px #333;
    position: relative;
    border-top: solid 1px rgba(0, 0, 0, .4);
    box-shadow: 0px -5px 10px 0px rgb(0 0 0 / 50%);
}

.footer_content {
    margin: auto;
    display: flex;
    flex-direction: column;
}

.footer_content p {
    margin: 5px;
}

@media screen and (max-width: 768px) {
    .section h1 {
        font-size: 2rem;
    }

    .section .section-body p {
        font-size: 1.2rem;
    }

    .section .section-body ul {
        font-size: 1.2rem;
    }

    .section .section-body ol {
        font-size: 1.2rem;
    }

    .footer_content p {
        font-size: 1.2rem;
    }

    .footer_content a {
        font-size: 1.2rem;
    }

    #titleImage {
        left: 10px;
        transform: translate(0%, 0%);
    }
}

@media screen and (max-width: 600px) {
    /*.section h1 {
        font-size: 2rem;
    }*/

    .section .section-body p {
        font-size: 1.1rem;
    }

    .section .section-body ul {
        font-size: 1.1rem;
    }

    .section .section-body ol {
        font-size: 1.1rem;
    }

    .footer_content p {
        font-size: 1.1rem;
    }

    .footer_content a {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 1200px) {
    #shop_link_container {
        width: 100px;
    }

    #shop_link {
        font-size: 18px;
    }

    .aspace-v {
        visibility: hidden;
        display: none;
    }

    /* #game_iframe {
        width: 95vw;
        height: calc(95vw/16*9);
        margin: 0px auto;
    } */

    .section {
        max-width: 95vw;
        left: 0px;
        transform: translateX(0px);
        margin: 40px auto;
    }

    #fullscreenbtn {
        left: calc(95vw/2);
        transform: translateX(-50%);
    }
}

@media (orientation: portrait) {
    #header {
        display: none;
    }

    #main {
        padding-top: 0px;
    }

    #game_iframe {
        height: min(calc(100vw / 2), 100vh);
    }
}