@import url('https://fonts.googleapis.com/css2?family=Black+Han+Sans&family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Outfit:wght@100..900&family=Play:wght@400;700&family=Yeseva+One&display=swap');

:root {
    --primary-color: #404041;
    --secondary-color: #A9E0FF;
    --third-color: #F3F0E6;
    --fourth-color: #FADE9A;
    --fifth-color: #D30000;
    --sixth-color: #FBB03B;
    --seventh-color: #000;
    --xs-margin: 10vw;
}

ul,
ol,
li {
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    list-style: none;
}

a {
    text-decoration: none;
    color: var(--seventh-color);
}
a:hover {
    cursor: url('../img/cursor/cursor-white.svg'), auto;
}

p {
    margin-bottom: 1rem;
    font-family: 'Fira Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
}

body {
    font-family: 'Niramit', sans-serif;
    color: var(--seventh-color);
    background-color: var(--third-color);
    cursor: url('../img/cursor/cursor-black.svg'), auto;
}

article {
    padding: 2.5rem;
    max-width: 75%;
    margin: auto;
}

h1 {
    font-family: 'Yeseva One', cursive;
    font-weight: 600;
    font-size: 10rem;
    position: absolute;
    top: -75px;
}

h2 {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 3rem;
    color: var(--primary-color);
    -webkit-text-stroke: 1pt #fff;
}

h3 {
    font-family: 'Play', sans-serif;
    font-size: 25px;
    color: var(--fifth-color);
    padding-bottom: 2rem;
    padding-top: 2rem;
}

h4 {
    padding-top: 2.5rem;
    font-family: 'Black Han Sans', sans-serif;
    font-size: 2.5rem;
    color: var(--sixth-color);
}
span#food {
    padding: 0;
    color: var(--sixth-color);
}
span#coma {
    padding: 0;
    color: var(--fifth-color);
}


img{
    width: 100%;
    position: relative;
    justify-self: end;
    
}

.project-type {
    padding-top: 1.7rem;
    font-family: 'Niramit', sans-serif;
    color: var(--primary-color);
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* HEADER + NAV */

header {
    color: var(--seventh-color);
    background-color: var(--third-color);
    width: 100%;
    position: relative;
}

header nav ul {
    display: inline-block;
    gap: 0;
    grid-template-columns: 1fr 1fr 1fr;
}

header nav ul li {
    display: inline-block; 
}

header nav ul li a {
    padding: 2rem;
}

.top {
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background-color: var(--third-color);
}

#logo {
    padding-left: 1rem;
    display: inline-block;
    position: relative;
    width: 10%;
}
#logo img {
    display: none;
}

nav {
    justify-self: end;

}

.mobile {
    display: none;
}


/* PROJECT DISPLAY */

span {
    padding-right: 1.3rem;
    color: var(--primary-color);
}

.project-display-main {
    padding-top: 5rem;
}

div.display-small {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    padding-top: 3rem;
}


/* PROJECT CASE STUDY */
.info-section {
    display: block;
}
.info-section-mobile {
    display: none;
}
.info-section{
    padding-top: 5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
a.collaborator {
    text-decoration: underline;
}
.project-details-bottom {
    padding-top: 5rem;
    padding-bottom: 7.5rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 5rem;
}
.tools, .roles {
    text-align: right;
}
.tools-icon {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    gap: 1px;
}

.tools-icon img {
    width: 50%;
}

.tools-icon img:hover {
    transform: scale(1.3);
    transition: 0.8s;
}

/* BRAINSTORMING AND SKETCHES SECTION */
.brainstorming {
    width: 40vw;
}

.sketches img {
    padding-bottom: 1.5rem;
}

/* TYPOGRAPHY */
.fonts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5em;
    padding-bottom: 1rem;
}
h5 {
    font-size: 1.7rem;
    color: var(--primary-color);
    padding-top: 2rem;
}

.type-display {
    padding-top: 1rem;
}

p#black-han-sans, p#play {
    font-size: 1rem;
    font-weight: 200;
}

#black-han-sans {
    font-family: 'Black Han Sans', sans-serif;
}
#play {
    font-family: 'Play', sans-serif;
}

/* COLOR PALETTES */
.color-palette {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    justify-content: center;
  }
  
  .color-square {
    font-family: 'Play', sans-serif;
    font-size: 1.5em;
    height: 35vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--third-color);
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    border-radius: 40px;
  }

/* FINAL DESIGNS */
.final-designs-img {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5em;
}

/* OUTCOME */
.outcome {
    background-color: #A9E0FF;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

video {
    width: 100%;
    height: auto;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

#button{
    max-width: 85%;
    margin: auto;
    font-size: 1.2em;
    text-decoration: none;
    text-align: center;
    padding: 1em;
    margin: 0 auto;
    max-width: 10em;
    border-radius: 1em;
    background-color: #FBB03B;
    font-family: 'Play', sans-serif;
    box-shadow: #37220034 2px 8px 4px -6px;
}
#button:hover{
    transform: rotate(10deg);
    transition: ease-in-out 0.4s;
}
.play-button {
    color: #fff;
}

/* SWITCHING TO OTHER PROJECTS */
.other-projects {
    /* padding-top: 5rem; */
    padding-bottom: 5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

button.previous-project, button.next-project {
    background-color: var(--primary-color); /* Green */
    border: none;
    color: var(--third-color);
    padding: 16px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 20px;
    transition-duration: 0.4s;
    cursor: url('../img/cursor/cursor-white.svg'), auto;
    margin-bottom: -121px;
    padding: 8em 0em 8em 0em;
}

button.previous-project:hover, button.next-project:hover {
    background-color: #C6B677;
    cursor: url('../img/cursor/cursor-black.svg'), auto;
}

#project-nav {
    color: var(--third-color);
    font-family:'Outfit', sans-serif;
}

#project-nav:hover {
    color: var(--primary-color);
}

.next-project {
    text-align: right;
}

/* FOOTER */

footer {
    background-color: var(--sixth-color);
    color: var(--primary-color);
    padding: var(--xs-margin);
    padding-bottom: 4rem;
    text-align: center;
    position: relative;
}

.icons {
    padding-top: 2.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 0;
}

img.icon {
    display: inline-block;
    padding: 1rem;
    width: 25%;
}

p.copyright {
    bottom: 0;
}

/* MOBILE */

@media screen and (max-width: 1230px) {
    .top {
        grid-template-columns: 3fr 1fr;
    }
    h1 {
        font-size: 8rem;
    }

    .hamburger {
        display: inline-block;
        cursor: pointer;
        padding: 1rem;
        /* text-align: right; */
        position: absolute;
        right: 4px;
        top: 6px;
        z-index: 110;
    
      }
      
      .bar1, .bar2, .bar3 {
        width: 35px;
        height: 5px;
        background-color: var(--primary-color);
        margin: 6px 0;
        transition: 0.4s;
      }
      
      .change .bar1 {
        transform: translate(0, 11px) rotate(-45deg);
      }
      
      .change .bar2 {opacity: 0;}
      
      .change .bar3 {
        transform: translate(0, -11px) rotate(45deg);
    }

    header nav ul.mobile.show li {
        display: block;
        list-style: none;
        line-height: 3em;
        font-size: 2rem;
    }

    .mobile.show {
        display: block;
        position: absolute;
        width: 100%;
        height: 100vh;
        background: var(--secondary-color);
        top: 0px;
        left: 0px;
        text-align: center;
        padding: 30px;
        padding-top: 30vh;
        z-index: 100;
    }

    .desktop {
        display: none;
    }

    img.icon {
        width: 40%;
    }
}
@media screen and (max-width: 950px) {
    .top {
        grid-template-columns: 2fr 1fr;
    }
    #logo {
        width: 20%;
    }
    article {
        max-width: none;
    }
    h1 {
        font-size: 5.5rem;
        top: -50px;
    }
    img.icon {
        width: 50%;
    }
}
@media screen and (max-width: 560px) {
    .top {
        grid-template-columns: 3fr 1fr;
    }
    #logo {
        width: 20%;
    }
    h1 {
        font-size: 5rem;
        top: -50px;
    }
    .project-type {
        font-size: 12px;
    }
    .fonts {
        grid-template-columns: 1fr;
    }
    .color-square {
        font-size: 1em;
    }
    .final-designs-img{
        grid-template-columns: 1fr;
    }
    img.icon {
        width: 60%;
    }
}
@media screen and (max-width: 670px) {
    .top {
        grid-template-columns: 4fr 1fr;
    }
    #logo {
        width: 25%;
    }
    .project-type {
        padding-top: 2rem;
    }
    span {
        color: var(--primary-color);
    }
    div.display-small {
        padding-top: 1rem;
        gap: 1rem;
    }
    .info-section {
        display: none;
    }
    .info-section-mobile {
        display: block;
    }
    .project-information {
        text-align: left;
    }
    .tools {
        padding-top: 5rem;
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
    }
    .tools-icon img {
        width: 90%;
    }
    .project-details-bottom{
        grid-template-columns: 1fr;
    }
    .roles {
        text-align: left;
    }
    h1 {
        font-size: 3rem;
        top: -25px;
    }
    img.icon {
        width: 85%;
    }
}
@media screen and (max-width: 425px) {
    .top {
        grid-template-columns: 3fr 1fr;
    }
    #logo {
        width: 20%;
    }
    h1 {
        font-size: 2.5rem;
        top: -25px;
    }
    img.icon {
        width: 100%;
    }
}
@media screen and (max-width: 390px) {
    .top {
        grid-template-columns: 4fr 1fr;
    }
    #logo {
        width: 25%;
    }
    .project-type {
        padding-top: 2rem;
    }
    span {
        font-size: 10px;
        padding: 1rem;
        color: var(--primary-color);
    }
}