
html, body, #container {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    
}

/* Transition */
div {
    transition: all 0.5s cubic-bezier(0.83, -0.43, 0.21, 1.42);
  }
  
  /* Text states (for js) */
  #hide {
    opacity: 0;
    top: calc(50% + 8em);
  }
  #show {
    opacity: 1;
    top: calc(50% + 6em);
  }
  
  /* General styles */
  /*
  body {
    background-color: #134;
    transition: background 0.5s ease-out;
    font-family: HelveticaNeue, Arial, Sans-serif;
  }*/
  /*
  body.on {
    background-color: pink;
  }*/

  .to-show{
    position: absolute;
    
    transform: translate(-50%, -50%);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
            align-items: center;
    -webkit-box-pack: center;
            justify-content: center;
    padding: 1rem;
  }
  
  *, *:after, *:before {
    box-sizing: border-box;
  }
  
  body {
    font-family: "DM Sans", sans-serif;
    background-color: #f2f5f7;
  }
  /*
  .container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    display: -webkit-box;
    display: flex;
    -webkit-box-align: center;
            align-items: center;
    -webkit-box-pack: center;
            justify-content: center;
    padding: 1rem;
  }
  */
  .post {
    display: -webkit-box;
    display: flex;
    text-decoration: none;
    color: inherit;
    max-width: 400px;
    position: relative;
    padding: 2rem;
    box-shadow: inset 0 0 0 4px #000, inset -4px -4px 0 6px #CCC;
    background-color: #FFF;
    cursor: pointer;
  }
  .post:before {
    position: absolute;
    left: 0;
    bottom: 0;
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background-color: #000;
    -webkit-transform-origin: 0 bottom 0;
            transform-origin: 0 bottom 0;
    -webkit-transform: scaleY(0);
            transform: scaleY(0);
    -webkit-transition: .4s ease-out;
    transition: .4s ease-out;
  }
  .post:hover .post-title {
    color: #FFF;
  }
  .post:hover:before {
    -webkit-transform: scaleY(1);
            transform: scaleY(1);
  }
  
  .post-title {
    position: relative;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.333;
    -webkit-transition: .4s ease-out;
    transition: .4s ease-out;
  }

  p{
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.333;
    -webkit-transition: .4s ease-out;
    transition: .4s ease-out;
  }
  
  body {
    padding: 50px;
    display: flex;
    flex-flow: wrap;
    font-family: "Ubuntu", sans-serif;
  }
  
  body * {
    box-sizing: border-box;
  }
  
  .card-container {
    flex: 250px;
    margin: 20px;
  }
  .card-container .card {
    font-weight: bold;
    position: relative;
    width: 100%;
    
  }
  .card-container .card a {
    padding: 20px;
    width: 100%;
    height: 450px;
    border: 2px solid black;
    background: white;
    text-decoration: none;
    color: black;
    display: block;
    transition: 0.25s ease;
  }
  
  .card-container .card a:hover {
    transform: translate(-30px, -30px);
    border-color: #5bc0eb;
  }
  .card-container .card a:hover .card--display {
    display: none;
  }
  .card-container .card a:hover .card--hover {
    display: block;
  }
  .card-container .card a .card--display i {
    font-size: 60px;
    margin-top: 260px;
    
  }
  .card-container .card a .card--display h2 {
    margin: 20px 0 0;
    
  }
  .card-container .card a .card--hover {
    display: none;
  }
  .card-container .card a .card--hover h2 {
    margin: 20px 0;
  }
  .card-container .card a .card--hover p {
    font-weight: normal;
    line-height: 1.5;
  }
  .card-container .card a .card--hover p.link {
    margin: 20px 0 0;
    font-weight: bold;
    color: #5bc0eb;
  }
  .card-container .card .card--border {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border: 2px dashed black;
    z-index: -1;
  }
  .card-container .card.card--dark a {
    color: white;
    background-color: black;
    border-color: black;
  }
  .card-container .card.card--dark a .card--hover .link {
    color: #fde74c;
  }