:root {
    --card-height: 450px;
    --card-width: calc(var(--card-height) / 1.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    background: #EEEEEE;
    background-size: cover;
    font-family: 'Montserrat', 'Open Sans', sans-serif;
    color: #4d4d4f;
}

nav {
    width: 100%;
    background: rgba(14, 14, 14, 0.4);
    padding: 16px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
}

.menuItems {
    list-style: none;
    display: flex;
    justify-content: center;
}

.menuItems li {
    margin: 0 50px;
}

.menuItems a {
    text-decoration: none;
    color: #FFFFFF;
    font-size: 24px;
    font-weight: 600;
    transition: all 0.5s ease-in-out;
    position: relative;
    text-transform: uppercase;
}

.menuItems a::before {
    content: attr(data-item);
    transition: 0.5s;
    text-decoration: underline;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 0;
    overflow: hidden;
}

.menuItems a:hover::before {
    width: 100%;
    transition: all 0.5s ease-in-out;
}

div {
    text-align: center;
}

.title {
    margin-top: 50px;
}

h1 {
    margin-bottom: 10px;
}

.cards-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    flex-grow: 1;
    width: 100%;
}

.card {
    width: var(--card-width);
    height: var(--card-height);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 0 36px;
    perspective: 2500px;
    margin: 20px;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wrapper {
    transition: all 0.5s;
    position: absolute;
    width: 100%;
    z-index: -1;
}

.card:hover .wrapper {
    transform: perspective(900px) translateY(-5%) rotateX(25deg) translateZ(0);
    box-shadow: 2px 35px 32px -8px rgba(0, 0, 0, 0.75);
}

.wrapper::before,
.wrapper::after {
    content: "";
    opacity: 0;
    width: 100%;
    height: 80px;
    transition: all 0.5s;
    position: absolute;
    left: 0;
}

.wrapper::before {
    top: 0;
    height: 100%;
    background-image: linear-gradient(
        to top,
        transparent 46%,
        rgba(12, 13, 19, 0.5) 68%,
        rgba(12, 13, 19) 97%
    );
}

.wrapper::after {
    bottom: 0;
    opacity: 1;
    background-image: linear-gradient(
        to bottom,
        transparent 46%,
        rgba(12, 13, 19, 0.5) 68%,
        rgba(12, 13, 19) 97%
    );
}

.card:hover .wrapper::before,
.wrapper::after {
    opacity: 1;
}

.card:hover .wrapper::after {
    height: 120px;
}

.title {
    width: 100%;
    transition: transform 0.5s;
}

.card:hover .title {
    transform: translate3d(0%, -50px, 100px);
}

.character {
    width: 100%;
    opacity: 0;
    transition: all 0.5s;
    position: absolute;
    z-index: -1;
}

.card:hover .character {
    opacity: 1;
    transform: translate3d(0%, -30%, 100px);
}

button, input, textarea {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 1.4px;
  }

form {
  flex: 1;
}

textarea {
    resize: none;
}

.background {
    display: flex;
    min-height: 100vh;
  }

.container {
    margin: auto;
    padding: 10px;
    width: 900px;
    height: 500px;
  }
  
  .screen {
    position: relative;
    background: #EEEEEE;
    border-radius: 15px;
    width: 100%;
    height: 100%;
  }
  
  .screen:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    bottom: 0;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
    z-index: -1;
  }
  
  .screen-header {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: #4d4d4f;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
  }
  
  .screen-header-left {
    margin-right: auto;
  }
  
  .screen-header-button {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 3px;
    border-radius: 8px;
    background: white;
  }
  
  .screen-header-button.close {
    background: #C96868;
  }
  
  .screen-header-button.maximize {
    background: #E4C087;
  }
  
  .screen-header-button.minimize {
    background: #ABBA7C;
  }
  
  .screen-header-right {
    display: flex;
  }
  
  .screen-header-ellipsis {
    width: 3px;
    height: 3px;
    margin-left: 2px;
    border-radius: 8px;
    background: #999;
  }
  
  .screen-body {
    display: flex;
    width: 100%;
    height: 100%;
  }
  
  .screen-body-item {
    flex: 0 0 300px;
    padding: 50px;
  }

  .screen-body-item-right {
    flex: 1;
    display: flex;
    width: 100%;
    padding: 50px 50px 10px 10px;
    height: 90%;
  }
  
  .screen-body-item.left {
    display: flex;
    flex-direction: column;
    padding: 50px 50px 10px 10px;
    height: 90%;
  }
  
  .app-title {
    display: flex;
    flex-direction: column;
    position: relative;
    color: #C96868;
    font-size: 26px;
    font-weight: 500;
    align-items: start;
  }
  
  .app-title:after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background: #C96868;
  }
  
  .app-contact {
    margin-top: auto;
    font-size: 8px;
    color: #888;
  }

  .app-form {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }
  
  .app-form-group {
    margin-bottom: 15px;
  }
  
  .app-form-group.message {
    margin-top: 40px;
    display: flex;
    flex-grow: 1;
    height: 50%;
  }
  
  .app-form-group.buttons {
    margin-bottom: 0;
    text-align: right;
  }

  .send-button {
    padding-left: 20px;
  }
  
  .app-form-control {
    width: 100%;
    height: 100%;
    padding: 10px 0;
    background: none;
    border: none;
    border-bottom: 1px solid #666;
    color: #B17457;
    font-size: 14px;
    text-transform: uppercase;
    outline: none;
    transition: border-color .2s;
  }
  
  .app-form-control::placeholder {
    color: #666;
  }
  
  .app-form-control:focus {
    border-bottom-color: #ddd;
  }
  
  .app-form-button {
    background: none;
    border: none;
    color: #C96868;
    font-size: 14px;
    cursor: pointer;
    outline: none;
  }
  
  .app-form-button:hover {
    color: #C96868;
  }
  
  @media screen and (max-width: 520px) {
  
    .screen-body-item.left {
      margin-bottom: 10px;
      flex: 0 0 100px;
      padding: 10px 0 0 0;
    }

    .screen-body-item-right {
      padding-top: 0;
      padding-right: 0;
    }

    .screen {
      height: 550px;
    }
  
    .app-title {
      flex-direction: row;
    }
  
    .app-title span {
      margin-right: 12px;
    }
  
    .app-title:after {
      display: none;
    }
  }
  
  @media screen and (max-width: 700px) {
    .screen-body {
      padding: 40px;
      flex-direction: column;
    }

    .screen-body-item.left {
      margin-bottom: 10px;
      flex: 0 0 100px;
      padding: 10px 0 0 0;
    }

    .screen-body-item-right {
      padding-top: 0;
      padding-right: 0;
    }
  
    .screen-body-item {
      padding: 0;
    }

    .app-form-group.message {
      height: 40%;
    }
  }

@media screen and (max-width: 900px) {

  .container {
    width: 90%;
  }
}