@font-face {
    font-family: "Aldrich-Regular";
    src: url("fonts/Aldrich-Regular.ttf");
}

@font-face {
    font-family: "Oxanium-Regular";
    src: url("fonts/Oxanium-Regular.ttf");
}

/* global variables*/
:root {
    --primary-text-color: #e0e0e0;
    --background-color1: #333333;
    --background-color2: #292929;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --header_height_big: 4vw;
    --header_height_small: 2vw;
    --header_image_scale: 80%;
}

html {
    height: 100%;
}

body {
    background-color: var(--background-color2);
    padding-top: var(--header_height_big);
    font-family: Aldrich-Regular, sans-serif;
    color: var(--primary-text-color);
    margin: 0;
}

header {
    background-color: var(--background-color1);
    box-shadow: var(--shadow);
    position: fixed; /* Changed from sticky to fixed */
    top: 0; /*stick to top*/
    left: 0; /*make it centered*/
    right: 0; /*make it centered*/
    z-index: 100; /*draw in front*/
    padding: 3px 0 3px; /*top 0 bot*/
    height: var(--header_height_big);
    transition: all 0.2s ease;

    display: flex;
    align-items: center;
    justify-content: center;
}

header img {
    position: absolute; /* takes it out of flow, centers it */
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    height: var(--header_image_scale); /* images fill the div height */
}

header p {
    margin-left: auto;  /* pushes text to the right */
    margin-right: auto;  /* pushes text to the right */
    font-size: max(0.75rem, 1vw);
}

header a {
    font-family: Aldrich-Regular, sans-serif;
    text-decoration: none;
}

header a:visited, header a:link {
    color: inherit;
}

header a:hover {
    color: #91B7C6;
}

header.scrolled {
    height: var(--header_height_small);
}

.container {
    text-align: center;
    padding: 40px;
}

h2, h1 {
    font-family: Oxanium-Regular, sans-serif;
}

#hero {
    background-color: var(--background-color2);
}

#hero img {
    width: 60%;
    max-width: 640px;
}

#trailer {
    width: 95%;
    max-width: 1080px;
}

#wishlist {
    font-family: Aldrich-Regular, sans-serif;
    font-size: max(1rem, 1.5vw);
    background: var(--background-color1);
    padding: 0.6rem 1.8rem;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
}

#wishlist:hover {
    background: #91B7C6;
}

#wishlist:visited, #wishlist:link{
    color: inherit;
    text-decoration: none;
}

#screenshots {
    background-color: var(--background-color1);
}

.screenshots-wrapper {
    display: flex;
    justify-content: center;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 35vw); /* 2 columns */
    gap: 24px;
}

.screenshots-grid img {
    width: 35vw;
    height: auto;
    object-fit: cover; /* crops nicely without distortion */
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.screenshots-grid img:hover {
    transform: scale(1.05);
}

#lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 9999;
    cursor: zoom-out;
    display: none;          /* ← only ONE display: none here */
    align-items: center;
    justify-content: center;
}

#lightbox.active {
    display: flex;
}

#lightbox img {
    width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.team-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.team-icon-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.team-icon-item h3 {
    margin-bottom: 0;
}

.team-icon-item p {
    margin-top: 0;
}

.team-icon-circle {
    max-width: 15vw;
    width: 150px;
    height: auto;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 0px 25px black;
    margin: 0 0 10px;
}

.team-icon-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 50px #9BFFFD;
}

.socials-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.socials-icon-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.socials-icon-item h3 {
    margin-bottom: 0;
}

.socials-icon-item p {
    margin-top: 0;
}

.socials-icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 0px 25px black;
    margin: 0 0 10px;
}

.socials-icon-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 50px #9BFFFD;
}

#petit_feu{
    width: 50%;
    max-width: 468px;
}

#trailer {
    background-color: var(--background-color1);
}

#about {
    background-color: var(--background-color2);
}

#newsletter {
    background-color: var(--background-color1);
}

#contact {
    background-color: var(--background-color2);
    & antiscrape {
        display: none;
    }
}

footer {
    position: relative; /* needed for the absolute positioning of the text */
    width: 100%;
    background-color: var(--background-color1);
}

footer img {
    width: 100%;
    display: block; /* removes the small gap below the image */
}

footer h5 {
    text-align: center;
    background-color: var(--background-color1);
}