nav {
  font-family: "Fredoka One", cursive;
}

nav .container ul li.nav-item {
  margin: 0 40px;
}

@media only screen and (max-width: 1200px) {
  nav .container ul li.nav-item {
    margin: 0 20px;
  }
}

@media only screen and (max-width: 1000px) {
  nav .container ul li.nav-item {
    margin: 0 5px;
  }
}

nav .container ul li.active {
  background-color: #c3ffd7 !important;
  transition: 0.4 ease background-color;
  font-size: 1.1rem;
  -webkit-transition: 0.4 ease background-color;
  -moz-transition: 0.4 ease background-color;
  -ms-transition: 0.4 ease background-color;
  -o-transition: 0.4 ease background-color;
}

nav .container ul li.active a {
  color: black !important;
}

nav .container ul.dropdown-menu {
  background-color: #c3ffd7;
  color: black !important;
  min-width: 50px;
  width: auto;
}

nav .container ul.dropdown-menu li {
  color: black;
}

nav .container ul.dropdown-menu li a.dropdown-item:hover {
  transition: 0.3s;
  background-color: #198754 !important;
  color: white !important;
}

.jumbotron {
  padding-top: 6rem;
  background-color: rgb(195, 255, 215);
}

#projects {
  background-color: rgb(195, 255, 215);
}

#contact {
  background-color: #ffffff;
}

section {
  padding-top: 5rem;
}

p {
  font-family: "Nunito", sans-serif;
}

.gallery-img {
  width: 100%;
}

#gallery .row > * {
  padding: 0;
}

.zoom {
  transition: transform 0.2s; /* Animation */
}

.zoom:hover {
  transform: scale(1.5);
  /*(150%zoom-Note: if the zoom is too large, it will go outside of the viewport) */
  -webkit-transform: scale(1.5);
  -moz-transform: scale(1.5);
  -ms-transform: scale(1.5);
  -o-transform: scale(1.5);
}

.glow {
  color: #fff;
  text-align: center;
  -webkit-animation: glow 1s ease-in-out infinite alternate;
  -moz-animation: glow 1s ease-in-out infinite alternate;
  animation: glow 1s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 1px #fff, 0 0 1px #fff, 0 0 2px #0be600, 0 0 3px #0be600, 0 0 4px #0be600, 0 0 5px #0be600, 0 0 6px #0be600;
  }
  to {
    text-shadow: 0 0 2px #fff, 0 0 2px #ff4d4d, 0 0 3px #ff4d4d, 0 0 4px #ff4d4d, 0 0 5px #ff4d4d, 0 0 6px #ff4d4d, 0 0 7px #ff4d4d;
  }
}

@-webkit-keyframes glow {
  from {
    text-shadow: 0 0 1px #fff, 0 0 1px #fff, 0 0 2px #0be600, 0 0 3px #0be600, 0 0 4px #0be600, 0 0 5px #0be600, 0 0 6px #0be600;
  }
  to {
    text-shadow: 0 0 2px #fff, 0 0 2px #ff4d4d, 0 0 3px #ff4d4d, 0 0 4px #ff4d4d, 0 0 5px #ff4d4d, 0 0 6px #ff4d4d, 0 0 7px #ff4d4d;
  }
}

/* My PC Spec Section */
.spec-box {
  position: relative;
  background-color: #2fff99;
  border-radius: 10px;
  height: 500px;
  transform-style: preserve-3d;
  -webkit-border-radius: 10px;
  -moz-border-radius: 10px;
  -ms-border-radius: 10px;
  -o-border-radius: 10px;
}

.spec-box::before {
  content: "PC";
  position: absolute;
  color: black;
  font-size: 6em;
  font-weight: bold;
  font-style: italic;
  top: 30px;
  left: 50%;
  transform: translate(-50%, 0);
  opacity: 0;
  transition: 0.5s;
  -webkit-transition: 0.5s;
  -moz-transition: 0.5s;
  -ms-transition: 0.5s;
  -o-transition: 0.5s;
}

.spec-box:hover::before {
  opacity: 0.2;
}

.spec-box::after {
  content: "SPEC";
  position: absolute;
  color: black;
  font-size: 4.3em;
  font-weight: bold;
  font-style: italic;
  top: 350px;
  left: 50%;
  transform: translate(-50%, 0);
  opacity: 0;
  transition: 0.5s;
  -webkit-transition: 0.5s;
  -moz-transition: 0.5s;
  -ms-transition: 0.5s;
  -o-transition: 0.5s;
}

.spec-box:hover::after {
  opacity: 0.2;
}

.spec-name {
  position: absolute;
  top: 0;
  width: 100%;
  color: black;
  text-align: center;
  font-size: 2em;
  opacity: 0;
  transform: translate3d(0, 0, 50px);
  transition: 0.5s;
  -webkit-transform: translate3d(0, 0, 50px);
  -moz-transform: translate3d(0, 0, 50px);
  -ms-transform: translate3d(0, 0, 50px);
  -o-transform: translate3d(0, 0, 50px);
}

.spec-box:hover .spec-name {
  top: 20px;
  opacity: 1;
}

.spec-detail-button {
  background-color: #1fc222;
  border-color: #2fff99;
  border-width: 0.2em;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate3d(-50%, 0, 100px);
  opacity: 0;
  transition: 0.5s;
  -webkit-transform: translate3d(-50%, 0, 100px);
  -moz-transform: translate3d(-50%, 0, 100px);
  -ms-transform: translate3d(-50%, 0, 100px);
  -o-transform: translate3d(-50%, 0, 100px);
  -webkit-transition: 0.5s;
  -moz-transition: 0.5s;
  -ms-transition: 0.5s;
  -o-transition: 0.5s;
}

.spec-detail-button:hover {
  background-color: green;
  color: aliceblue;
  border-color: #99ffce;
}

.spec-box:hover .spec-detail-button {
  opacity: 1;
  bottom: 20px;
}

.spec-img {
  position: absolute;
  top: 52%;
  left: 50%;
  transform: translate3d(-50%, -52%, 80px);
  max-width: 350px;
  transition: 0.5s;
  -webkit-transform: translate3d(-50%, -52%, 80px);
  -moz-transform: translate3d(-50%, -52%, 80px);
  -ms-transform: translate3d(-50%, -52%, 80px);
  -o-transform: translate3d(-50%, -52%, 80px);
  -webkit-transition: 0.5s;
  -moz-transition: 0.5s;
  -ms-transition: 0.5s;
  -o-transition: 0.5s;
}

.spec-box:hover .spec-img {
  transform: translate3d(-50%, -52%, 100px) rotate(5deg) scale(1.2);
  -webkit-transform: translate3d(-50%, -52%, 100px) rotate(5deg) scale(1.2);
  -moz-transform: translate3d(-50%, -52%, 100px) rotate(5deg) scale(1.2);
  -ms-transform: translate3d(-50%, -52%, 100px) rotate(5deg) scale(1.2);
  -o-transform: translate3d(-50%, -52%, 100px) rotate(5deg) scale(1.2);
}
