li {
    list-style-type: none;
    padding:0;
    margin:0;
}

h2 {
    margin: 0px;
}

h3 {
    margin: 10px 0px;
}

p {
    margin: bottom 2px;
}

.tt {
    border-bottom:1px solid var(--border-color);
    padding:0px 20px;
    width:fit-content;
}

.h_list {
    width:100%;
    flex-shrink: initial;
    align-items:flex-end;
    flex-wrap: wrap;
}

.f_tokens button{
    opacity:0;
    z-index:4;
}

.f_tokens object{
    margin-top:10px;
    width:30px;
    height:30px;
    filter:brightness(0%);
}

.f_tokens span{
    margin:0px 7px;
}

.f_tokens{
    text-align:center;
    display:flex;
    justify-content:space-around;
}

/* alignment */
#wrapper {
    align-items: center;
    grid-area: main;
    padding: var(--nav-allowance) var(--window-margin) var(--window-margin) var(--window-margin);
}

#main_profile { 
    align-items: center;
    justify-content: center;
    max-width: 420px;
    width: 100%;
}

#add_to_bucket .button-wrapper, #in_buck .button-wrapper, .own_move .button-wrapper {
    background: none;
    border: none;
}

.bg_over {
    justify-content:space-between;
    width:100%;
}

.g_poster{
    display: grid;
    grid-template-columns: 2px 18px 45px 63px 130px 63px 45px 18px 2px;
    grid-template-rows: 1px 12px 45px 102px 45px 25px 12px;
    animation: rotate 1s ease 0s 1 normal forwards running;
}

#vibo object{
    width:40px;
    height:40px;
}

.float {
    flex-wrap:wrap;
    flex-direction:row;
    align-items:center;
    justify-content:space-around;
    border:2px solid var(--border-color);
    position:fixed;
    top:25%;
    bottom:25%;
    left:10%;
    right:10%;
    width:80vw;
    height:fit-content;
    z-index:3000;
    background-color: var(--background-color);
    border-radius: var(--border-radius);
}

.float p {
    width:90%;
    margin-left:auto;
    margin-right:auto;
    text-align:center;
}

.float div {
    width:fit-content;
}


@keyframes opac{
    0%{
        opacity:0;
    }
    100%{
        opacity:1;
    }
}


.logs {
    z-index:500;
    color:white;
    border-radius: var(--border-radius);
    outline:hidden;
    display:none;
    align-items:center;
    background: var(--storyture-gradient);
}

.logs b {
    margin-left:auto;
    margin-right:auto;
}

#log_act {
    align-self: center;
    grid-area: 1 / 1 / 2 / 3;
    grid-template-rows: unset;
    grid-template-columns: unset;
}

#login-instructions {
    display: none;
}

#log_act:hover #login-instructions {
    display: flex;
}

#log_act .notification {
    border: 1px solid var(--border-color);
    box-sizing: border-box;
    font-size: 14px;
}


.poster {
    grid-area: 3/4/6/7;
    overflow: hidden;
    border-radius: 10px;
    height:100%;
}

.p_w_tt {
    background-color: var(--background-color-inverse);
    border: 1px solid var(--border-color-inverse);
    border-radius: 10px;
    grid-area: 3 / 4 / 6 / 7;
    transition: transform .2s ease-in-out;
}

.g_poster:hover .p_w_tt {
    transform: rotate(-20deg);
    transition: transform .1s ease-in-out;
}

@keyframes rotate{
    0% {
        transform: rotate(0deg);
    }
    50%{
        transform: rotate(-20deg);
    }
    100% {
        transform: rotate(0deg);
    }
}


@keyframes grow {
    0% {
        transform: rotate(0deg);
    }
    10%{
        transform: rotate(10deg);
    }
    30% {
        transform: rotate(-12deg);
    }
    100% {
        transform: rotate(0deg);
    }
}


.g_poster:hover .movie_act object {
    animation-name: grow;
    animation-duration: 2s;
    animation-fill-mode: forwards;
    animation-play-state: running;
}


.exp_score{
    margin: var(--window-margin);
    background-color: var(--background-color);
    border-radius: var(--border-radius);
    position: absolute;
}

.exp_score object{
    height:45px;
    width:45px;
}

.exp_score p {
    color: var(--storyture-gradient);
}

.movie_act {
    background: var(--background-color-inverse);
    border-radius: 0px 0px var(--border-radius) var(--border-radius);
    display: none;
}

.own_move{
    align-items: end;
    grid-area: 5 / 5 / 9 / 7;
}

.g_poster:hover .movie_act{
    display:flex;
}

.movie_act button{
    width:35px;
    opacity:0;
    height:35px;
    z-index:2;
}

.lock {
    margin-top: auto;
    padding: var(--window-margin);
}

.g_poster object{
    width:30px;
    height:30px;
    filter:invert();
    pointer-events: none;
}

.g_poster h5{
    color: var(--text-color);
    margin:6px;
}

#add_to_bucket, #in_buck {
    margin-top: auto;
}

.film_title {
    text-align: right;
}

.film_title h1 {
    margin: 0px;
}

@keyframes scroll{
    0%{
      transform: translate(0px, 0px);
    }
    70%{
      transform: translate(-40px, 0px);
    }
    100%{
      transform: translate(0px, 0px);
    }
  }



.poster img{
    width:100%;
    height:100%;
    margin-top:auto;
}

small.na{
    color:var(--border-color);
    font-weight: bold;
}

#foot_space{
    height:50px;
}

.container>*:first-child{
    position:relative;
    margin-bottom:-19px;
    transition: top .5s ease-out;
}

.content {
    opacity:0;
    text-align:left;
    padding:12px;
    width:87%;
    overflow:scroll;
    max-height: 0px;
    transition: max-height .5s ease-out,top .4s ease-in-out;
}

.content pre {
    font-family: futura, sans-serif;
    font-weight: normal;
}

.exp_label p {
    text-align:center;
    margin:0px;
}

.container {
    width:100%;
    display:flex;
    flex-direction:column;
    align-items:center;
    margin-top:10px;
    border:none;
    border-radius: var(--border-radius);
    font-size:14px;
    background:transparent;
    transition:margin .2s ease-in-out, height .4s ease-in-out, position .4s ease-in-out;
}

.container button {
    top:0px;
    padding: 5px 10%;
    transition: width .3s ease-in-out, top .4s ease-in-out,border .4s ease-in-out;
    width:100%;
    z-index:10;
    height:40px;
    align-items:baseline;
    align-items:center;
    background-color: var(--background-color);
}

.content button {
    height:30px;
}

.ho {
    overflow:hidden;
}

#story-metadata {
    border-top: 1px solid var(--border-color);
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    max-width: 420px;
    padding: var(--window-margin);
    width: 100%;
}

#story {
    display: flex;
    flex-direction: column;
    gap: var(--window-padding);
}

#research-notes {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    backdrop-filter: blur(20px) brightness(0.5);
    box-sizing: border-box;
    height: 70vh;
    left: 5dvw;
    opacity: 0;
    overflow-y: scroll;
    padding: var(--window-padding);
    pointer-events: none;
    position: fixed;
    text-align: justify;
    top: 10dvh;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    visibility: hidden;
    width: 90dvw;
    z-index: 10;
}

#research-notes.open {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#notes-header {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: var(--window-margin);
}

#close-research-notes {
    position: absolute;
    right: calc(2 * var(--window-margin));
    top: calc(2 * var(--window-margin));
}

#story-content{
    box-sizing: border-box;
    display: grid;
    gap: var(--window-padding);
    grid-template: "scene-select viewport" 1fr / 120px 1fr;
    padding: var(--window-margin);
    margin-top: 0px;
    transition: margin-top .5s linear
}

#story-content.active {
    margin-top: var(--nav-allowance);
}

#story-content.active .story-chapters {
    position: sticky;
    top: var(--window-margin);
}
.story-chapters {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: var(--window-margin);
    grid-area: scene-select;
    max-height: 0;
    overflow-y: hidden;
    width: 100%;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    pointer-events: none;
}

.story-chapters.active {
    max-height: 240px;
    opacity: 1;
    overflow-y: scroll;
    pointer-events: auto;
}

.story-chapters .button-wrapper {
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    background: none;
    text-align: right
}

.story-chapters .button-wrapper:hover {
    background: var(--background-color-inverse);
    color: var(--text-color-inverse);
    z-index: 2;
}

.story-viewer {
    display: flex;
    flex-direction: column;
    grid-area: viewport;
    max-width: 420px;
    min-height: 100dvh;
    min-width: 420px;
    width: 420px;
}

.story-viewer img {
    border-radius: var(--border-radius);
    margin: 10px 0px;
}

.story-viewer p, .story-viewer pre {
    font-size: 15px;
    line-height: 1.8em;
    margin-bottom: 1.3em;
    text-align: justify;
}

.chapter:hover .button-wrapper {
    background: var(--background-color-inverse);
}

.chapter.active .button-wrapper {
    background: var(--background-color-inverse);
    color: var(--text-color-inverse);
}

.chapter.active {
    opacity: 1 !important;
}

#story .chapter.open .content {
    max-height: fit-content;
    opacity: 1;
}

@media screen and (max-width: 600px) {
    .film_title {
        flex-direction: column;
        width: 60%;
    }
    .film_title p, .film_title h1 {
        text-align: center;
    }
    #research-notes p, #research-notes h1 {
        text-align: justify;
    }
    .film_title b {
        margin-bottom:0px;
        margin-top:0px;
    }
    #main_profile {
        flex-direction: column;
        z-index: 2;
    }
    #story {
        width: 100%;
    }
    #story-content {
        grid-template: "viewport " 1fr / 1fr;
    }
    .story-chapters {
        grid-area: viewport;
        position: relative;
    }
    #story-content.active .story-chapters {
        position: fixed !important;
        top: var(--window-margin);
        right: var(--window-margin);
        box-sizing: border-box;
    }
    .story-viewer {
        max-width: unset;
        min-width: 100px;
        width: 100%;
    }
    .container{
        width:90%;
    }
    .g_poster {
        grid-template-columns: 1px 1px 1px 63px 130px 63px 1px 1px 1px;
        grid-template-rows: 1px 4px 45px 102px 45px 25px 12px;
    }
    .poster{
        grid-area: 3/4/6/7;
        overflow: hidden;
        border-radius: 10px;
        height:100%;
    }
    #wrapper {
        max-width:100%;
        overflow-x:hidden;
        overflow-y:hidden;
        height:fit-content;
    }


}