html,
body {
  width: 100%;
  height: 100vh;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  width: 100%;
  height: 100%;
  background-color: #efefef;
  position: relative;
  perspective: 800px;
  font-family: "Source Sans Pro";
}

.main-content,
.login-form,
.shadow {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.main-content,
.shadow {
  z-index: 3;
  background-color: #fff;
  transform-style: preserve-3d;
  transition: 0.5s;
  transform-origin: bottom;
  will-change: all;
}
.main-content.tilted,
.shadow.tilted {
  transform: rotateX(100deg) scale(0.9) translateZ(0);
  top: -40px;
}

@-webkit-keyframes tilt {
  30%, 80% {
    transform: rotateX(100deg) scale(0.9) translateZ(0);
    top: -40px;
  }
}

@keyframes tilt {
  30%, 80% {
    transform: rotateX(100deg) scale(0.9) translateZ(0);
    top: -40px;
  }
}
@-webkit-keyframes tilt2 {
  30%, 80% {
    transform: rotateX(100deg) scale(0.9) translateZ(0);
    top: -15px;
    background-color: #adbbbf;
    opacity: 1;
    box-shadow: 10px 5px 30px 10px #adbbbf;
  }
}
@keyframes tilt2 {
  30%, 80% {
    transform: rotateX(100deg) scale(0.9) translateZ(0);
    top: -15px;
    background-color: #adbbbf;
    opacity: 1;
    box-shadow: 10px 5px 30px 10px #adbbbf;
  }
}
.shadow {
  z-index: 2;
  transform-style: preserve-3d;
  transition: 0.5s;
  transform-origin: bottom;
  opacity: 0;
}
.shadow.tilted {
  top: -15px;
  background-color: #adbbbf;
  opacity: 1;
  box-shadow: 10px 5px 30px 10px #adbbbf;
}

.inner-content {
  padding: 1.5rem;
  height: 100%;
}

.header {
  display: flex;
  justify-content: space-between;
}

h1 {
  display: flex;
  align-items: center;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 1px;
}
h1 i.fa {
  font-size: 15px;
  margin-bottom: 0.125rem;
  margin-right: 0.25rem;
}

.login-form {
  z-index: 1;
  background-color: #E0E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: "Source Sans Pro";
}
.login-container li {
  opacity: 0;
  transition: opacity 0.4s ease-in, transform 0.3s;
  transform: translateY(10px);
}
.login-container li.fade-in {
  opacity: 1;
  transform: translateY(0);
}
.login-container h1 {
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 1rem 0;
  letter-spacing: 0.2px;
}
.login-container input {
  padding: 0.75rem;
  border: none;
  margin-bottom: 0.5rem;
  width: 220px;
}
.login-container button {
  width: 220px;
  padding: 0.75rem;
  background: #343436;
  border: none;
  margin-top: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  text-transform: uppercase;
  color: #efefef;
  cursor: pointer;
  transition: 0.4s;
}
.login-container button:hover {
  opacity: 0.8;
}

@-webkit-keyframes fade-in {
  30%, 80% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  30%, 80% {
    opacity: 1;
    transform: translateY(0);
  }
}
.gallery-container {
  display: flex;
  width: 100%;
  margin-top: 1rem;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  width: 60%;
}
.gallery li {
  width: 49.5%;
  margin-bottom: 0.25rem;
  background-color: #000;
  cursor: pointer;
  overflow: hidden;
}
.gallery li.big {
  width: 100%;
}
.gallery li:nth-child(2) {
  margin-right: 0.25rem;
}
.gallery li:hover img {
  opacity: 1;
  transform: scale(1.05) translateZ(0);
}
.gallery img {
  width: 100%;
  opacity: 0.7;
  transition: opacity 0.4s, transform 2s;
  transform: translateZ(0);
}

.main-img {
  width: 40.3%;
  margin-left: 0.25rem;
  height: 100%;
  background-color: #000;
  cursor: pointer;
  overflow: hidden;
  transform: translateZ(0);
}
.main-img:hover img {
  opacity: 1;
  transform: scale(1.05) translateZ(0);
}
.main-img img {
  width: 100%;
  opacity: 0.7;
  transition: opacity 0.4s, transform 2s;
}

.login-btn {
  border: 2px solid black;
  background-color: transparent;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  transition: 0.3s;
  cursor: pointer;
  transform: translateZ(0);
}
.login-btn:hover {
  transform: scale(1.05) translateZ(0);
}

.close-btn {
  background: transparent;
  position: absolute;
  top: 0;
  right: 0;
  padding: 2rem;
  border: none;
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.4s;
}
.close-btn:focus {
  outline: none;
}
.close-btn:hover {
  opacity: 0.6;
}