@font-face {
    font-family: 'Bahnschrift';
    src: url('../css/fonts/Bahnschrift.woff2') format('woff2'),
    url('../css/fonts/Bahnschrift.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bahnschrift-bold';
    src: url('../css/fonts/Bahnschrift.woff2') format('woff2'),
    url('../css/fonts/Bahnschrift.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: #fffef6;
}

.header {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 25%;
    z-index: 99;
    background-image: radial-gradient(#690082, #62007b, #282828);
}

#scroll-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 76%;
    height: 5px;
    z-index: 99;
}

#scroll-progress {
    width: 0%;
    height: 5px;
    background-color: #e01f80;
    
}

.header-container {
    width: 80%;
    height: 1.5rem;
    margin: 1rem auto;
    display: flex;
    justify-content: space-between;
}

.header-container a {
    text-decoration: none;
    color: #FFFF;
}

.header-work {
    width: fit-content;
    color: white;
    text-align: center;
    font-size: 16px;
    font-family: 'Bahnschrift-bold';
}

.header-work:hover {
    cursor: pointer;
}

.header-about {
    width: fit-content;
    color: white;
    text-align: center;
    font-size: 16px;
    font-family: 'Bahnschrift-bold';
}

.header-about:hover {
cursor: pointer;
}

.header-contact {
    width: fit-content;
    color: white;
    text-align: center;
    font-size: 16px;
    font-family: 'Bahnschrift-bold';
}

.header-contact:hover {
cursor: pointer;
}

.header-return {
    text-align: center;
    margin: 0 auto;
    font-family: 'Bahnschrift-bold';
    color: white;
}

.header-return:hover {
    cursor: pointer;
}

.underline {
    display: inline-block;
    position: relative;
    color: #FFFF;
}

.underline::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #fff;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.underline:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.header-wordmark {
    width: 80%;
    height: 5rem;
    margin: auto;
}

.header-wordmark img {
    width: 100%;
}

#wordmark {
    display: block;
}

#logo {
    display: none;
    width: 2.8rem;
}

.header-description {
    width: 60%;
    height: 15rem;
    margin: 5rem auto 12rem auto;
    font-size: 18px;
    color: white;
    text-align: center;
    font-family: 'Bahnschrift';
}

.header-extra {
    width: 60%;
    height: 5rem;
    margin: auto;
}

.header-copyright {
    text-align: center;
    width: 100%;
    height: 2rem;
    color: white;
    font-size: 12px;
    font-family: 'Bahnschrift';
    font-style: italic;
}

.header-social {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    height: 2.5rem;
}

.header-social a {
    width: 100%;
}

.header-social img {
    transition: all .2s ease-in-out;
}

.header-social img:hover {
    cursor: pointer;
    transform: scale(1.2);
}

.main-container {
    width: 75%;
    margin-top: 1rem;
}

.title {
    width: 100%;
    margin: 0 auto 0.5rem auto;
    text-align: center;
    color: #fffef6;
    font-size: 32px;
    font-family: 'Bahnschrift-bold';
    background-color: #8D5395;
    background: linear-gradient(
        to left,
        rgba(141, 83, 139, 0) 0%,
        rgba(141, 83, 139, 1) 15%,
        rgba(141, 83, 139, 1) 85%,
        rgba(141, 83, 139, 0) 100%
      );
}

.horizontal-box {
    display: flex;
}

.projects-container {
    width: 50rem;
    height: 38rem;
    margin: .5rem auto 2rem auto;
    padding: .2rem 0 .2rem 0;
    border-top: solid .2rem #AE6ABA;
    border-bottom: solid .2rem #AE6ABA;
    overflow-y: scroll;
    background: linear-gradient(bottom, white, transparent 90%);
}

::-webkit-scrollbar {
    display: none;
}

.project {
    width: 20.1rem;
    height: 11.1rem;
    margin: 1rem auto 1rem auto;
    position: relative;
}

.project:hover {
    cursor: pointer;
}

.project:hover .project-overlay {
    opacity: .9;
}

.project-image {
    display: block;
    width: 20rem;
    height: 11rem;
    margin: 0 auto;
    background-color: aliceblue;
    /* border: solid 1px #8D5395; */
}

.project-image img {
    width: 100%;
    height: 100%;
}

.project-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    width: 100%;
    opacity: 0;
    transition: .5s ease;
    background-color: #8D5395;
}

.project-title {
    position: absolute;
    width: 12rem;
    top: 25%;
    left: 20%;
    font-family: 'Bahnschrift-bold';
    font-size: 22px;
    text-align: center;
    color: #fff;
}

.project-description {
    position: absolute;
    width: 10rem;
    top: 60%;
    left: 24%;
    color: #fff;
    font-family: 'Bahnschrift';
    font-size: 14px;
    text-align: center;
}

.about-container {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 90%;
    height: 25rem;
    margin: 1rem auto 0 auto;
}

.about-text {
    width: 60%;
    font-family: 'Bahnschrift';
    font-size: 15px;
    /* margin: auto 0; */
    color: #8D5395;
}

.photo {
    width: 300px;
    height: 300px;
    /* margin: auto 0; */
    border-radius: 50%;
}

.photo img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
}

.skills {
    color: #8D5395;
    width: 100%;
    margin-bottom: 1rem;
    font-family: 'Bahnschrift';
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

#icons-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 2rem;
}

.icons-flex {
    display: flex;
    justify-content: space-between;
    width: 17rem;
}

.icon {
    width: 8rem;
    padding: .2rem;
}

.icon img {
    width: 100%;
    
}

.contact-container {
    width: 80%;
    margin: 4rem auto 4rem auto;
}

.contact-container img {
    width: 100%;
    box-shadow: -5px 5px 8px 1px lightgray;
}

.hero {
    width: 100%;
}

.hero-image {
    width: 100%;
}

.hero-image img {
    width: 100%;
}

.example {
    width: 100%;
    height: fit-content;
    margin-bottom: 7rem;
}

.example-align {
    height: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin-bottom: 2rem;
}

.example-align-video {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    margin-bottom: 2rem;
}

.example-structure {
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0 .5rem 0 .5rem;
}

.image-background {
    display: flex;
    justify-content: space-evenly;
    width: 40%;
    height: fit-content;
    background-color: #8D5395;
}

.image-background-vertical {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 40%;
    height: fit-content;
    background-color: #8D5395;
}

.image-background-one {
    display: flex;
    justify-content: center;
    width: 45%;
    height: fit-content;
}

.example-image {
    font-family: 'Bahnschrift';
    font-size: 12px;
    text-align: center;
    color: #f5f5f5;
    width: 9rem;
    height: fit-content;
    margin-top: 1rem;
    padding: 0 .5rem 1rem .5rem;
}

.example-image img {
    width: 100%;
}

.example-image-one {
    font-family: 'Bahnschrift';
    font-size: 18px;
    text-align: center;
    color: #f5f5f5;
    width: 22rem;
    height: fit-content;
    background-color: #8d5395;
    padding: .4rem .2rem 0rem .2rem;
}

.example-image-one img {
    width: 100%;
}

.example-image-vertical {
    font-family: 'Bahnschrift';
    font-size: 12px;
    text-align: center;
    color: #f5f5f5;
    width: fit-content;
    height: fit-content;
    margin-top: 1rem;
    padding: 0 .5rem 1rem .5rem;
}

.example-image-vertical img {
    width: 100%;
}

.example-title {
    width: 100%;
    margin: 0 auto 2rem auto;
    text-align: center;
    color: #fffef6;
    font-size: 32px;
    font-family: 'Bahnschrift-bold';
    background-color: #8D5395;
    background: linear-gradient(
        to left,
        rgba(141, 83, 139, 0) 0%,
        rgba(141, 83, 139, 1) 15%,
        rgba(141, 83, 139, 1) 85%,
        rgba(141, 83, 139, 0) 100%
      );
}

#left-block {
    margin-left: 1rem;
}

.tools-container {
    display: flex;
    width: fit-content;
    margin: 2rem auto;
}

.small-tools-container {
    display: flex;
    justify-content: space-evenly;
    flex-direction: row;
    width: 20rem;
    margin: 2rem auto;
}

.tools-flex {
    display: flex;
    justify-content: space-evenly;
    width: 13rem;
}

.tools-icon {
    width: 5rem;
}

.tools-icon img {
    width: 100%;
}

.resume {
    color: #f5f5f5;
    background-color: #8D5395;
    padding: .5rem;
    font-family: 'Bahnschrift-bold';
    text-decoration: none;
    width: 70%;
    margin: 0 auto 3rem auto;
    display: block;
    text-align: center;
}

.resume:hover {
    background-color: #5F98BB;
}

.resume:hover span {
    padding-right: 25px;      
}

.resume:hover span:after {
    opacity: 1;
    right: 0;
}

.resume span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
    z-index: 0;
}

.resume span:after {
    content: '\00bb';
  position: absolute;
  opacity: 0;
  top: 0;
  right: -20px;
  transition: 0.5s;
}

.details {
    display: hidden;
}

#retail {
    display: hidden;
}

#webApp {
    display: hidden;
}

/* Case study styling */
.example-description {
    width: 40%;
    font-size: 18px;
    font-family: 'Bahnschrift';
    color: #5F98BB;
}

.project-button {
    color: #f5f5f5;
    background-color: #8D5395;
    padding: .5rem;
    font-family: 'Bahnschrift-bold';
    text-decoration: none;
    width: 40%;
    display: block;
    text-align: center;
}

.project-button:hover {
    background-color: #5F98BB;
}

.project-button:hover span {
    padding-right: 25px;      
}

.project-button:hover span:after {
    opacity: 1;
    right: 0;
}

.project-button span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
}

.project-button span:after {
    content: '\00bb';
  position: absolute;
  opacity: 0;
  top: 0;
  right: -20px;
  transition: 0.5s;
}

.brandbook {
    color: #f5f5f5;
    background-color: #8D5395;
    padding: .5rem;
    font-family: 'Bahnschrift-bold';
    text-decoration: none;
    width: 70%;
    margin: 1rem 0 0.8rem 0;
    display: block;
    text-align: center;
}

.brandbook:hover {
    background-color: #5F98BB;
}

.brandbook:hover span {
    padding-right: 25px;      
}

.brandbook:hover span:after {
    opacity: 1;
    right: 0;
}

.brandbook span {
    cursor: pointer;
    display: inline-block;
    position: relative;
    transition: 0.5s;
}

.brandbook span:after {
    content: '\00bb';
  position: absolute;
  opacity: 0;
  top: 0;
  right: -20px;
  transition: 0.5s;
}

.retail-vids {
    width: 35.4rem;
    height: 20rem;
}

.retail-frame {
    width: 100%;
    height: 100%;
}

.case-study-vids {
    width: 30rem;
    height: 16.8rem;
    margin-top: 2rem;
}

.case-study-frame {
    width: 100%;
    height: 100%;
}

.feature-vids {
    width: 52.02rem;
    height: 29.3rem;
    margin-top: 2rem;
}

.feature-frame {
    width: 100%;
    height: 100%;
}

#marketing-align {
    display: block;
    margin: auto;
    width: 100%;
}

#marketing {
    display: flex;
    width: 100%;
    justify-content: space-around;
}

#marketing img {
    width: 45%;
}

#marketing-vid {
    width: 25rem;
    height: 25rem;
    margin: 5rem auto 0 auto;
}

#marketing-short {
    width: 100%;
    height: 100%;
}


@media only screen and (max-width: 1210px) {
    .main-container {
        margin-top: 5rem;
        width: 100%;
    }

    .header {
        display: flex;
        top: 0;
        width: 100%;
        height: 3.5rem;
        justify-content: space-evenly;
    }

    .header-container {
        width: 45rem;
        height: 1rem;
        margin-top: 1rem;
        justify-content: space-evenly;
    }

    .header-description {
        display: none;
    }

    .header-work {
        margin: 0;
    }

    .header-wordmark {
        /* position: fixed; */
        height: fit-content;
        /* top: 1rem; */
        /* left: 2rem; */
        width: 5rem;
        /* border: solid green; */
    }

    #wordmark {
        display: none;
    }

    #logo {
        display: block;
    }

    .header-extra {
        display: none;
    }

    #scroll-container {
        position: fixed;
        top: 3.5rem;
        left: 0;
        width: 100%;
        height: 5px;
    }

    .about-container {
        flex-direction: row;
        justify-content: space-evenly;
        width: 100%;
        height: 29rem;
        margin: 0;
    }

    .about-text {
        width: 60%;
        margin-bottom: 3rem;
    }

    .photo {
        width: 300px;
        height: 300px;
    }

    .tools-flex {
        width: 15rem;
    }
}

@media only screen and (max-width: 820px) { 
    .main-container {
        width: 100%;
    }

    .details {
        width: 100%;
    }

    .header {
        display: flex;
        top: 0;
        width: 100%;
        height: 3.5rem;
        justify-content: space-evenly;
    }

    .projects-container {
        width: 25rem;
        height: fit-content;
        overflow-y: visible;
    }

    .header-container {
        width: 25rem;
    }

    .header-wordmark {
        width: 8rem;
    }

    .horizontal-box {
        flex-direction: column;
    }

    .about-container {
        flex-direction: column;
        height: 38rem;
        justify-content: center;
    }

    .about-text {
        width: 60%;
    }

    .photo {
        width: 300px;
        height: 300px;
    }

    .photo img {
        width: 300px;
        height: 300px;
    }

    #icons-container {
        width: 20rem;
        margin:  0 auto 2rem auto;
        flex-direction: column;
        justify-content: space-evenly;
    }

    .icons-flex {
        width: 100%;
    }

    .contact-container {
        width: 95%;
    }

    .contact-container img {
        width: 100%;
    }

    .example-align {
        flex-direction: column;
    }

    .example-description {
        width: 70%;
        margin: 2rem 0;
        text-align: center;
    }

    .brandbook {
        margin: 1rem auto 0.8rem auto;
    }

    .retail-vids {
        width: 25rem;
        height: 13rem;
    }

    #marketing-vid {
        width: 25rem !important;
        height: 25rem;
        margin: 5rem auto 0 auto;
    }

    .case-study-vids {
        width: 26rem;
        height: 14.6rem;
        margin-top: 2rem
    }

    .tools-container {
        flex-direction: column;
    }
}