/*
Title: Style
Authors: Spencer T. Crosland
Purpose: Kessel Sabbac 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;
}

/* === 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);
}

/*=== 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) {
   
    .projects {
        grid-template-columns: 1fr 1fr;
    }


    body {
        max-width: none;
    }

    header img {
        width: 150px;
        height: 168px;
    }

    .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) {
    
    .projects {
        grid-template-columns: 1fr 1fr 1fr;
    }

    nav {
        justify-content: center;
    }
}
