@import url("https://fonts.googleapis.com/css?family=Sacramento");

#card {
  height: 500px;
  width: 800px;
  margin: 5em auto;
  position: fixed;
  top: -15px;
  left: 25%;
  display: flex;
  visibility: hidden;
  
}

@media only screen and (max-width: 600px) {
  #card {
    width: 90%; 
    height: auto; 
    margin: 2em auto; 
    position: static;
    visibility: none; 
    top: 50px;
    
  }

  .side.side.one {
    display: none;
  }

  #card p {
    padding-left: 0 !important; 
    padding-right: 0 !important;
    font-size: 1.3em !important;
    
  }

  .valentines-day {
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

#card h2 {
  font-size: 3em;
  margin: 0;
  color: pink;
  text-align: center;
}

#card p {
  font-size: 1.5em;
  text-align: justify;
  padding-left: 30px; 
  padding-right: 30px; 
  color: #fff;
  
}

.side {
  background: #ffffff;
  height: 550px;
  width: 400px;
  padding: 10px;
}

.side.one {
  width: 320px;
  transform: skew(10deg, 20deg);
  background: linear-gradient(-90deg, #f16330, #ee633c 40%, #f15821);
  display: flex; 
  justify-content: center; 
  align-items: center; 
  transform: skew(10deg, 20deg);
  position: relative;
  overflow: hidden;
}

.side.two {
  transform: skew(10deg, -15deg);
  background: linear-gradient(-90deg, #f15821, #ee6331 40%, #f16330);
  height: 550px;
  width: 450px;
  
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-family: "Sacramento", cursive;
  background-color: #330404;
  overflow: hidden;
  
}

.valentines-day {
  position: relative;
  cursor: pointer;
  
}

.envelope {
  position: relative;
  filter: drop-shadow(0 0 25px rgba(0, 0, 0, 0.3));
}

.envelope:before {
  content: "";
  position: absolute;
  width: 254px;
  height: 254px;
  background-color: #aa2633;
  transform: rotate(-45deg);
  border-radius: 0 15px 0 0;
  left: -37px;
  top: -82px;
}

.envelope:after {
  content: "";
  position: absolute;
  background-color: #aa2633;
  width: 360px;
  height: 225px;
  left: -90px;
  top: 45px;
}

.heart {
    position: relative;
    background-color: #e01911;
    display: inline-block;
    height: 180px;
    top: 50px;
    left: 0;
    transform: rotate(-45deg);
    width: 180px;
    filter: drop-shadow(0 -10px 25px rgba(245, 0, 0, 0.664));
    box-shadow: 0 0 15px 5px rgba(255, 0, 0, 0.8); 
  }

.heart:before,
.heart:after {
  content: "";
  background-color: #e01911;
  border-radius: 50%;
  height: 180px;
  width: 180px;
  position: absolute;
  text-shadow: 0 0 5px #ff0000, 0 0 10px #ff0000, 0 0 15px #ff0000, 0 0 20px #ff0000; 
  animation: glow 1.5s infinite alternate; 
  
}

.heart:before {
  top: -100px;
  left: 0;
}

.heart:after {
  left: 100px;
  top: 0;
  
}

.front {
  position: absolute;
  width: 0;
  height: 0;
  border-right: 190px solid #6d0409;
  border-top: 113px solid transparent;
  border-bottom: 113px solid transparent;
  top: 44px;
  left: 80px;
  z-index: 4;
}

.front:before {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-left: 190px solid #6d0409;
  border-top: 113px solid transparent;
  border-bottom: 113px solid transparent;
  top: -113px;
  left: -170px;
}

.front:after {
  width: 0;
  height: 0;
  position: absolute;
  content: "";
  border-bottom: 150px solid #aa2633;
  border-right: 180px solid transparent;
  border-left: 180px solid transparent;
  top: -36px;
  left: -170px;
}

.text {
  position: absolute;
  font-family: 'Times New Roman', Times, serif;
  letter-spacing: 3.5px;
  text-align: center;
  color: rgb(255, 255, 255);
  z-index: 2;
  top: 80px;
  left: 15px;
  transition: 0.5s;
}

.valentines-day:hover .heart {
  transform: translateY(-50px) rotate(-45deg);
}

.valentines-day:hover .text {
  transform: translateY(-50px);
}

.side.one .fa-heart {
  font-size: 8em;
  color: rgb(255, 0, 0);
  animation: pulseHeart 1s ease-in-out infinite alternate;
  cursor: default;
  filter: drop-shadow(0 -10px 25px rgba(245, 0, 0, 0.781));
  transition: 0.5s;
}


@keyframes pulseHeart {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.2);
  }
}

@media screen and (max-width: 600px) {
  #card {
    width: 90%;
    max-width: 90%;
    margin: 2em auto;
  }

  .side {
    width: 90%;
    max-width: 90%;
    margin: 0 auto;
  }

  .text {
    font-size: 1em; 
  }
}

.page {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
  }
  
  .page.current {
    display: block;
    opacity: 1;
    text-shadow: 2px -1px 1px rgba(0, 0, 0, 0.61);  
  }
  
  button {
    margin: 10px;
    padding: 10px 20px;
    background-color: #f15821;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-family: 'Times New Roman', Times, serif;
  }
  
  button:hover {
    background-color: #f14f15;
  }
  
  .side.two {
    position: relative;
    overflow: hidden;
  }
  .page-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 20px auto; 
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    width: 215px;
  }
  span {
    color: #ffee00;
    text-shadow: 
        0 0 5px ,
        0 0 20px #ffee00;
}

 audio {
  height: 31px;
  width: 265px;
  background-color: #f7b55ee3; 
  padding: 12px 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  border-radius: 12px;

}
