img {
    margin: 0 auto;
    width: 18vw;
}

img#profilePic {
    border-radius: 40%;
}

body {
    background-color: #1B4B31;
    font-size: 150%;
}

.Top,
#Projects h2,
h3,
h4 {
    font-family: "Lilita One", sans-serif;
    font-weight: 300;
    font-style: normal;
    color: #E61557;
}

p,
footer a {
    font-family: "Raleway", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: .9em;
    color: #A05F73;
}

header,
main,
footer {
    margin: 0 auto;
    width: 90vw;
}

h1,
h2,
ul,
p {
    margin: 0 auto;
    text-align: center;
}

ul {
    list-style-type: none;
    margin: 0;
}

hr {
    border-top: 1px solid #15E62A;
}

/* Grid Box for page */
#Gridmain {
    display: grid;
    grid-template-areas: "headshot bio"
        "controls controls"
        "projects projects"
        "graphics graphics";
    justify-content: center;
    align-items: center;
    align-content: space-between;
    border-left: 1px dashed #15E62A;
    border-right: 1px dashed #15E62A;
    min-width: 800px;
    width: 90%;
}

.headshot{
    grid-area: headshot;
    max-width: 300px;
    justify-self: center;
}

.bio{
    grid-area: bio;
    max-width: 400px;
    justify-self: center;
}

.bio p {
    background-color: rgba(160, 95, 115, 0.3);
    padding: 20px 20px;
    border-radius: 8px;
    margin: 0 auto;
}

.widgets {
    width: 48%;
    padding: 15px 6px;
    grid-area: controls;
    display:none;
}

.box {
    grid-area: projects;
}

.gbox {
    grid-area: graphics;
}

#Cards #content {
    display: flex;
    border-top: .5px solid #15E62A;
    flex-direction: row;
    flex-wrap: wrap;
    column-gap: .3rem;
}

#Cards #content img{
    height: 14.2rem;
    width: 100%;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.result{
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-basis: 250px; /* Increased for better card width */
    flex-grow: 1;
    margin: 10px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

/* nav bar styling */
nav.site-nav {
    background: rgba(0, 0, 0, 0.35);
    border-radius: 8px;
    margin: 20px auto;
    padding: 10px 20px;
    max-width: 900px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

nav.site-nav ul {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav.site-nav a {
    color: #ffffff;
    text-decoration: none;
    font-family: "Raleway", sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    transition: background 0.2s ease, transform 0.2s ease;
}

nav.site-nav a:hover,
nav.site-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

nav.site-nav a:active {
    transform: translateY(0);
}

/* Link Styling */
a:link {
    color: #E61558;
}

a:visited {
    color: #3b121f;
}

a:focus {
    color: #f00650;
}

a:hover {
    color: #e32b65cf;
    text-decoration: underline;
}

a:active {
    color: #e61557c7;
    text-decoration: none;
}