@import url(hake.css);
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=swap');

body {
    font-family: 'Libre Baskerville', serif;
    background-color: #f4f2e5;
    height: 100vh;
    color: #3f4346;
    padding: 0;
    margin: 0;
    font-weight: 300;
    font-size: 8px;
    display: flex;
    flex-direction: column;
}

#container {
    height: 100%;
    /*width: 100vw;*/
}

p {
    color: #2f3234;
    font-size: 2em;
    line-height: 1.5em;
}

h1{
    font-family: 'Libre Baskerville', serif;
    font-size: 5em;
    margin: 0;
}

.card.large h1{
    font-size: calc(2.2vmin + 1em);
    transition: all 0.6s cubic-bezier(.25,.8,.25,1), box-shadow 0.3s cubic-bezier(.25,.8,.25,1);
}

h2{
    font-family: 'Libre Baskerville', serif;
    font-size: 4em;
    margin: 0;
}

h3{
    font-family: 'Libre Baskerville', serif;
    font-size: 2.5em;
    line-height: 1.5em;
    margin: 0;
}

h4{
    font-family: 'HaKe', sans-serif;
    font-size: 2em;
    font-weight: bold;
    margin: 0;
}

h5{
    font-family: 'HaKe', sans-serif;
    font-size: 2em;
    font-weight: 400;
    margin: 0;
}

h6{
    font-family: 'HaKe', sans-serif;
    font-size: 1.4em;
    font-weight: 400;
    margin: 0;
}

hr {
    border: 0;
    height: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.header_top, .footer_bottom {
    display: inline-flex;
    flex-flow: row wrap;
    position: relative;
    max-width: calc(100vw - 8em);
    top: 4em;
    left: 4em;
    margin-bottom: 4em;
}

.footer_bottom {
    margin-top: 4em;
    margin-bottom: 8em;
}

.header_top h1, .header_top a, .footer_bottom a {
    font-size: 2em;
    font-weight: 400;
    font-family: 'HaKe', sans-serif;
    display: inline-block;
    margin: 0 0.5em 0 0;
    color: #3f4346;
    text-decoration: none;
    padding: 0.25em 0.75em 0.25em 0.25em;
    border-radius: 0.25em;
}

.header_top h1 {
    font-weight: 700;
}

.header_top a, .footer_bottom .links a {
    background-color: rgba(255, 255, 255, 0);
    transition: all 0.6s cubic-bezier(.25,.8,.25,1), box-shadow 0.3s cubic-bezier(.25,.8,.25,1);
}

.header_top a::before, .footer_bottom .links a::before {
    content: '▸';
    /*line-height: 1em;*/
    font-size: 1em;
    margin: 0 0.25em 0 0;
}

.header_top a:hover, .footer_bottom .links a:hover {
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 1px 3px rgb(0 0 0 / 12%), 0 1px 2px rgb(0 0 0 / 24%);
}

.home .header_top h1, .home .header_top a {
    color: #ffffff;
}

.home .header_top a {
    background-color: rgba(0, 0, 0, 0);
}

.home .header_top a:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

header {
    padding: 4em;
    /*width: 100%;*/
    max-width: calc(786px + 8em);
}

.pixel {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.home header {
    background-image: url('https://braininabowl.com/admin/assets/link/300d20dc346236423f000142');
    max-width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center bottom;
    padding: 0px;
    margin: 0 0 4em 0;
}

.home header .arrow-down {
    width: 0;
    height: 0;
    border-left: 5em solid transparent;
    border-right: 5em solid transparent;
    border-top: 3em solid #ffffff;
    position: absolute;
    bottom: 6em;
    left: calc(50vw - 5em);
    animation: arrow-down 8s cubic-bezier(.25,.8,.25,1) 0s infinite forwards;
}

@keyframes arrow-down {
    0% {opacity: 0; transform: translateY(0);}
    40% {opacity: 0; transform: translateY(-1em);}
    50% {opacity: 0.4; transform: translateY(1em);}
    60% {opacity: 0.4; transform: translateY(-1em);}
    70% {opacity: 0.4; transform: translateY(1em);}
    80% {opacity: 0.4; transform: translateY(-1em);}
    90% {opacity: 0.4; transform: translateY(1em);}
    100% {opacity: 0; transform: translateY(-1em);}
}

.home section {
    max-width: calc(1056px + 8em);
    margin: 0 auto;
    padding: 2em 4em;
}

.home section .data-container{
    display: flex;
    flex-flow: row wrap;
    gap: 4em;
    margin: 2em 0;
    justify-content: flex-start;
    align-content: flex-start;
    align-items: stretch;
}

.home a.button {
    padding: 0.75em 1em;
    border-radius: 4em;
    font-family: 'HaKe', sans-serif;
    font-size: 2em;
    font-weight: 400;
    color: #F5F5F5;
    background-color: #3f4346;
    transition: all 0.6s cubic-bezier(.25,.8,.25,1), box-shadow 0.3s cubic-bezier(.25,.8,.25,1);
}

.home a.button:hover {
    box-shadow: 0 1px 3px rgb(0 0 0 / 12%), 0 1px 2px rgb(0 0 0 / 24%);
    background-color: #222222 !important;
    cursor: pointer;
}

.home .button-container {
    text-align: right;
    padding: 2em 0 4em 0;
}


#data-items {
    background-color: #efedef;
}

.data-items {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-content: flex-start;
    align-items: stretch;
    gap: 4em;
    padding: 0 4em 4em;
}

.data-item {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.card {
    background-color: #fefffe;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgb(0 0 0 / 12%), 0 1px 2px rgb(0 0 0 / 24%);
    transition: all 0.6s cubic-bezier(.25,.8,.25,1), box-shadow 0.3s cubic-bezier(.25,.8,.25,1);
    border-radius: 0.5em;
}

.card.small {
    flex: 0 0 0px;
    width: 16%;
    min-width: 256px;
}

.card.large {
    width: 80vmin;
    height: auto;
    margin: 2em;
    position: relative;
}

a.card {
    text-decoration: none;
    color: #3f4346;
}

.card.small:hover {
    box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
    cursor: pointer;
}

.card img {
    margin: 0.5em;
    width: calc( 100% - 1em );
    transition: all 0.6s cubic-bezier(.25,.8,.25,1), box-shadow 0.3s cubic-bezier(.25,.8,.25,1);
}

.card.large img {
    width: calc( 80vmin - 1em );
    height: calc( 80vmin - 1em );
}

.card .label {
    transition: all 0.6s cubic-bezier(.25,.8,.25,1), box-shadow 0.3s cubic-bezier(.25,.8,.25,1);
}

.card.small .label {
    margin: 2em 2em 2.4em 2em;
}

.card.large .label {
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: stretch;
}

.card.large .label .top {
    margin: 4em 4em 0em 4em;
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
    align-items: stretch;
    flex-grow: 1;
}

.card.large .label .metadata {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-items: stretch;
    gap: 2em 4em;
    flex-grow: 1;
    margin: 2em 0;
}

.card.large .label .header {
    margin: 0 0 2em 0;
}


.card.large .label .nav{
    display: flex;
    flex-flow: row;
    justify-content: flex-start;
    align-items: stretch;
    background-color: #FFFFFF;
    transition: all 0.6s cubic-bezier(.25,.8,.25,1), box-shadow 0.3s cubic-bezier(.25,.8,.25,1);
}

a.button {
    font-size: 4em;
    color: #3f4346;
    width: 50%;
    height: 48px;
    line-height: 48px;
    text-align: center;
    text-decoration: none;
    transition: all 0.6s cubic-bezier(.25,.8,.25,1), box-shadow 0.3s cubic-bezier(.25,.8,.25,1);
}

a.button.disabled{
    opacity: 0.3;
}

a.button:not(.disabled):hover, a.button:not(.disabled):active {
    box-shadow: 0 7px 14px rgba(0,0,0,0.125), 0 5px 5px rgba(0,0,0,0.11);
    background-color: #FAFAFA;
    z-index: -2px;
}

.card hr {
    margin: 0;
}

.card.large .round.button {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    line-height: 32px;
    margin: 0 0 0 -32px;
    overflow: hidden;
    display: block;
    /*border: 1px solid #efedef;*/
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #F5F5F5;
}


#games-data-item {
    width: 100%;
    max-width: calc(786px + 8em);
    margin: 0 auto 4em;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: stretch;
}

#games-data-item .tag {
    font-family: 'HaKe', sans-serif;
    font-size: 1.5em;
    font-weight: 400;
    margin: 0;
    padding: 0.25em 0.5em;
    color: #F5F5F5;
    background-color: #3f4346;
}

#games-data-item header {
    width: calc(100% - 8em);
    display: flex;
    align-items: flex-end;
    flex-direction: row;
    flex-wrap: wrap-reverse;
    align-content: stretch;
}

#games-data-item header .label {
    display: flex;
    flex-flow: row wrap;
    gap: 2em 3em;
    margin: 2em 0;
}

#games-data-item header .text {
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-end;
    align-items: flex-start;
    align-self: stretch;
    flex-grow: 2;
}

#games-data-item section.body, #games-data-item section.play {
    padding: 2em 4em;
    font-size: 8px;
}

#games-data-item section.screen {
    width: 100%;
}

#games-data-item section.screen .slider {
    display: flex;
    flex-flow: row nowrap;
    overflow-x: scroll;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    box-shadow: 0 1px 8px rgb(0 0 0 / 12%), 0 1px 6px rgb(0 0 0 / 24%);
}

#games-data-item section.screen img {
    height: auto;
    flex-shrink: 0;
    width: 100%;
    scroll-snap-align: center;
}


/* ===== Scrollbar CSS ===== */
/* Firefox */
section.screen .slider {
    scrollbar-width: auto;
    scrollbar-color: #3f4346 #ffffff;
}

/* Chrome, Edge, and Safari */
section.screen .slider::-webkit-scrollbar {
    width: 16px;
}

section.screen .slider::-webkit-scrollbar-track {
    background: #ffffff;
}

section.screen .slider::-webkit-scrollbar-thumb {
    background-color: #3f4346;
    border-radius: 10px;
    border: 3px solid #ffffff;
}



#games-data-item section.play H2 {
    margin: 0 0 0.25em;
}

#games-data-item .link {
    display: none;
}

#games-data-item a.button {
    margin: 0 0 4em 0;
    padding: 0.75em 1.5em;
    border-radius: 2em;
    font-size: 1.25em;
    color: #F5F5F5;
    background-color: #3f4346;
    transition: all 0.6s cubic-bezier(.25,.8,.25,1), box-shadow 0.3s cubic-bezier(.25,.8,.25,1);
}

#games-data-item a.button:hover {
    box-shadow: 0 1px 3px rgb(0 0 0 / 12%), 0 1px 2px rgb(0 0 0 / 24%);
    background-color: #222222;
}

.data-items.games {
    padding: 0 4em 4em 4em;
    flex-flow: row wrap;
    margin: -4em auto 6em;
}

.data-items.games p.tag {
    display: inline-block;
    width: 100%;
    margin-bottom: -1em;
}

h6.tag {
    margin-top: 0.25em;
    padding: 0.25em 0.5em;
    color: #ffffff;
    background-color: #3f4346;
    border-radius: 4px;
    display: inline-block;
}

.games .card {
    display: flex;
    flex-flow: row nowrap;
    width: auto;
    min-width: auto;
    padding: 2em;
}

.games .card p {
    position: relative;
    margin-top: 0px;
    font-size: 1.8em;
    overflow-y: hidden;
    /*text-overflow: ellipsis;*/
    transition: all 0.6s cubic-bezier(.25,.8,.25,1);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    flex-grow: 1;
}

.games .card p:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    /* set width and height */
    width: 100%;
    height: 1.8em;
    background: linear-gradient(0deg, rgba(254,255,254,1) 0%, rgba(254,255,254,0) 100%);
}

.games .card.small .label {
    height: 256px;
    width: calc(256px - 6em);
    margin: 1.5em 1.5em 0 3em;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.games .scene {
    height: 256px;
    width: 256px;
    display:block;
    margin: 0;
    perspective: 400px;
    transition: all 0.6s cubic-bezier(.25,.8,.25,1);
}

.games .card .scene::before {
    position: absolute;
    bottom: 0px;
    display: block;
    content: '';
    width: 100%;
    height: 6px;
    background-color: rgba(0, 0, 0, 0);
    transition: all 0.6s cubic-bezier(.25,.8,.25,1);
}

.games .card:hover .scene::before {
    background-color: rgba(0, 0, 0, 0.2);
}

.games .card:hover .box {
    transform: rotateY(-45deg) translateX(-67px) translateZ(-51px);
}

.games .card hr {
    margin: 1em 0;
    border: 0;
    height: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.games .box {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(-29px);
    transition: all 0.8s cubic-bezier(.25,.8,.25,1);
}


#games-data-item .scene {
    margin: 0px auto;
    perspective: 400px;
    flex-grow: 0;
}


#games-data-item .box {
    transform: translateZ(-110px) rotateY( -30deg) translateX(-20px);
}

#games-data-item .box:hover {
    transform: translateZ(-130px) rotateY( -60deg);
}

/*.dark #games-data-item {
color: #efefef;
}*/

.games .box-front {
    width: 256px;
    height: 256px;
    line-height: 256px;
    background: hsla(  0, 100%, 50%, 0.7);
    transform: rotateY(  0deg) translateZ( 29px);
}

.games .box-face {
    position: absolute;
    font-size: 40px;
    font-weight: bold;
    color: white;
    text-align: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 50% 49%;
}


.games .box-bottom {
    width: 256px;
    height: 60px;
    line-height: 256px;
    background: linear-gradient(204deg, #dddddd 12%, #fdfdfd 36%);
    -moz-box-shadow:    inset 0 -4px 6px rgba(0,0,0,0.4);
    -webkit-box-shadow: inset 0 -4px 6px rgba(0,0,0,0.4);
    box-shadow:         inset 0 -4px 6px rgba(0,0,0,0.4);
    transform: rotateX(90deg) translateX(0px) translateY(0px) translateZ(-226px);
}

.games .box-drop {
    width: 300px;
    height: 140px;
    line-height: 256px;
    background: radial-gradient( rgba(0,0,0,0.5662640056022409) 40%, rgba(0,0,0,0) 70%);
    transform: rotateX(  90deg) translateX(-24px) translateY(-12px) translateZ(-192px);
}

.games .box-right {
    width: 60px;
    height: 256px;
    left: 128px;
    line-height: 60px;
    writing-mode: vertical-rl;
    font-size: 16px;
    color: #ffffff;
    background: rgb(36,35,31);
    background: linear-gradient(6deg, rgba(36,35,31,1) 70%, rgba(110,107,99,1) 100%);
    transform: rotateY( 90deg) translateZ(98px);
    overflow: hidden;
}

.games .box-right h6 {
    margin: 40px 0 8px 0;
    font-size: 1em;
}


.games .box-logo-side {
    width: 60px;
    height: 40px;
    min-width: 60px;
    margin: 0px;
    position: absolute;
    top: 0px;
    line-height: 40px;
    background: rgb(221,221,221);
    background: linear-gradient(30deg, #dddddd 0%, #ffffff 60%);
}

.games .box-label-front-drop-2 {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 28px 38px 0;
    border-color: transparent #eeeeee transparent transparent;
    position: absolute;
    top: 0px;
    right: 0px;
}


.games .box-label-front-drop {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 30px 40px 0;
    border-color: transparent #dddddd transparent transparent;
    position: absolute;
    top: 0px;
    right: 0px;
}

.games .box-label-front {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 26px 36px 0;
    border-color: transparent #ffffff transparent transparent;
    position: absolute;
    top: 0px;
    right: 0px;
}

.games .box-logo-side img{
    width: 30px;
    height: 30px;
    display: block;
    margin: 5px 15px;
}

.footer {
    width: calc(100% - 8em);
    padding: 2em 4em;
}

@media all and (orientation: landscape) {
    .card.large {
        flex-direction: row;
        height: 80vmin;
        width: auto;
    }

    .card.large .label {
        width: 40em;
        height: 80vmin - 9em;
    }

    .card.large .label .metadata {
        flex-flow: column wrap;
        gap: 2em;
    }
}

@media (max-width: 768px) {
    #games-data-item .link {
        display: block;
    }

    #games-data-item .embed {
        display: none;
    }

    .games .card {
        display: flex;
        flex-flow: row wrap;
        width: auto;
        min-width: auto;
    }

}
