body{ 
    box-sizing: border-box ;
    margin: 0 50px;
}

* {
    box-sizing: border-box;
}

nav {
    background-image: url(./resources/images/blue-569222_1280.jpg);
    height: 100px;
    width: 100%;
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 1;
    box-sizing: border-box !important;
}

nav ul li{
    display: inline-block;
    text-align: center;
}

a   {
    display: inline-block;
    font-family: 'Trispace', sans-serif;
    font-size: 28px;
    color: #F2D492;
    border: 2px outset #F2D492;
    background-color: #4B88A2;
    margin: 10px 20px;
    text-decoration: none;
    width: 300px;
}
    a:hover {
    background-color: #F2D492;
    color: #0B132B;
    border: #F2D492 2px outset;
    text-decoration: none;
    text-transform: uppercase;
}

    a:active {
        
                background-color: #0B132B ;
                color: salmon;
                border: #F2D492 2px inset;
                text-decoration: none;
                text-transform: lowercase;
    }

    ul li:visited {
    
            background-color: #0B132B;
            color: salmon;
            border: #F2D492 2px inset;
            text-decoration: none;
            text-transform: capitalize;
        }

.banner {
    background-color: #4B88A2;
    position: relative;
    height: 200px;
    width: auto;
    right: 10px;
    box-sizing: border-box !important;
    margin: 110px 0 80px;
    text-align: center;
}

.bannerh1 {
    font-family: 'Karla',sans-serif;
    font-size: 48px;
    font-weight: 500;
    font-style: italic;
    color: #F2D492;
    padding: 0;
    margin: 0;
    position: relative;

}

.bannerh1 p {
    font-family: 'Karla', sans-serif;
    font-size: 26px;
    font-weight: 500;
    font-style: italic;
    color: #F2D492;
    position: relative;
    padding: 0;
    margin: 0;
    bottom: 80px;
}

#colours {
    border: 10px solid #F2D492;
    text-align: center;
    position: relative;
    width: auto;
    height: 400px;
    margin: 20px 0;
}

.mainh2 {
    text-transform: uppercase;
    font-family: 'Trispace', sans-serif;
    font-size: 40px;
    border: 2px outset #4B88A2;
    color: gray;
    
}
.mainh4 {
    font-family: 'Karla', sans-serif;
    font-size: 20px;
    border-width: 200px;
    border: 1px solid #4B88A2;
    color: gray;
    
}

.palette1, .palette2, .palette3 {
    display: inline;
    margin: 0 60px;
    font-size: 20px;
    position: relative;
    top: 0px;
    left: 210px;
}

.palette1 {
    background-color: #BABFD1;
    color: #F2D492;
    text-align: center;
    padding: 80px;
    float: left;
    font-family: 'Karla';
        font-weight: 500;
        font-style: italic;
}

.palette2 {
    background-color: #4B88A2;
        color: #F2D492;
        text-align: center;
        font-family: 'Karla';
        font-weight: 500;
        font-style: italic;
        padding: 80px;
        float: left;
}

.palette3 {
    background-color: #0B132B;
    color: #F2D492;
    text-align: center;
    font-family: 'Karla';
    font-weight: 500;
    font-style: italic;
    padding: 80px;
    float: left;
}


#fonts {
            font-family: 'Karla', sans-serif;
            border: 10px solid #F2D492;
            text-align: center;
            position: relative;
            width: auto;
            height: 800px;
            margin: 20px 0 0;
            box-sizing: border-box ;
}

.karla {
    font-family: 'Karla', sans-serif;
        text-align: center;
        padding: 2px;
        position: relative;
        width: 600px;
        height: auto;
        top: 70px;
}



.karla5 {
    font-weight: 500;
}
.karla4 {
    font-weight: 400;
}
.karla5i {
    font-weight: 500;
    font-style: italic;
}
.karla4i {
    font-weight: 400;
    font-style: italic;
}

.trispace {
    font-family: 'Trispace', sans-serif;
text-align: center;
padding: 2px;
width: 500px;
position: relative;
bottom: 380px;
left: 650px;
}

.tri4 {
font-weight: 400;
}

.tri5 {
font-weight: 500;
}

.tri6 {
font-weight: 600;
}

.tri7 {
font-weight: 700;
}

.vollkorn {
    font-family: 'Vollkorn', sans-serif;
        text-align: center;
        padding: 2px;
        width: 500px;
        position: relative;
        bottom: 920px;
        left: 1170px;
}

.voll4 {
    font-weight: 400;
}

.voll4i {
    font-weight: 400;
    font-style: italic;
}

.voll5 {
    font-weight: 500;
}

.voll5i {
    font-weight: 500;
    font-style: italic;
}

p {
    font-size: 22px;
}

.fontf {
    border: 2px solid #BABFD1;
    margin-bottom: 10px;
    color: gray;
    text-align: center;
    margin-bottom: 10px;
}

#styles {
    font-family: 'Karla', sans-serif;
    border: 10px solid #F2D492;
    width: auto;
    height: auto;
    box-sizing: border-box;
    margin: 20px 0;
    
}

.grid-textstyles {
    display: grid;
    grid-auto-rows: minmax(150px, auto);
    grid-auto-columns: minmax(200px, auto);
    grid-gap: 5px;
    position: relative;
   
}

.gridh2 {
    border: 1px solid #0B132B;
    width: auto;
    height: 50px;
    text-align: center;
}

.grid-textstyles div {
    border: 1px outset #F2D492;
    box-sizing: border-box;
}

.grid1 {
    width: auto;
    margin: 5px;
    text-align: center;
    color: #F2D492;
    background-color: #4B88A2;
    font-family: 'Trispace', sans-serif;
        font-weight: 600;
}

.grid2 {
    width: auto;
    margin: 5px;
    text-align: center;
    color: #F2D492;
    background-color: #4B88A2;
    font-family: 'Karla', sans-serif;
        font-weight: 500;
}

.grid3 {
    width: auto;
    margin: 5px;
    text-align: center;
    color: #F2D492;
    background-color: #4B88A2;
    font-family: 'Vollkorn',sans-serif;
    font-weight: 500;
}

footer {
background-color: #F2D492;
    color: #0B132B;
    font-family: 'Vollkorn', sans-serif;
    font-size: 24px;
    font-weight: 500;
    position: fixed;
    width: 100%;
    height: 80px;
    bottom: 0px;
    opacity: 0.50;
    padding: 0px 0 80px;
    text-align: center;
}

footer h4{
    margin-top: 0px;
        margin-bottom: 0px;
        position: relative;
        bottom: 100px;
        text-align: center;
    }
