@import url('https://fonts.googleapis.com/css2?family=Afacad+Flux:wght@100..1000&family=Edu+AU+VIC+WA+NT+Arrows:wght@400..700&family=Fredoka:wght@300..700&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto+Slab:wght@100..900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&family=Tinos:ital,wght@0,400;0,700;1,400;1,700&display=swap');

body{
    display: flex;
    flex-direction: column;
    height: 100vh;
    font-size: 20px;
    font-family: "Afacad Flux";
    background-color: white;
    color: #2c2c2c;
}
h1{
    font-size: 2em;
    font-weight: 500;
    padding-bottom: 30px;
}
h2{
    font-size: 1.5em;
    font-weight: 500;
    padding: 20px;
}
p{
    font-size: 20px;
    line-height: 30px;
    padding-bottom: 30px;
}
img{
    width: 40%;
    height: 40%;
}
button{
    background-color: #2c2c2c;
    border: none;
    color: white;
    font-family: "Open Sans";
    cursor: pointer;
    padding: 7px;
    width: 100px;
}

/* header css */

#headerDiv{
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-image: url('../images/simpleHeader.jpg');
    background-size: cover;
    background-position-y: 30%;
    color: white;
}
header h1{
    font-size: 1.5em;
    padding: 20px;
    padding-left: 40px;
}
nav ul{
    display: flex;
    font-size: 1em;
    padding: 20px 40px 20px 30px;
    gap: 20px;
}
nav ul li a{
    text-decoration: none;
    color: white;
}

/* content main */

main{
    flex: auto;
    padding: 150px 150px 150px 150px;
}

/* about me css */

main{
    display: grid;
    grid-template-columns: repeat(3, 33%);
    justify-content: center;
    align-content: center;
    grid-gap: .5%;
}
.projectCards{
    width: 100%;
    height: 400px;
    border-radius: 10px;
    object-fit: cover;
    object-position: center center;
}
.projectCards:hover{
    cursor: pointer;
    transform: scale(1.01);
}

/* lightbox css */

#lightboxCard{
    position: fixed;
    z-index: 150;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(150, 150, 150, .6);
    backdrop-filter: blur(2px);
    display: none;
}
#lightboxCard.active{
    display: flex;
    justify-content: center;
    align-items: center;
}
#lightboxImg{
    width: 80%;
    height: 80%;
    border: 4px solid white;
    border-radius: 10px;
    box-shadow: 1px 3px 20px rgba(0,0,0, .5);
}

/* Footer css */

footer{
    display: flex;
    justify-content: center;
    padding: 10px;
    background-color: #2c2c2c;
    color: white;
}

@media all and (max-width: 1400px){
    .projectCards{
        height: 300px;
    }
}
@media all and (max-width: 1200px){
    .projectCards{
        height: 200px;
    }
    #lightboxImg{
        height: 60%;
    }
}
@media all and (max-width: 1000px){
    main, aside{
        padding: 75px 75px 75px 75px;
    }
    nav{
        display: none;
    }
    nav ul{
        display: block;
    }
    nav.open{
        display: flex;
    }
    #menu-button{
		color: white;
		display: flex;
		justify-content: center;
		align-items: center;
		font-size: 2em;
        padding: 10px 15px 15px 0px;
        text-align: center;
		cursor: pointer;
    }
    #lightboxImg{
        height: 50%;
    }
}
@media all and (max-width: 750px){
    .projectCards{
        height: 130px;
    }
    #lightboxImg{
        height: 40%;
    }
}
@media all and (max-width: 550px){
    main, aside{
        padding: 50px 20px 50px 20px;
    }
    #lightboxImg{
        height: 30%;
    }
}
@media all and (max-width: 450px){
    .projectCards{
        height: 100px;
    }
    #lightboxImg{
        height: 25%;
    }
}