* {
    margin: 0;
    padding: 0;
}

.nav {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background-color: rgba(255, 251, 241, 0.8);
    padding: 1.5%;
    box-shadow: 0 4px 2px -2px black;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: large;
}

.active{
    font-weight: bold;
}

a:link, a:visited {
    color: black;
    text-decoration: none;
}

a:hover {
    color: rgba(28, 90, 28, 0.505);
    background-color: transparent;
}

a:active {
    color: black;
}

.linkedin {
    background-image: url('img/linkedin.png');
    background-size: contain;
    background-position: center;
    background-color: transparent;
    background-repeat: no-repeat;
    border: transparent;
    width: 10vh;
    height: 10vh;
    overflow: visible;
}

.linkedin:hover{
    color: rgba(28, 90, 28, 0.505);
    background-color: transparent;
}

/* Media Query for screens wider than 470px */
@media screen and (min-width: 470px) {
    .nav {
        display: flex;
    }

    .small_nav {
        display: none;
    }
}

/* Media Query for screens smaller than 470px */
@media screen and (max-width: 470px) {
    .nav {
        display: none;
    }

    .small_nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.5%;
        background-color: rgba(255, 251, 241, 0.8);
    }
}

#index_body {
    background-image: url('img/programming.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
}

#index_main {
    color: white;
}

.mainh1top{
    margin-left: 2vw;
}
.mainh1top2{
    margin-left: 2vw;
}

#projects_body {
    background: linear-gradient(45deg, #473810, #74421F, #b2ac88);
    color: #f0c674;
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
}

#projects_header {
    padding: 2rem;
    text-align: center;
    background-color: #4a4a4a;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: rgba(83, 51, 30, 0.87);
    font-size: 2rem;
    font-weight: bold;
}

#projects_main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.aboutmeP1, .aboutmeP2, .aboutmeP3, .aboutmeP4 {
    margin: 1rem 0;
    font-size: 0.9rem;
}

.github {
    background-image: url('img/GitHub-Symbol-2149346605.png');
    background-size: cover;
    background-position: center;
    background-color: transparent;
    border: transparent;
    width: 10vh;
    height: 10vh;
}

.github:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

#projects_footer {
    display: flex;
    justify-content: space-evenly;
    padding: 2rem;
    background: linear-gradient(45deg, #473810, #74421F, #b2ac88);
}

.button_python, .button_csharp, .button_php, .button_html, .button_javascript {
    background-size: cover;
    background-position: center;
    background-color: transparent;
    border: transparent;
    width: 10vh;
    height: 10vh;
}

.button_python {
    background-image: url('img/python.ico');
}

.button_csharp {
    background-image: url('img/Csharp.ico');
}

.button_php {
    background-image: url('img/php.ico');
}

.button_html {
    background-image: url('img/html.ico');
}

.button_javascript {
    background-image: url('img/js.ico');
}

#projects_footer button {
    background-color: transparent;
    border: none;
    width: 10vh;
    height: 10vh;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
}

#projects_footer button:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

@media screen and (max-width: 470px) {
    #projects_main {
        padding: 1rem;
    }

    .aboutmeP1, .aboutmeP2, .aboutmeP3, .aboutmeP4 {
        margin: 1rem 0;
        font-size: 0.9rem;
    }

    #projects_footer {
        display: grid;
        grid-template-rows: 1fr;
        grid-template-columns: none;
        gap: 5px;
        align-content: center;
        justify-content: center;
    }

    #projects_footer button {
        margin: 0.5rem 0;
    }
}

#aboutme_body {
    background-image: url('img/programming.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
}

#aboutme_main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    text-shadow: 4px 4px 4px rgba(0, 0, 0, 0.5);
    background-color: rgba(83, 106, 52, 0.84);
    margin-left: 5vw;
    margin-right: 5vw;
}

#aboutme_main img {
    width: 20vw;
}

#aboutme_main p {
    align-self: center;
}

.txtaboutme {
    text-align: center;
    display: flex;
    flex-flow: column;
    line-height: 2.4;
    margin-left: 1vw;
    font-size: smaller;
}

@media screen and (max-width: 800px) {
    #aboutme_main {
        flex-direction: column;
        align-items: center;
        margin-top: 2vh;
        margin-left: 2vw;
        margin-right: 2vw;
        overflow-y: scroll;
        scroll-behavior: smooth;
        max-height: 70vh;
    }

    #aboutme_main img {
        width: 30vw;
        margin-bottom: 20px;
    }
}

@media screen and (min-width: 1400px) {
    #aboutme_main {
        margin-top: 0vh;
        margin-left: 15vw;
        margin-right: 15vw;
        max-height: 90vh;
    }

    .txtaboutme {
        margin-top: 1vh;
        margin-right: 10vw;
        font-size: 20px;
    }
}

