@font-face {
    font-family: 'Saira';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/saira-v8-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Saira';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/saira-v8-latin-700.woff2') format('woff2');
}
  

@font-face {
    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(fonts/NotoSans400Latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Noto Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(fonts/NotoSans700Latin.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*------------
General Styles
------------*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --keycol: #fff;
    --blue: #1E5CB3;
    --darkblue: #23156A;
    --yellow: #EDCB6A;
    --gap: 2rem;
    --spacing: 4rem;
    --body-fontstack: 'Saira', sans-serif;
}

html {
    scroll-behavior: smooth;
    -moz-text-size-adjust: none;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
}

body {
    color: var(--keycol);
    font-family: var(--body-fontstack);
    font-size: 1.2rem;
    /* background-color: #D3E2F8; */
    background-image: url(img/bg3.jpg);
    background-repeat: no-repeat;
    background-position-y: 75vh;
    background-position-x: center;
    background-size: cover;
}

.block {
    max-width: 1440px;
    width: 75vw;
    margin: 0 auto;
}

.spacer {
    margin-bottom: var(--spacing);
}

/*---------
Text styles
---------*/

h1, h2, h3, h4 {
    margin-bottom: 2rem;
    font-family: var(--body-fontstack);
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(to bottom, #e2b44d, #ffd65f, #99661d);
    background-clip: text;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
    -webkit-text-fill-color: transparent;
}

h1 {
    padding: .5rem 0;
    font-size: 2.5rem;
    text-align: center;
}

h4 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    line-height: 150%;
}

p:not(.hero-text):last-of-type {
    margin-bottom: 0;
}

a {
    color: var(--yellow);
}

a:hover {
    color: var(--blue);
}

/*---------------
Inputs and Labels
---------------*/

input {
    margin-bottom: 1rem;
}

input[type='email'], input[type='text'], input[type='number'] {
    margin: 0 auto 1rem auto;
    padding: .5rem;
    font-family: var(--body-fontstack);
    font-size: 1.2rem;
    background: var(--keycol);
    border: 0;
}

input[type='email']:focus, input[type='text']:focus {
    outline: 1px solid var(--highlight);
}

/*----
Button
----*/

.btn {
    margin-top: 1rem;
    padding: 1rem 2.5rem;
    color: var(--darkblue);
    font-family: var(--body-fontstack);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    background: url(img/btn/btn_poly_y.svg);
    background-position: center;
    background-size: cover;
    border: 0;
}

.btn:hover {
    color: var(--keycol);
    background: url(img/btn/btn_poly_b.svg);
    background-position: center;
    background-size: cover;
}

.btn-small {
    margin-top: 0;
    padding: .5rem 1rem;
    font-size: 1.2rem;
}

#intro .btn {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/*----
Header
----*/

header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 75vh;
    background-color: var(--blue);
    background-image: url(img/keyart.jpg);
    background-position: center;
    background-size: cover;
    border-bottom: 2px solid var(--keycol);
    overflow: hidden;
}

/* Kalypso Top Bar */

#top-bar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    position: relative;
    padding: .5rem 1rem;
    font-family: 'Noto Sans';
    background: rgb(0, 17, 31);
}

#top-bar a {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

#kalypso-nav, .mobile-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style-type: none;
}

#kalypso-nav li {
    text-transform: uppercase;
    line-height: 100%;
}

.kalypso-nav-item {
    opacity: 0;
    transition: opacity .5s ease-in-out;
}

.k-store {
    transition-delay: .1s;
}

.k-blog {
    transition-delay: .2s;
}

#top-bar:hover .kalypso-nav-item {
    opacity: 1;
}

#kalypso-games, #kalypso-menu-m {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem .5rem;
    background: rgb(0, 17, 31);
    transform: translateY(100%);
}

#kalypso-games-list {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    list-style-type: none;
}

#kalypso-games-list li {
    text-transform: none;
}

#kalypso-games-list img, #kalypso-menu-m img {
    display: block;
    margin: 0 auto .5rem auto;
}

#kalypso-nav-m {
    display: none;
}

.mobile-menu {
    gap: 1rem;
}

#kalypso-menu-m {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    text-align: center;
    list-style-type: none;
}

.social-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    padding-top: 4px;
}

.social-bar img {
    height: 24px;
}

.fadein li {
    animation: fadeIn 1s;
    opacity: 1;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.fadein li:nth-of-type(1) {
    animation-duration: 1s;
}

.fadein li:nth-of-type(2) {
    animation-duration: 1.2s;
}

.fadein li:nth-of-type(3) {
    animation-duration: 1.4s;
}

.fadein li:nth-of-type(4) {
    animation-duration: 1.6s;
}

.fadein li:nth-of-type(5) {
    animation-duration: 1.8s;
}

.fadein li:nth-of-type(6) {
    animation-duration: 2s;
}

#logo {
    display: block;
    margin: 0 auto;
}

#hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    justify-items: center;
    padding: 0 var(--gap);
}

#hero div {
    text-align: center;
}

.hero-links a {
    display: inline-block;
    margin-top: 1rem;
}

.hero-links a:not(:last-of-type) {
    margin-right: 1rem;
}

.hero-text {
    color: var(--keycol);
    font-size: 2rem;
    text-align: center;
    text-shadow: 0 0 5px var(--darkblue);
}

picture.hero-image {
    display: flex;
}

.hero-image {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

/*-----
Trailer
-----*/

#trailer {
    width: 100%;
    padding: var(--spacing) var(--gap) 0 var(--gap);
}

#trailer-thumb {
    position: relative;
    width: 75vw;
    max-width: 750px;
    margin: 0 auto;
}

#trailer-thumb picture, #trailer-thumb img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}
#trailer .hero-text {
    display: none;
    width: 75vw;
    margin: 0 auto var(--spacing) auto;
}

/* Play Button */

.play-btn {
    position: absolute;
    margin: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: 0;
    cursor: pointer;
}

.play-btn svg {
    width: 75px;
    height: 75px;
    fill: var(--blue);
    opacity: .8;
}

.trailer-thumb:hover svg {
    opacity: 1;
}
.devdiaries a:hover svg {
    opacity: 1;
}

/* YouTube Embed */

#trailer-wrapper {
    width: 75%;
    max-width: 750px;
    margin: 0 auto;
}

.trailer {
    position: relative;
    aspect-ratio: 16 / 9;
}

.trailer iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/*------
Features
------*/

#features {
    position: relative;
    overflow: hidden;
    margin-bottom: var(--spacing);
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr 1fr 1fr 3fr 1fr;
    align-items: center;
    margin-bottom: 0;
}

.feature {
    padding: var(--spacing) 0;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    border-bottom: 2px solid var(--keycol);
}

#feature1 {
    border-top: 2px solid var(--keycol);
    background-image: url(img/features/feature1.jpg);
}

#feature2 {
    background-image: url(img/features/feature2.jpg);
}

#feature3 {
    background-image: url(img/features/feature3.jpg);
}

#feature4 {
    background-image: url(img/features/feature4.jpg);
}

#feature5 {
    background-image: url(img/features/feature5.jpg);
}

#feature6 {
    background-image: url(img/features/feature6.jpg);
}

#feature7 {
    background-image: url(img/features/feature7.jpg);
}

.feature-text p {
    text-shadow: 0 0 5px #000;
}

.screen > picture, .screen img {
    width: 100%;
    object-fit: cover;
}

#toggle-btn {
    display: block;
    margin: var(--gap) auto 0 auto;
}

#order-btn {
    display: flex;
    justify-content: center;
}

/*----------
Player cards
----------*/

#players {
    border-bottom: 2px solid var(--keycol);
}

#players h2 {
    text-align: center;
    margin-bottom: var(--gap);
}

.players {
    width: 324px;
    aspect-ratio: 81 / 125;
}

.players img {
    width: 100%;
    height: auto;
}

/*---
Media
---*/

#media {
    position: relative;
}

#media h2 {
    color: var(--darkblue);
    margin-bottom: var(--gap);
    text-align: center;
}

.media {
    overflow: hidden;
}

:is(.media, .videos, .devdiaries) a img {
    max-width: 336px;
    width: 100%;
}

.swiper-button-prev, .swiper-button-next {
    color: var(--yellow);
    text-shadow: 0 0 5px #000;
    transform: translateY(100%);
}

/*--------
Newsletter
--------*/

#newsletter {
    padding: var(--spacing) 0;
    text-align: center;
    background-image: url(img/arena.jpg);
    background-position: center;
    background-size: cover;
    border-top: 2px solid var(--keycol);
}

#nl-form {
    width: max-content;
    max-width: 75vw;
    margin: 0 auto;
    padding: var(--gap) calc(var(--gap) * 2);
    color: var(--keycol);
}

#nl-form :is(p, label) {
    text-shadow: 0 0 5px var(--darkblue);
}

#nl-form a {
    color: var(--keycol);
}

.nl-email {
    margin-top: 2rem;
}

label[for='email'] {
    margin-right: 1rem;
}

/*-------------
Order Selection
-------------*/

#order {
    padding: var(--spacing);
    padding-top: 0;
    border-bottom: 2px solid var(--keycol);
}

#order > div:first-of-type {
    text-align: center;
}

#order h3 {
    margin-top: 2rem;
    margin-bottom: .5rem;
    font-size: 1.8rem;
    text-align: left;
}

#store-select {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr;
    gap: var(--gap);
    align-items: flex-start;
}

.store-select {
    flex: 2;
}

#packshot {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.packshot {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    width: 500px;
    margin-top: 2rem;
    opacity: 0;
    transition: opacity .4s ease-in-out;
}

.fade {
    opacity: 1;
}

.store-list {
    display: flex;
    flex-direction: column;
    width: fit-content;
    list-style-type: none;
}

.purchase {
    display: flex;
    gap: calc(var(--gap) * 4);
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--gap);
    padding: calc(var(--gap) / 4) calc(var(--gap) / 2);
    color: var(--keycol);
    text-decoration: none;
    border: 2px solid var(--keycol);
}

.purchase:hover {
    color: var(--keycol);
    background: rgba(255, 255, 255, .1);
}

.plfm-btn:last-of-type {
    margin-right: 0;
}

.active {
    color: var(--keycol);
    background: url(img/btn/btn_poly_b.svg);
    background-position: center;
    background-size: cover;
}

/*----
Footer
----*/

footer {
    position: relative;
    width: 100%;
    padding: calc(var(--spacing) / 2);
    color: var(--keycol);
    text-align: center;
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, .75), rgba(0, 0, 0, 0)), url(img/bg.jpg);
    border-top: 2px solid var(--keycol);
}

footer p {
    font-size: .8rem;
}

footer a {
    color: var(--keycol);
}

.logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem 3rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.logo img {
    object-fit: contain;
}

.region {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.agerating {
    margin-bottom: 1.5rem;
}

/*--------
Responsive
--------*/

@media (max-width: 1419px) {
    #hero {
        grid-template-columns: 1fr;
        padding: var(--gap);
        background: linear-gradient(to bottom, rgba(30, 92, 179, 0), rgba(30, 92, 179, 1))
    }

    .hero-image {
        display: none;
    }
}

@media (min-width: 1419px) {
    header {
        min-height: 665px;
    }
}

@media (max-width: 1199px) {
    #store-select {
        grid-template-columns: 1fr;
    }

    .store-select {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #order h3 {
        text-align: center;
    }

    #packshot {
        display: none;
    }
}

@media (min-width: 1000px) {
    .screen1, .screen3, .screen5, .screen7 {
        grid-column: 2 / 5;
    }
    
    .feature1, .feature3, .feature5, .feature7 {
        grid-column: 6 / 8;
    }
    
    .screen2, .screen4, .screen6 {
        grid-column: 4 / 7;
    }
    
    .feature2, .feature4, .feature6 {
        grid-column: 1 / 3;
    }
    
    .screen1, .feature1 {
        grid-row: 1 / 2;
    }
    
    .screen2, .feature2 {
        grid-row: 2 / 3;
    }
    
    .screen3, .feature3 {
        grid-row: 3 / 4;
    }
    
    .screen4, .feature4 {
        grid-row: 1 / 2;
    }
    
    .screen5, .feature5 {
        grid-row: 2 / 3;
    }
    
    .screen6, .feature6 {
        grid-row: 3 / 4;
    }
    
    .screen7, .feature7 {
        grid-row: 4 / 5;
    }
}

@media (max-width: 999px) {
    .features-list {
        row-gap: 0;
    }

    .screen, .feature-text {
        grid-column: 1 / 8;
    }
}

@media (max-width: 889px) {
    
    footer::after {
        width: 200px;
        top: -122px;
    }
}

@media (max-width: 749px) {
    #logo {
        width: 90%;
        margin-top: var(--spacing);
    }

    #hero {
        margin-top: auto;
        padding-bottom: 0;
        align-items: end;
    }

    .hero-image {
        display: inline;
        grid-row: 1 / 2;
        grid-column: 1 / 2;
        order: 1;
        width: 90%;
        height: auto;
    }

    #hero > div {
        grid-row: 1 / 2;
        grid-column: 1 / 2;
        order: 2;
        padding-bottom: var(--gap);
    }

    #hero .hero-text {
        display: none;
    }

    #trailer {
        padding-top: var(--gap);
    }

    #trailer .hero-text {
        display: block;
    }
}

@media (max-width: 600px) {
    #top-bar {
        background: rgb(0, 17, 31);
    }
    
    #kalypso-nav {
        display: none;
    }

    #kalypso-nav-m {
        display: block;
    }
}

@media (max-width: 550px) {
    body {
        background-position-y: 60vh;
    }

    header {
        height: 60vh;
    }

    .platforms, .some {
        gap: calc(var(--gap) / 2);
    }

    #wishlist {
        flex-direction: column;
    }

    .purchase {
        gap: var(--gap);
    }
}

@media (max-width: 549px) {
    .hero-image {
        display: none;
   }

   .players {
       width: 275px;
   }
}