/* CSS Resets */

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

img {
    display: block;
}

body {
    height: 100%;
    min-height: 100vh; /* Default min-height */
    min-height: 100dvh;
    width: 100%; /* Set width 100% on all screen sizes */
    max-width: 600px; /* Set max-width */
    margin: 0 auto; /* Center body and all its children elements */
    overflow: auto;    
    background-color: #00000081;    
    color: black;
    position: relative;    
    padding: 0 50px;    
    line-height: 24px;
    text-align: justify;
    border: 2px solid black;    
}

body::before {
    content: var(--before-text, "");
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;    
    z-index: -1;    
    background-color: rgb(255, 255, 255);        
}

li {
    list-style: none; /* remove list-items marker */
}

a {
    text-decoration: none;
}

a:hover {    
    text-decoration: underline;    
}

a:visited, a:link {    
    color: white;
}

/* Styles */

/* Navbar Styles */

header {  
    background-color: #333;
    padding: 10px 0px 0px 0px;            
    width: calc(100% + 100px);
    margin-left: -50px;
}

nav {
    height: inherit;
    margin-top: -10px;
}

nav ul {
    /* nav-items positioning */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;    
    margin: 0 auto;
    overflow: hidden;
    text-align: center;
    height: 100%;
}

nav ul li {    
    flex-grow: 1;    
    position: relative;    
    text-align: center;
    border-right: 1px solid white;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

nav ul li:hover {
    background-color: #000000;
}

/* Main Body Styles */

main {
    overflow: hidden;
    padding: 0px 50px;
    width: calc(100% + 100px);
    margin-left: -50px;
}

#projects a {
    color: blue;
}

section {
    margin: 30px 0px;
}

section > :first-child {
    padding: 10px 0;
}

section#projects > article > ul:nth-child(2) {
    margin-bottom: 10px;    
}

section#projects > article > h4 {
    margin-top: 10px;
}

article > :first-child {
    padding: 5px 0;    
}

#projects > article > ul:nth-child(2) > li {
    padding: 2px 0px;
    text-align: start;
}

strong {
    background-image: linear-gradient(0, #ffe359, #ffe359);    
    background-size: 100% 30%;
    background-repeat: no-repeat;
    background-position: 0% 90%;
}

#projects > article > h4 {
    padding-bottom: 10px;
}

ul.list-parent {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;    
    flex-wrap: wrap;
    gap: 10px;
    /* padding: 10px 0px;     */
}

li.list-title {
    flex-grow: 1;    
    line-height: 24px;
    font-weight: bold;
    font-size: 1rem;
    border: 1px solid black;
    padding: 10px 10px;
    border-radius: 10px 0px;
}

li.list-title li {    
    padding: 4px 10px;
}

ul.list-parent > li {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    row-gap: 10px;
}

ul.list-parent:has(svg) {
    justify-content: center;
}

li:has(> svg) {
    text-align: center;
}

li > svg {
    height: 30px;
}

li {
    font-weight: initial;
    font-size: initial;
    line-height: initial;
}

/* Footer Styles */

footer {
    background-color: #333;
    padding: 10px 50px;            
    color: white;   
    width: calc(100% + 100px);
    margin-left: -50px;     
}

footer ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0px;
}

footer ul li {    
    padding: 4px 10px;
    flex-grow: 1;
}


div.btn-container {
    display: flex;
    flex-direction: column;
    justify-content: center;    
    align-items: center;
    row-gap: 10px;
    position: fixed;
    top: 125px;
    right: max(calc(50% - 290px), calc(100% - 98vw));          
}

div > button{        
    width: 35px;        
}