:root {
    font-size: 16px; /* Default size for desktops */
}

@media (max-width: 768px) {
    :root {
        font-size: 8px; /* Adjust for tablets and mobile devices */
    }
    #nav-ul > li {
        display: none;
        }
    #logo {
        width:100% !important;
    }
    body > main article {
        width: 90% !important;
        margin: auto
    }
    .lin, .mail, .download-btn {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 7px; /* Further adjust for smaller mobile screens */
    }
    #nav-ul > li {
    display: none;
    }
    #logo {
        width:100% !important;
    }
    body > main article {
        width: 90% !important;
        margin: auto
    }
    .projectpics1 > img {
        width: 40rem !important;
        height: auto !important;
    }
    
    .projectpics2 > img {
        width: 30rem !important;
        height: auto !important;
    }
    
    .projectpics3 > img {
        width: 40rem !important;
        height: auto !important;
    }
    .lin, .mail, .download-btn {
        font-size: 0.8rem;
    }
    .base > h3 {
        font-size: 1.4rem;
    }
    }
* {
    box-sizing: border-box; /* Ensures padding and border are included in the width */
}

body {
    font-family: Arial, sans-serif;
    margin: 0rem;
    font-size: 1.6rem;
    background-color: #efebd6;
    color: #333;
}

#logo {
    margin: 0rem;
    padding: 0.5rem;
    font-family: 'Baloo 2', sans-serif;
    width: 30%;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0.125rem 0.125rem 0rem #2E2E2E, 0.25rem 0.25rem 0rem rgba(0, 0, 0, 0.1); /* Creates bubble-like depth */
    -webkit-text-stroke: 0.125rem #2E2E2E; /* Adds dark outline */
}
ul {
    margin: 0rem;
}

body > header {
    background-color: #006442;
    color: #efebd6;
    display: flex;
    height: 8.1rem;
    align-items: center;
    justify-content: space-around;

}
body > header > nav > ul {
    list-style: none;
    text-decoration: none;
}


#nav-ul {
    display: flex;
    flex-wrap: nowrap;
    flex-shrink: 1;
}
#nav-ul > li {
    padding: 0.5rem;
    margin: 0.8rem;
}

.navbutton {
    color: #efebd6;
    text-decoration: none;
    padding: 0.75rem;
    border: 0.1875rem solid #efebd6;
    border-radius: 8%;
    -webkit-text-stroke: 0.03125rem #2E2E2E; /* Adds dark outline */
    white-space: nowrap; /* Prevents line breaks within buttons */
}

body > main article {
    width: 80%;
    margin: auto
}

#main-content {
    display: flex;
    justify-content: space-around;
}

#main-content > div {
    width: 90%;
}

h2 {
    text-align: center;
}

body > footer {
    background-color: #006442;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 8.1rem;
}

#footer-ul {
    display: flex;
    list-style: none;
}

#footer-ul > div > li > a {
    color: #efebd6;
    text-decoration: none;
    -webkit-text-stroke: 0.03125rem #2E2E2E; /* Adds dark outline */
    padding: 0.5rem;
    margin: 1rem;
}
.pho {
    text-align: center; 
}
.pho img {
    width: 15rem;
    height: 16.875rem;
    border-radius: 50%;
}

.base {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.s1 {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.s1 > ul {
    padding: auto;
}

.ca-list > li {
    margin-bottom: 2.025rem;
}

.hs > li {
    margin-bottom: 1.35rem;
}

.int > li {
    margin-bottom: 1.35rem;
}

.lin {
    list-style: none;
    text-decoration: none; 
    color: #0077B5; 
    font-size: 3rem;
}

.mail {
    list-style: none; 
    text-decoration: none; 
    color: #D44638; 
    font-size: 3rem;
}
.download-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0366d6; /* nice blue button */
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.download-btn:hover {
    background-color: #024e9b; /* darker blue on hover */
}
.projectpics1 {
    text-align: center;
}

.projectpics2 {
    text-align: center;
}

.projectpics3 {
    text-align: center;
}

.projectpics1 > img {
    width: 60rem;
    height: auto;
}

.projectpics2 > img {
    width: 35rem;
    height: auto;
}

.projectpics3 > img {
    width: 60rem;
    height: auto;
}