p,
h1,
h2,
h3 {
    color: white;
    text-shadow: 0px 0px 10px #0d0e10;
}

p {
    margin: 0 0 5px;
}

body {
    background-color: #141414;
    overflow: hidden;
}

.masthead-nav>li {
    display: inline-block;
}

.masthead-nav>li+li {
    margin-left: 20px;
}

.masthead-nav>li>a {
    padding-right: 0;
    padding-left: 0;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    /* IE8 proofing */
    color: rgba(255, 255, 255, .75);
    border-bottom: 2px solid transparent;
}

.masthead-nav>li>a:hover,
.masthead-nav>li>a:focus {
    background-color: transparent;
    border-bottom-color: #a9a9a9;
    border-bottom-color: rgba(255, 255, 255, .25);
}

.masthead-nav>.active>a,
.masthead-nav>.active>a:hover,
.masthead-nav>.active>a:focus {
    color: #fff;
    border-bottom-color: #fff;
}

#mainDiv {
    height: 100vh;
    width: min(2000px, 100vw);
    background-size: cover;
    background-repeat: no-repeat;
    margin-left: auto;
    margin-right: auto;
}

#navBar {
    background-image: linear-gradient(rgba(0, 0, 0, 100), rgba(0, 0, 0, 0));
    display: flex;
    flex-direction:row;
    justify-content: space-between;
    height: 15vh;
    position: absolute;
    top: 0px;
    width: 100vw;
}

#leftSide {
    text-align: left;
    padding-left: 16px;
    padding-right: 30px;
}

#title {
    margin-top: 14px;
    font-size: 3.2em;
}

#subtitle {
    margin-top: 10px;
}

#rightSide {
    padding-left: 30px;
    padding-right: 30px;
}

#footer {
    position: absolute;
    bottom: 0px;
    width: 100%;
    font-size: medium;
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 100));
    height: 28px;
    z-index: 5;
}

#footerText {
    text-align: center;
    color: rgba(145, 145, 145, 0.5);
}

#leftButton {
    position: absolute;
    left: 2vw;
    top: 50vh;
}

#rightButton {
    right: 2vw;
    position: absolute;
    top: 50vh;
}

#leftButton:hover {
    background-color: rgba(57, 57, 57, 0.4);
}

#rightButton:hover {
    background-color: rgba(57, 57, 57, 0.4);
}

button {
    background-color: rgba(0, 0, 0, .4);
    border-radius: 100%;
    width: 50px;
    height: 50px;
    border-style: groove;
}


/* The Modal (background) */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100vw;
    /* Full width */
    height: 100vh;
    /* Full height */
    overflow: hidden;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.4);
    /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #141414;
    margin: 10vh auto;
    padding: 20px;
    border: 1px solid #888;
    width: 340px;
    color: #dedede;
    text-shadow: none;
    line-height: normal;
    border-radius: 2%;
    border-color: black;
}

#headshotImg {
    object-fit: contain;
    width: 100%;
    height: auto;
}

#contactMeButton {
    width: 230px;
    border-style: solid;
    border-radius: 20%;
}

#contactMeButton:hover {
    background-color: #1d1d1d
}

.flexBoxItem {
    width: 50%;
}

.modalText {
    margin-top: 3px;
    padding-bottom: 16px;
}

/* The Close Button */
.close {
    position: absolute;
    color: #dddddd;
    right: 10px;
    top: 10px;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#copyEmailButton {
    align-items: center
}

#modalContentFlex {
    display: flex;
    flex-direction: column;
    align-items: center;
}


:root {
    --gap: 25px;
    --duration: 40s;
}

/* 1. Viewport: Hides items that roll off-screen */
.carousel-view {
    overflow: hidden;
    width: 100%;
    display: flex;
    position: absolute;
    bottom: 0px;
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(1, 1, 1, 1));
    padding: 10px 0;
    position: absolute;
    bottom: 0vh;
}

/* 2. Track: Contains both sets inline and triggers the loop */
.carousel-track {
    display: flex;
    gap: var(--gap);
    width: max-content;
    animation: scroll var(--duration) linear infinite;
    margin-bottom: 25px;
}

/* 3. Items: Prevents content squishing */
.carouselItem {
    flex-shrink: 0;
    width: 200px;
    height: 100px;
    background: #ffffff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-family: sans-serif;
    font-weight: bold;
}

/* 4. Pause interaction on hover */
.carousel-viewport:hover .carousel-track {
    animation-play-state: paused;
}

/* 5. The Magic Loop Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Moves left by exactly half the track width (one complete set + half the gap layout) */
        transform: translateX(calc(-50% - (var(--gap) / 2)));
    }
}

.clientLogo {
    max-width: 180px;
}

#clientTextDiv {
    width: 100vw;
    position: absolute;
    bottom: 135px;
}

#clientsTitle {
    text-align: center;
}

@media only screen and (max-width: 900px) {
    #mainDiv {
        background-size: cover;    
    }
}

@media only screen and (max-width: 640px) {
    #title {
        font-size: 2em;
    }

    #subtitle {
        font-size: 1.2em;
    }

    #clientsTitle {
        font-size: 1.6em;
    }

    .masthead-nav>li>a {
        font-size: 14px;
    }
}

@media only screen and (max-width: 500px) {
    #navBar {
        flex-direction:column;
        align-items:center;
        height:10vh;
    }

    #title {
        font-size: 1.4em;
        text-align: center;
    }

    #subtitle {
        font-size: 1em;
        text-align: center;
    }

    #clientsTitle {
        font-size: 1.2em;
    }
    #footer {
        font-size:12px;
    }
}