@import 
  
  url("https://fonts.googleapis.com/css?family=Just+Another+Hand|Montserrat:400,700");

body {
  background: #f2f2f2;
  margin: 0 auto;
}

.box {
  background: rgb(255, 255, 255);
 /* The Fallback */
  background: rgba(255, 255, 255, 0.8);
  width: 50% !important;
  height: 100vh;
  display: block !important;
  z-index: 1 !important;
  float: left;
  -webkit-box-shadow: 10px 0px 10px -11px rgba(0,0,0,0.75);
  -moz-box-shadow: 10px 0px 10px -11px rgba(0,0,0,0.75);
  box-shadow: 10px 0px 10px -11px rgba(0,0,0,0.75);
}

.box h1 {
  font-family: 'Just Another Hand', cursive;
  font-size: 150px;
  text-align: center;
  color: #444;
  font-weight: normal;
  animation-delay: 1s;
  margin: 10% auto;
}

.box p {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  color: #333;
  margin: 10%;
}

@media screen and
  (max-width: 980px) {
  .body {
    margin-top: 5em;
  }
}

@media screen and
  (min-width: 980px) {
  .box {
    width: 33.333%;
  }
}

.nav {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #292929;
  display: inline-block;
  height: 100vh;
  float: left;
  z-index: 2;
}

.nav li, .nav li a {
  cursor: pointer;
  border-top: 1px solid #757575;
  border-bottom: 1px solid #757575;
  margin-bottom: -1px;
  width: 80px;
  height: 60px;
  line-height: 60px;
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  color: #ffffff;
}

.nav li a {
  border: none;
  text-decoration: none;
}

.nav li div,
.nav li i {
  position: absolute;
  text-align: center;
  animation-duration: 0.34s;
}

.nav li div {
  margin-left: 80px;
  text-align: center;
  width: 160px;
}

.nav li i {
  line-height: 60px;
  width: 80px;
  z-index: 9;
  background: #292929;
}

.nav li div {
  display: none;
  z-index: 2;
  background: #fc418b;
}

.nav li:hover > div, .nav li:focus > div {
  display: inline-block;
}

.nav li:hover i, .nav li:focus i {
  background: #bbb;
}

.writing div, .writing:hover i, .writing:focus i {
  background: #fc418b !important;
}

.design div, .design:hover i, .design i:hover, .design i:focus {
  background: #ffd05b !important;
}

.web div, .web:hover i, .web:focus i {
  background: #30d6ff !important;
}

.blog div, .blog:hover i, .blog:focus i {
  background: #55ff95 !important;
}

.twitter div, .twitter:hover i, .twitter:focus i {
  background: #a0529d !important;
}

#slider {
  min-width: 100%;
  min-height: 100%;
  margin: auto;
  z-index: -1;
}

.slide1,.slide2,.slide3,.slide4,.slide5, .slide6 {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.slide1 {
  background: url(/images/background2.jpg)no-repeat center;
  background-size: cover;
  animation: fade 20s infinite;
  -webkit-animation: fade 20s infinite;
}

.slide2 {
  background: url(/images/background1.jpg)no-repeat center;
  background-size: cover;
  animation: fade2 20s infinite;
  -webkit-animation: fade2 20s infinite;
}

.slide3 {
  background: url(/images/background5.jpg)no-repeat center;
  background-size: cover;
  animation: fade3 20s infinite;
  -webkit-animation: fade3 20s infinite;
}

.slide4 {
  background: url(/images/background3.jpg)no-repeat center;
  background-size: cover;
  animation: fade4 20s infinite;
  -webkit-animation: fade4 20s infinite;
}

.slide5 {
  background: url(/images/background4.jpg)no-repeat center;
  background-size: cover;
  animation: fade5 20s infinite;
  -webkit-animation: fade5 20s infinite;
}

.slide6 {
  background: url(/images/background6.jpg)no-repeat center;
  background-size: cover;
  animation: fade6 20s infinite;
  -webkit-animation: fade6 20s infinite;
}

@keyframes fade {
  0% {
    opacity: 0;
  }

  16.333% {
    opacity: 0;
  }

  33.333% {
    opacity: 0;
  }

  45.55% {
    opacity: 0;
  }

  65.55% {
    opacity: 0;
  }

  80.00% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes fade2 {
  0% {
    opacity: 0;
  }

  16.333% {
    opacity: 1;
  }

  33.333% {
    opacity: 0;
  }

  45.55% {
    opacity: 0;
  }

  65.55% {
    opacity: 0;
  }

  80.00% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes fade3 {
  0% {
    opacity: 0;
  }

  16.333% {
    opacity: 0;
  }

  33.333% {
    opacity: 1;
  }

  45.55% {
    opacity: 0;
  }

  65.55% {
    opacity: 0;
  }

  80.00% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes fade4 {
  0% {
    opacity: 0;
  }

  16.333% {
    opacity: 0;
  }

  33.333% {
    opacity: 0;
  }

  45.55% {
    opacity: 1;
  }

  65.55% {
    opacity: 0;
  }

  80.00% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes fade5 {
  0% {
    opacity: 0;
  }

  16.333% {
    opacity: 0;
  }

  33.333% {
    opacity: 0;
  }

  45.55% {
    opacity: 0;
  }

  65.55% {
    opacity: 1;
  }

  80.00% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

@keyframes fade6 {
  0% {
    opacity: 0;
  }

  16.333% {
    opacity: 0;
  }

  33.333% {
    opacity: 0;
  }

  45.55% {
    opacity: 0;
  }

  65.55% {
    opacity: 0;
  }

  80.00% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

.button {
  flex: 1 1 auto;
  margin: auto;
  padding: 20px;
  width: 50%;
  border: 4px dashed #fc418b;
  text-align: center;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: 0.3s;
  font-family: 'Montserrat', sans-serif;
  color: #fc418b;
  font-size: 25px;
}

.button:after {
  position: absolute;
  transition: 0.3s;
  content: '';
  width: 0;
  left: 50%;
  bottom: 0;
  height: 3px;
  background: #fc418b;
  height: 120%;
  left: -10%;
  transform: skewX(15deg);
  z-index: -1;
}

.button:hover {
  color: #fff;
  cursor: pointer;
  border: 4px solid #fc418b;
}

.button:hover a {
  color: #fff;
}

.button:hover:after {
  left: -10%;
  width: 120%;
}

.button a {
  color: #fc418b;
  text-decoration: none;
}

.button a:hover {
  color: #fff;
  text-decoration: none;
}

@media screen and (max-width: 500px) {
 
  .box h1 {
    font-size: 50px;
  }

  .box p, .button {
    font-size: 15px;
  }

  .box {
    width: 80% !important;
  }

  .nav li, .nav li a, .nav li i {
    width: 40px;
  }

  .nav li div {
    margin-left: 40px;
  }
  
  .nav li {
  cursor: pointer;
  }
}
