
/* Styling for the menu. */
.menu,
.submenu {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: Chivo;
}

.menu {
  margin: 0 auto;
  width: 800px;
  /* width:fit-content; */
  display: flex; /* add this line */
  justify-content: center; /* add this line */
  height: 100vh;
  align-items: center;
}

.menu>li {
  background: #000000;
  position: relative;
  transform: skewX(25deg);
}

.menu a {
  display: block;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-family: Chivo;
  font-size: 14px;
}

.menu li:hover {
  background: #e74c3c;
}

.menu>li>a {
  transform: skewX(-25deg);
  padding: 1em 2em;
}

.submenu {
  position: absolute;
  width: 200px;
  left: 50%;
  margin-left: -100px;
  transform: skewX(-25deg);
  transform-origin: left top;
}

.submenu li {
  background: #000000;
  position: relative;
  overflow: hidden;
}

.submenu>li>a {
  padding: 1em 2em;
}

.submenu>li::after {
  content: '';
  position: absolute;
  top: -125%;
  height: 100%;
  width: 100%;
  box-shadow: 0 0 50px rgba(0, 0, 0, .9);
}

/* odd stuff */
.submenu>li:nth-child(odd) {
  transform: skewX(-25deg) translateX(0);
}

.submenu>li:nth-child(odd)>a {
  transform: skewX(25deg);
}

.submenu>li:nth-child(odd)::after {
  right: -50%;
  transform: skewX(-25deg) rotate(3deg);
}

/* even stuff */
.submenu>li:nth-child(even) {
  transform: skewX(25deg) translateX(0);
}

.submenu>li:nth-child(even)>a {
  transform: skewX(-25deg);
}

.submenu>li:nth-child(even)::after {
  left: -50%;
  transform: skewX(25deg) rotate(3deg);
}

.submenu,
.submenu li {
  opacity: 0;
  visibility: hidden;
}

.submenu li {
  transition: all 0.2s ease-out;
}

.menu>li:hover .submenu,
.menu>li:hover .submenu li {
  opacity: 1;
  visibility: visible;
}

.menu>li:hover .submenu li:nth-child(odd) {
  transform: skewX(-25deg) translateX(-15px);
}

.menu>li:hover .submenu li:nth-child(even) {
  transform: skewX(25deg) translateX(15px);
}

/* clearfix */
.clearfix:before,
.clearfix:after {
  content: "";
  display: table;
}

.clearfix:after {
  clear: both;
}

.clearfix {
  *zoom：1;
}

/* Center titles in the middle of the webpage. */
#header {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: Chivo;
  font-size: 30px;
}

/* Inconsolata font for landing_page. */
h1 {
  font-family: Chivo;
  font-size: 24px;
  font-style: normal;
  font-variant: normal;
  font-weight: 700;
  line-height: 26.4px;
}

h2 {
  font-family: Chivo;
  font-size: 24px;
  font-style: normal;
  font-variant: normal;
  font-weight: 700;
  line-height: 26.4px;
}

h3 {
  font-family: Chivo;
  font-size: 14px;
  font-style: normal;
  font-variant: normal;
  font-weight: 700;
  line-height: 15.4px;
}

p {
  font-family: Chivo;
  font-size: 14px;
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  line-height: 20px;
}

blockquote {
  font-family: Chivo;
  font-size: 21px;
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  line-height: 30px;
}

pre {
  font-family: Chivo;
  font-size: 13px;
  font-style: normal;
  font-variant: normal;
  font-weight: 400;
  line-height: 18.5714 px;
}

a {
  font-family: Chivo;
}
