:root {
    --newsgray: #F8F8F8;
    --yellow: #ffe724;
    --border: 1px solid black;
    --rootFontSize: 10px;
    --projectHeight: calc(var(--rootFontSize) * 17);
    --projectFontSize: calc(var(--projectHeight) * 0.52);
}

* {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    font-family: "Duplicate Sans Regular", Arial, sans;
    font-size: var(--rootFontSize);
    font-weight: normal;
    color: black;
    text-decoration: none;
    list-style: none;
}

body {
    background: var(--newsgray);
    border: var(--border);
}

b {
    font-family: "Duplicate Sans Bold", Arial, sans;
    font-size: 1em;
}

a {
    font-size: 1.8rem;
}

.highlight {
    padding: 0.4rem;
    padding-top: 0.3rem;
    background: rgba(255, 231, 36, 0.5);
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

.highlight:hover {
    background: var(--yellow);
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

.menu {
    height: 60px;
    line-height: 5.5rem;
    width: 100%;
    background: var(--newsgray);
    mix-blend-mode: multiply;
    border: var(--border);
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

.menu ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
}

.menu ul li {
    display: inline-block;
    font-size: 1.8rem;
}

.menu ul a li b::after {
   content: 'Type West 2021';
}

#about:hover {
    cursor: pointer;
    font-family: "Duplicate Sans Bold";
}

#about_content {
    opacity: 0;
    display: none;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
}

p {
    font-size: 1.8rem;
    line-height: 1.5;
    margin-bottom: calc(1.8rem * 1.5);
}

#about_content div {
    display: inline-block;
    width: calc(50% - 2 * var(--rootFontSize));
    vertical-align: top;
}

#map {
    height: 100vh;
    width: 100%;
    background: url("../images/map.png");
    background-size: cover;
    background-position-x: center;
    background-position-y: center;
    mix-blend-mode: multiply;
    position: fixed;
    opacity: 0.6;
}

#projects {
    position: relative;
}

.project, #footer {
    background: none;
    height: var(--projectHeight);
    display: inline-block;
    width: 50%;
    border: var(--border);
    padding: calc(var(--projectHeight) * 0.14);
    overflow: hidden;
    white-space: nowrap;
    vertical-align: top;
    position: relative;
    mix-blend-mode: multiply;
    -webkit-transition: all 0.5s;
    -o-transition: all 0.5s;
    transition: all 0.5s;
}

.project:hover {
    background: var(--yellow);
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

/* project font */
.project h1 {
    display: block;
    height: calc(var(--projectHeight) - var(--projectHeight) * 0.14 * 2);
    font-size: var(--projectFontSize);
    inline-size: 50vw;
    line-height: 1.05;
    position: relative;
    top: calc(var(--projectFontSize) * -0.08);
}

.project h1::after { /* align to the same baseline */
    display: inline-block;
    width: 0px; 
    height: calc(var(--projectFontSize) * 0.9);
    content:"";
}

.project:hover h1 {
    -webkit-animation: marquee 18s infinite linear;
            animation: marquee 18s infinite linear;
}

/* optical font resizing for homepage project fonts */
#Laura h1 {
    font-size: calc(var(--projectFontSize) * 0.9);
}

#Michelle h1 {
    font-size: calc(var(--projectFontSize) * 0.87);
}

#Molloy h1 {
    font-size: calc(var(--projectFontSize) * 0.96);
}

#Tam h1 {
    font-variation-settings: "wght" 1000;
    font-size: calc(var(--projectFontSize) * 0.98);
}

@-webkit-keyframes marquee {
    0% {
      -webkit-transform: translateX(0%);
      transform: translateX(0%)
    }
    100% {
      -webkit-transform: translateX(-200%);
      transform: translateX(-200%);
    }
  }

@keyframes marquee {
    0% {
      -webkit-transform: translateX(0%);
      transform: translateX(0%)
    }
    100% {
      -webkit-transform: translateX(-200%);
      transform: translateX(-200%);
    }
  }

/* project and designer name */
.project h2 {
    font-size: 1.4rem;
    line-height: 2;
    position: absolute;
    bottom: calc(var(--projectHeight) * 0.08 + 0.1rem);
    left: calc(var(--projectHeight) * 0.14);
    display: inline-block;
}

/* clock */
.project h3 {
    font-size: 1.4rem;
    line-height: 2;
    position: absolute;
    bottom: calc(var(--projectHeight) * 0.08);
    right: calc(var(--projectHeight) * 0.14);
    display: inline-block;
}

.project h3 span {
    font-size: 1.4rem;
    top: -0.1rem;
}

/* project page */
.project_page {
    width: 100%;
    text-align: center;
    border: var(--border);
    border-top: none;
    background: var(--newsgray);
    position: relative;
    z-index: 2;
}

.project_content {
    display: inline-block;
    width: 75%;
    min-width: 1000px;
}

.project_content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: left;
}

.project_content h2 {
    font-size: 1.4rem;
    margin: -4rem 0 5rem 0;
    text-align: center;
}

.project_content h2 a {
    font-size: 1.4rem;
}

.project_info {
    text-align: left;
    margin-bottom: 3.5rem;
    vertical-align: top;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
}

.project_info div {
    display: inline-block;
    width: calc(50% - 2 * var(--rootFontSize));
    vertical-align: top;
}

.project_info .links a {
    margin-right: 0.5rem;
}

.project_page img {
    width: 100%;
    margin-bottom: 5rem;
}

.project_page img.lead {
    border-top: var(--border);
    border-bottom: 2px solid black;
    margin-bottom: 3.5rem;
}

.project_page img.vertical {
    max-height: 100vh;
    width: auto;
}

.project_page .video {
    position: relative;
    margin-bottom: 5rem;
    padding-bottom: 56.25%;
    width: 100%;
    height: 0;
}
.project_page iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

footer {
    padding: 2.5rem;
    border: var(--border);
    -webkit-column-count: 5;
       -moz-column-count: 5;
            column-count: 5;
    z-index: 2;
    mix-blend-mode: multiply;
}

footer ul li {
    margin-bottom: 1.5rem;
}

footer ul li.lowlight a {
    background: rgba(255, 231, 36, 0.5);
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

footer ul li a {
    font-size: 1.4rem;
    padding: 0.4rem;
    padding-top: 0.3rem;
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
    -webkit-box-decoration-break: clone;
            box-decoration-break: clone;
}

footer ul li a:hover {
    background:var(--yellow);
    -webkit-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

@media only screen and (max-width: 1000px) {

    :root {
        --rootFontSize: 9px;
        --projectHeight: calc(var(--rootFontSize) * 14);
    }

    #map {
        background-size: contain;
        background-repeat: no-repeat;
        opacity: 0.8;
    }

    .menu {
        line-height: 6rem;
    }

    #about_content div {
        width: 100%;
    }

    #about_content p {
        font-size: 1.8rem;
        margin-bottom: 1.8rem;
    }

    .project {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }  

    .project h1 {
        display: block;
        width: 100%;
        height: calc(var(--projectHeight) - var(--projectHeight) * 0.14 - var(--projectHeight) * 0.08);
        padding-right: calc(var(--projectHeight) * 0.14);
        padding-left: calc(var(--projectHeight) * 0.14);
        overflow-x: scroll;
        overflow-y: hidden;
    }

    .project h1::-webkit-scrollbar {
        width: 0px;
        height: 0px;
    }

    .project h1::-moz-scrollbar {
        width: 0px;
        height: 0px;
    }

    .project h1::-ms-scrollbar {
        width: 0px;
        height: 0px;
    }

    .project:hover h1 {
        -webkit-animation: none;
                animation: none;
    }

    #footer {
        display: none;
    }

    .project_content {
        width: 100%;
        min-width: 0;
    }

    .project_page img, .video {
        margin-bottom: 3.5rem;
    }

    .project_page img.vertical {
        height: auto;
        max-height: none;
        width: 100%;
    }

    .project_info {
        padding: 0 2.5rem 0 2.5rem;
        margin-bottom: 2rem;
    }

    .project_info div {
        display: block;
        width: 100%;
    }

    .project_info h1 {
        font-size: 2.5rem;
    }

    .project_content h2 {
        margin: -2rem 0 3.5rem 0;
    }

    footer {
        -webkit-column-count: 2;
           -moz-column-count: 2;
                column-count: 2;
    }
}