/* Set the colour and the position of the background and the elements */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #0953ff;
}

.container {
  position: relative;
}
.valentines {
  position: relative;
  top: 50px;
  cursor: pointer;
  animation: up 3s linear infinite;
}

/* Style the envelope and the card */
.envelope {
  position: relative;
  width: 300px;
  height: 10px;
  background-color: #6633CC;
  cursor: pointer;
  transition: transform 0.5s;
}
.envelope.closed{
  transform: rotateX(0deg)
}
.envelope.open {
 transform:rotateX(-90deg)
}
.flap {
  position: absolute;
  top:212;
  left:212;
  right:0;
  height: 50%;
  background-color: #6633CC;
}
.content {
  display: none; /* Başlangıçta gizli */
  padding: 10px;
  background-color: #6633CC; /* İçeriğin arka plan rengi */
  border: 1px solid #6633CC; /* İçeriğin kenar rengi */
}

.envelope:before {
  background-color: #6633CC;
  content: "";
  position: absolute;
  width: 212px;
  height: 212px;
  transform: rotate(45deg);
  top: -105px;
  left: 44px;
  border-radius: 30px 0 0 0;
}

.card {
  position: absolute;
  background-color: #eae2b7;
  width: 270px;
  height: 170px;
  top: 5px;
  left: 15px;
  z-index: 2;
  box-shadow: -5px -5px 100px rgba(0, 0, 0, 0.4);
}
.card2 {
  position: absolute;
  background-color: #eae2b7;
  width: 270px;
  height: 170px;
  top: -50px;
  left: 10px;
  z-index: 1;
  box-shadow: -5px -5px 100px rgba(0, 0, 0, 0.4);
  display:none;
  transition: 0.3s;
}
.card3 {
  position: absolute;
  background-color: #eae2b7;
  width: 270px;
  height: 170px;
  top: -50px;
  left: 10px;
  box-shadow: -5px -5px 100px rgba(0, 0, 0, 0.4);
  display:none;
  z-index: 1;
  transition: 0.3s;
}

.card:before {
  content: "";
  position: absolute;
  border: 3px solid #003049;
  border-style: dotted;
  width: 240px;
  height: 140px;
  left: 12px;
  top: 12px;
}
.card2:before {
  content: "";
  position: absolute;
  border: 3px solid #003049;
  border-style: dotted;
  width: 240px;
  height: 140px;
  left: 12px;
  top: 12px;
}
.card3:before {
  content: "";
  position: absolute;
  border: 3px solid #003049;
  border-style: dotted;
  width: 240px;
  height: 140px;
  left: 12px;
  top: 12px;
}

.text {
  position:absolute;
  font-family:  'Lato' , sans-serif ;
  font-size: 25px;
  font-style: italic;
  text-align: center;
  line-height: 35px;
  top: 35px;
  left: 50px;
  color: #003049;
}
.text2 {
  position: absolute;
  font-family:  'Lato' , sans-serif ;
  font-style: italic;
  font-size: 20px;
  text-align: center;
  line-height: 20px;
  top: 50px;
  left: 15px;
  color: #003049;
}

.text3 {
  position: absolute;
  font-family:  'Lato' , sans-serif ;
  font-style: italic;
  font-size: 15px;
  text-align: center;
  line-height: 20px;
  top: 32px;
  left: 5px;
  color: #003049;
}

.heart {
  background-color: #d62828;
  display: inline-block;
  height: 30px;
  margin: 0 10px;
  position: relative;
  top: 100px;
  left: 105px;
  transform: rotate(-45deg);
  width: 30px;
}

.heart:before,
.heart:after {
  content: "";
  background-color: #d62828;
  border-radius: 50%;
  height: 30px;
  position: absolute;
  width: 30px;
}

.heart:before {
  top: -15px;
  left: 0;
}

.heart:after {
  left: 15px;
  top: 0;
}
.front {
  position: absolute;
  border-right: 180px solid #6633CC;
  border-top: 95px solid transparent;
  border-bottom: 100px solid transparent;
  left: 120px;
  top: 5px;
  width: 0;
  height: 0;
  z-index: 10;
}

.front:before {
  position: absolute;
  content: "";
  border-left: 300px solid #6633CC;
  border-top: 195px solid transparent;
  left: -120px;
  top: -95px;
  width: 0;
  height: 0;
}
#panda-gif {
  width: auto; /* Genişliği 300 piksel yap */
  height: auto; /* Yüksekliği otomatik ayarla */
  position:absolute;
  top: 400px;
  left: 1200px;
}
#panda-gif2 {
  width: auto; /* Genişliği 300 piksel yap */
  height: auto; /* Yüksekliği otomatik ayarla */
  position:absolute;
  top: 400px;
  left: 100px;
}


/* Add the shadow */
.shadow {
  position: absolute;
  width: 330px;
  height: 25px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.3);
  bottom: 250px;
  left: 650px;
  animation: scale 3s linear infinite;
  z-index: -1;
}

/* To move the envelope up and down */
@keyframes up {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-30px);
  }
}

/* to scale the shadow */
@keyframes scale {
  0%,
  100% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(0.85);
  }
}
@keyframes sallama {
  0% {
      transform: translateY(0);
  }
  100% {
      transform: translateY(-10px);
  }
}
@keyframes elSalla {
  0% {
      transform: rotate(0deg);
  }
  100% {
      transform: rotate(20deg);
  }
}
