* {
  box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    margin: 0;
    padding: 0;
    background-color: gray; 
    color: #333;
}

header {
    background-color: gray;
    color: black;
    text-align: center;
    padding: 2rem;
    top:0;
    width:100%;
    position: fixed;
}

h3 {
    color: #001a33;
    margin-left: 2rem;
    margin-bottom: 0;
}

h2 {
    color: black;
    margin-left: 2rem;
    margin-bottom: 0;
}

.navbar {
    position:sticky;
    top:100px;
    left:10px;
    background-color: #424242; 
    padding: 0.55rem 0;
    /*margin-bottom: 2rem;*/
    display: flex;
    justify-content: flex-start;
    border-bottom: 0.2rem solid #391313;*/

}

.navbar ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.navbar li {
    margin-right: 0.2rem;
    border-radius: 0.2rem;
}

.navbar a {
    text-decoration: none;
    color: white;
    padding: 0.5rem 1rem;
    transition: background-color 0.2s, color 0.2s;
    border-radius: 0.2rem;
}

.navbar a:hover {
    background-color: #d3af37; /* Highlight hover color */
    color: #black;
    padding: auto;
    border-radius: 0.2rem;

}

.navbar .active {
    background-color: #D4AF37; /* Active page color */
    color: #fff;
    padding: auto;
    margin-right: 0;
    border-radius: 0.2rem;
}

/* Projects Page Layout */
.projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2rem;
    color: gray;
}

.project-item {
    border: 0.4rem solid white;
    padding: 1rem;
    flex: 1 1 45%;
    background-color: #cccaca;
    display: flex;
    align-items: top;
    color: black;
    margin-top: 0;
}

.project-item img {
    max-width: 20rem;
    margin-right: 1.5rem;
    border-radius: 0.5rem;
}

.project-details {
    flex: 1;
}

.project-details h3 {
    margin: 0 0 0.5rem 0;
}

.project-details p {
    margin: 0;
}

img {
    border: 0.02rem solid black;
}

/* Explanation of rem: */
/* rem is used as it scales better with user settings, ensuring better accessibility and consistent sizing across devices. */


.footer {
    position: flex;
    padding: 0.05rem;
    margin-top: 5rem;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: white;
    color: #525252;
    text-align: left;
    border-top: 0.5rem solid #3f403f;
}

h5 {
    font-size: 1.25rem;
    color: black;
    margin-left: 2rem;
    margin-bottom: 0;
}

.p {
    font-size: 1rem;
    color: black;
    margin-left: 2rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
    }

    .portfolio-pic {
        width: 80%;
    }

    .project-item iframe {
        width: 100%;
        height: auto;
    }
.portfolio-pic {
    width: 50%;
    max-width: 200px;
    height: auto;
}

}