:root {
    --test-background: #f4f4f400;
}

body {
    font-family: Arial, sans-serif;
    justify-content: center;
    width: 800px;;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

a {
    text-decoration: none;
    color: black;
}

header {
    width:100%;
    background-color: var(--test-background);
    padding: 20px 0;
    margin:2% 0;
}

#branding {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-left: 15px;
}

#branding img {
    width:30px
}

nav {
    display: flex;
    justify-content: center;
    margin-left: auto;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: rgb(0, 0, 0);
    text-decoration: none;
}


.container {
    width:100%;
    display: flex;
    justify-content: center;
    align-items: center; /* This will center the items vertically */
    margin: 0 auto; /* This will center the container horizontally */
}


.profile {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    background-color: var(--test-background);
    margin: 20px 0;
    display: flex; 
    align-items: center;
}

.profile_intro{
    text-align: left;
    flex:1;
}

.profile p {
    margin: 5px 0;
    
}

.profile_welcome{
    font-size: 2em;
    font-weight: bold;
    color: black;
}




.profile_intro a img{
    display: block;
}

.responsive_break {
    display: none;
  }



.profile_pic {
    flex: 0;
}

.profile_pic img {
    height: 200px;
    width: 200px;
    border-radius: 50%; /* This will create a circular mask for the image */
    object-fit: cover; /* This ensures the image covers the entire area of the mask */
}

.bento-container {
    width:100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.container_footer{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 10px;
}

footer{
    width: 800px;
    color: grey;
    display: flex;
    justify-content: flex-start;
    padding-left:40px;
}
.footer_logo{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 10px;
}

.footer_logo img{
    width:15px;
}

footer a{
    font-size: 16px;
    color: grey;
}

@media (max-width: 480px) {
    body{
        width: 95%;
    }
    .container {
        width:100%
    }
    .profile {
        flex-direction: column;
        width:100%;
        align-items: start;
    }
    .profile_intro{
        width:100%
        
    }
    .profile_intro p{
        white-space: nowrap;
        
    }
    .profile_intro a img{
        display: block;
        width:100%
    }
    .profile_welcome{
        font-size: 1.6em;
        font-weight: bold;
    }

    .profile_pic {
        margin: 10% 0;
        order: -1; /* This will move the profile_pic above the intro */
    }

    .profile_pic img {
        height: 100px;
        width: 100px;
        margin-left: 0; 
    }
    .responsive_break {
        display: block;
        height: 0.5em;
      }
    footer{
        width: 90%;
        padding-left: 0;
    }
    .container_footer{
        flex-direction: column;
        align-items: start;
    }
    footer p{
        margin: 0
    }
    
}

.bento-item {
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    flex: 1 1 calc(50% - 40px); /* Flexible width with gap consideration */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
    box-sizing: border-box; /* Ensure padding and border are included in the width */
}

@media (max-width: 768px) {
    .bento-item {
        flex: 1 1 calc(100% - 40px); /* Adjust width for smaller screens */
    }
}

@media (max-width: 480px) {
    .bento-item {
        flex: 1 1 100%; /* Full width for very small screens */
    }
}