/* colors for minecraft (dyes)
white: #f9ffff
light gray: #9c9d97
gray: #474f52
black: #1d1c21
yellow: #ffd83d
orange: #f9801d
red: #bb0903
brown: #825432
darker brown: #341101
light green: #80c71f
green: #5a7c15
light blue: #3ab3da
cyan: #169c9d
blue: #3c44a9
pink: #f38caa
magenta: #c64fbd
purple: #8932b7
another purple: #77157c
*/

#wrapper {
    display: grid;
    grid-template-columns: minmax(0px, 1fr) repeat(6, minmax(0,175px)) minmax(0px,1fr);
    grid-template-rows: (0px, auto);
    min-width: 200px;
    font-family: SourceSerifPro;
    background-image: linear-gradient(#f9ffff, #3ab3da, #3c44a9);
    border: #e8e8e8 solid 2px;
    border-radius: 55px;
}

@font-face {
    font-family: SourceSerifPro;
    src: url(fonts/SourceSerifPro-regular.ttf);
}

            /* header */

header a{
    color: #1d1c21;
}

header {
    grid-row: 1/2;
    grid-column: 2/-4;
    width: 400px;
    text-align: center;
    font-size: 20px;
}

#creeperpic {
    background-image: url(creeper/favicon-96x96.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    background-attachment: scroll;
    height: 107px;
    min-width: 80px;
    grid-row: 1/2;
    grid-column: 5/6;
}

.lavamove:hover {
    font-weight: bold;
    animation: lavamove 3s infinite;
    animation-fill-mode: forwards;
} 

@keyframes lavamove {
    from {color: #bb0903;}
    to {color: #f9801d;}
}
            /* main */

a {
    text-decoration: none;
}

main {
    grid-row: 3/7;
    grid-column: 2/-2;
}

h2 {
    grid-row: 3/4;
    grid-column: 2/-2;
    
}

main section1 p{
    grid-row: 4/5;
    grid-column: 2/-2;
}

main section2 p{
    grid-row: 5/6;
    grid-column: 2/-2;
}

main section3 p{
    grid-row: 6/7;
    grid-column: 2/-2;
}

main ul {
    text-decoration: none;
    list-style: none;
}

            /*memes*/

#meme1 {
    background-image: url(memes/diesofhunger.jpg);
    background-size: cover;
    background-position: left;
    background-repeat: no-repeat;
    height: 196px;
    width: 100px;
    min-width: 100px;
    min-height: 196px;
    grid-row: 4/5;
    grid-column: 2/3
}

#meme2 {
    background-image: url(memes/villlagerprotectedcopy.jpg);
    background-size: cover;
    background-position: left;
    background-repeat: no-repeat;
    height: 200px;
    width: 459px;
    min-width: 459px;
    min-height: 200px;
    grid-row: 5/6;
    grid-column: 3/4;
    color: #f9ffff;
}
#meme3 {
    background-image: url(memes/endermanpistion.gif);
    background-size: cover;
    background-position: left;
    background-repeat: no-repeat;
    height: 200px;
    width: 459px;
    min-width: 459px;
    min-height: 200px;
    grid-row: 6/7;
    grid-column: 4/5
}

#meme4 {
    background-image: url(memes/noobdirthouse.jpg);
    background-size: cover;
    background-position: left;
    background-repeat: no-repeat;
    height: 100px;
    width: 100px;
    min-width: 100px;
    min-height: 100px;
    grid-row: 6/7;
    grid-column: 4/5
}




            /* navigation */

nav, #grassbar {
    text-align: center; 
    grid-row: 2/3;
    grid-column: 1/-1;
    text-decoration: none;
    font-weight: bold;
    position: sticky;
    top: 0;   
}

nav li {
    border-left: 1px solid #1d1c21;
    border-right: 1px solid #1d1c21;
    border-bottom: none;
    border-top: none;
    border-collapse: collapse;

}

nav a {
    text-decoration: none;
    padding-bottom: 15px;
    padding-top:15px; 
    color: #f9ffff;
    display: block;
    text-align: center;
    grid-column: 2/-2;
    grid-row: 2/3;
}

.myDIV:hover {
    background-color: #9c9d97;
    animation: mymove 5s 1;
    animation-fill-mode: forwards;
}

@keyframes mymove {
    from {background-color: #825432;}
    to {background-color: #9c9d97;}
}

nav ul {
    padding: 1rem 1rem;
    list-style: none;
    margin-left: 0px;
    margin-right: 0px;
    padding: 0px 0px 0px 0px;
    display: flex;
    flex-flow: row nowrap;
    text-align: center;
}

nav ul li {
    color: #f9ffff;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
    width: 100%;
}

#grassbar {
    grid-row: 2/3;
    grid-column: 1/-1;
    height: 70px;
    background-image: url(pics/grass.png);
    background-size: contain;
    background-position:center;
    background-repeat: repeat;
    width: 100%;
    position: sticky;
    display: flex;
}
            /* footer */

footer {
    grid-row: 7/8;
    grid-column: 2/-2;
    text-align: center;
}

            /* medias (smaller screen sizes) */

@media only screen and (max-width: 1100px) {
    #wrapper {
        grid-template-columns: minmax(0px, 1fr) repeat(6, minmax(0,130px)) minmax(0px, 1fr);
    }
}

@media only screen and (max-width: 900px) {
    header h1{
        grid-row:1/2;
        grid-column: 3/-3;
        font-size: 30px;
    }
    
    table {
        display: flex;
        margin: 0 auto;
        border: none;
        flex-wrap: wrap;
        grid-row:4/7;
        grid-column: 2/6
    }
    
#meme1 {
    height: 208px;
    width: 100px;
    min-width: 100px;
    min-height: 201px;
    background-position: top;
}

#meme2 {
    height: 200px;
    width: 375px;
    min-width: 271px;
    min-height: 200px;
    background-position: center;
}
#meme3 {
    height: 267px;
    width: 273px;
    min-width: 202px;
    min-height: 273px;
    background-position: center;
}

#meme4 {
    height: 164px;
    width: 238px;
    min-width: 238px;
    min-height: 164px;
}
    
    #creeperpic {
        grid-row: 1/2;
        grid-column: 6/-4;
        background-position: inherit;
    }

    nav {
        grid-row: 2/3;
        grid-column: 3/-3;
    }
    
    nav ul {
        flex-flow: column nowrap;
    }

    nav, #grassbar {
        position: inherit;
        width: 262px;
    }
    
    #grassbar {
        grid-column: 3/-3;
        grid-row:2/3;
        width: 302px;
        height: 294px;
        background-image: url(pics/caveeditedit.png);
        background-repeat: no-repeat;
        background-position: center;
    }
    
    nav li {
        min-width: 260px;
}
    
    nav ul li, nav ul li a {
        border-left: none;
        border-right: none;
    }
    
    nav ul li a {
        border-top: 1px solid #1d1c21;
        border-bottom: 1px solid #1d1c21;
        border-collapse: collapse;
    }
    
    main {
        flex-wrap: nowrap;
        grid-column: 3/-3;
    }
    
}

@media only screen and (max-width: 600px) {
    header h1 {
        text-align: center;
        grid-column: 3/-3;
    }
    
    #wrapper {
        border: none;
        border-radius: none;
        padding: none;
    }
    
    table {
        align-content: center;
    }
    
    #creeperpic {
        grid-row:1/2;
        grid-column: 2/-4;
        min-height: 80px;
        background-position:initial;
        background-size: unset;
    }
    
    nav, #grassbar {
        position: inherit;
        width:270px;
    }
    
    #grassbar {
        grid-column: 3/-3;
        grid-row:2/3;
        min-width: 300px;
        height: 280px;
        background-image: url(pics/caveeditedit.png);
        background-repeat: no-repeat;
        background-position: center;
    }
    
    nav ul li a{
        grid-row: 2/3;
        grid-column: 3/-3;
        width: 270x;
        height: 20px;
    }
    
    nav {
        grid-row: 2/3;
        grid-column: 3/-3;
    }
    
    nav ul li, nav ul li a {
        border-left: none;
        border-right: none;
    }
    
    nav ul li a {
        border-top: 1px solid #1d1c21;
        border-bottom: 1px solid #1d1c21;
        border-collapse: collapse;
    }
    
    
    .myDIV {
        width: 260px;
        text-align: center;
    }
    
    header {
        font-size: 2px;
        width: 300px;
        min-width: 200px; 
        grid-column: 3/-3;
    }
    
    footer{
        grid-column: 3/-2;
        text-align: center;
    }
}