body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: rgb(29, 74, 72);
    margin: 0;
    overflow-x: hidden;
}

.mainDiv {
    background-color: rgb(209, 205, 205);
    min-height: 300px;
    max-height: fit-content;
    border-top-left-radius: 55%;
    border-bottom-right-radius: 35%;
    padding-top: 15%;
    padding-bottom: 10%;
    border: 2px, dashed, black;
    box-shadow: 0px 4px 20px black;
}

.projectsDiv {
    background-color: rgb(209, 205, 205);
    min-height: 300px;
    max-height: fit-content;
    border-top-left-radius: 55%;
    border-bottom-right-radius: 35%;
    padding-top: 15%;
    padding-bottom: 5%;
    text-align: center;
    border: 2px, dashed, black;
    box-shadow: 0px 4px 20px black;
}

#contactImg {
    min-width: fit-content;
    max-width: min-content;
    max-height: 300px;
    border-radius: 5%;
    flex-shrink: 0;
    box-shadow: 0px 4px 20px black;
}

.contactDiv {
    text-align: center;
}

.contactDiv h3,p {
    font-size: 5vw;
}

.contactDiv h1 {
    font-size: 8vw;
}

.namePlate{
    justify-self: center;
    padding-right: 5%;
}

#titleAM{
    justify-self: end;
    padding-right: 5%;
}

#backButton {
    display: none;
}

.aboutMeContainer{
    display: flex;
    gap: 10px;
    float: left;
    align-items: center;
}

#profileImg {
    max-width: 250px;
    max-height: 300px ;
    border-radius: 5%;
    flex-shrink: 0;
    box-shadow: 0px 4px 20px black;
}

#aboutMe {
    font-size: large;
    color: #000000;
    font-weight: bolder;
    margin: 0;
    padding: 0;
}

.topnav {
    margin-top: 1%;
    background-color: #333;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.topnav #myLinks {
    display: none;
    position: fixed;
    opacity: 80%;
    background-color: #444; 
    width: 100%;
    left: 0;
    padding: 10px;
    z-index: 999;
}

.topnav a.active {
    color: white;
    padding: 20px 16px;
    text-decoration: none;
    font-size: 18px;
    display: block;
}

.topnav #myLinks a {
    color: white;
    padding: 15px 16px;
    text-decoration: none;
    font-size: 18px;
    display: block;
}

.topnav #myLinks a:hover {
    background-color: #555; 
}

.topnav a.icon {
    background: black;
    display: block;
    position: absolute;
    padding: 10px;
    color: white;
    right: 0;
    margin-right: 5px;
    top: 0;
}

.active {
    background-color: #278ebe;
    color: white;
}

.regLinks {
    display: none;
}

.mediaIcons {
    color: #000000;
    margin: 2%;
    padding-top: 2%;
}

.project-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.project-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 2px solid #ddd;
}

.project-title {
    font-size: 1.5rem;
    font-weight: bold;
    padding: 15px;
    color: #333;
}

@media (min-width:481px) {
    .topnav a.icon {
        display: none;
    }

    .topnav a.active {
        display: none;
    }

    .topnav #myLinks a{
        display: none;
    }

    .regLinks {
        display: block;
    }

    #contactImg {
        min-width: 100px;
        max-width: 400px;
        min-height: 200px;
        max-height: fit-content;
        border-radius: 5%;
        flex-shrink: 0;
        box-shadow: 0px 4px 20px black;
        margin-left: 2%;
    }
    
    .contactDiv{
        display: flex;
        flex: content;
        float: left;
        align-items: flex-start;
        margin-top: 5%;
        margin-bottom: 2%;
    }

    .regLinks a{
        padding: 10px 30px;
        text-decoration: none;
        font-weight: bold;
        color: white;
        font-size: 20px;
    }
    .regLinks a:hover:not(#regActive) {
        background-color: #1e6b8f;
        border-radius: 5px;
        padding: 20px 30px;
    }

    #regActive {
        color: white;
        padding: 20px 16px;
        text-decoration: none;
        font-size: 18px;
        background-color: #227ba4;
    }

    #profileImg {
        min-width: 250px;
        min-height: 200px;
        max-width: 350px;
        max-height: 400px ;
        border-radius: 5%;
        flex-shrink: 0;
    }

    .topnav {
        padding: 20px;
        padding-left: 0px;
        font-size: 18px;
        background-color: #278ebe;
        border:2px solid black;
        border-radius: 5%;
    }

    #titleAM {
        text-align: center;
        width: 100%;
        display: block;
        margin: 0 auto;
        font-size: 2rem;
    }

    .namePlate{
        font-size: 3rem;
    }
}

@media (min-width:900px) {
    .mainDiv {
        background-color: rgb(209, 205, 205);
        min-height: 300px;
        max-height: fit-content;
        border-top-left-radius: 55%;
        border-bottom-right-radius: 35%;
        padding: 5%;
        border: 2px, dashed, black;
        display: flex;
        flex-direction: column;
        gap: 10px;
        float: left;
        align-items: flex-start;
    }

    #backButton {
        display: contents;
        float: right;
        color: black;
    }

    #contactImg {
        min-width: 300px;
        max-width: fit-content;
        max-height: 600px;
        border-radius: 5%;
        flex-shrink: 0;
        box-shadow: 0px 4px 20px black;
        margin-left: 2%;
    }
    
    .contactDiv {
        display: flex;
        justify-content: center;
        align-items: center;
        float: none;
        gap: 20px; /* Space between text and image */
        margin-top: 5%;
        margin-bottom: 2%;
    }

    .contactDiv h3,p {
        font-size: 3vw;
    }
    
    .contactDiv h1 {
        font-size: 4vw;
    }

    .projectsDiv{
        padding-top: 60%;
    }

    .socialsContainer{
        min-width: 50%;
        max-width: 60%;
    }

    #aboutMe {
        font-size: 2vw;
        color: #000000;
        font-weight: bolder;
        margin: 0;
        padding: 0;
    }

    .namePlate {
        text-align: center;
        width: 100%;
        font-size: 3rem; 
        margin-bottom: 10px;
    }

    #titleAM {
        text-align: center;
        width: 100%;
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .topnav a.icon {
        display: none;
    }

    .topnav a.active {
        display: none;
    }

    .topnav #myLinks {
        display: none;
    }

    .regLinks {
        display: flex;
        gap: 20px; 
    }

    #profileImg {
        min-width: 350px;
        min-height: 400px;
        max-width: 650px;
        max-height: 600px ;
        border-radius: 5%;
        flex-shrink: 0;
    }

    .regLinks a{
        padding: 20px 20px;
        text-decoration: none;
        font-weight: bold;
        color: white;
        font-size: 20px;
    }

    .regLinks a:hover:not(#regActive) {
        background-color: #1e6b8f;
        border-radius: 5px;
    }

    #regActive {
        display: block;
        padding: 20px 30px;
        font-size: 24px;
        font-weight: bold;
        border-radius: 5px;
        background-color: #227ba4;
        color: white;
        text-decoration: none;
    }

    .topnav {
        display: flex;
        position: relative; 
        width: 90%;
        margin-right: 5px;
        border:2px solid black;
        border-radius: 5%;
        padding: 20px;
        background-image: linear-gradient(to right, #278ebe, #054a6a);
        font-size: 20px;
        box-shadow: 0px 4px 20px black;
    }
}