:root {
--primary-color: #c8102e;
--secondary-color: #00b388;
--complimentary-color: #F6BE00;
--contrast-color: #888b8d;
--light-color: #fff9d9;
}

.swiping-container {
  background: #FFFFFF;
  min-height: 100%;
  /* font-family: 'Trebuchet MS', sans-serif; */
}

nav #swiping-nav a {
    font-size: 40px;
    color: #fff;
    text-decoration: none;
    padding: 20px;
    text-align: center;
}

nav #swiping-nav {
    position: fixed;
    left: 0;
    z-index: 50;
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    height: 100vh;
    background: var(--secondary-color);
}

section.swiping {
    position: absolute;
    top: 0;
    height: 100vh;
    width: 0;
    opacity: 0;
    transition: all ease-in .5s;
    display: block;
    justify-content: center;
    align-items: center;
} 

section.swiping h1 {
    color: #fff;
    font-size: 3rem;
    text-transform: uppercase;
    opacity: 0;
    align-items: center;
    display: flex;
}

section.swiping p {
  margin: 3rem;
  margin-left: 50px;
}

/* Styles applied on trigger */
section.swiping:target {
    opacity: 1;
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

section.swiping:target h1 {
    opacity: 0;
    animation: 2s fadeIn forwards .5s;
}

#first {
  background:var(--primary-color);
}
#second {
    background: var(--complimentary-color);
}

#third {
    background: var(--contrast-color);
}

#fourth {
    background: var(--light-color);
}

@keyframes fadeIn {
    100% { opacity:1 }
}