

/* ATTENTION-- If you're currently looking at this, I know it messy. */
/* School projects am I right? */


/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
 @font-face
 {
     font-family: "RobotoThin";
     src: url("../fonts/RobotoThin.ttf");
 }
 @font-face
 {
     font-family: "Playfair";
     src: url("../fonts/Playfair.ttf");
 }
 @font-face
 {
     font-family: "RobotoLight";
     src: url("../fonts/RobotoLight.ttf");
 }
 @font-face
 {
     font-family: "Oswald";
     src: url("../fonts/Oswald.ttf");
 }
 @font-face
 {
     font-family: "DMSerifDisplay";
     src: url("../fonts/DMSerifDisplay.ttf");
 }
html {
  line-height: 1.15;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */ }

/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
  background-color: #E7DEC5;
 }

/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block; }

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0; }

/* Grouping content
   ========================================================================== */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box;
  /* 1 */
  height: 0;
  /* 1 */
  overflow: visible;
  /* 2 */ }

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */ }

/* Text-level semantics
   ========================================================================== */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent; }

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none;
  /* 1 */
  text-decoration: underline;
  /* 2 */
  text-decoration: underline dotted;
  /* 2 */ }

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder; }

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace;
  /* 1 */
  font-size: 1em;
  /* 2 */ }

/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%; }

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline; }

sub {
  bottom: -0.25em; }

sup {
  top: -0.5em; }

/* Embedded content
   ========================================================================== */
/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none; }

/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  line-height: 1.15;
  /* 1 */
  margin: 0;
  /* 2 */ }

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
  /* 1 */
  overflow: visible; }

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
  /* 1 */
  text-transform: none; }

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button; }

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0; }

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText; }

/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em; }

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box;
  /* 1 */
  color: inherit;
  /* 2 */
  display: table;
  /* 1 */
  max-width: 100%;
  /* 1 */
  padding: 0;
  /* 3 */
  white-space: normal;
  /* 1 */ }

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline; }

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto; }

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  /* 1 */
  padding: 0;
  /* 2 */ }

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto; }

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */ }

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none; }

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */ }

/* Interactive
   ========================================================================== */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block; }

/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item; }

/* Misc
   ========================================================================== */
/**
 * Add the correct display in IE 10+.
 */
template {
  display: none; }

/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none; }

h1, h2, h3, h4, h5, p {
  color: #505050;
}
h1::selection, h3::selection, h4::selection, h5::selection, p::selection, a::selection {
  background: #F58426;
}
h2::selection, img::selection {
  background: #B9E0F7;
}
.scrollBtnContainer{
  height: 100vh;
  width: 100vw;
  position: absolute;
}
.scrollbtn {
  position: absolute;
  width: 30px;
  height: 30px;
  z-index: 10;
  right:30px;
  bottom: 120px;
  display: none;
}

.downArrowbg {
  border-radius: 50%;
  background-image: -moz-linear-gradient( -45deg, rgb(245,132,38) 0%, rgb(239,68,35) 100%);
  background-image: -webkit-linear-gradient( -45deg, rgb(245,132,38) 0%, rgb(239,68,35) 100%);
  background-image: -ms-linear-gradient( -45deg, rgb(245,132,38) 0%, rgb(239,68,35) 100%);
  position: absolute;
  width: 60px;
  height: 60px;
}

.scrollbtn:active .downArrowbg {
  border-radius: 50%;
  background-image: -moz-linear-gradient( 135deg, rgb(245,132,38) 0%, rgb(239,68,35) 100%);
  background-image: -webkit-linear-gradient( 135deg, rgb(245,132,38) 0%, rgb(239,68,35) 100%);
  background-image: -ms-linear-gradient( 135deg, rgb(245,132,38) 0%, rgb(239,68,35) 100%);
}

#downBtn {
  width: 100%;
  height: 100%;
}

h1 {
  font-size: 200%;
  font-weight: 800; }

#containerFill {
  z-index: 3;
  background-color: #E7DEC5;
  }

#main_content {
  /* position: relative; */
  /* height: 100vh; */

}
#main_content .headerText {
  width: 200px;
  height: 200px;
  position: absolute;
  float: right;
  right: 2%;
  top: 2%;
}
#main_content .headerText img{
  position: absolute;
}

#main_content h1{
  font-family: 'Oswald';
  background: linear-gradient(0deg, #EF4423 20%, #F58426 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 75px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0 auto;
}

/* regular block */
.topCenter {
  height: 100vh;
}
.intro{
  padding: 2%;
  width: 30%;
  position: relative;
}
#main_content p {
  color: #182E3A;
  font-family: 'RobotoLight';
  font-size: 130%;
  padding: 4% 0%;
  margin: 0;
  line-height: 1;
  top: 50%;
}
#main_content #hello {
  font-family: 'Oswald';
  font-size: 450%;
}
.dividerThin{
  height: 5px;
  width: 100px;
  background: linear-gradient(90deg, #F58426 10%, #EF4423 100%);
  /* background-color: #F58426; */
}

@-webkit-keyframes rotate {
from {
  -webkit-transform: rotate(0deg);
}
to {
  -webkit-transform: rotate(360deg);
}
}
#myInitials
{
  -webkit-animation-name:            rotate;
  -webkit-animation-duration:        90s;
  -webkit-animation-iteration-count: infinite;
  -webkit-animation-timing-function: linear;
}



nav{
  text-align: center;
}

.grayscale {
  -webkit-filter: grayscale(1);
  filter: grayscale(100%);
}
/* beginning of scroll nav styling */

html * {
  /* -webkit-font-smoothing: antialiased; */
  -moz-osx-font-smoothing: grayscale;
}

*, *:after, *:before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}


body, html {
  background-color: #E7DEC5;
}

.bodyWrap{
  max-width: 100vw;
  overflow-x: hidden;
  width: 100vw;
  position: relative;
  z-index: 1;
}

a {
  color: #3e3947;
  text-decoration: none;
}

img {
  max-width: 100%;
}
#riveHeadContainer {
  width: 100vw;
  height: 90vh;
  position: absolute;
  z-index: 0;
  pointer-events: all;
  bottom: 0;
}
canvas {
  max-width: 100vw;
}
#riveHead{
  display: block;
}

#riveHead{
  margin: 0 auto;
  height: 100%;
  width: 100%;
}

.faceWrapper{
  position: none;
}

#container{
 z-index: 6;
}
#section1, #section4 {
 z-index: 5;
}

.container div{
  font-size: 30px;
  text-align: left;
}

.container h3{
  text-align: left;
  margin: 0;
  font-size: 400%;
  color: #F58426;
  font-family: 'Oswald';
  margin-left: 7px;
}
#myInfoWrapper{
  width: 100vw;
  height: 100vh;
}
#myInfo{
  font-size: 1.75vw;
  color: #182E3A;
  font-family: 'RobotoLight';
  margin: 0% 15%;
  text-align: center;
  z-index: 2;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.aboutWorld{
  display: inline;
  height: 100%;
}
.aboutWord h2{
  font-size: 12vw;
  color: #182E3A;
  font-family: 'Oswald';
  line-height: 1;
  margin: 0;
}

.aboutWord h4{
  text-align: left;
  margin: 0;
  font-size: 1.5vw;
  color: #182E3A;
  font-family: 'RobotoLight';
  width: 75%;
  padding-left: 15px;
}
.container{
  display: grid;
  width: 100%;
  min-height: 100%;
  margin: 0 auto;
  padding-top: 10vh;
  padding-bottom: 10vh;
  max-width: 90%;
}
.aboutWord .info {
  border-left-style: solid;
  border-left-width: 5px;
  border-top-width: 0px;
  border-right-width: 0px;
  border-bottom-width: 0px;
  border-image: linear-gradient( #F58426, #EF4423) 1;
  margin-left: 12px;
  margin-top: 7px;
}
#dividerTop{
  width: 100vw;
  height: 25px;
  background: rgb(231,222,197);
  background: linear-gradient(0deg, rgba(231,222,197,0) 0%, rgba(231,222,197,1) 100%);
}
#dividerBottom{
  width: 100vw;
  height: 25px;
  background: rgb(231,222,197);
  background: linear-gradient(180deg, rgba(231,222,197,0) 0%, rgba(231,222,197,1) 100%);
}
.container img{
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.workWrapper {
  padding-top: 4vh;
}
#fixedWork {
  writing-mode: tb-rl;
  font-size: 1800%;
  position: fixed;
  color: #F58426;
  font-family: 'Oswald';
  top: 50%;
  z-index: 2;
  margin-left: 10vw;
  transform: translateY(-50%);
  pointer-events: none;
}
.workContainer{
  display: grid;
  position: relative;
  max-width: 60vw;
  margin: 0 auto;
  padding-bottom: 4vh;
  z-index: 1;
  transition: z-index 0.3s ease 0s;
}

.workCard {
  position: relative;
  background-image: url("../img/Work/MachE.png");
  background-size: cover;
  text-align: center;
  box-shadow: transparent 0px 10px 30px;
  transition: box-shadow 0.3s ease 0s;
}

.DEx{
  background-image: url("../img/Work/ford-mustang-2023-ford.jpeg");
}

.HMI{
  background-image: url("../img/Work/25_LCN_NAV.png");
}

.cardBorder {
  border-style: solid;
  border-color: #F58426;
  margin: 5%;
  padding: 5%;
  justify-content: center;
  text-align: center;
  border-width: 5px;
  opacity: 0;
  border-image: linear-gradient(0deg, #EF4423 20%, #F58426 100%) 1;
  transform: translateZ(30px);
  transition: opacity 0.4s ease 0s;
  background-color: rgba(	24, 46, 58, 0.8);
}

.workCard.hover-in {
  transition: -webkit-transform .2s ease-out;
  transition: transform .2s ease-out;
  transition: transform .2s ease-out, -webkit-transform .2s ease-out;
}

.workCard.hover-out {
  transition: -webkit-transform .2s ease-in;
  transition: transform .2s ease-in;
  transition: transform .2s ease-in, -webkit-transform .2s ease-in;
}

.workContainer:hover .cardBorder {
  opacity: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 1);
}
.workContainer:hover .cardBorder:after {
  opacity: 1;
}
.workContainer:hover{
  z-index: 3;
}

.workCard h2 {
  margin: 0;
  font-size: 300%;
  color: #B9E0F7;
  font-family: 'Oswald';
  opacity: 1;
}

.workCard h3, .workCard p {
  color: #E7DEC5;
}

/* hover buttons */
.hoverButton{
}
.hoverButton a,
.hoverButton a:after,
.hoverButton a:before {
  transition: all .5s; }

.hoverButton a{
  position: relative;
  z-index: 1;
  color: #E7DEC5;
  border: 1px solid #E7DEC5;
  padding: 10px;
  text-decoration: none;
  border-radius: 5%;
}

.hoverButton a:hover {
  /* color: #EF4423; */
  text-decoration: none;
}

.hoverButton a:after {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  margin: auto;
  width: 100%;
  height: 1px;
  content: '.';
  color: transparent;
  background: #EF4423;
  visibility: none;
  opacity: 0;
  z-index: -1;
}

.hoverButton a:hover:after {
    opacity: 1;
    visibility: visible;
    height: 100%; }

/* Modal styling */
.modalCloseBtn{
  position: fixed;
  float: right;
  z-index: 5;
  max-width: 30px;
  max-height: 30px;
  height: auto;
  right: 0;
  top: 0;
  margin: 4%;
}
.modalCloseBtn:hover{
  opacity: 0.5;
}

.riveCloseBtn{
  display: block;
}

.modalWrapper{
  position: static;
  width: 60%;
  margin: 0 auto;
  display: block;
}
.modalWrapper h2{
  color: #B9E0F7;
  font-family: 'Oswald';
  font-size: 450%;
  padding: 4% 0%;
  margin: 0;
  line-height: 1;
  width: 80%;
}
.modalWrapper p{
  color: #E7DEC5;
  font-weight: 200;
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 0;
  padding: 2% 0%;
}

.modalImg{
  margin: 0 auto;
  display: block;
  width: 100%;
  padding: 2% 0%;
  pointer-events: none;
  /* max-width: 1100px; */
}
.projectImageGrid {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); 
  gap: 50px; 
  padding: 4% 0%;
}

.projectImageGrid img {
  width: 100%; 
  height: auto;
  object-fit: cover; 
  display: block; 
}

.modalFrameWrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding-top: 56.25%;
}

.modalFrameWrapper iframe{
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
}

#nelsonResume a{
  text-decoration: none;
}
#contact{
  width: 100%;
  margin: 0 auto;
  background-color:#182E3A;
  padding: 2%;
  display: flex;
  align-items: center;
}
.contactInfo{
  display: inline-block;
}
#contact h2{
  color: #B9E0F7;
  display: inline-block;
  font-weight:400;
  font-size: 400%;
  font-family: 'Oswald';
}
#contact p{
  color: #B9E0F7;
  padding: 0 0 0px 0;
  font-weight: 300;
}
#contact a{
  color: #B9E0F7;
}
.dividerContact{
  display: inline-block;
  height: 60px;
  width: 5px;
  margin: 0 2%;
  background: linear-gradient(180deg, #F58426 10%, #EF4423 100%);
}

/* @media (max-width: 500px) and (max-height: 699px){
         #riveHeadContainer {
          display: none;

        }
      } */

@media only screen and (min-width: 1px) and (max-width: 900px) {
  .modalWrapper{
    width: 90%;
  }
  .modalWrapper h2{
    font-size: 350%;
    width:70%;
  }
  #section1, #section4 {
    height: auto;
    min-height: auto;
  }
  #contact{
    display: block;
  }
  .contactInfo{
    display: block;
  }
  #contact h2{
    display: block;
  }
  #contact p{
    padding: 1% 0;
  }
  .dividerContact{
    display: inline-block;
    height: 5px;
    width: 60px;
    margin: 0;
    background: linear-gradient(90deg, #F58426 10%, #EF4423 100%);
  }
}

@media only screen and (min-width: 501px) and (max-width: 1100px) {
    .tamHead {
      margin-top: -250px;
      width: 500px;
      margin-left: -250px;
    }
    .aboutWord h4 {
    font-size: 2.25vw;
    width: 100%;
    }
    #main_content #hello {
      font-size: 350%;
    }
}

@media only screen and (min-width: 1px) and (max-width: 700px) {
    .intro{
      padding: 0% 5%;
      width: 100%;
      transform: translateY(0%);
      top:200px;
      text-align: center;
      position: static;
      padding-top: 200px;
    }
    .headerText{
      left: 50%;
      transform: translate(-50%, 0%);
    }
    .intro .dividerThin{
      margin: 0 auto;

    }
    #fixedWork {
    font-size: 1000%;
    margin: 0;
    left: 0;
    }
    .workContainer {
      max-width: 80vw;
    }
    #riveHeadContainer {
     height: 50vh;
     position: static;
   }
   .topCenter {
     height: auto;
   }
    /* #riveHead{
      display: none;
    } */
    /* #riveHeadMobile{
      display: block;
      position: absolute;
      width: 80%;
      height: 80%;
      bottom: 0;
      left: 50%; */
transform: translate(-50%, 0%);
    }
}
@media only screen and (min-width: 1px) and (max-width: 1300px) {
  #section1, #section4 {
    height: auto;
    min-height: auto;
  }
}
@media only screen and (min-width: 1px) and (max-width: 500px) {
#cd-vertical-nav {
  display: none;
}
    .container{
    grid-template-columns: 100%;
    grid-template-rows: auto;
  }
    .aboutWord h2 {
    font-size: 25vw;
    }
    .aboutWord h4 {
    font-size: 3.2vw;
    width: 85%;
    padding-left: 0px;
    }
    #main_content #hello {
      font-size: 250%;
    }
    .intro{
      top: 150px;
    }
    #main_content .headerText {
        width: 150px;
        height: 150px;
        float: right;
        right: 10px;
        top: 5px;
    }
    .intro{
      padding-top: 175px;
    }
    #main_content h1{
      font-size: 60px;
    }
    .container{
      margin: 0% 2%;
      max-width: 100%;
    }
    .container h3{
      font-size: 200%;
    }
    #cd-vertical-nav {
      display: none;
    }
    .aboutWord .info {
      padding-left: 12px;
      margin-left: 5px;
    }
    .workWrapper {
      width: 100%;
    }
    .scrollbtn {
      display: block;
    }
}
@media only screen and ( max-height: 520px ) {
      #cd-vertical-nav{
          display: none;
        }
      .scrollbtn {
          display: block;
        }
      }

#section4 {
  min-height: auto;
}

@media only screen and (min-width: 1px) and (max-width: 900px) {
  #contactPic{
    border-radius: 50%;
    height: 250px;
    position: absolute;
    top: 25%;
    left: 50%;
    z-index: 2;
    margin-left: -125px;
  }
  #contact{
    height: 40%;
    padding: 4%;

  }
  }

/* --------------------------------

Modules - reusable parts of our design

-------------------------------- */
.cd-img-replace {
  display: inline-block;
  overflow: hidden;
  text-indent: 100%;
  white-space: nowrap;
}

/* --------------------------------

Main components

-------------------------------- */

.cd-section {
  min-height: 100vh;
  position: relative;
}
#section2{
  z-index: -1;
}

.cd-section h1{
  position: absolute;
  left: 50%;
  top: 40%;
  bottom: auto;
  right: auto;
  -webkit-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -ms-transform: translateX(-50%) translateY(-50%);
  -o-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  width: 75%;
  text-align: center;
}
.cd-section h1 {
  color: #B9E0F7;
  font-weight: 400;
  text-transform: uppercase;
  font-size: 20px;
  font-size: 3rem;
}
.cd-section p {
  margin-bottom: 0;
  padding-bottom: 20px;
}

.cd-section a:hover {
  text-decoration: none;
}
@media only screen and (min-width: 768px) {
  .cd-section h1 {
    font-size: 30px;
    font-size: 3rem;
  }
  .cd-section p {
    font-weight: 200;
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 0;
    padding-bottom: 20px;
  }
}

/* No Touch devices */
.cd-nav-trigger {
  display: none;
}

.no-touch #cd-vertical-nav {
  position: fixed;
  right: 4%;
  top: 50%;
  bottom: auto;
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  transform: translateY(-50%);
  z-index: 7;
}
.no-touch #cd-vertical-nav li {
  text-align: right;
  list-style: none;
}
.no-touch #cd-vertical-nav a {
  display: inline-block;
  /* prevent weird movements on hover when you use a CSS3 transformation - webkit browsers */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.no-touch #cd-vertical-nav a:after {
  content: "";
  display: table;
  clear: both;
}
.no-touch #cd-vertical-nav a span {
  float: right;
  display: inline-block;
  -webkit-transform: scale(0.6);
  -moz-transform: scale(0.6);
  -ms-transform: scale(0.6);
  -o-transform: scale(0.6);
  transform: scale(0.6);
}
.no-touch #cd-vertical-nav a:hover span {
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  -o-transform: scale(1);
  transform: scale(1);
}
.no-touch #cd-vertical-nav a:hover .cd-label {
  opacity: 1;
}
.no-touch #cd-vertical-nav a.is-selected .cd-dot {
  background-color: #EF4423;
}
.no-touch #cd-vertical-nav .cd-dot {
  position: relative;
  /* we set a top value in order to align the dot with the label. If you change label's font, you may need to change this top value*/
  top: 10px;
  height: 15px;
  width: 15px;
  border-radius: 50%;
  background-color: #F58426;

  -webkit-transition: -webkit-transform 0.2s, background-color 0.5s;
  -moz-transition: -moz-transform 0.2s, background-color 0.5s;
  transition: transform 0.2s, background-color 0.5s;
  -webkit-transform-origin: 50% 50%;
  -moz-transform-origin: 50% 50%;
  -ms-transform-origin: 50% 50%;
  -o-transform-origin: 50% 50%;
  transform-origin: 50% 50%;
}
.no-touch #cd-vertical-nav a.is-selected .cd-label {
  color: #EF4423;
}
.no-touch #cd-vertical-nav .cd-label {
  position: relative;
  margin-right: 10px;
  padding: .4em .5em;
  color: #F58426;
  font-size: 20px;
  font-size: 1rem;
  -webkit-transition: -webkit-transform 0.2s, opacity 0.2s;
  -moz-transition: -moz-transform 0.2s, opacity 0.2s;
  transition: transform 0.2s, opacity 0.2s;
  opacity: 0;
  -webkit-transform-origin: 100% 50%;
  -moz-transform-origin: 100% 50%;
  -ms-transform-origin: 100% 50%;
  -o-transform-origin: 100% 50%;
  transform-origin: 100% 50%;
  background: linear-gradient(180deg, rgba(231, 222, 197, 0) 0%, rgba(231, 222, 197, 1) 10%, rgba(231, 222, 197, 1) 90%, rgba(231, 222, 197, 0) 100%);
}

/* Touch devices */
.touch .cd-nav-trigger {
  display: block;
  z-index: 2;
  position: fixed;
  bottom: 30px;
  right: 5%;
  height: 44px;
  width: 44px;
  border-radius: 0.25em;
  background: #B9E0F7;
}
.touch .cd-nav-trigger span {
  position: absolute;
  height: 4px;
  width: 4px;
  background-color: #182E3A;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  bottom: auto;
  right: auto;
  -webkit-transform: translateX(-50%) translateY(-50%);
  -moz-transform: translateX(-50%) translateY(-50%);
  -ms-transform: translateX(-50%) translateY(-50%);
  -o-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
}
.touch .cd-nav-trigger span::before, .touch .cd-nav-trigger span::after {
  content: '';
  height: 100%;
  width: 100%;
  position: absolute;
  left: 0;
  background-color: inherit;
  border-radius: inherit;
}
.touch .cd-nav-trigger span::before {
  top: -9px;
}
.touch .cd-nav-trigger span::after {
  bottom: -9px;
}

.touch #cd-vertical-nav {
  position: fixed;
  z-index: 1;
  right: 5%;
  bottom: 30px;
  width: 90%;
  max-width: 400px;
  max-height: 90%;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  -webkit-transform-origin: right bottom;
  -moz-transform-origin: right bottom;
  -ms-transform-origin: right bottom;
  -o-transform-origin: right bottom;
  transform-origin: right bottom;
  -webkit-transform: scale(0);
  -moz-transform: scale(0);
  -ms-transform: scale(0);
  -o-transform: scale(0);
  transform: scale(0);
  -webkit-transition-property: -webkit-transform;
  -moz-transition-property: -moz-transform;
  transition-property: transform;
  -webkit-transition-duration: 0.2s;
  -moz-transition-duration: 0.2s;
  transition-duration: 0.2s;
  border-radius: 0.25em;
  background-color: #B9E0F7;
}
.touch #cd-vertical-nav a {
  color: #182E3A;
  display: block;
  padding: 1em;
  border-bottom: 1px solid rgba(62, 57, 71, 0.1);
}
.touch #cd-vertical-nav ul{
  /* list-style: none; */
  /* padding-left: none; */
}
.touch #cd-vertical-nav a span:first-child {
  display: none;
}
.touch #cd-vertical-nav a.is-selected span:last-child {
  color: #d88683;
}
.touch #cd-vertical-nav.open {
  -webkit-transform: scale(1);
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  -o-transform: scale(1);
  transform: scale(1);
}
.touch #cd-vertical-nav.open + .cd-nav-trigger {
  background-color: transparent;
}
.touch #cd-vertical-nav.open + .cd-nav-trigger span {
  background-color: rgba(62, 57, 71, 0);
}
.touch #cd-vertical-nav.open + .cd-nav-trigger span::before, .touch #cd-vertical-nav.open + .cd-nav-trigger span::after {
  background-color: #3e3947;
  height: 3px;
  width: 20px;
  border-radius: 0;
  left: -8px;
}
.touch #cd-vertical-nav.open + .cd-nav-trigger span::before {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
  top: 1px;
}
.touch #cd-vertical-nav.open + .cd-nav-trigger span::after {
  -webkit-transform: rotate(135deg);
  -moz-transform: rotate(135deg);
  -ms-transform: rotate(135deg);
  -o-transform: rotate(135deg);
  transform: rotate(135deg);
  bottom: 0;
}
.touch #cd-vertical-nav li:last-child a {
  border-bottom: none;
}

@media only screen and (min-width: 768px) {
  .touch .cd-nav-trigger, .touch #cd-vertical-nav {
    bottom: 40px;
  }
}
