/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

nav {
    position: absolute;
    right: 0px;
    top: 30px;
    font-family: 'Judson';
    font-size: 20px;

}

nav a {
    text-decoration: none;
    color: #7A8B7D;
}

a:hover {
    color: #FFFFFF;
}

main {
    padding: 10px;
    padding-top: 160px;
    /* for 4 position: top right bottom left */
    padding: 160px 20px 20px 20px;

    /* combined left and right = 3 positions */
    padding: 160px 20px 20px;
}

main article p {
    max-width: 65ch;
}

nav ul li {
    display: inline-block;
    margin-right: 30px;
}

body {
    background-color: #C9E4CD;
}

header {
    width: 100%;
    height: 75px;
    background-color: #C9E4CD;
    padding: 30px;
    position: fixed;
    top: 0;
    z-index: 1000;

}

#banner{
    width: 100%;
    height: 40vh;
    background-image: url(../img/banner.png);
    background-size: cover;
    background-position: center top;
    margin-top: 80px;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
    border-radius: 19px;
    position: relative;

}

h1 {
    /* Rachelle V’s Web Space */
    font-family: 'Judson';
    font-style: normal;
    font-weight: 700;
    font-size: 50px;
    line-height: 30px;
    /* identical to box height */
    text-align: left;
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #FFFFFF;
    line-height: 0.7;


}

#about {
    width: 100%;
    min-height: 20vh;
    background-color: white;
    margin-bottom: 100px;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
    border-radius: 19px;
    margin-top: -100px;

}

p {
    font-family: 'Judson';
    font-style: normal;
    font-weight: 700;
    font-size: 30px;
    line-height: 26px;
    color: #7A8B7D;
    text-align: center;
    padding: 40px;
    margin-top: -80px;
}


h2, h3 {
    display: block;
    font-family: 'Judson';
    font-style: normal;
    font-weight: 700;
    font-size: 40px;
    line-height: 33px;
    /* identical to box height */
    color: #7A8B7D;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 80px;
}

#interests {
    width: 100%;
    min-height: 60vh;
    background-image: url(../img/Rectangle\ 3.png);
    background-size: cover;
    background-position: center;
    margin-bottom: 100px;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
    border-radius: 19px;
    margin-top: -20px;
    
    display: flex;
    flex-direction: column;
    align-items: center;
}

#interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 80px;
    width: 80%;
    margin: 0 auto;
    margin-top: 20px;
}

#interests-grid figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#interests-grid img {
    width: 400px;
    min-width: 200px;
    height: auto;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
    border-radius: 19px;
    padding: 40px;
    margin-top: -100px;
}

#interests-grid figcaption {

font-family: 'Judson';
font-style: normal;
font-weight: 700;
font-size: 30px;
line-height: 23px;
text-align: center;
color: #7A8B7D;
padding-bottom: 70px;
}


h4 {
    font-family: 'Judson';
    font-style: normal;
    font-weight: 700;
    font-size: 40px;
    line-height: 33px;
    /* identical to box height */
    color: #FFFFFF;
    text-align: center;
    padding-top: 40px;
    padding-bottom: 20px;
}

#contact {
    width: 100%;
    min-height: 20vh;
    background-image: url(../img/bgrdicon.png);
    background-size: cover;
    background-position: center;
    margin-bottom: 100px;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
    border-radius: 19px;
    margin-top: -20px;
    text-align: center; /* Center the heading */
}

#contact h4 {
    margin-bottom: 10px; /* Adjust this value to reduce space */
}

#contact figure {
    display: inline-block; /* Allows figures to be aligned horizontally */
    margin: 0 10px; /* Horizontal spacing between icons */
}

#contact img {
    width: 50px; /* Set width for the icons */
    height: auto; /* Maintain aspect ratio */
}

#copyright {
    width: 100%;
    background-image: url(../img/Rectangle\ 5.png);
    background-size: cover;
    background-position: center;
    filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.25));
    border-radius: 19px;
    margin-top: -20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer { 
    font-family: 'Judson';
    font-style: normal;
    font-weight: 700;
    font-size: 30px;
    line-height: 26px;
    color: #7A8B7D;
    text-align: center;
    padding-top: 80px;
}

/* Tablet*/
@media screen and (max-width: 1024px) {

    #interests-grid {
        grid-template-columns: repeat(2.1fr); 
    }
}

/* Phone */
@media screen and (max-width: 430px) {

    #interests-grid {
        grid-template-columns: 1fr; 
    }
}