@import url('https://fonts.googleapis.com/css?family=Lobster|Indie+Flower|Squada+One|Patrick+Hand&display=swap');
/*@import url('https://fonts.googleapis.com/css?family=');*/
/*@import url('https://fonts.googleapis.com/css?family=');*/
/*<link href="https://fonts.googleapis.com/css?family=" rel="stylesheet">*/
* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.p {
  margin-bottom: 16px;
}

.p:last-of-type {
  margin-bottom: 0px;
}

.p img {
  width: 85%;
}

body {
  background: #7F7FD5;  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right, #91EAE4, #86A8E7, #7F7FD5);  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #91EAE4, #86A8E7, #7F7FD5); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

::-webkit-scrollbar-track
{
  background-color: rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar
{
	width: 4px;
}

::-webkit-scrollbar-thumb
{
	border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,.3);
  box-shadow: inset 0 0 6px rgba(0,0,0,.3);
  background-color: #dfdfdf;
}

#card {
  height: 92vh;
}

#card-inside, #card-front {
  height: 42vh;
}

#card-inside {
  top: 50%;
  transition: top 1s linear;
}

#card-front {
  color: #FFDFDF;
  z-index: 10;
  /*height: 65vh;*/
}

/*.huhu {*/
  /*height: 46vh !important;*/
/*}*/

.hehe {
  top: 50% !important;
}

.wrap {
  margin: auto;
  height: 100%;
  padding: 3vh;
}

#card-front, #card-inside {
  -webkit-box-shadow: 2px 2px 30px rgba(0, 0, 0, 0.25), 0 0 1px rgba(0, 0, 0, 0.5);
          box-shadow: 2px 2px 30px rgba(0, 0, 0, 0.25), 0 0 1px rgba(0, 0, 0, 0.5);
  position: absolute;
}

#card-inside .wrap {
  background: #FFEFEF;
  -webkit-box-shadow: inset 2px 0 1px rgba(0, 0, 0, 0.05);
          box-shadow: inset 2px 0 1px rgba(0, 0, 0, 0.05);
  height: 100%;
  padding: 2vh 3vh;
}

.greeting {
  font-size: 4vh;
}

#text-inside {
  margin-top: 1vh;
  font-size: 2.6vh;
  line-height: 3vh;
  padding: 10px;
  border: 2px dashed #E91E63;
  border-radius: 2px;
  height: 23vh;
  overflow: auto;
  text-align: center;
}

.signed {
  text-align: right;
}

.signed.top {
  margin-top: 1.3vh;
  font-size: 23px;
}

.signed.btm {
  margin-top: 0;
  font-size: 18px;
}

.card-front_inside [aria-label][data-balloon-length="medium"]:after {
  width: 12vh;
}

#card {
  margin: 0;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  -webkit-perspective: 5000px;
          perspective: 5000px;
  -webkit-transition: -webkit-transform 1s ease-in-out;
  transition: -webkit-transform 1s ease-in-out;
  transition: transform 1s ease-in-out;
  transition: transform 1s ease-in-out, -webkit-transform 1s ease-in-out;
}

#card h1 {
  margin-top: 4vh;
  line-height: 7vh;
  text-align: center;
  font-family: 'Lobster', cursive;
  font-style: italic;
  font-size: 7vh;
  text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.15), 1px 1px 0 #ffc8c8, 2px 2px 0 #ff9696, 3px 3px 0 #ff7d7d;
  color: #FFF;
}

#card h4 {
  text-align: center;
  margin-top: -1vh;
  font-family: 'Squada One', cursive;
  font-size: 4vh;
}

#card-inside {
  line-height: 1.4;
  font-family: 'Patrick Hand', cursive;
  color: #331717;
  width: 100%;
}

#card-front {
  top: 50%;
  background-color: #ee9ca7;
  background-image: -webkit-gradient(linear, right top, right top, from(#FF5555), to(#FF7777));
  background-image: linear-gradient(right, #FF5555 0%, #FF7777 100%);
  -webkit-transform-origin: top;
          transform-origin: top;
  -webkit-transition: -webkit-transform 1s linear;
  transition: -webkit-transform 1s linear;
  transition: transform 1s linear;
  transition: transform 1s linear, -webkit-transform 1s linear;
  position: relative;
  -webkit-transform-style: preserve-3d;
          transform-style: preserve-3d;
  -webkit-perspective: 5000px;
          perspective: 5000px;
}

#card-front .wrap {
  -webkit-transition: background 1s linear;
  transition: background 1s linear;
  /*-webkit-backface-visibility: hidden;*/
          /*backface-visibility: hidden;*/
}

#card-front button {
  position: absolute;
  bottom: -3vh;
  right: calc(50% - 5vh);
  width: 10vh;
  background: #F5F5F5;
  font-size: 3vh;
  padding: 1vh 2vh;
  border: none;
  cursor: pointer;
  -webkit-box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.25), 0 0 1px rgba(0, 0, 0, 0.4);
          box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.25), 0 0 1px rgba(0, 0, 0, 0.4);
}

#card-front button:hover,
#card-front button:focus {
  background: #F5F5F5;
}

#close {
  display: none;
}

#card.open-fully {
  -webkit-transform: translateY(0%);
          transform: translateY(0%);
}

#card.open-fully #close,
#card-open-half #close {
  display: inline;
}

#card.open-fully #open {
  display: none;
}

#card.open-half #card-front,
#card.close-half #card-front {
  -webkit-transform: rotateX(90deg);
          transform: rotateX(90deg);
}

#card.open-half .shadow {
  background-color: rgba(0, 0, 0, 0.5);
}

#card.open-fully #card-front,
#card.close-half #card-front {
  background: #FFEFEF;
}

#card.open-fully #card-front {
  -webkit-transform: rotateX(180deg);
          transform: rotateX(180deg);
}

#card.open-fully .shadow {
  background-color: rgba(0, 0, 0, 0);
}

.card-front_inside {
  position: absolute;
  top: 10%;
  bottom: 0;
  left: 27%;
  right: 0;
  height: 40%;
  margin: auto;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  -webkit-transform: translateZ(-1px) rotateX(-180deg);
          transform: translateZ(-1px) rotateX(-180deg);
  background-color: #ffefef;
}

.memo {
  padding: 12vh;
  margin: 3vh;
}

.shadow {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  -webkit-transform: translateZ(-2px) rotateX(180deg);
          transform: translateZ(-2px) rotateX(180deg);
  pointer-events: none;
  -webkit-transition: background 1s linear;
  transition: background 1s linear;
}

.polaroid {
  width: 80%;
  height: 150%;
  max-width: 250px;
  position: absolute;
  float: left;
  background: #1e1c18;
  border: 1vh solid white;
  border-bottom: 5vh solid white;
  -webkit-box-shadow: 8px 8px 6px -6px rgba(0,0,0,0.75);
  -moz-box-shadow: 8px 8px 6px -6px rgba(0,0,0,0.75);
  box-shadow: 8px 8px 6px -6px rgba(0,0,0,0.75);
  overflow: hidden;
  left: 8%;
  margin: auto;
  -webkit-transform: rotate(5deg);
          transform: rotate(5deg);
  clear: both;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}

.polaroid img,
.polaroid .img {
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  background-position: center;
  background-size: cover;
  -webkit-animation: fade-in 20s ease-in;
          animation: fade-in 20s ease-in;
  -webkit-animation-iteration-count: 1;
          animation-iteration-count: 1;
}

@-webkit-keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


.show {
  display: block;
}

.hidden {
  display: none;
}