@font-face {
    font-family: whitneylight;
    src: url(/fonts/Whitney-Light-Pro.woff) format('woff2'),
         url(/fonts/Whitney-Light-Pro.woff2) format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: whitneymedium;
    src: url(/fonts/Whitney-Medium-Pro.woff) format('woff2'),
         url(/fonts/Whitney-Medium-Pro.woff2) format('woff');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: whitneysemibold;
    src: url(/fonts/whitney-semibld-pro-webfont.woff2) format('woff2'),
         url(/fonts/whitney-semibld-pro-webfont.woff) format('woff');
    font-weight: normal;
    font-style: normal;
}
:root {
    --color-grey-1: hsl(204, 4%, 24%);
    --color-grey-2: hsl(210, 2%, 45%);
    --color-grey-3: hsl(240, 1%, 83%);
    --color-red: hsl(4, 77%, 48%);
    --color-white: hsl(0, 0%, 100%);
    --color-black: hsl(0, 0%, 0%);
}
* {
    margin: 0;
    padding: 0;
  }
*, *::before, *::after {
    box-sizing: border-box;
}
body {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    font-family: whitneymedium;
    overflow: hidden;
}
h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: normal;
  }
  
h2 {
    display:block;
  }
a {
    display:block;
    text-decoration: none;
}
#tiles {
    height: calc(100vh - 1px);
    width: calc(100% - 1px);
    justify-items: stretch;
    align-items: stretch;
    display: grid;
    grid-template-columns: repeat(var(--columns), 1fr);
    grid-template-rows: repeat(var(--rows), 1fr);
}
.tile {
    position: relative;
    opacity: 0;
    padding: 5px;
}

.svgZero,
.svgOne {
    fill: var(--color-grey-3);
}

/* STAGE STYLES */
.globalStage {
    position: absolute;
    width: 100%;
    min-height:100vh;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
}

#stage {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    z-index: 50;
    overflow-y: visible;
}

.newBox {
    position: absolute;
    width: 80px;
}

#digit0 {
    z-index: 5;
}

#digit1 {
    overflow-y: visible;
    z-index: 2;
}

#serifMask {
    position: absolute;
    width: 50px;
    top: -2px;
    left: -37px;
}

#iDot {
    position: absolute;
    width: 12px;
    height: 12px;
    top: 0;
    left: 37px;
    z-index: 0;
    overflow: visible;
}

.balloonContainer {
    visibility: hidden;
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    flex-flow: column nowrap;
    width: 350px;
    height: 350px;
    overflow: visible;
    z-index: 10000;
}

.containerFire {
    position: absolute;
}

.containerFire img {
    width: 50px;
}

.balloon {
    display: flex;
    position: absolute;
    align-items: center;
    justify-content: center;
    width: 350px;
    height: 350px;
    transform-origin: center;
    overflow: visible;
}

svg {
    overflow: visible;
}

.balloonProps {
    position: absolute;
}

/* NARRATIVE TEXT STYLES */
#narrative {
    visibility: hidden;
    text-align: center;
    z-index: 100000;
}

.skipAnimation {
    cursor: pointer;
    z-index: 100;
    color: var(--color-grey-3);
    padding-top: 50px;
    transition: all .4s ease-in-out;
}

.skipAnimation:hover {
    color: var(--color-red);
    transform: translateY(-2px);
    text-decoration: underline;
}

.storyText {
    display: flex;
    flex-flow: row;
    align-items: center;
    background-color: var(--color-black);
    min-width: 320px;
    max-width: 320px;
    height: 40px;
    padding: 0 20px;
    color: var(--color-white);
    text-align: left;
    font-family: 'Red Hat Mono', monospace;
    font-size: 1em;
}

/*  BIKE STYLES */
#wheels {
    position: absolute;
    display: flex;
    width: 80%;
    height: 0px;
    background-color: rgba(250, 0, 110, 0.3);
    flex-flow: row nowrap;
    justify-content: center;
    opacity: 1;
    z-index: 20;

    align-content: center;
    align-items: center;
}

#leftWheelContainer {
    position: absolute;
    padding: 0;
    opacity: 1;
}

#rightWheelContainer {
    position: absolute;
    padding: 0;
    opacity: 1;
}

#bikeFrame {
    position: absolute;
    width: 400px;
    fill: var(--color-grey-3);
}

.boxClone {
    position: absolute;
    width: 100px;
    height: 100px;
    fill: var(--color-grey-3);
}

#emailAddy:focus {
    border-color: none;
    cursor: pointer;
    outline: none;
}

/**** CONTACT STYLES ****/
#contactCard {
    display:none;
    visibility: hidden;
    position: relative;
    color: var(--color-grey-2);
    z-index: 30;
    overflow-y: visible;
    margin: 8rem 0 0 0;
}
.logo-fill {
    fill: var(--color-grey-3);
    transition: fill 250ms ease-in-out;
}
.logo:hover .logo-fill {
    fill: var(--color-red);
}
.contactInfo {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
}
h1 {
    font-family: whitneymedium, sans-serif;
    font-weight: 900;
    font-size: 4rem;
    color: var(--color-grey-3);
}

h2 {
    display:flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height:2.2rem;
    font-family: whitneylight, sans-serif;
    background-color: var(--color-grey-3);
    color: var(--color-white);
    font-size: 1.1em;
    
}

.contactDetails {
    display:flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height:2.2rem;
    font-size: 1.1rem;
}

.contactDetails a {
    text-decoration: none;
    color: var(--color-grey-2);
    cursor: pointer;
    font-size: .9em;
}

.contactDetails a:hover {
    text-decoration: underline;
    color: var(--color-black);
}

.postalAddress {
    letter-spacing: 1px;
    text-align: center;
    width: 100%;
    height:2.2rem;
}


/******** NAV *************/
.nav {
    position:relative;
    display: flex;
    width:100%;
    justify-content: space-evenly;
    margin:30px auto 40px;
    z-index:9999;
}

.nav-icon {
    position: relative;
    display:none;
    justify-content: center;
    align-items: center ;
    background-color: var(--color-grey-3);
    border-radius: 50%;
    color:white;
    width:50px;
    height:50px;
    font-size:2rem;
}

.nav-icon img {
    position: absolute;
    width: 54px;
    opacity: 0;
    transition: all 250ms ease-in-out;
}

.first i{
    margin-top: -5px;
}
.nav-icon:hover {
    cursor:pointer;
}
.nav-icon i {
    scale:1;
    transition: scale 250ms ease-in-out;

}
.nav-icon:hover i {
    scale: .8;
}
.nav-icon:hover img {
    rotate: 330deg;
    opacity: 1;
    border-radius: 50%;
    
    border:1px solid #ffffff;
}

/******** ABOUT ************/
#about{
   
    position: relative;
    
    justify-content: center;
    width: 100%;
    top: -30rem;
    display:none;
}
.about-paras {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    max-width:320px;
    margin-top:-5rem;
}
#about p {
    color:var(--color-white);
    padding-left: 15px;
}

#about .p1 {
    border-left: 15px solid grey;  
    margin:15px 0;
    font-family: whitneylight;
}
#about .p2 {
    border-left: 15px solid #e03c3b; 
    margin:15px 0; 
}
#about .p3 {
    border-left: 15px solid #ffc000; 
    margin:15px 0; 
    font-family: whitneylight;
}
#about .p4 {
    border-left: 15px solid #bfbfbf;  
    margin:15px 0 45px 0;
}

.about-contact {
    display:flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height:2.2rem;
    font-size: 1.1rem;
    color: var(--color-white);
}

.about-contact a {
    text-decoration: none;
    color: var(--color-white);
    cursor: pointer;
    font-size: .9em;
}

.about-contact a:hover {
    text-decoration: underline;
    color: #ffc000;
}

/******** ARTICLES *************/
#articles {
    /* position:absolute; */
    display: none;
    /* bottom:0; */
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto;
    z-index:1000;
}

.article-card {
    width:19rem;
    padding: 2.1rem;
    display:none;
    opacity:0;
    flex-direction: column;
    justify-content: space-between;
}

.article-card h3 {
    font-size: 1.2em;
   
    color:var(--color-grey-2);
}

.article-card a {
    text-align: left;
    font-weight: 300;
    margin-top: 20px;
    color:var(--color-grey-2);
    transition: all .4s ease-in-out;
}

.article-card a:hover {
    color: var(--color-black);
}
.article-card i {
    font-size: 1rem;
    color:var(--color-grey-2);
}
.article-card a:hover i {
    color: var(--color-red);
}

.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #ffffff00;
    font-size:.75rem;
    text-align: right;
    padding-bottom: 10px;
    padding-right:10px;
    z-index: 9999;
  }

  .footer a {
    color: #ececec;
  }
  .footer a:hover {
    color: #cecece;
    text-decoration: underline;
  }

  @media only screen and (max-width: 600px) {
  #contactCard {
      margin:0;
      overflow-x:hidden;
      width:100%;
      height:100vh;
      padding:2rem;
  }
  #about {
   padding-top:2rem;   
  }
    .article-card {
       border-top: 1px dashed var(--color-grey-3);
       
    }
    .footer {
        display:none;
    }
  }