/* =========================================
   RESET
   ========================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;

    font-family: Arial, Helvetica, sans-serif;

    color: #1f2d22;

    /* Prevent the background layer from creating horizontal scroll */
    overflow-x: hidden;
}


/* =========================================
   FULL PAGE BACKGROUND
   ========================================= */

/*
    This sits behind everything and covers the
    entire viewport.
*/

.page-background {
    position: fixed;

    inset: 0;

    width: 120%;
    height: 120%;

    z-index: -1;

    background-image: url("images/sky-background.png");
    
    background-color: rgba(70, 73, 73, 0.5); 
    background-blend-mode: multiply; 

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* =========================================
   SITE HEADER
   ========================================= */

.site-header {
    width: 100%;
    height: 6vh;

    margin: 0;
    padding: 0 5%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background-color: #eef1f4;

    /* No outline */
    border: none;

    /* Square corners */
    border-radius: 0;

    color: #222;

    position: relative;
    z-index: 10;
}


/* =========================================
   SITE TITLE
   ========================================= */

.site-title {
    font-size: 1rem;

    white-space: nowrap;
}


/* =========================================
   NAVIGATION
   ========================================= */

.site-nav {
    display: flex;

    align-items: center;

    gap: 3rem;
}

.site-nav a {
    position: relative;

    color: #6e3b3b;

    font-size: 1rem;

    text-decoration: none;

    padding: 4px 0;
}


/*
    Underline effect
*/

.site-nav a::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    height: 2px;

    background-color: #8d4949;
}


/*
    Slight hover effect
*/

.site-nav a:hover {
    color: #ff4f4f;
}

.site-nav a:hover::after {
    background-color: #ff4f4f;
}

/* =========================================
   MAIN SECTION
   ========================================= */

/*
    The central section containing all of the
    portfolio content.

    Approximately 50% of the viewport width.
*/

.main-section {
    width: 60vw;

    min-width: 650px;

    margin: 0 auto;
    margin-top: 2rem;
    margin-bottom: 2rem;

    min-height: 100vh;

    background-color: #eef8ecf8;

    /* Allows content to determine the height */
    /* overflow: hidden; */
}


/* =========================================
   BANNER
   ========================================= */

/*
    The banner stretches across the entire
    width of the main section.
*/

.banner {
    width: 100%;

    height: 300px;

    overflow: hidden;
}

.banner img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;
}


/* =========================================
   CONTENT / SCREENSHOT LAYOUT
   ========================================= */

.content-layout {
    display: grid;

    /*
        60% content
        40% screenshots
    */
    grid-template-columns: 100% 0%;

    align-items: stretch;

    width: 100%;
}

.span-columns {
    grid-column: 1/-1;
}


/* =========================================
   LEFT CONTENT COLUMN
   ========================================= */

.content-column {
    padding: 0;
}


/*
    Main text/content area.

    No border or outline — the colored
    background belongs to the main section.
*/

.about-card {
    margin: 0;

    padding: 2rem;

    min-height: 450px;

    background: transparent;
}

.about-card h1, .about-card h2, .about-card h3 {
    margin-bottom: .8rem;

    color: #124d20;

    font-size: 2.1rem;
    font-style: bold;

    line-height: 1.4;
}

.about-card h2{
    font-size: 1.7rem;
}

.subtitle {
    margin-top: 3rem;
}

.about-card p{
    color: #000000;
}

summary{
    color: #381818;
}

.about-card p, .about-card summary{
    margin-bottom: 14px;


    font-size: 1.2rem;

    line-height: 1.45;
}


/* =========================================
   CONTENT IMAGE
   ========================================= */

.content-image {
    width: 100%;

    margin-top: 12px;

    overflow: hidden;
}

.content-image img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: cover;
}


/* =========================================
   RIGHT SCREENSHOT COLUMN
   ========================================= */

.screenshots-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0rem;
    padding-right: 2rem;
    padding-top: 2rem;

    position:sticky;
    top: 1rem;
    align-self: start;
}

/*
    Individual screenshots.

    No borders — these simply sit next
    to one another.
*/

.media-card {
    position: relative;

    width: 100%;

    overflow: hidden;

    background-color: #111;
}

.media-card img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: cover;
}


/* =========================================
   VIDEO CARD
   ========================================= */

.video-card {
    position: relative;
}

.video-card img {
    aspect-ratio: 16 / 9;

    object-fit: cover;
}


/*
    Fake YouTube-style play button.

    You can replace the entire video card
    with a real iframe later.
*/

.video-card {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background-color: #000;
}

.video-card iframe {
    display: block;

    width: 100%;
    height: 100%;

    border: none;
}


/* =========================================
   SCREENSHOT HOVER
   ========================================= */

.media-card img {
    transition: transform 0.25s ease;
}

.media-card:hover img {
    transform: scale(1.02);
}


/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

/*
    Once the screen becomes too narrow for
    the desktop composition, stack everything.
*/

@media (max-width: 900px) {

    .main-section {
        width: 90vw;

        min-width: 0;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .screenshots-column {
        display: grid;

        grid-template-columns: 1fr 1fr;
    }

    .banner {
        height: 130px;
    }
}


/*
    Phone layout
*/

@media (max-width: 600px) {

    .main-section {
        width: 100vw;
    }

    .banner {
        height: 110px;
    }

    .screenshots-column {
        grid-template-columns: 1fr;
    }

    .about-card {
        padding: 18px;
    }

    .about-card p {
        font-size: 0.85rem;
    }
}

/*
Atlas Will Fall variations
*/

.atlas .page-background{
    background-image: url("atlas-will-fall-media/Atlas\ Will\ Fall\ Screenshot\ 3.png");
    background-color: #494949;
}

.atlas h1, .atlas h2{
    color: #000;
}

.atlas .main-section {
    background-color: #ecedf8f8;
}

.top-margin-2rem {
    margin-top:2rem;
}

.about-card .image-explanation{
    margin-bottom: 40px;
    margin-top: 10px; 
    margin-left: 40px; 
    color: rgb(49, 49, 49);

    font-size: 1.05rem;
}

/* HOME Variations */

.home .main-section{
    width: 55vw;

    background-color: #ffffff;
}

.home .page-background {
    position: fixed;

    inset: 0;

    width: 100vw;
    height: auto;

    z-index: -1;

    /* background-image: url("home-media/background.gif"); */

    background-size: 100% auto;
    background-position: top center;
    background-repeat: repeat-y;
}

.home .content-layout {
    padding-top: 3rem;

    grid-template-columns: 100% 0%;

    align-items: stretch;

    width: 100%;

}

.home h1{
    font-size: 3.5rem;
    color: #000;
}

.home h2{
    font-size: 2.4rem;
    color: #000;
}

.home h3{
    font-size: 2rem;
    color: #000;
}

.home p{
    font-size: 1.5rem;
    color: #000;
}

hr{
    border-top: 3px solid black;
    width:70%;
    margin: 2rem auto;
}

.home-page-vertical-divide{
    margin-top: 4rem;
}

.featured-games-layout{
    display: grid;

    grid-template-columns: 50% 50%;
    
    gap: 1rem;

    align-items: stretch;
    
    width: 100%;
}

.featured-games-layout .project-thumbnail{
    /* background-color: #000; */
    /* outline: 3px solid black; */
}

.project-thumbnail .content-image{
    margin-top: 0;

    border-radius: 2rem;

    width: 24vw;
    height: 15vw;
}

.project-thumbnail h3{
    margin: 2rem;
    color: rgb(210, 81, 46);
}

.project-thumbnail h3:hover{
    color: rgb(238, 73, 27);
}

.project-thumbnail a{
    text-decoration: none;
}

.project-thumbnail p{
    margin: 2rem;
}

.main-section li{
    font-size: 1.2rem;
    font-weight: bold;
}

.main-section ul{
    margin-left: 3rem;
    margin-bottom: 3rem;
}

.home li{
    font-size: 1.5rem;
    font-weight: bold;
}

.home ul{
    margin-left: 3rem;
    margin-bottom: 3rem;
}

/* Ravenous Sky Variations */
.ravenous .page-background{
    background-image: url("ravenous-sky-media/ravenous\ background.png");
    background-color: #d9d8d8;
}

.ravenous h1, .ravenous h2{
    color: #000;
}

.ravenous .main-section {
    background-color: #ecedf8f8;
}

/* Spell Sculptor Variations */
.sculptor .page-background{
    background-image: url("spell-sculptor-media/background-2.png");
    background-color: #5e5d5d;
}

.sculptor .main-section {
    background-color: #ecedf8f8;
}

.sculptor h1, .sculptor h2{
    color: #000;
}
