/* General Style */

html {
    min-height: 150%;
    background: rgb(254, 85, 85);
    background: linear-gradient(0deg, rgba(254, 85, 85, 1) 0%, rgba(158, 0, 0, 1) 100%);
}

* {
    font-family: 'Special Elite';
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    height: 100vh;
    width: 100%;
    background: rgb(254, 85, 85);
    background: linear-gradient(0deg, rgba(254, 85, 85, 1) 0%, rgba(158, 0, 0, 1) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .wrapper {
    height: 370px;
    width: 730px; 
    background-color: fef7d7;
    /*border: 5px solid #61412D;*/
    box-shadow: 0px 0px 10px 3px rgba(0,0,0,0.1);
    position: relative;
    /* 3D */
    perspective: 3000px;
  }
  
  .letter {
    width: 100%;
    height: 100%;
    padding: 25px;
    object-fit: cover;
    font-size: 36px;
  }
  
  .flip {
    box-shadow: 0px 0px 10px 3px rgba(0,0,0,0.1);
    background-color: #fef7d7;
    height: 70%;
    width: 100%;
    position: absolute;
    /* inner layout */
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
  }
  
  #top-flip {
    top: 0;
    left: 0;
    height:70%;
    /* border-right: 1px solid black; */
    /* transition */
    transform-origin: top;
    transition: transform 0.5s;
    z-index: 1;
  }

  #top-flip .text {
    text-transform:uppercase;
    transition: opacity 0.3s;
    font-size: 96px;
  }
  
  #bottom-flip {
    bottom: 0;
    right: 0;
    height:60%;
    /* transition */
    transform-origin: bottom;
    transition: transform 0.5s;
    z-index: 0;
  }
  
  .shape {
    border: 4px solid black;
    width: 100px;
    height: 130px;
  }
  
  .seal-wrapper {
    width: 100px;
    height: 100px;
   
    position: absolute;
    overflow: hidden;
    justify-content: center;
    display:flex;
  }
  
  #wax-seal-wrapper {
    top: 85%;
    transition: transform 0.5s;
  }

  #wax-seal {
    height:50px; 
    width: 50px;
    background-color: red;
    border-radius: 50%;
    display: inline-block;
    position: absolute;
    transition: transform 0.5s;
  }
  #wax-seal img {
    height: 100px;
    margin-top: -25px;
    margin-left: -25px;
  }
  
  #right-knob {
    top: 50%;
    left: 10px;
  }
  
  /* Door swing effect */
  .wrapper:hover #top-flip{
    transform: rotateX(140deg);
  }
  
  .wrapper:hover #bottom-flip{
    transform: rotateX(-140deg);
  }

  .wrapper:hover #top-flip .text {
    opacity: 0.1;
    transition: opacity 0.3s;
  }

  .wrapper:hover #wax-seal {
    top:-25%;
  }

  .wrapper:hover #wax-seal-wrapper {
     top: 100%;
  }