body {
    background: rgb(255, 215, 155);
    background: linear-gradient(0deg, rgba(255, 215, 155, 1) 0%, rgba(140, 236, 255, 1) 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    height: 100%;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

header {
    text-align: right;
    padding: 1em;
}

footer {
    margin-top: 75px;
    text-align: right;
    padding: 1em;
    color: #212c50;
}

.social-media img {
    padding: 3px;
    width: 24px;
    height: 24px;
}

.container {
    display: flex;
    min-height: 100%;
}

.navbar {
    width: 200px;
    padding: 15px 0;
    border-right: 6px double;
    border-color: #ffffff;
    align-self: stretch;
    box-sizing: border-box;
}

.nav-list {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.nav-list li {
    width: 100%;
    padding: 10px 0;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}



.navbar a {
    display: block;
    color: white;
    padding: 25px;
    text-decoration: none;
    font-size: 30px;
    max-height: 100%;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    text-shadow: -1px 1px 2px #4770c9,
        1px 1px 2px #4770c9,
        1px -1px 0 #4770c9,
        -1px -1px 0 #4770c9;
    align-self: flex-start;
}

.navbar a:hover {
    color: #4770c9;
    padding: 25px;
    text-decoration: none;
    font-size: 30px;
    max-height: 100%;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    text-shadow: -1px 1px 2px #4770c9,
        1px 1px 2px #4770c9,
        1px -1px 0 #4770c9,
        -1px -1px 0 #4770c9;
    align-self: flex-start;
}

.navbar img {
    width: 200px;
    padding-top: 10px;
    padding-bottom: 100px;
}

h1 {
    text-align: center;
    font-size: 35px;
    margin: auto;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: #4770c9;
    width: auto;
    padding-bottom: 50px;
    text-shadow: -1px 1px 2px #f6f9ff,
        1px 1px 2px #f6f9ff,
        1px -1px 0 #f6f9ff,
        -1px -1px 0 #f6f9ff;
}

h2 {
    text-align: center;
    text-decoration: underline;
    font-size: 28px;
    margin: auto;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: #4770c9;
    padding-top: 50px;
    width: auto;
    padding-bottom: 25px;
    text-shadow: -1px 1px 2px #f6f9ff,
        1px 1px 2px #f6f9ff,
        1px -1px 0 #f6f9ff,
        -1px -1px 0 #f6f9ff;
}

h3 {
    text-align: left;
    font-size: 25px;
    margin: auto;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: #4770c9;
    padding-bottom: 30px;
    text-shadow: -1px 1px 2px #f6f9ff,
        1px 1px 2px #f6f9ff,
        1px -1px 0 #f6f9ff,
        -1px -1px 0 #f6f9ff;
}

h4 {
    text-align: center;
    text-decoration: underline;
    font-size: 28px;
    margin-bottom: 20px;
    padding-bottom: 25px;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: #4770c9;
    text-shadow: -1px 1px 2px #f6f9ff,
        1px 1px 2px #f6f9ff,
        1px -1px 0 #f6f9ff,
        -1px -1px 0 #f6f9ff;
}

.headlogo {
    margin: auto;
    margin-bottom: 50px;
    background-color: #0065a040;
    object-position: top center;
    width: 100%;
    padding: 10px;
    border: 2px solid #ffffff;
    border-radius: 10px;
}

.headlogo img {
    object-position: top;
    margin-left: auto;
    margin-right: auto;
    width: 600px;
    display: flex;
}

.contentmain {
    text-align: center;
    flex-grow: 1;
    padding: 50px;
}

.contentleft {
    text-align: left;
    flex-grow: 1;
    padding: 50px;
}

.contactbox {
    flex-grow: 1;
    margin: auto;
    padding: 50px;
    max-width: 600px;
    background: #007ec740;
    border: 2px solid #ffffff;
    border-radius: 10px;
}

.servicesbox {
    flex-grow: 1;
    margin: auto;
    padding: 50px;
    background: #007ec740;
    border: 2px solid #ffffff;
    border-radius: 10px;
}

.portfoliobox {
    flex-grow: 1;
    width: 1000px;
    margin: auto;
    padding: 50px;
    background: #007ec740;
    border: 2px solid #ffffff;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    display: flex;
}

.collabbox {
    flex-grow: 1;
    width: 1000px;
    margin: auto;
    padding: 50px;
    background: #007ec740;
    border: 2px solid #ffffff;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    display: flex;
}

.collabbox image-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 20px;
}

.image-gallery img {
    flex: 0 0 30%;
    /* Each image takes roughly one-third of the container width */
    margin-bottom: 20px;
    /* Space between rows */
    max-width: 33%;
    /* Responsive images */
    height: auto;
    /* Maintain aspect ratio */
}

.pagebreak {
    margin: auto;
    object-position: center;
    width: 100%;
    padding: 10px;
    padding-bottom: 50px;
}

.pagebreak img {
    object-position: top;
    margin-left: auto;
    margin-right: auto;
    width: 600px;
    display: flex;
}

.pagebreak2 {
    margin: auto;
    object-position: center;
    width: 100%;
    padding: 10px;
}

.pagebreak2 img {
    width: 100%;
    height: 25px;
    padding-top: 25px;
    padding-bottom: 25px;
    display: flex;
}

.textcontent {
    margin: auto;
    background: #007ec740;
    border: 2px solid #ffffff;
    border-radius: 10px;
    padding: 30px;
    padding-bottom: 120px;
}

#aboutmecontent {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

p {
    width: 600px;
    font-size: 20px;
    text-align: center;
    margin: auto;
    padding-bottom: 20px;
    color: #212c50;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.p2 {
    flex-grow: 1;
    min-width: 50px;
    text-align: left;
    font-size: 20px;
    padding: 10px;
    color: #212c50;
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

#biopicture {
    padding-left: 50px;
    flex-basis: 1500px;
    max-width: 500px;
}

#biopicture img {
    width: 100%;
    height: auto;
    border: 3px solid #ffffff;
    border-radius: 10px;
}

#carousel {
    width: 400px;
    height: 400px;
    overflow: hidden;
    position: relative;
}

#carousel2 {
    width: 800px;
    height: 400px;
    overflow: hidden;
    position: relative;
}

#carousel3 {
    width: 400px;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.slide {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    position: absolute;
    transition: opacity 1s;
    opacity: 0;
}

.slide:first-child {
    opacity: 1;
}

button {
    position: absolute;
    bottom: 10px;
    background-color: #b8ffff;
    border: 1px solid #72581f;
    padding: 10px;
    cursor: pointer;
}

#prevbtn {
    left: 50px;
}

#nextbtn {
    right: 50px;
}

.slide2 {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    position: absolute;
    transition: opacity 1s;
    opacity: 0;
}

.slide2:first-child {
    opacity: 1;
}

#prevbtn2 {
    left: 50px;
}

#nextbtn2 {
    right: 50px;
}

.slide3 {
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    position: absolute;
    transition: opacity 1s;
    opacity: 0;
}

.slide3:first-child {
    opacity: 1;
}

#prevbtn3 {
    left: 50px;
}

#nextbtn3 {
    right: 50px;
}