@font-face {
    font-family: Road Rage;
    src: url(fonts/Road_Rage/RoadRage-Regular.ttf);
}

@font-face {
    font-family: Trade Winds;
    src: url(fonts/Trade_Winds/TradeWinds-Regular.ttf);
}

@font-face {
    font-family: Newsreader;
    src: url(fonts/Newsreader/Newsreader-VariableFont_opsz\,wght.ttf);
}

* {
    font-family: Road Rage;
    letter-spacing: 4%;
    padding: 0;
    margin: 0;
    color: white;
}

ul {
    z-index: 6;
}

body {
    background-image: linear-gradient(black, #70161e);
}

img {
    width: 100%;
    height: 100%;
}

#logo img {
    transition: scale .5s;
}

#logo img:hover {
    scale: 1.5;
}

img:not(#logo img) {
    filter: grayscale(100);
    border-radius: 5%;
    box-shadow: 13px 13px 13px black;
}

h1 {
    font-family: Trade Winds;
    text-align: center;
    margin-bottom: 5%;
    margin-top: 90px;
    text-shadow: 2px 2px 2px #70161e;
    font-size: 1.8em;
}

h2 {
    text-align: center;
    margin-bottom: 5%;
    letter-spacing: 10%;
    text-shadow: 3px 3px 2px #7ea16b;
    font-weight: 550;
}

p {
    font-family: Newsreader;
    font-size: 1em;
    font-weight: 450;
    margin-top: auto;
    margin-bottom: auto;
}

#gridContainer {
    display: grid;
    grid-template-areas: 
    "header header header header"
    "p1 p1 p1 p1"
    "p2 p2 p2img p2img"
    "p3img p3img p3 p3"
    "p4 p4 p4 p4"
    "footer footer footer footer";
    padding-left: 10%;
    padding-right: 10%;
    grid-gap: 30px;
}

#p1 {
    grid-area: p1;
}

#p2 {
    grid-area: p2;
}

#p3 {
    grid-area: p3;
}

#p4 {
    grid-area: p4;
}

#p2img {
    grid-area: p2img;
}

#p3img {
    grid-area: p3img;
}

header {
    grid-area: header;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2%;
    position: fixed;
    left:0;
    right: 0;
    justify-content: flex-end;
    background-color:#7ea16b;
    padding: 15px;
    font-size: 1.45em;
    align-items: center;
}

#logo {
    margin-right: auto;
}

a > img {
    width: 30px;
    padding-top: 5px;
}

a {
    color: #70161e;
    text-decoration: none;
    border-bottom: solid black;
    border-color: #7ea16b;
    transition: border-color .5s, color .5s, font-size .5s;
}

a:hover:not(#logo a) {
    border-color: red;
    color: red;
    font-size: xx-large;
}

footer {
    grid-area: footer;
    background-color: black;
    padding-left: 15%;
    margin-left: -15%;
    padding-right: 15%;
    margin-right: -12.5%;
    text-align: center;
    padding-top: 5%;
    padding-bottom: 2.5%;
}
/* media queries (default website is tablet sized) */

/* mobile devices */
@media screen and (max-width: 599px) {
    h1 {
        font-size: 1.5em;
    }
    #gridContainer {
        grid-template-areas: 
        "header"
        "p1"
        "p2"
        "p2img"
        "p3"
        "p3img"
        "p4"
        "footer";
        grid-gap: 50px;
    }

    nav ul {
        justify-content: space-around;
        font-size: 1.5em;
    }

    #logo {
        margin-right: 0;
    }

    p {
        font-size: 1.25em;
    }
    footer {
        padding: 10%;
    }
    
    img {
        scale: 1.1;
    }
}

/* desktops */
@media screen and (min-width: 1200px) {
    #gridContainer {
        grid-template-areas: 
        "header header header"
        "p1 p2img p2"
        "p3 p3img p4"
        "footer footer footer";
    }

    p {
        font-size: 1em;
    }

    img {
        scale: .9;
    }
}