body {
    font-family: Arial, sans-serif;
    background-color: #2e2e2e;
    color: white;
    text-align: center;
    margin: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    min-height: 100vh;
}
figure {
    padding: 0.25rem;
    margin: 0.3rem;
}
.navbar {
    background-color: #570000;
    padding: 1rem;
    width: 100%;
}
.navbar a {
    color: white;
    text-decoration: none;
    padding: 0.625rem;
    font-weight: bold;
}
.container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin: 1rem;
}
.box {
    background-color: #570000;
    padding: 1.25rem;
    border-radius: 0.625rem;
    box-shadow: 0.125rem 0.125rem 0.625rem rgba(0, 0, 0, 0.5);
    margin: 0.625rem;
}
.link_box {
    background-color: #b5651d;
    padding: 1.25rem;
    margin: 1rem;
    box-shadow: 0.125rem 0.125rem 0.625rem rgba(0, 0, 0, 0.5);
    border-radius: 0.625rem;
    color: white;
}
.sidebar {
    padding: 2.2rem;
    border-radius: 0.625rem;
    color: rgb(185, 182, 182);
}
.footer {
    background-color: #570000;
    padding: 1rem;
    margin-top: 1.25rem;
}
.profile_image {
    height: 40rem;
    object-fit: cover; /* Ensures images don’t stretch */
}
.small_image {
    height: 25rem;
    padding: 0.5rem;
}
.main_area {
    color: rgb(255, 212, 212);
    text-align: left;
    padding: 0.625rem;
}
h1 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
    letter-spacing: 0.05em;
}
p {
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased !important;
    -moz-font-smoothing: antialiased !important;
    text-rendering: optimizelegibility !important;
    letter-spacing: 0.03em;
    font-size: 1rem;
    font-family: Arial, Helvetica, sans-serif;
}
.active {
    background-color: #000000;
}
a {
    color: rgb(148, 187, 253);
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased !important;
    -moz-font-smoothing: antialiased !important;
    text-rendering: optimizelegibility !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem;
    }
    .box,
    .link_box {
        padding: 1rem;
    }
    h1 {
        font-size: 1.5rem;
    }
    p {
        font-size: 0.9rem;
    }
    .profile_image {
        height: 35rem; /* Reduce size for smaller screens */
    }

    .small_image {
        height: 20rem;
    }
}
