@font-face {
    font-family: "PublicSans";
    src: url("Public_Sans/PublicSans-VariableFont_wght.ttf");
}

@font-face {
    font-family: "Quatro";
    src: url("Quattrocento/Quattrocento-Bold.ttf");
}

* {
    background-color: transparent;
    box-sizing: border-box;
    margin: 0px;
}

p   {
    font-size: 1rem;
    font-family: "PublicSans";
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    line-height: 1.5;
    margin-bottom: 25px;
}

h3  {
    padding: 10px;
}

body    {
    margin: 0;
}

nav {
    grid-row: 1/2;
    grid-column: 1/-1;
    background-color: rgb(168,155,123);
    border-bottom: solid 3px white;
    position: sticky;
    top: 0;
    z-index: 1;
    width: 100%;
}

h1  {
    background-color: rgb(168,155,123);
}

nav ul  {
    display: flex;  

    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav ul li   {
    width: 100%;
}

nav a {
    color: #FFFFFF;
    display: block;
    padding: 40px;
    text-decoration: none;
    text-align: center;
    font-size: x-large;
    font-family: "Quatro";
    transition: background-color 0.5s ease-out;
}

nav a:hover   {
    background-color: rgb(255, 179, 0);
}

footer  {
    grid-row: 7/8;
    grid-column: 2/-2;
    padding: 1rem;
    text-align: center;
    font-size: 1rem;  
    background-color: rgb(205, 189, 151);
    color: white;
    border-top: solid 3px white;
    font-family: "Quatro";
    width: 100%;
}

#contactform {
    display: block;
    margin-top: 0;
}

#name, #email, #phone, #comments    {
    border-color: white;
}
main    {
    grid-column: 2 / -2;
    grid-row: 2 / 6;
    background-color: rgb(205, 189, 151);
    font-family: 'Quatro';
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

#darkback   {
    background-color: rgb(168,155,123);
    padding: 0.5rem;
}

#lightback   {
    background-color: white;
    padding: 1rem;
    color: rgb(168,155,123);
}

#webdev  {
    grid-row: 2/3;
    grid-column: 2/3;
    text-align: center;
    padding: 50px;
    background-color: rgb(205, 189, 151);
    color: white;
    font-family: "PublicSans";
}

#webdev img {
    padding-bottom: 30px;
    border-radius: 60px;
    width: 100%;
}

#gamedev  {
    grid-row: 2/3;
    grid-column: 3/4;
    text-align: center;
    padding: 50px;
    background-color: rgb(205, 189, 151);
    color: white;
    font-family: "PublicSans";
}

#gamedev img    {
    padding-bottom: 30px;
    border-radius: 60px;
    width: 100%;
}

#softdev  {
    grid-row: 3/4;
    grid-column: 2/3;
    text-align: center;
    padding: 50px;
    background-color: rgb(205, 189, 151);
    color: white;
    font-family: "PublicSans";
}

#softdev img    {
    padding-bottom: 30px;
    border-radius: 60px;
    width: 100%;
}

#photography  {
    grid-row: 3/4;
    grid-column: 3/4;
    text-align: center;
    padding: 50px;
    background-color: rgb(205, 189, 151);
    color: white;
    font-family: "PublicSans";
}

#photography img    {
    padding-bottom: 30px;
    border-radius: 60px;
    width: 100%;
}

#profexp  {
    grid-row: 2/3;
    grid-column: 2/3;
    text-align: center;
    padding: 50px;
    background-color: rgb(205, 189, 151);
    color: white;
    font-family: "PublicSans";
}

#volunteer  {
    grid-row: 2/3;
    grid-column: 3/4;
    text-align: center;
    padding: 50px;
    background-color: rgb(205, 189, 151);
    color: white;
    font-family: "PublicSans";
}

#references  {
    grid-row: 3/4;
    grid-column: 2/3;
    text-align: center;
    padding: 50px;
    background-color: rgb(205, 189, 151);
    color: white;
    font-family: "PublicSans";
}

#education  {
    grid-row: 3/4;
    grid-column: 3/4;
    text-align: center;
    padding: 50px;
    background-color: rgb(205, 189, 151);
    color: white;
    font-family: "PublicSans";
}

#whyty  {
    grid-row: 4/5;
    grid-column: 2/-2;
    background-color: rgb(168,155,123);
    text-align: center;
    color: white;;
    border-top: solid 3px white;
    font-family: "Quatro";
    width: 100%;
    padding-top: 20px;
}

#business1  {
    grid-row: 5/6;
    grid-column: 2/3;
    background-color: rgb(168,155,123);
    padding: 25px;
    color: white;
    font-family: "PublicSans";
}

#business2  {
    grid-row: 5/6;
    grid-column: 3/4;
    background-color: rgb(168,155,123);
    padding: 25px;
    color: white;
    font-family: "PublicSans";
}

#business3  {
    grid-row: 6/7;
    grid-column: 2/3;
    background-color: rgb(168,155,123);
    padding: 25px;
    color: white;
    font-family: "PublicSans";
}

#business4  {
    grid-row: 6/7;
    grid-column: 3/4;
    background-color: rgb(168,155,123);
    padding: 25px;
    color: white;
    font-family: "PublicSans";
}

#smalltyler {
    display: none;
}

#wrapper {
    display: grid;
    grid-auto-rows: minmax(0px, auto);
    grid-template-columns: minmax(0, 1fr) 1fr 1fr minmax(0, 1fr);
}

#contacthero {
    background-image: url(contacthero.jpg);
    height: 400px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    grid-row: 3/4;
    grid-column: 1/-1;
}

#midtext    {
    text-align: center;
    color: white;
    border-top: solid ;
    padding-top: 10px;
}

#midtext img    {
    width: 600px;
    padding-bottom: 50px;
}

#colorfix   {
    color: white;
}

#gamelink, #gamelink:visited   {
    background-color: rgb(255, 179, 0);
    font-weight: bold;
    text-decoration: none;
}

#gallery, #gallery:visited   {
    background-color: rgb(255, 179, 0);
    font-weight: bold;
    text-decoration: none;
}

@media screen and (max-width: 992px) {
    #webdev, #gamedev, #softdev, #photography, #profexp, #education, #references, #volunteer {
        grid-column: 2 / 4;
    }
    #webdev img, #gamedev img, #softdev img, #photography img, #midtext img, #volunteer img, #references img {
        width: 100%;
    }
    #webdev picture, #gamedev picture, #softdev picture, #photography picture, #midtext picture, #references picture, #volunteer picture {
        display: block;
    }
    nav ul {
        display: flex;
        justify-content: space-around; 
    }
    #wrapper {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    align-items: flex-start;
    }
    #bigtyler   {
        display: none;
    }
    #smalltyler {
        display: initial;
    }
    nav ul li {
        height: 75px;
    }
    nav a {
        font-size: large;
        max-height: 100%;
    }
    nav {
        position: static;
    }
    nav ul {
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 768px) {
    #webdev img, #gamedev img, #softdev img, #photography img {
        width: 100%;
    }

    #webdev, #gamedev, #softdev, #photography, #profexp, #education, #references, #volunteer{
        grid-column: 1 / -1;
    }
    #webdev picture, #gamedev picture, #softdev picture, #photography picture {
        display: block;
    }

}