:root {
    --debug-color: #ffffff00;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #17121c;
}

.trailer-frame {
    width: 640px;
    height: 360px;
}

.steam-frame {
    width: 640px;
}

.overlay {
    display: none;
    /* display: flex; */
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0px;
    height: 100vh;
    min-height: -moz-available;
    min-height: -webkit-fill-available;
    min-height: fill-available;

    width: 100vw;
    max-width: 100%;
    background-color: rgba(7, 2, 15, 0.96);
    z-index: 20;
}

#gallery-overlay-item {
    max-width: calc(100% - 32px);
}

.gallery-preview-container {
    margin: 0px auto;
    text-align: center;
    position: relative;
}

.navbutton {
    position: absolute;
    top: calc(50% - 32px);
    
    padding-top: 15px;
    font-size: 32px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #ffa1f2;
    color: rgb(26, 12, 23);
    text-align: center;
    cursor: pointer;
    text-decoration: none;
}

.fa-chevron-left {
    left: 3px;
}
.fa-chevron-right {
    right: 3px;
}

.po-container {
    display: block;
    color: white;
    font-family: 'Nunito', sans-serif;
    font-size: 3rem;
    text-align: center;
}

.fa-close {
    position: fixed;
    right: 48px;
    top: 48px;
    font-size: 4rem;
    text-decoration: none;
    color: white;
}

.po-info {
    font-size: 1.2rem;
    padding: 8px;
    max-width: 640px;
}

.menu-pc {
    display: flex;
    position: fixed;
    /* background: linear-gradient(#000000,#000000d7, #0000009c, #00000000); */
    background: linear-gradient(#271d33,#281d33d7, #271d339c, #251d3300);
    color: #3b243b;
    width: 100vw;
    max-width: 100%;
    height: 112px;
    z-index: 10;
}

.menu-pc-item-left {
    z-index: 11;
    margin-right: auto;
}

.menu-pc-item-left img {
    width: 136px;
    margin: 12px 0px 0px 12px;
}

.fa-brands {
    z-index: 11;
    padding-top: 7px;
    font-size: 17px;
    width: 32px;
    height: 32px;
    text-align: center;
    text-decoration: none;
    margin: 27px 4px;
    border-radius: 50%;
    background-color: #ffa1f2;
    color: rgb(26, 12, 23);
}

.fa-brands:first-of-type {
    margin-left: 12px;
}

.fa-brands:last-of-type {
    margin-right: 12px;
}

.menu-pc-item {
    z-index: 11;
    color: white;
    margin: 32px 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
}

.menu-vl {
    border-left: 1px solid rgba(255, 188, 255, 0.295);
    height: 24px;
    margin: 32px 12px;
}

.menu-button {
    width: 136px;
    height: 42px;
    border-radius: 24px;
    background-color: #ffa1f2;
    color: rgb(26, 12, 23);
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    z-index: 11;
    margin: 22px 12px;
    text-decoration: none;
}

section {
    position: relative;
    /* min-height: 150vh; */
    min-height: calc(100vh + 128px);
    justify-content: center;
    align-items: center;
    padding: 0px;
    
}

.section-charselect {
    background-color: #222340;
}

.section-story {
    background-color: #1a1a21;
}

.section-trailer {
    background-color: #1a1a21;
}

.section-gallery {
    background-color: #203328;
}

.section-soundtrack {
    background-color: #2b3d5f;
}

.section-news {
    background-color: #1a1a21;
}

.section-footer {
    background-color: #100c15;
    max-height: inherit;
    min-height: inherit;
    text-align: center;
    /* font-family: 'Nunito', sans-serif; */
    font-family: "Open Sans", sans-serif;
    font-size: 0.9rem;
    line-height: 24px;
    color: white;
    padding: 12px;
}

.section-footer > a {
    color: white;
}

.studio-logo {
    width: 256px;
}

section.titlepage {
    background-image: url("images/unknown.png");
    max-height: 120vh;
    min-height: 120vh;
}

.charselect {
    position: relative;
    width: auto;
    height: 100vh;
    max-width: 120vh;
    
    margin: auto;
    padding: 0px;
    background-color: #00000000;
}

#myVideo {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
}

.charcard {
    position: relative;
    display: flex;
    flex-wrap: wrap-reverse;
    justify-content: center;
    align-items: stretch;
    padding: 0px;
    border: 1px var(--debug-color) solid;
    margin: 0px 64px 0px 64px;
    max-height: 90%;;
}

.charbg {
    opacity: 0.05;
    position: absolute;
    top: -10%;
    height: 100vh;
    right: -25%;
}

h1.ctitle {
    color: white;
    font-family: 'Nunito', sans-serif;
    width: 100%;
    text-align: center;
    font-size: 4rem;
    margin-top: 0px;
    margin-bottom: 32px;
    padding-top: 32px;
}

.charinfo {
    flex: 2 10 60%; /* <-- THIS?!? */
    margin: auto;
    color: white;
    font-family: 'Nunito', sans-serif;
    border: 1px var(--debug-color) solid;
    padding: 20px;
}

.charimg {
    flex: 0 1 40%; /* <-- THIS?!? */
    margin-top: auto;
    margin-bottom: auto;
    margin-left: -50px;
    border: 1px var(--debug-color) solid;
}

.charimg2 {
    max-width: 50vw;
    height: auto;
}

.charinfo h1 {
    font-size: 4rem;
    margin: 0px;
}

.charinfo h2 {
    font-size: 2rem;
}

.charinfo p {
    font-size: 1.5rem;
}

.csarrow {
    font-size: 6rem;
    color: white;
    cursor: pointer;
    z-index: 10;
    position: absolute;
    top:auto;
    bottom:auto;
    transform: translateY(20vh);
}

#cs-left{
    left:4px
}

#cs-right{
    right:4px;
}

.charicons {
    position: relative;
    display: flex;
    justify-content: center;
    margin: auto;
}

.chariconbutton {
    position: relative;
    cursor: pointer;
}

.charicon {
    width: calc(96px - 16px - 8px);
    position: absolute;
    border-radius: 50%;
    left: 12px;
    top: 12px;
}

.chariconborder {
    position: relative;
    width: 96px;
    border-radius: 50%;
    padding: 8px;
    opacity: 0.2;
}
.chariconborder:hover {
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

.bgcontainer {
    position: relative;
    margin: 0px;
    width: 100%;
    height: 100%;
}

.logo {
    width: 480px;
    max-width: 90%;
    margin-bottom: 32px;
}

.pg1-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.inner-container {
    position: relative;
    color: white;
    font-family: 'Nunito', sans-serif;
    font-size: 1.3rem;
    margin: auto;
    padding-top: 128px;
    text-align: center;

    max-width: 640px;
    padding: 12px;
}

.inner-container.soundtrack {
    max-width: 640px;
    padding: 12px;
    padding-top: 128px;
}

.inner-container.summary {
    max-width: 640px;
    padding: 12px;
    padding-top: 128px;
}

.inner-container.gallery {
    justify-content: center;
    align-items: center;
    padding: 128px;
    max-width: none;
}

.inner-container.news {
    max-width: 640px;
    padding: 12px;
}

.gallery-container {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-item {
    padding: 12px;
}

.gallery-item img {
    width: 480px;
}

.gallery-item iframe {
    width: 480px;
    height: 270px;
    padding: 0px;
    margin: 0px;
}

.cta-button.cta-green {
    background-color: rgb(111, 170, 111);
    color: rgb(1, 10, 1);
}

.cta-button.cta-blue {
    background-color: rgb(90, 139, 211);
    color: rgb(13, 17, 49);
    width: 260px;
    left: calc(50% - 130px);
}

.bg {
    position: absolute;
    background: url("") no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    height: 100%;
	width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(180deg,transparent 0,#000 20%);
    -webkit-mask-image: linear-gradient(180deg,transparent 0,#000 20%);
}

.bg.bg1 {
    background-image: url("images/bg5.png");
    /* mask-image: linear-gradient(180deg,transparent 0,#000 30%); */
    mask-image: none;
}

.bg.bg2 {
    background-image: url("images/bg2.png");
}

.bg.bg3 {
    background-image: url("images/bg6.png");
}

.bg.bg4 {
    background-image: url("images/bg8.png");
}

.bg.bg5 {
    background-image: url("images/bg9.png");
}

.section-hat {
    position: absolute;
    top: -128px;
    width: 100%;
    height: 128px;
    background-size: 100vw 128px;
    left:0px;
    right: 0px;
    z-index: 2;
}

.section-hat.s1-hat { 
    background-image: url("images/section-hat.png");
}

.section-hat.s2-hat { 
    background-image: url("images/section-hat2.png");
}

.section-hat.s3-hat { 
    background-image: url("images/section-hat3.png");
}

.section-hat.s4-hat { 
    background-image: url("images/section-hat4.png");
}

.loading-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: #0e0e0e;
    z-index: 20;
    
    animation-name: bg-loading;
    animation-duration: 3s;
    animation-iteration-count: 1;
    transition: easy-in-out;
    animation-fill-mode: forwards;
}

.loading-blob {
    background-image: url("images/loading-blob.png");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    z-index: 21;
    width: 100%;
    height: 100%;
    
    animation-name: blob-loading;
    animation-duration: 3s;
    animation-iteration-count: 1;
    transition: easy-in-out;
    animation-fill-mode: forwards;
}

.loading-coco {
    background-image: url("images/loading-coco.png");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    z-index: 22;
    width: 100%;
    height: 100%;
    
    animation-name: coco-loading;
    animation-duration: 3s;
    animation-iteration-count: 1;
    transition: easy-in-out;
    animation-fill-mode: forwards;
}

.store-links-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 35vh;
}

.store-link {
    box-shadow:0 0 10px #ffa1f2;

    border-radius: 50%;
    width: 64px;
    height: 64px;
    background-color: white;
    margin: 12px;
    cursor: pointer;
}

.store-link-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.store-link-img-container img {
    width: 38px;

    /* filter: invert(37%) sepia(11%) saturate(2931%) hue-rotate(232deg) brightness(92%) contrast(93%);
     */
    filter: invert(26%) sepia(28%) saturate(814%) hue-rotate(232deg) brightness(95%) contrast(82%);
}

.cta {
    position: absolute;
    background: rgb(255,255,255);
    /* background: linear-gradient(270deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 20%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 80%, rgba(255,255,255,0) 100%); */
    background: linear-gradient(270deg, rgba(0,0,0,0) 25%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 75%);
    
    margin-right: 0px;
    width: 100%;
    z-index: 3;
    bottom: 36vh;
    height: 128px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: rgb(255, 243, 255);
    font-family: 'Nunito', sans-serif;
}

.cta-button {
    position: absolute;
    bottom: calc(36vh - 24px);
    width: 220px;
    height: 48px;
    border-radius: 32px;
    left: calc(50% - 110px);
    z-index: 4;
    background-color: #ffa1f2;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(26, 12, 23);
    font-weight: bold;
    cursor: pointer;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    text-decoration: none;
}

.cta-button.cta-rel {
    position: relative;
    bottom: auto;
}

.ost-thumb {
    width: 320px;
    box-shadow: 10px 10px 50px black;
}

a:link.saintbelt, a:visited.saintbelt {
    color:#ffa1f2;
    text-decoration: none;
}
a:hover.saintbelt, a:active.saintbelt {
    color: #5a8bd3;
    text-decoration: underline;
}

.blogpost {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: left;
    border-radius: 16px;
    background-color: rgba(0, 0, 0, 0.767);
    padding: 12px;
    margin: 12px;
    cursor: pointer;
    transition: ease-in-out 0.2s;
}

a.blogpost {
    text-decoration: none;
    color: inherit;
}

.blogpost:hover {
    background-color: rgba(85, 62, 114, 0.767);
}

#blogfeed .h {
    font-weight: bold;
    font-size: 1rem;
}

#blogfeed .date {
    color: rgba(255, 255, 255, 0.473);
}

#blogfeed div {
    font-size: 0.9rem;
}

#blogfeed img {
    width: 120px;
    height: 120px;
    border-radius: 4px;
}

.bpcontent {
    display: flex;
    margin-top: 4px;
}

.bpdescription {
    height: 120px;
    overflow: hidden;
}

.bpcontent div {
    padding: 8px;
}

@media only screen and (max-width: 768px) {
    .cta {
        background-color: rgba(0,0,0,0.5);
        /* top: calc(100vh - 128px); */
    }
    .bg.bg3 {
        background-image: url("images/bg7.png");
    }

    .menu-button {
        display: none;
    }

    .trailer-frame {
        width: 360px;
        height: 202px;
        max-width: 80vw;
        max-height: calc(80vw * 0.5625);
    }

    .steam-frame {
        width: 360px;
        max-width: 80vw;
    }

    .gallery-item img {
        width: 360px;
        max-width: 80vw;
    }
    .gallery-item iframe {
        width: 360px;
        height: 202px;

        max-width: 80vw;
        max-height: calc(80vw * 0.5625);
    }
    .inner-container.gallery {
        padding: 48px;
        padding-top: 0px;
    }
    .inner-container.story {
        padding: 48px;
        padding-top: 0px;
    }
    
    .navbutton {
        padding-top: 14px;
        font-size: 20px;
        width: 48px;
        height: 48px;
    }
}


@media only screen and (max-width: 1000px) {
    .menu-pc-item, .menu-vl {
        display: none;
    }
}


@keyframes bg-loading {
    from {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes coco-loading {
    from {
        transform: scale(1);
    }
    80% {
        transform: scale(1);
    }

    to {
        transform: scale(0);
    }
}

@keyframes blob-loading {
    from {
        transform: scale(1);
    }

    20% {
        transform: scale(0.9);
    }

    40% {
        transform: scale(1);
    }

    60% {
        transform: scale(0.9);
    }

    80% {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(0);
        opacity: 0;
    }
}