body{
    margin: 0px;
}

.grid-container{
    display: grid;
    grid-template-areas:
    'header header nav'
    'article middle right'
    'footer footer footer';
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
    width: 100%;
    box-sizing: border-box;
    background-color: rgba(238, 234, 0, 0.911);
    padding: 2px;
}

.grid-container > *{
    background-color: rgb(11, 12, 16);
}

header{
    grid-area: header;
    display: flex;
    justify-content: center;
    align-items: center;
}

header > h1{
    color: gold;
    display: inline-block;      /*keeps it next to the logo*/
    font-size: 60px;
    font-family: 'Orbitron', sans-serif;
}

nav{
    grid-area: nav;
    display: flex;                    /*keeps the links in a row*/
    justify-content: center;
    align-items: center;
    padding: 10px;
}

nav a{                               
    display: block;
    margin: 15px;
    text-decoration: none;
    font-weight: bold;
    font-size: 30px;
    color: gold;
    font-family: 'Orbitron', sans-serif;
}

nav a:hover{                      /* underline effect when hovering over links */
    text-decoration: underline;
}

article{
    grid-area: article;
    border: 2px solid gold;
    display: flex;
    flex-direction: column;
}
section{
    grid-area: middle;
    border: 2px solid gold;
    display: flex;
    flex-direction: column;
} 
aside{
    grid-area: right;
    border: 2px solid gold;
    display: flex;
    flex-direction: column;
}

footer{
    grid-area: footer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 20px;
    margin-top: 1px;
    color: gold;
    font-family: 'Orbitron', sans-serif;
} 

.logo{                /* logo image styling */
    width: 150px;
    height: 150px;
}

.left-img{
    height: 330px;
    width: 90%;
    margin: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    border: 2px solid gold;
}

.mid-img{
    height: 330px;
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    border: 2px solid gold;
}

.right-img{
    height: 330px;
    width: 90%;
    margin: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    border: 2px solid gold;
}

h2{
    font-size: 40px;
    padding: 8px;
    color: gold;
    font-family: 'Orbitron', sans-serif;
    
}

h3{
    font-size: 30px;
    color: white;
}

ul > li > p{
    font-size: 20px;
    color: white;
    padding: 5px;
}

.box-colour{
    background-color: rgb(31, 64, 104);
    border-top: 2px solid gold;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.col-colour{
  background-color: rgb(31, 64, 104);  
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-areas:
            'header'
            'nav'
            'article'
            'middle'
            'right'
            'footer';
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    nav a {
        font-size: 22px;
        padding: 8px 12px;
    }

    header > h1 {
        font-size: 40px;
        line-height: 1.1;
        text-align: center;
        margin: 8px 12px;
    }

    .left-img, .mid-img, .right-img {
        width: 100%;
        height: auto;
        margin: 10px 0;
    }

    footer {          /*reduces footer size for smaller screens */
    font-size: 16px;
    padding: 12px;
    text-align: center;
  }
}
