* {
    padding: 0;
    margin: 0;
}

html{
    scroll-behavior: smooth;
}

body{
    font-family: 'Lato', sans-serif;
    /* font-family: Verdana, Geneva, Tahoma, sans-serif; */
    font-size: 20px;
    background-color: rgb(109, 52, 52);
}
header{
    background-color: bisque;
    background-image: url(../img/yessir.jpg);
    background-size: cover;
    background-repeat: no-repeat;
    height: 200px;
    text-align: center;
    background-position: center 70%;
}
nav ul li {
    display: inline-block;
}
main{
    background-color: rgb(197, 157, 157);
    min-height: 300px;
    display: flex;
}
section{
    background-color: rgb(58, 28, 28);
    width: 66%;
    color: aliceblue;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    /* float: left; */
}
aside{
    background-color: rgb(82, 39, 39);
    width: 34%;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    /* float: right; */
}
section.bio{
    display: flex;
    min-height: 200px;
    width: 100%;
    background-color: rgb(189, 93, 93);
    border-radius: unset;
    padding: 20px;
    box-sizing: border-box;
}
/* .clear{
    clear: both;
} */
footer{
    background-color: rgb(85, 46, 46);
    height: 5px;
}

header, nav, main, section, aside, footer {
    /* padding: 20px 15px 100px 15px; */
    padding: 20px 15px 100px;
}
header{
    padding-top: 80px;
}

nav { /* Start About Web1*/
    padding: 20px 15px;
    word-spacing: 50px;
    /* Sticky Navigation */
    position: fixed;
    top:0px;
    background-color:rgb(88, 68, 68);
    width: 100vw;
    text-align: center;
    z-index: 10;
}
/* nav::before {
    width: 100%;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.9);
    filter: blur(10px);
    position: fixed;
    top: -5px;
    display: block;
    width: 120%;
    text-align: center;
    z-index: -1;
    content: '';
    left: -35px;
} */

nav ul li a, h1, h2 {
    font-family: 'Space Mono', monospace;
}

h1 {
    color: rgb(212, 64, 64);
}

a {
    font-weight: bold;
    text-decoration: none;
    color: black;    
}
a:hover {
    color: blue;
}
nav ul li a {
    text-decoration: none;
    text-transform: uppercase;    
    letter-spacing: 1px;
    color: rgb(29, 6, 6);
} 
nav ul li a:hover{
    color: rgb(255, 0, 0);
}


/* Gallery */
.gallery {
    display: grid;
    /* grid-template-columns: repeat(5, 1fr); */
    grid-template-columns: 1fr 1fr 1fr;
    grid-column-gap: 5vw;
    grid-row-gap: 5vh;
    padding: 20px;
    max-width: 1980px;

    /* positioning to center */
    position: relative;
    margin: 0 auto;
}

.boxes {
    background-color: white;
    width: 100%;
    min-height: 200px;
    border: 3px solid black;
    box-shadow: 14px 9px 15px 0px rgba(50, 50, 50, 0.59);
    height: fit-content;
}

.boxes img {
    width: 100%;
    transform-origin: center;
    transition: all 0.2s ease-in;
}

.boxes img:hover {
    transform: scale(1.5);
}

figcaption {
    padding-bottom: 15px;
}

@media only screen and (max-width: 1024px) {
    .gallery {
        grid-template-columns: 1fr 1fr;
    }

    .boxes img:active {
        transform: scale(1.5);
    }
}

@media only screen and (max-width: 640px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}