/* Variables */
:root {
    --color-softyellow: #ef8b12;
    --color-yellow: #ef8b12;
    --color-secondary: #181121;
    --color-main: #0e0a13;
    --color-main-transparent: rgba(14, 10, 19, 0.5);
    --color-shadow: rgba(14, 10, 19, 0.5);

    --color-font: #f1f1f1;
    --color-font-light: #99979f;
    --color-orange: #ef8b12;
    --color-grey2: #141112;
}


/* Fonts */
@font-face {
    font-family: "TitanOne";
    src: url(./Ressources/font/Titan_One/TitanOne-Regular.ttf);
}

@font-face {
    font-family: "RadioCanada";
    src: url(./Ressources/font/Radio_Canada/static/RadioCanada-Regular.ttf);
}


/*/
/* =========================
/*  GLOBAL
/* ========================= 
/*/

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-main);
    color: var(--color-font);
    font-family: "RadioCanada", Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
}

h2,
h3 {
    font-family: "RadioCanada", sans-serif;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
}

.sticker {
    width: 300px;
    max-width: 100%;
    height: auto;
}

.Text {
    column-width: 60ch;
    padding-top: 5px;
    font-family: "RadioCanada", sans-serif;
    font-size: 1.2rem;
}


/*/
/* =========================
/*  BUTTONS
/* ========================= 
/*/

.button {
    position: relative;
    transition: 0.1s color ease-in-out;
    border-radius: 10px;
    box-shadow: 0 1px 2px var(--color-shadow);
    background-color: var(--color-font);
    padding: 0.4rem 1.6rem;
    overflow: hidden;
    color: var(--color-main);
    font-size: 1.1rem;
    font-weight: 600;
    filter: drop-shadow(0px 0px 2px var(--color-main));
    user-select: none;
    -webkit-user-select: none;
    clip-path: stroke-box;
    touch-action: manipulation;
}

.button:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: scale(0);
    transition: 0.3s transform ease-in-out;
    z-index: -1;
    border-radius: 40%;
    background-color: var(--color-orange);
}

.button:hover:before {
    transform: scale(1.3);
}

.button:active {
    transform: translateY(2px);
    filter: drop-shadow(0px 0px 1px var(--color-main));
}


/*/
/* =========================
/*  NAVIGATION
/* ========================= 
/*/

nav {
    display: flex;
    position: sticky;
    top: 0;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    padding: 0.2rem 2rem;
    width: 100%;
    transition-duration: 0.4s;
    transition-property: filter, backdrop-filter, background-color;
    transition-timing-function: ease;
}

h1 {
    display: none;
}

.logoPPG {
    position: relative;
    margin: auto;
    height: 75px;
    clip-path: url(./Ressources/svg/PlicPlocGames.svg#logoPPG);
}

nav ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    list-style: none;
    font-weight: 800;
    gap: 5rem;
}

nav a {
    display: block;
    color: var(--color-font);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    filter: drop-shadow(0px 0px 1px var(--color-main));
    transition: filter 0.4s ease, color 0.1s;
}

nav a:hover {
    color: var(--color-yellow);
}

nav a:active {
    transform: translateY(2px);
}

nav.scrolled {
    background-color: var(--color-main-transparent);
    filter: drop-shadow(0px 0px 2px var(--color-main));
    backdrop-filter: blur(20px);
}

nav.scrolled a {
    filter: none;
}

@media all and (max-width: 700px) {

    nav ul {
        gap: 1.5rem;
    }
}

@media all and (max-width: 500px) {
    .logoPPG {
        height: 45px;
    }

    nav {
        padding: 0.2rem 0.8rem;
        font-size: 0.8rem;
    }

    nav ul {
        gap: 1rem;
    }
}


/*/
/* =========================
/*  HEADER
/* ========================= 
/*/

header {
    height: 95vh;
}

.banner {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -20;
    min-width: 100%;
    min-height: 100%;
}

.wishlist {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 10vh;
    width: 100%;
    height: 95%;
}

.wishlist__link {
    transition: 0.1s color ease-in-out;
    color: var(--color-font);
    filter: drop-shadow(0px 0px 2px var(--color-main));
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.wishlist__logo {
    position: relative;
    margin: auto;
    background-color: var(--color-font);
    width: 258px;
    height: 172px;
    clip-path: url(./Ressources/svg/NeedleEye.svg#logoNE);
}

.wishlist__logo:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: scale(0);
    transition: 0.3s transform ease-in-out;
    border-radius: 40%;
    background-color: var(--color-orange);
}

.wishlist__text {
    text-align: center;
    font-family: "TitanOne", sans-serif;
    font-size: 1.5rem;
    font-weight: normal;
}

.wishlist__text strong {
    font-weight: normal;
}

.wishlist__link:hover {
    transition: 0.1s color ease-in-out 0.2s;
    color: var(--color-orange);
}

.wishlist__link:hover .wishlist__logo:before {
    transform: scale(1.1);
}

.wishlist__link:active {
    transform: translateY(2px);
    filter: drop-shadow(0px 0px 1px var(--color-main));
}


/*/
/* =========================
/*  MAIN
/* ========================= 
/*/

main {
    display: flex;
    flex-direction: column;
    background-color: var(--color-main);
    clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0% 100%);
}

#games, #about {
    max-width: 1200px;
    width: 100%;
    margin: auto;
}

section {
    padding: 8vw 5vw 0;
}

.highlight {
    padding-bottom: 2vh;
    letter-spacing: -0.055em;
    color: var(--color-softyellow);
    font-weight: 600;
}

@media all and (max-width: 1300px) {
    section {
        padding: 8vw 5vw 0;
    }
}

@media all and (max-width: 500px) {
    section {
        padding: 7vh 3vw 0;
    }
}


/*/
/* =========================
/*  GAMES SECTION
/* ========================= 
/*/

.games {
    display: flex;
    flex-direction: column;
    margin: auto;
    gap: 4rem;
}

.game {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 100%;
    text-decoration: none;
    gap: 2rem;
}

.game:nth-child(2n) {
    flex-direction: row-reverse;
}

.game__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
}

.game__figure {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 50%;
}

.game__vignette {
    border-radius: 4px;
    max-width: 100%;
    height: auto;
}

.game__title {
    font-size: 1.5rem;
}

.game__tags {
    color: var(--color-font-light);
    font-style: italic;
}

.game__desc {
    text-wrap: pretty;
}

.game__links {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 1rem;
    gap: 1rem;
}

@media all and (max-width: 1000px) {
    .game:nth-child(n) {
        flex-direction: column;
    }


    .game__figure {
    max-width: 100%;
    }
}

/*/
/* =========================
/*  ABOUT SECTION
/* ========================= 
/*/

#about__content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
}

#about__sticker {
    display: block;
    width: auto;
    height: 150px;
}

#about__desc {
    text-wrap: pretty;
}

@media all and (max-width: 800px) {
    #about__content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    #about__figure {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
    }
}

/*/
/* =========================
/*  CONTACT SECTION
/* ========================= 
/*/

#contact {
    position: relative;
    z-index: 1;
    margin-top: 2vh;
    background: var(--color-secondary);
    padding: 5vw 0vw;
    text-align: center;
    clip-path: polygon(0 5vw, 100% 0, 100% 100%, 0% 100%);
}

#contact__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#contact a {
    display: inline-flex;
    align-items: center;
    transition: padding 0.2s ease, margin-right 0.2s ease;
    border-bottom: 2px solid var(--color-softyellow);
    padding: 8px 2px;
    margin-right: 8px;
    font-weight: 600;
    gap: 14px;
}

#contact a::after {
    content: "↗";
    transition: transform 0.2s ease;
    color: var(--color-softyellow);
    font-size: 1em;
}

#contact a:hover {
    padding: 8px 10px 8px 2px;
    margin-right: 0;
}

#contact a:hover::after {
    transform: translate(5px, -5px);
}

@media (max-width: 600px) {
    #contact {
        padding: 7vh 3vw;
    }
}

/*/
/* =========================
/*  FOOTER
/* ========================= 
/*/

footer {
    position: relative;
    z-index: 2;
    border-top: 2px solid var(--color-font);
    background: var(--color-main);
    padding: 1rem;
    text-align: center;
    font-size: .9rem;
}
