/* Error Page */

.error404,
.error-404,
.error-content {
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  width: 100%;
}

.error404 {
  height: 100vh;
  color: #fff;
  background: #BE0F34 url('/wp-content/uploads/bg-404.jpg') center top no-repeat;
  background-size: contain;
    -webkit-background-size: contain;
}

.error404 .site-header {
  background: none;
}

.error404 #main-nav {
  display: none !important;
}

.error404 .logo-light {
  display: none;
  visibility: hidden;
  opacity: 0;
}

.error404 .logo-dark {
  display: block;
  visibility: visible;
  opacity: 1;
}

.error404 .link-ul-org .nav-link:before {
  background-image: url('/wp-content/uploads/logo-ul-icon-white.png');
}

.error404 #top-nav .link-ul-org .nav-link {
  border-width: 2px;
  border-color: #fff;
}

.error404 #top-nav #menu-side-menu {
  -webkit-flex-direction: row-reverse;
  -ms-flex-direction: row-reverse;
  flex-direction: row-reverse;
}

.error404 #top-nav li:nth-of-type(2),
.error404 #top-nav li:nth-of-type(3),
.error404 #top-nav li:nth-of-type(4) {
  opacity: 0;
  visibility: hidden;
}

.error404 .navbar-brand::after {
  display: none;
}

.error-content {
  width: 100%;
  height: 100vh;
  height: calc(100vh - 100px);
  align-content: center;
  -ms-align-items: center;
  align-items: center;
  justify-content: center;
  font-family: "Open Sans", Arial, sans-sans-serif;
  font-size: 20px; font-size: 2rem;
  font-weight: 400;
}

.error-404 .page-title {
  display: none;
}

.error-content a {
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  align-content: center;
  -ms-align-items: center;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  width: 250px;
	height: 50px;
  border-radius: 25px;
  color: #BE0F34;
  font-size: 18px; font-size: 1.8rem;
  font-weight: 600;
  background-color: #fff;
}

.error-content a:hover,
.error-content a:active {
  background-color: rgba(255,255,255,0.9);
  text-decoration: none;
}

.error404 .navbar-toggler .line {
  background-color: #fff;
}

.error404 .site-info {
  display: -webkit-flex;
  display: -ms-flex;
  display: flex;
  align-content: center;
  -ms-align-items: center;
  align-items: center;
  justify-content: center;
  width: 90%;
  margin: 0 auto;
}

.error404 .site-info p {
  text-align: center;
}

@media screen and (max-width: 1200px) {
  .error404 .navbar-toggler {
    display: none;
  }
  
  .error404 #masthead .navbar {
    justify-content: center;
  }
  
  .error404 .navbar-brand {
    display: -webkit-flex;
    display: -ms-flex;
    display: flex;
    margin-right: 0;
    padding-left: 0;
    justify-content: center;
  }
  
  .error404 .logo-dark {
    padding-right: initial;
    margin-left: initial; 
  }
}

@media screen and (max-width: 1000px) {
  
  .error404 {
    background: #BE0F34 url('/wp-content/uploads/bg-404-mobile.jpg') center center no-repeat;
    background-size: cover;
      -webkit-background-size: cover;
  }
  
  .error404 .site-info p {
    font-size: 14px; font-size: 1.4rem;
  }
  
  .error-content p {
    margin: 0 auto;
    width: 90%;
    text-align: center;
  }
  
}