html{
    font-size: 16px;
}

body{
    font-family: 'Press Start 2P', cursive;
    color:white;
    margin: 0;
    background: black;
    width: 100vw;
    height: 100vh; 
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto 88%;
    grid-template-areas: 
    "nav"
    "body";
}

header{
    grid-area: nav;
}

nav{
    display: flex;
    align-items: center;
    object-fit: cover;
}

form{
    display: flex;
    justify-content: center;
}

nav a{
    text-decoration: none;
    color: white;
    margin: 0px 10px;
}

.jeep{
    width: 96px;
    height: 72px;
    background-image: url("images/Jeep-Move-0.png");
    animation: jeepMove 0.2s steps(2) infinite;
}

.mainContainer{
    grid-area: body;
    border: 1px solid grey;
    grid-template-columns: auto;
    grid-template-rows: auto auto;
    grid-template-areas: 
    "lead"
    "sub";
}

.leadSection{
    border: 1px solid grey;
    margin: 0;
    background-image: url(images/YeahLrg.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position-x: center;
    background-position-y: center;
    grid-area: lead;
}

#lead{
    text-align: center;
    font-size: 4em;
    margin: 10px;
    text-shadow: 2px 2px black;
}

.subLead{
    text-align: center;
    text-shadow: 2px 2px black;
}

.subSection{
    border: 1px solid grey;
    grid-area: sub;
    display:grid;
    grid-template-columns: 33% 33% 33%;
    grid-template-rows: auto;
    justify-content: center;
}

.subItem{
    object-fit: cover;
    object-position: center;
    display: grid;
    grid-template-columns: auto;
    grid-template-rows: auto 18%;
    width: 100%;
}

.subItemImg{
    justify-self: center;
    width: 100%;
 }


.button{
    background-color: #007c8d;
    border: none;
    color: white;
    padding: 15px 32px;
    
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    font-family: 'Press Start 2P', cursive;
   
}

.subButton span{
    justify-self: start;
    align-self: center;
    text-transform: uppercase;
}

.subButton{
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: 70% auto;
    justify-items: center;
    align-items: center;
}

.wave{
    background-image: url("images/Pow-Wave.png");
    width: 48px;
    height: 64px;
    animation: wavePow 0.6s steps(2) infinite;
    justify-self: end;
}



@keyframes wavePow{
    100%{
        background-position: -96px;
    }
}

@keyframes jeepMove{
    100%{
        background-position: -192px;
    }
}

@media only screen and (max-width: 760px) {

    .leadSection{
        border: 1px solid grey;
        margin: 0;
        background-image: url(images/YeahLrg.png);
        background-repeat: no-repeat;
        background-size: cover;
        background-position-x: center;
        background-position-y: 60%;
        grid-area: lead;
        width: 100vw;
        
    }

    #lead{
        text-align: center;
        font-size: 2em;
        margin: 10px;
        text-shadow: 2px 2px black;
    }
    
    .subLead{
        text-align: center;
        text-shadow: 2px 2px black;
    }

    .subSection{
        border: 1px solid grey;
        grid-area: sub;
        display:grid;
        grid-template-columns: auto;
        grid-template-rows: auto;
        justify-content: center;
        width: 100vw;
    }

    .subItem{
        width: 100%;
        display: grid;
        grid-template-columns: 100%;
        grid-template-rows: auto 18%;
       
    }
    
}

@media only screen and (max-width: 600px) {

    .leadSection{
        border: 1px solid grey;
        margin: 0;
        background-image: url(images/YeahLrg.png);
        background-repeat: no-repeat;
        background-size: 120%;
        background-position-x: 42%;
        background-position-y: 60%;
        grid-area: lead;
        width: 100vw;
    }

    nav{
        display: flex;
        flex-direction: column;
        align-items: center;
        flex-wrap: wrap;
        width: 100vw;
    }

    nav a{
        text-decoration: none;
        color: white;
        margin: 10px 5px;
    }

}


@media only screen and (max-width: 400px) {


    .leadSection{
        border: 1px solid grey;
        margin: 0;
        background-image: url(images/YeahLrg.png);
        background-repeat: no-repeat;
        background-size: 250%;
        background-position-x: 42%;
        background-position-y: 60%;
        grid-area: lead;
        width: 100vw;
    }

    .subSection{
        border: 1px solid grey;
        grid-area: sub;
        display:grid;
        grid-template-columns: auto;
        grid-template-rows: auto;
        justify-content: center;
        width: 100vw;
    }

    .subItem{
        width: 100%;
        display: grid;
        grid-template-columns: 100%;
        grid-template-rows: auto 18%;
       
    }
    
    .subItemImg{
        justify-self: center;
        width: 100%;
     }
    
}