.navbar-nav-middle {
    float:none;
    margin:0 auto;
    display: block;
    text-align: center;
}

.navbar-nav-middle > li {
    display: inline-block;
    float:none;
}

.bg-white {
    background-color:#fff;
    padding-top:100px;
    padding-bottom:100px;
}

.bg-body {
    padding-top:100px;
    padding-bottom:100px;
    text-align: right;
}

.carousel-bg-body {
    padding-top:50px;
}

.bg-black {
    background-color:#000;
    padding-top:100px;
    padding-bottom:100px;
}

.carousel-caption-dark {
    position:default   ;
    right:15%;
    bottom:20px;
    left:15%;
    z-index:10;
    padding-bottom:20px;
    color:#000;
    text-align: center;
}


.carousel-inner > .carousel-item > a {
    margin: 0 auto;
    text-align: center;
}

.carousel-inner > .carousel-item > div {
    margin: 0 auto;
    text-align: center;
}

/* Center the loader */
#loader {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border: 16px solid #f3f3f3;
  border-radius: 50%;
  border-top: 16px solid #3498db;
  width: 120px;
  height: 120px;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

@-webkit-keyframes spin {
  0% { -webkit-transform: rotate(0deg); }
  100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.row {
  display: flex;
  flex-wrap: wrap;
  padding: 0 4px;
}

/* Create four equal columns that sits next to each other */
.column {
  flex: 25%;
  max-width: 25%;
  padding: 0 4px;
}

.column img {
  margin-top: 8px;
  vertical-align: middle;
}

/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 800px) {
  .column {
    flex: 50%;
    max-width: 50%;
  }
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .column {
    flex: 100%;
    max-width: 100%;
  }
}

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
  background-color: #008CBA;
}

.container:hover .overlay {
  opacity: 1;
}

.overlay-text {
  color: white;
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}
