/*
Title: Style
Authors: Spencer T. Crosland
Purpose: General Styling for all pages in Master Contol Programs Site
*/

/*=== Body ===*/
body {
    padding: 0;
    margin: 0;
    background: url(images/styling/the-grid-background.jpg) no-repeat center fixed;
    background-size: cover;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
}

/*= Fonts =*/
h1 {
    color: #007226; 
    -webkit-text-stroke-color: #00ff55;
    text-shadow:
        0 0 3px #00ff55,
        0 0 6px #00ff55,
        0 0 10px #00ff55;
    margin: 0;
}

h2 {
    color: #ffffff;
    -webkit-text-stroke-color: #ff0000;
    text-shadow:
        0 0 3px #ff0000,
        0 0 6px #ff0000,
        0 0 10px #ff0000;
}

h3 {
    color: #ffffff;
    -webkit-text-stroke-color: #00d0ff;
    text-shadow:
        0 0 3px #00d0ff,
        0 0 6px #00d0ff,
        0 0 10px #00d0ff;
}

p{
    color: #ffffff;
    -webkit-text-stroke-color: #00d0ff;
    text-shadow:
        0 0 5px #00d0ff,
        0 0 12px #00d0ff,
        0 0 8px #00d0ff;
    padding-left: 5%;
    padding-right: 5%;
}

/* === HEADER === */
header {
    background: url("images/styling/header.jpg") no-repeat center;
    background-size: 100% 300px;
    height: 230px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
    box-sizing: border-box;
}

/*= LOGO = */
.logo {
    position: absolute;
    top: 20px;
    left: 20px;
}

.logo img {
    width: 133px;
    height: auto;
    border: 5px solid #00d0f9;
    border-radius: 20px;
    box-shadow: 0 0 20px #00d0f9;
    display: block;
}

/* = HEADER TEXT = */
#master h1{
    font-size: 200%;
    margin: 0;
    color: #9b6464;
    -webkit-text-stroke-color: #ff0000;
    text-shadow:
        0 0 3px #ff0000,
        0 0 6px #ff0000,
        0 0 10px #ff0000;
}

#control h1{
    font-size: 200%;
    margin: 0;
    color: #185b6a;
    -webkit-text-stroke-color: #00d0ff;
    text-shadow:
        0 0 3px #00d0ff,
        0 0 10px #00d0ff,
        0 0 6px #00d0ff;
}

#programs h1 {
    font-size: 200%;
    margin: 0;
    color: #007226; 
    -webkit-text-stroke-color: #00ff55;
    text-shadow:
        0 0 3px #00ff55,
        0 0 6px #00ff55,
        0 0 10px #00ff55;
}

/*=== Navagation ===*/
nav {
    background: url(images/styling/nav.gif);
    width: 100%;
    display: flex;
    justify-content: left;
    align-items: center;
    gap: 50px;
    height: 50px;
    border-top: 3px solid #00d0f9;
    border-bottom: 3px solid #00d0f9;
    padding: 0 20px;
    box-sizing: border-box;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5em;
    display: block;
    padding: 20px;
    text-align: center;
    border-top: 1px solid grey;
    text-shadow: 0px 0px 3px #22a203;
    transition: background 0.3s ease, text-shadow 0.3s ease;
}

nav a:hover {
    background-color: #00d0f9;
    text-shadow: 4px 4px 2px #ff0000;
}

/* === Menu Button === */
.menu-btn { 
    cursor: pointer; 
    border: none; 
    background-color: transparent; 
}

.bar1, .bar2, .bar3 {
    width: 30px;
    height: 4px;
    background-color: rgb(255, 249, 249);
    margin: 5px 0;
}

.change .bar1 {
  transform: translate(0, 11px) rotate(-45deg);
}
.change .bar2 { opacity: 0; }
.change .bar3 {
  transform: translate(0, -11px) rotate(45deg);
}

/*=== Home Page ===*/
.welcome-message > h1 {
    color: #007226;
    grid-column: 1 / -1;
    justify-self: center;
    text-align: center;
}

.featured-projects {
    width: 90%;
    max-width: 1400px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 40px;
}

.featured-projects h2 {
    color: #ffffff;
    grid-column: 1 / -1;
    text-align: center;
}

.featured-projects img {
    height: 350px;
    width: 350px;
    border: 5px solid #ff0000;
    border-radius: 20px;
    box-shadow: 0 0 20px #ffffff;
}

/*=== Software Page ===*/
.games {
    width: 90%;
    max-width: 1400px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: left;
    gap: 40px;
}

.games > h1 {
    grid-column: 1 / -1;
    text-align: left;
     color: #ffffff;
    -webkit-text-stroke-color: #ff0000;
    text-shadow:
        0 0 3px #ff0000,
        0 0 6px #ff0000,
        0 0 10px #ff0000
}

.games > div {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.games img {
    height: 350px;
    width: 350px;
    border: 5px solid #ff0000;
    border-radius: 20px;
    box-shadow: 0 0 20px #ffffff;
}

.applications {
    width: 90%;
    max-width: 1400px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 40px;
}

.applications > h1 {
    grid-column: 1 / -1;
    text-align: left;
}

.applications > div {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.applications img {
    height: 350px;
    width: 350px;
    border: 5px solid #00ff55;
    border-radius: 20px;
    box-shadow: 0 0 20px #ffffff;
}

/*= Applications =*/

/*=== Websites Page ===*/

/*= Solo Development*/
.solo{
    width: 90%;
    max-width: 1400px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 40px;
}

.solo img {
    height: 350px;
    width: 350px;
    border: 5px solid #f90000;
    border-radius: 20px;
    box-shadow: 0 0 20px #ffffff;
}

/*= Lead Developer*/
.lead{
    width: 90%;
    max-width: 1400px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 40px;
}

.lead img {
    height: 350px;
    width: 350px;
    border: 5px solid #32f900;
    border-radius: 20px;
    box-shadow: 0 0 20px #ffffff;
}

/*= Jr. Developer*/
.jr{
    width: 90%;
    max-width: 1400px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 40px;
}

.jr img {
    height: 350px;
    width: 350px;
    border: 5px solid #00ecf9;
    border-radius: 20px;
    box-shadow: 0 0 20px #ffffff;
}
    
/*=== About Page ===*/

/*= MCP =*/

/*= Spencer T. Crosland =*/

/*=== FOOTER ===*/
footer {
    margin: 20px auto 0;
    width: 90%; 
    max-width: 900px; 
    text-align: center;
    padding: 15px;
    border: 5px solid #32f900;
    border-radius: 20px;
    box-shadow: 0 0 20px #ffffff;
    color: #f90000;
    text-shadow: 1px 1px 3px #330033;
}

/* === MOBILE MENU RULES (UNDER 700px) ==== */
@media screen and (max-width: 699px) {

    .menu-btn {
        display: inline-block;
    }

    nav {
        flex-direction: column;
        align-items: stretch;
        height: auto;
        gap: 0;
        padding: 0;
    }

    nav a {
        display: none;
        width: 100%;
        box-sizing: border-box;
    }

    nav.open a {
        display: block;
    }

    /* === HEADER LOOK LIKE YOUR SCREENSHOT === */
    header {
        padding-left: 165px;   /* space for logo */
        padding-right: 15px;
        align-items: center;   /* keep text centered in the remaining space */
        justify-content: center;
        box-sizing: border-box;
    }

    /* keep logo left and slightly smaller so it never overlaps */
    .logo {
        top: 16px;
        left: 16px;
    }

    .logo img {
        width: 125px;
        height: auto;
    }

    /* IMPORTANT: stop using 400% on mobile */
    #master h1,
    #control h1,
    #programs h1 {
        font-size: 220%;
        line-height: 1.05;
        text-align: center;
        margin: 0;
    }

    /* Programs can be a bit bigger like your image */
    #programs h1 {
        font-size: 260%;
    }
}



/* ===== Tablet ===== */
@media screen and (min-width: 700px) {
    .featured-projects {
        grid-template-columns: 1fr 1fr;
    }

    .games {
        grid-template-columns: 1fr 1fr;
    }

    .applications {
        grid-template-columns: 1fr 1fr;
    }

    .solo {
        grid-template-columns: 1fr 1fr;
    }

    .lead {
        grid-template-columns: 1fr 1fr;
    }

    .jr {
        grid-template-columns: 1fr 1fr;
    }

    .menu-btn {
        display: none;
    }

    nav {
        flex-direction: row;
        height: 50px;
        padding: 0 20px;
        gap: 50px;
    }

    nav a {
        display: inline-block;
        border-top: none;
        padding: 10px 25px;
    }
}

/* ===== Desktop ===== */
@media screen and (min-width: 1000px) {
    header {
        flex-direction: row;
        gap: 40px;
        padding-left: 240px;
    }

    .featured-projects {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .games {
        grid-template-columns: 1fr 1fr 1fr;
    }

     .applications {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .solo {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .lead {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .jr {
        grid-template-columns: 1fr 1fr 1fr;
    }

    nav {
        justify-content: center;
    }
}