::-moz-selection {
    /* Code for Firefox */
    background: #f0ab5b;
}

::selection {
    background: #f0ab5b;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Alegreya", serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: url(./media/imgs/pattern.jpg);
    background-size: 25%;

    --itemWidth: 15vw;
    --itemWidthMinus: calc(-1 * var(--itemWidth));
    --itemHeight: calc(var(--itemWidth) / 4);
    --itemHeightMinus: calc(-1 * var(--itemHeight));
}

body p {
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}

h1,
h2 {
    color: #4e3023;
    font-weight: bold;
    text-align: center;
}

h1 {
    font-size: 2.4vw;
}

#background-video {
    width: 100vw;
    height: 105vh;
    object-fit: cover;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: -2;
}

.nav-bar {
    position: fixed;
    top: 0;
    display: flex;
    width: 100vw;
    justify-content: space-between;
    padding: 2em 3em;
    background-image: linear-gradient(white, rgba(255, 255, 255, 0));
    z-index: 5000;
}

nav {
    margin-top: 1rem;
    margin-right: 7rem;
    font-weight: 400;
    font-style: normal;
    font-size: 1.5em;
}

nav a {
    --b: 0.1em;
    /* the thickness of the line */
    --c: #f0ab5b;
    /* the color */

    color: #4e3023;
    margin-left: 1rem;
    text-decoration: none;

    padding-block: var(--b);
    background:
        linear-gradient(var(--c) 50%, #4e3023 0) 0% calc(100% - var(--_p, 0%))/100% 200%,
        linear-gradient(var(--c) 0 0) 0% var(--_p, 0%)/var(--_p, 0%) var(--b) no-repeat;
    -webkit-background-clip: text, padding-box;
    background-clip: text, padding-box;
    transition: .3s var(--_s, 0s) linear, background-size .3s calc(.3s - var(--_s, 0s));
}

nav a:hover {
    --_p: 100%;
    --_s: .3s;
    color: #f0ab5b;
}

.logo {
    width: 8rem;
}

.about-banner,
.update-banner {
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr max-content 1fr;
    grid-template-rows: 80vh;
    align-items: center;
}

.about-banner-mask {
    -webkit-mask-image: url(./media/imgs/brush-mask.png);
    mask-image: url(./media/imgs/brush-mask.png);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 130%;
    mask-size: 130%;
    -webkit-mask-position: 50% 0;
    mask-position: 50% 100%;
    width: 100vw;
}

.about-banner .social,
.update-banner .social {
    grid-column: 1 / 2;
}

.about-banner h1 {
    grid-column: 2 / 3;
    font-size: 3vw;
}


.about-banner::before,
.update-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    background: center / 100vw no-repeat url(./media/imgs/worl-map.png);
    z-index: -1;
}

.update-banner::before {
    background: center / 100vw no-repeat url(./media/imgs/news/4.png);
}

.main-post {
    display: flex;
    width: 100vw;
    justify-content: center;
}

figcaption {
    text-align: center;
}

.blog-post {
    text-align: justify;
    max-width: min(50rem, 90vw);
    color: #4e3023;
}

.blog-post h1 {
    text-align: justify;
}

.blog-post a {
    text-align: center;
    text-decoration: underline;
    color: #4e3023;
    font-weight: 700;
    font-size: 1.5vw;
    transition: .5s;
}

.blog-post a:hover {
    color: #f0ab5b;
}

.news-banner {
    display: flex;
    align-items: center;
    width: 100vw;
}

.news-banner .about-text {
    width: 20vw;
    margin-left: -4vw;
}

.news-banner .about-text h1,
.old-news h1 {
    margin-top: 0;
}

.date {
    font-size: x-small;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr repeat(3, max-content) 1fr;
    grid-template-rows: repeat(3, max-content) 1fr;
    column-gap: 5vw;
    row-gap: 5vh;
}

.n1 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.n2 {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.n3 {
    grid-column: 4 / 5;
    grid-row: 1 / 2;
}

.n4 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.n5 {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

.n6 {
    grid-column: 4 / 5;
    grid-row: 2 / 3;
}

.n7 {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}

.n8 {
    grid-column: 3 / 4;
    grid-row: 3 / 4;
}

.n9 {
    grid-column: 4 / 5;
    grid-row: 3 / 4;
}

.pagination {
    grid-column: 3 / 4;
    grid-row: 4 / 5;

    display: flex;
    width: 100%;
    justify-content: center;
}

.page-btn {
    padding: .5vw;
    color: #4e3023;
    transition: .5s;
}

.page-btn:not(.page-active):hover {
    color: #f0ab5b;
    font-weight: 900;
    cursor: pointer;
}

.page-active {
    color: #f0ab5b;
    font-weight: 900;
}

.old-news {
    width: 20vw;
}

.old-news h1 {
    text-align: left;
}

.old-news p {
    text-align: justify;
}

.news-mask {
    -webkit-mask-image: url(./media/imgs/brush-mask.png);
    mask-image: url(./media/imgs/brush-mask.png);
    -webkit-mask-size: cover;
    mask-size: cover;
}

.news-img {
    transition: 1s;
    width: 100%;
}

.news-img:hover {
    scale: 1.2;
}

.news-header {
    text-align: center;
}

.news-header h1 {
    font-size: 4vw;
    margin-bottom: 0;
}

.news-header h3 {
    font-size: 2vw;
    color: #4e3023;
}

.banner-box {
    display: flex;
    width: 100vw;
    height: 100vh;
    align-items: center;
    justify-content: space-between;
}

.banner-box .social,
.about-banner .social,
.update-banner .social,
.news-banner .social {
    display: flex;
    flex-direction: column;
    margin-left: .8rem;
}

.banner-box .social .svg-logo,
.about-banner .social .svg-logo,
.update-banner .social .svg-logo,
.news-banner .social .svg-logo {
    margin-bottom: .5rem;
}

.social .svg-logo {
    transition: 1s;
}

.social .svg-logo:hover {
    filter: invert(70%) sepia(52%) saturate(517%) hue-rotate(341deg) brightness(98%) contrast(92%);
}

.banner-box .welcome-text {
    font-size: 5vw;
    max-width: 25vw;
    margin-right: 15vh;
    line-height: 5vw;
    text-shadow: 0 0 8px #00000050;
    animation-name: welcome-anim;
    animation-duration: 1.5s;
    filter: blur(0);
}

@keyframes welcome-anim {
    from {
        font-size: 15vw;
        filter: blur(2rem);
        max-width: 75vw;
        margin-right: 0vh;
    }

    to {
        font-size: 5vw;
        filter: blur(0);
        max-width: 25vw;
        margin-right: 15vh;
    }
}

.buttons {
    display: flex;
    width: 100vw;
    justify-content: center;
    margin-top: -12vh;
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    text-decoration: none;
    margin-right: 1rem;
    border-radius: .5rem;
    padding: .2rem 1rem;

    box-shadow:
        inset var(--itemWidthMinus) var(--itemHeightMinus) 0 #f0ab5b,
        inset var(--itemWidth) var(--itemHeightMinus) 0 #4e3023,
        inset var(--itemWidthMinus) var(--itemHeight) 0 #4e3023,
        inset var(--itemWidth) var(--itemHeight) 0 #4e3023;
    transition: ease-in-out .6s;
    width: var(--itemWidth);
    height: --itemHeight;

    cursor: pointer;
    font-size: calc(var(--itemWidth) / 15);
}

.btn:hover {
    box-shadow:
        inset 0 0 0 #4e3023,
        inset 0 0 0 #4e3023,
        inset 0 0 0 #4e3023,
        inset 0 0 0 #4e3023,
        0 0 2rem black;
}

.b1 {
    animation-name: btn-anim;
    animation-duration: .5s;
}

.b2 {
    animation-name: btn-anim;
    animation-duration: 1s;
}

.b3 {
    animation-name: btn-anim;
    animation-duration: 1.5s;
}

.b4 {
    animation-name: btn-anim;
    animation-duration: 2s;
}


@keyframes btn-anim {
    from {
        filter: blur(2rem);
        scale: 2;
    }

    to {
        filter: blur(0);
        scale: 1;
    }
}

.btn p {
    font-weight: 700;
    color: #4e3023;
}

.svg-logo {
    width: 1.8vw;
    margin-right: .5rem;
    filter: invert(18%) sepia(12%) saturate(1946%) hue-rotate(333deg) brightness(98%) contrast(91%);
}

main {
    margin-top: 15vh;
}

.about-main {
    display: flex;
    width: 100vw;
    justify-content: center;
    margin-top: 0;
}

.text-img {
    display: flex;
    width: min(100vw, 80rem);
    justify-content: center;
    margin-top: 10vh;
}

.text-img-mask {
    -webkit-mask-image: url(./media/imgs/brush-mask.png);
    mask-image: url(./media/imgs/brush-mask.png);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: cover;
    mask-size: cover;
    width: 70vw;
    z-index: -1;
}

.text-img-mask img {
    width: 70vw;
}

.text-box {
    width: 20vw;
    background-color: #f0ab5b;
    padding: 3vw;
    border-radius: 1vw;
    box-shadow: 0 .5rem 1rem 0 rgba(0, 0, 0, 0.4);
    transition: 1s;
    opacity: .9;
}

.bottom-right {
    align-self: flex-end;
    margin-left: -20vw;
}

.top-left {
    align-self: flex-start;
    margin-right: -20vw;
}

.top-right {
    align-self: flex-start;
    margin-left: -20vw;
}

.bottom-left {
    align-self: flex-end;
    margin-right: -20vw;
}

.text-box:hover {
    scale: 1.02;
    box-shadow: 0 .7rem 1rem 0 rgba(0, 0, 0, 0.3);
    transform: translateY(-.5rem);
}

.text-box h1 {
    font-size: x-large;
}

hr {
    border: .1rem solid #4e3023;
}

.text-box p {
    text-align: center;
}

.anim {
    opacity: 0;
}

.scroll-anim {
    animation-name: scroll;
    animation-duration: 1s;
    opacity: 1;
}

@keyframes scroll {
    from {
        filter: blur(2rem);
        scale: .5;
    }

    to {
        filter: blur(0);
        scale: 1;
    }
}

.about {
    display: flex;
    width: 100vw;
    height: 100vh;
    justify-content: space-between;
    align-items: center;
}

.about-text {
    padding-left: 3vw;
    width: 30vw;
}

.about-text h1 {
    text-align: left;
}

.about-text p {
    text-align: justify;
}

.about-text .btn,
.old-news .btn {
    text-decoration: none;
    font-weight: 700;
    color: #4e3023;
    padding: 1.5vh;
    margin-top: 2rem;
}

.mask1 {
    -webkit-mask-image: url(./media/imgs/brush-mask.png);
    mask-image: url(./media/imgs/brush-mask.png);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: cover;
    mask-size: cover;
    width: 70vw;
}

#world-map {
    transition: 1s;
    width: 70vw;
}

#world-map:hover {
    scale: 1.2;
}

.chars {
    height: 100vh;
    padding: 5rem;
    padding-bottom: 0;
}

.char-bg {
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    width: 80vw;
    opacity: .5;
    z-index: -1;
}

.chars h1 {
    text-align: left;
}

.char-info {
    display: flex;
    width: 80vw;
    justify-content: space-between;
    align-items: flex-start;
}

.char-info ul {
    width: 20vw;
}

.scroll-anim {
    animation-name: scroll;
    animation-duration: 1s;
    opacity: 1;
}

@keyframes scroll {
    from {
        filter: blur(2rem);
        scale: .5;
    }

    to {
        filter: blur(0);
        scale: 1;
    }
}

#char-list {
    list-style-type: none;

    font-family: "Alegreya", serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;

    font-size: 2vw;
    text-transform: uppercase;
    color: #4e3023;
}

#char-list li {
    margin-bottom: .5rem;
    transition: 1s;
}

#char-list li:not(.active):hover {
    margin-left: 1.5vw;
    cursor: pointer;
}

.active {
    scale: 1.5;
    margin-left: 5vw;
}

.active::before {
    content: "> ";
}

#char-img {
    margin-top: -10vh;
    height: 80vh;
    transition: 1s;
}

#char-img:hover {
    scale: 1.2;
}

.char-info .char-desc {
    width: 20vw;
}

#char-title {
    margin-top: 0;
    transition: 1s;
}

#char-text {
    text-align: justify;
    transition: 1s;
}

.slide-show {
    height: 90vh;
    margin: 0;
    display: grid;
    grid-template-rows: 10vh 70vh 10vh;
    grid-template-columns: 1fr 2vw 2vw 2vw 2vw 2vw 2vw 1fr;
    align-items: center;
    justify-items: center;
}

.slide-show h1 {
    grid-row: 1 / 2;
    grid-column: 1 / 10;
}

input[type='radio'] {
    accent-color: #f0ab5b;
}

#carousel {
    grid-row: 2 / 3;
    grid-column: 1 / 10;
    width: 100vw;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 50vw;
    --items: 6;
    --middle: 3;
    --position: 1;
    pointer-events: none;
}

.item {
    position: absolute;
    height: 65vh;
    --r: calc(var(--position) - var(--offset));
    --abs: max(calc(var(--r) * -1), var(--r));
    transition: all 0.25s linear;
    transform: rotateY(calc(-10deg * var(--r))) translateX(calc(-25vw * var(--r)));
    z-index: calc((var(--position) - var(--abs)));
}

.item:nth-of-type(1) {
    --offset: 1;
}

.item:nth-of-type(2) {
    --offset: 2;
}

.item:nth-of-type(3) {
    --offset: 3;
}

.item:nth-of-type(4) {
    --offset: 4;
}

.item:nth-of-type(5) {
    --offset: 5;
}

.item:nth-of-type(6) {
    --offset: 6;
}

.slide-show input:nth-of-type(1) {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}

.slide-show input:nth-of-type(1):checked~#carousel {
    --position: 1;
}

.slide-show input:nth-of-type(2) {
    grid-column: 3 / 4;
    grid-row: 3 / 4;
}

.slide-show input:nth-of-type(2):checked~#carousel {
    --position: 2;
}

.slide-show input:nth-of-type(3) {
    grid-column: 4 /5;
    grid-row: 3 / 4;
}

.slide-show input:nth-of-type(3):checked~#carousel {
    --position: 3;
}

.slide-show input:nth-of-type(4) {
    grid-column: 5 / 6;
    grid-row: 3 / 4;
}

.slide-show input:nth-of-type(4):checked~#carousel {
    --position: 4;
}

.slide-show input:nth-of-type(5) {
    grid-column: 6 / 7;
    grid-row: 3 / 4;
}

.slide-show input:nth-of-type(5):checked~#carousel {
    --position: 5;
}

.slide-show input:nth-of-type(6) {
    grid-column: 7 / 8;
    grid-row: 3 / 4;
}

.slide-show input:nth-of-type(6):checked~#carousel {
    --position: 6;
}

.trailer-mask {
    -webkit-mask-image: url(./media/imgs/brush-mask.png);
    mask-image: url(./media/imgs/brush-mask.png);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100%;
    mask-size: 130%;
    -webkit-mask-position: 50% 50%;
    mask-position: 50% 50%;
    width: 100vw;
}

.trailer-wrap {
    position: relative;
}

.trailer-wrap h1:hover {
    cursor: pointer;
    color: #f0ab5b;
}

.trailer-wrap h1 {
    position: absolute;
    top: 40%;
    width: 100%;
    text-align: center;
    font-size: 5vw;
    transition: .5s;
}

#trailer {
    width: 130%;
    object-fit: cover;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: -2;
    opacity: .5;
}

/* The Modal (background) */
.modal {
    display: none; 
    position: fixed; /* Stay in place */
    z-index: 99999; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: hidden; 
    
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(255, 255, 255, 0.849);
  }
  
  /* Modal Content */
  .modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
  }

  .modal-content video {
    height: 90vh;
  }
  
  /* The Close Button */
  #close {
    color: #4e3023;
    align-self: flex-start;
    font-size: 4rem;
    font-weight: bold;
    transition: .5s;
  }
  
  #close:hover,
  #close:focus {
    color: #f0ab5b;
    text-decoration: none;
    cursor: pointer;
  }

.game-cards {
    display: flex;
    width: 100vw;
    justify-content: center;
    margin-bottom: 10vh;
}

.card {
    width: 15vw;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    padding: 1vw;
    margin-left: 1.5vw;
}

.card:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
    transform: translateY(-.5rem);
}

.game-cards:has(.card:hover) .card:not(:hover) {
    filter: blur(4px)
}

.container {
    display: flex;
    width: 100%;
    justify-content: center;
}

.foot-mask {
    -webkit-mask-image: url(./media/imgs/brush-mask.png);
    mask-image: url(./media/imgs/brush-mask.png);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 130%;
    mask-size: 130%;
    -webkit-mask-position: 50% 0;
    mask-position: 50% 0;
    width: 100vw;
}

footer {
    height: 50vh;
    background-color: #4e3023;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    padding-top: 10vh;
    padding-bottom: 5vh;
}

.foot-logos {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    margin-bottom: 5vh;
}

.foot-logos p {
    font-weight: 500;
}

footer img {
    height: 20vh;
    margin-right: 2vw;
}

footer p {
    color: white;
}

footer .social .svg-logo {
    filter: invert(100%) sepia(17%) saturate(2%) hue-rotate(195deg) brightness(105%) contrast(100%);
    height: auto;
}