@font-face {
    font-family: "Fredoka";
    src: url('/assets/fonts/fredoka/Fredoka-SemiBold.ttf');
}

html,
body {
    font: 100% "Fredoka";
    font-weight: normal;
    background-color: #ffffff;
    list-style: none;
    scroll-behavior: smooth;
    letter-spacing: .02em;
}

p {
    padding: 10px 0 10px 0;
}

li {
    display: inline-block;
}

img {
    margin: auto;
}

a {
    text-decoration: none;
    font-style: normal;
    color: #000000;
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
}

a:hover {
    color: #ECEAE2;
}

h1 {
    font-size: 60px;
    font-weight: normal;
}

h2 {
    font-size: 40px;
    font-weight: normal;
}

h3 {
    font-size: 25px;
    font-weight: normal;
    line-height: 27px;
}

h4 {
    font-size: 20px;
    font-weight: normal;
}

h5 {
    font-size: 17px;
    font-weight: normal;
    margin: 0;
}

figure {
    position: relative;
}

figure img {
    margin: auto;
}

figcaption {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.4);
    opacity: 0;
}

figure a:hover figcaption {
    color: #000000;
    opacity: 1;
    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
}


.root {
    margin: auto;
}

header {
    display: flex;
    margin-top: 2em;
    margin-bottom: 2em;
    max-width: 1900px;
}

.fixed {
    display: none;
}

.nav-wrapper {
    margin: auto;
    padding: 0.5rem 0.7rem;
    border-radius: 50vh;
    font-size: calc(.5vw + 15px);
    width: 75vw;
    max-width: 1000px;
    text-align: center;
    z-index: 10;
}

.nav-wrapper li {
    margin: auto 1vw;
}

@media screen and (min-width: 1800px) {
    .nav-wrapper {
        font-size: 24px;
    }

    .nav-wrapper li {
        margin: auto 18px;
    }
}

.container {
    text-align: center;
    max-width: 1900px;
}

.wrapper {
    width: 80vw;
    margin: auto;
    max-width: 1200px;
    display: grid;
    gap: .8em;
}

.bd {
    border: 3px solid black;
    overflow: hidden;
}

.rad {
    border-radius: calc(.5vw + 10px);
}

.rad-100 {
    border-radius: 100%;
}

.rad:hover {
    border-radius: 3px;
    transition: all 0.4s ease-out;
}

.rad-100:hover {
    transform: translate(0rem, -.3rem);
    transition: all 0.4s ease-out;
}

.bg-7 {
    background: rgba(181, 173, 162, 0.70);
}

.bg-3 {
    background: rgba(181, 173, 162, 0.30);
}

.bg-w {
    background: rgba(255, 255, 255, 1);
}

.panel {
    aspect-ratio: 1 / 1;
    /* aspect-ratio: 16 / 9; */
}

.panel img {
    aspect-ratio: 1 / 1;
    /* aspect-ratio: 2 / 1.5; */
    object-fit: cover;
    max-height: 700px;
}

.goodie .panel {
    aspect-ratio: 16 / 9;
}

.goodie .panel img {
    aspect-ratio: 2 / 1.5;
}

.logo-700 {
    display: none;
}

.logo-700 img {
    width: 40%;
    height: auto;
    min-width: 250px;
}

.logo-1800 img {
    width: auto;
    height: auto;
}

.wrapper.main {
    grid-template-columns: .71fr 1fr;
}

.wrapper.main .side-wrapper {
    grid-column-start: 1;
    grid-row-start: 1;
    display: grid;
    gap: 1em;
    grid-template-rows: 1fr;
}

.side-wrapper .news ul {
    position: absolute;
    width: 100%;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: flex-end;
    padding-bottom: 6px;
}

.side-wrapper .news ul :first-child {
    left: 0px;
}

.side-wrapper .news img {
    width: calc(4vw + 8px);
}

.side-wrapper .news {
    /* background-image: url("/assets/img/T1.png"),
        url("/assets/img/B1.png"), url("/assets/img/WebAnnouncementBanner-500x200.png");
    background-repeat: no-repeat;    
    background-size: clamp(50px, 6vw, 100px), clamp(50px, 6vw, 100px), 6vw;
    background-position: bottom .5vw left 1vw, bottom .5vw right 1vw, top left; */

    background-image: url("/assets/img/WebAnnouncementBanner-500x200.png");
    background-size: 100%;
    background-position: top left;
}

.side-wrapper .news a {
    display: flex;
    width: 100%;
    height: 100%
}

.side-wrapper .news a span {
    display: flex;
    background-color: #ffffff;
    background-clip: text;
    -webkit-text-stroke-color: transparent;
    -webkit-text-stroke-width: calc(4em / 16);
    -webkit-background-clip: text;
    color: var(--fc);
    font-size: clamp(.5em, 2vw, 1.5em);
    /* font-size: clamp(15px, calc(15px + (23 - 15) * ((100vw - 400px) / (800 - 400))), 23px); */
    /* font-size: max(2vw, .5em, .5rem); */

    -webkit-text-stroke-width: calc(4em / 16);
    position: absolute;
    bottom: 2%;
    right: 2%;
    padding: 5px;
    max-width: 400px;
}

/* .side-wrapper .news a {
    display: block;
    position: relative;
    /* bottom: -80%; */
/* right: -15%; 
    overflow: auto;
    width: 100%;
    height: 100%;
    font-size: 1.6em;
} 

/* .side-wrapper .news a svg {
    overflow: unset;
}

.side-wrapper .news a svg text {
    text-anchor: start;
    alignment-baseline: hanging;
}

.side-wrapper .news a svg text.u {    
    /* fill: var(--fc); */
/* stroke: var(--sc);
    stroke-width    : 6px;
    stroke-linejoin : round;

}
.side-wrapper .news a svg text.d {    
    fill: var(--fc);
    /* stroke: var(--sc);
    stroke-width    : 6px;
    stroke-linejoin : round; 

}  */


.item {
    margin: auto;
    position: relative;
}

.item .pagination {
    position: absolute;
    display: grid;
    width: 100%;
    height: 100%;
    align-items: center;
    grid-template-columns: .1fr 1fr .1fr;
}

.pg {
    display: block;
    height: 100%;
}

.pg img {
    width: 50px;
    padding: 10px;
}

.pg a {
    display: flex;
    height: 100%;
}

.pg a.next:hover, .pg a.prev:hover {
    background: rgba(181, 181, 181, 0.2);
}

.left.pg {
    grid-column-start: 1;
}

.right.pg {
    grid-column-start: 3;
}

.wrapper.main .side-wrapper .info {
    grid-column-start: 1;
    grid-row-start: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: .8fr 1fr;
    gap: 1em;
}

.wrapper.main .info .news {
    grid-column: span 2;
    position: relative;
}

.gallery {
    grid-template-columns: repeat(5, 1fr);
    /* grid-template-rows: .3fr 1fr 1fr 1fr 1fr .3fr; */
}

.character {
    grid-template-columns: repeat(5, 1fr);
    /* grid-template-rows: .05fr .5fr 1fr; */
}

.singles {
    grid-template-columns: 1fr .2fr;
    /* grid-template-rows: 800px 1fr; */
}

.gallery .pagination {
    font-size: 18px;
    grid-column: span 5;
}

.gallery .pagination ul {
    padding: .5em;
    background: rgba(181, 173, 162, 0.15);
    border-radius: 30px;
    display: inline-flex;
}

.gallery .pagination li {
    margin: auto .3em;
}

.gallery .pagination a:hover {
    color: rgba(249, 118, 21, 1);
}

.gallery.char {
    grid-column: span 5;
    display: grid;
    gap: 0.8em;
    /* grid-template-rows: .3fr 1fr 1fr .3fr; */
}

nav.pagination, .breadcrumbs {
    margin: 1em;
}

.wrapper .char-list {
    max-width: 800px;
    margin: auto;
}

.breadcrumbs {
    grid-column: span 5;
}

.breadcrumbs li {
    margin: auto .3em;
}

.wrapper .breadcrumbs img {
    width: calc(0.2*8vw + 20px);
    object-fit: none;
    object-position: 50% 35%;
}

.character .info {
    grid-column: span 5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 800px;
    margin: auto;
}

.character .info div {
    margin: auto;
}

.character .intro {
    width: 180px;
}

.pages {
    grid-template-columns: repeat(3, 1fr);
}

.pages .title {
    grid-column: span 3;
    margin: auto;
    font-size: 40px;
}

.pages .items {
    /* grid-row-start: 2; */
    grid-column: span 2;
}

.singles .items {
    text-align: left;
    width: 80%;
    margin: auto;
}

.pages .items a {
    opacity: 1;
    display: inline-block;
    /* border-radius: calc(.5vw + 10px); */
    padding: 0.5em;
    margin: 1em;
    color: #ffffff;
}

.pages .items a.downloads {
    background-color: rgb(255, 130, 35);
}

.pages .items figure img {
    max-height: 400px;
}

.pages .thumbs {
    margin: auto;
    grid-column: span 2;
}

.pages .thumbs li {
    width: 100px;
    aspect-ratio: 1/1;
    position: relative;
}

.pages .thumbs li a {
    display: block;
    padding: 0;
    margin: 0;
}

.pages .thumbs li img {
    object-fit: cover;
    aspect-ratio: 1/1;
    opacity: .3;
}

.pages .thumbs li span {
    display: block;
    position: absolute;
    top: 50%;
    width: 100%;
    margin: auto;
    height: 100%;
    line-height: 50%;
}

.pages .info {
    /* grid-column-start: 3; */
    padding: 1em;
}

.pages div {
    margin: auto;
}

.singles .panel {
    aspect-ratio: auto;
}

.singles .panel img {
    aspect-ratio: auto;
    max-height: 750px;
}

.singles .content {
    /* text-align: left; */
    margin: auto;
    line-height: 2em;
    position: relative;
}

.tags {
    margin: 2em 0;
}

.tags ul {
    margin: .5em 0;
}

.tags li {
    margin: .4em;
}

.tags a {
    background-color: rgb(255, 130, 35);
    padding: .5em;
    border-radius: calc(.5vw + 10px);
    color: #ffffff;
    text-transform: uppercase;
}

.availables {
    line-height: 1em;
    /* position: absolute; */
    /* bottom: 0; */
    display: grid;
    /* grid-template-columns: 1fr 1fr; */
    margin: auto;
    width: 12vw;
    text-align: center;
    gap: .6em;
}

.availables div {
    position: relative;
    display: block;
}

.availables a {
    background-color: rgba(181, 173, 162, 0.30);
    border-radius: calc(.5vw + 10px);
    padding: .5em;
    display: block;
    width: 100%;
}

.availables a:hover {
    color: rgba(181, 173, 162, 0.70);
    border-radius: calc(.2vw + 2px);
}

.availables img {
    max-width: 30px;
    display: inline-block;
    /* object-fit: cover;
    overflow: hidden;
    object-position: center;
    border: 3px solid #000000;
    border-radius: calc(.5vw + 10px); */
}

.availables span {
    vertical-align: middle;
    height: 100%;
    display: inline-block;
}

.contact {
    text-align: left;
}

footer {
    padding: 3em 0;
}

footer a:hover {
    color: rgba(181, 173, 162, 1);
}

.socials li {
    margin: auto .3em;
}

.footerimg {
    padding: 1.5em 0;
    width: 30vw;
    margin: auto;
}

footer .logo {
    padding: 2em 0;
}

footer .logo img {
    width: 10vw;
    margin: auto;
}

@media screen and (max-width: 910px) {
    .brdr {
        border-radius: 25px;
    }

    .fixed {
        display: block;
        position: relative;
    }

    button {
        width: 6rem;
        height: 3.5rem;
        background: #FFFFFF;
        border-radius: 10px;
        margin: 0.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
        min-width: 60px;
        cursor: pointer;
        filter: drop-shadow(0px 0px 1px rgba(0, 0, 0, 0.3));
    }

    .hamburger {
        transition: all 0.7s;
        transition-timing-function: cubic-bezier(0.68, -0.35, 0.265, 1.35);
    }

    .hamburger>div {
        width: 2.2em;
        height: 0.35em;
        background-color: #000000;
        border-radius: 10px;
        transition: all 0.1s 0.3s;
    }

    .hamburger>div::before, .hamburger>div::after {
        /* transition: font-size 0s; */
        content: "";
        display: block;
        position: absolute;
        width: 2.2em;
        height: 0.35em;
        background-color: #000000;
        border-radius: 10px;
        transition: all 0.3s 0.2s;
    }

    .hamburger>div::before {
        margin-top: -.55em;
    }

    .hamburger>div::after {
        margin-top: .6em;
    }

    .hamburger.toggled {
        transform: rotate(180deg);
    }

    .hamburger.toggled > div {
        background: transparent;
    }

    .hamburger.toggled > div::before {
        transform: rotate(45deg) translate(.4em, .4em);
    }

    .hamburger.toggled > div::after {
        transform: rotate(-45deg) translate(.4em, -.4em);
    }

    .nav-wrapper {
        padding: 0;
    }

    .nav-wrapper nav {
        position: relative;
        width: 100%;
        display: block;
        margin-bottom: 1em;
        height: 0;
        margin-top: -20px;
        transition: all 0.6s;
    }

    .nav-wrapper nav.open{
        height: 150px;
        margin-top: 0px;
    }

    .nav-wrapper nav li {
        display: block;
        height: 0;
        opacity: 0;
        transition: all 0.6s;
    }

    .nav-wrapper nav.open li{
        height: 26px;
        opacity: 1;
    }

    header {
        /* margin-top: 1em;
        margin-bottom: 1em; */
        display: none;
    }

    .wrapper.main {
        grid-template-columns: 1fr;
        grid-column-start: 1;
    }

    .wrapper.main .side-wrapper {
        grid-column-start: 1;
        grid-row-start: 2;
        gap: 0;
    }

    .logo-700 {
        display: flex;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .logo-1800 {
        display: none;
    }

    .wrapper.main .item {
        grid-column-start: 1;
    }

    .wrapper.main .side-wrapper .info {
        grid-template-columns: 1fr;
        grid-template-rows: .4fr 1fr 1fr;
    }

    .wrapper.main .info .news {
        grid-column: span 1;
    }

    .wrapper.main .info .illus {
        grid-row-start: 2;
    }

    .pg img {
        padding: 5px;
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery .pagination {
        grid-column: span 2;
    }

    .singles, .pages {
        grid-template-columns: 1fr;
    }    

    .pages .title, .pages .info {
        grid-column: span 2;
    }

    .pages .panel {
        width: 70%;
        margin: auto;
    }

    .goodie .panel {
        width: auto;
    }

    .wrapper .breadcrumbs img {
        width: calc(0.2* 8vw + 30px);
    }

    .goodie {
        grid-template-columns: repeat(2, 1fr);
    }

    .goodie .title {
        grid-column: span 2;
    }

    .contact {
        text-align: center;
        margin-top: 2em;
    }

    .footerimg {
        width: 70vw;
    }

    footer section {
        padding: 0 2em;
    }

    footer .logo img {
        width: 30vw;
    }
}