/* The app logo */
.logo-img {
  height: 45px;
  width: 140px;
  display: inline-block;
  vertical-align: middle;
  background: url('../img/logo_en.svg') no-repeat center center;
  background-size: contain;
}

/* The jumbotron */
.jumbotron {
  display: flex;
  align-items: center;
  border: none;
  height: 40rem;
  border-radius: 0;
  margin-bottom: 0;
  background-image: url('https://images.unsplash.com/photo-1554224155-6726b3ff858f');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

#jumbotron-title {
  position: relative;
  animation: slideInLeft ease-in-out 1200ms;
}

#jumbotron-description {
  position: relative;
  animation: slideInRight ease-in-out 1200ms;
}

.jumbotron a {
  position: relative;
  opacity: 0;
  animation: 500ms ease-out 1200ms 1 normal forwards slideInUp;
  animation-fill-mode: forwards;
}

.jumbotron > .container {
  padding: 2.5em;
  background-color: #ffffffcd;
  border-radius: 8px;
}

/* Navigation bar */
.navbar {
  padding: 0.2rem 1rem;
}

.navbar-light .navbar-nav a.nav-link {
  color: #533f03;
  font-weight: 400;
  transition: ease-out 200ms;
}

.navbar-light .navbar-nav a.nav-link:hover {
  color: #533f03;
  font-weight: 600;
}

.dropdown-menu {
  transform: translateX(-38px);
}

/* Animations */
.up-on-hover {
  transition: 200ms;
}

.up-on-hover:hover {
  transform: translateY(-3px);
}

.fade-in {
  animation: fadeIn 600ms ease backwards normal;
  animation-delay: calc(var(--order) * 400ms);
}

.slide-in-right {
  position: relative;
  animation: slideInRight ease-in-out 1200ms;
}

.slide-in-left {
  position: relative;
  animation: slideInLeft ease-in-out 1200ms;
}

.opacity-0 {
  opacity: 0;
  transform: translateY(5px);
}

.category-type-container {
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
  animation: slideInUp 400ms ease forwards normal;
  animation-delay: calc(var(--order) * 400ms);
}

.category-type-container .overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: 0.5s ease;
  background-color: var(--light);
  color: var(--dark);
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Show the overlay by default and below the content on tablets and smartphones */
@media screen and (max-width: 768px) {
  .category-type-container .overlay {
    position: relative;
    height: 100%;
    width: 100%;
    opacity: 1;
    transition: 0.5s ease;
    background-color: var(--light);
    color: var(--dark);
    border-radius: 5px;
    display: block;
    justify-content: center;
    align-items: center;
  }
}

.overlay p {
  padding: 1.5rem;
}

.category-type-container:hover .overlay {
  opacity: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(300px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(-300px);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

main > section {
  /* margin-top: 2rem; */
  /* margin-bottom: 2rem; */
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

main > section:nth-child(even) {
  background-color: var(--light);
}

main > section:nth-child(odd) {
  background-color: white;
}

main:nth-child(3) {
  margin-top: 0;
}

.shakes:hover {
  animation: shake linear 0.5s infinite;
}

@keyframes shake {
  0% {
    transform: translate(1px, 1px) rotate(0deg);
  }
  10% {
    transform: translate(-1px, -2px) rotate(-1deg);
  }
  20% {
    transform: translate(-3px, 0px) rotate(1deg);
  }
  30% {
    transform: translate(3px, 2px) rotate(0deg);
  }
  40% {
    transform: translate(1px, -1px) rotate(1deg);
  }
  50% {
    transform: translate(-1px, 2px) rotate(-1deg);
  }
  60% {
    transform: translate(-3px, 1px) rotate(0deg);
  }
  70% {
    transform: translate(3px, 1px) rotate(-1deg);
  }
  80% {
    transform: translate(-1px, -1px) rotate(1deg);
  }
  90% {
    transform: translate(1px, 2px) rotate(0deg);
  }
  100% {
    transform: translate(1px, -2px) rotate(-1deg);
  }
}

h3 ~ p {
  transition: linear 200ms;
}

td {
  vertical-align: middle !important;
}

/* Footer */
footer {
  background-color: #e4e5e6;
  border-top: 1px solid rbga(0, 0, 0, 0.125);
  padding: 2rem 1.5rem 5rem;
}

footer p {
  font-weight: 300;
}

.footer-links {
  margin-bottom: 1rem;
  text-align: center;
}

.footer-links li {
  display: inline-block;
  margin-right: 0.2em;
}

.footer-links li a {
  color: #533f03;
  font-weight: bold;
  transition: ease-out 200ms;
}

.footer-links li:not(:first-child)::before {
  content: '|';
  color: #533f03;
  margin-right: 0.2em;
}
