@import url("https://fonts.googleapis.com/css2?family=Cookie&family=Rouge+Script&display=swap");
@import url(https://fonts.googleapis.com/css?family=Nobile:400italic,700italic);
@import url(https://fonts.googleapis.com/css?family=Dancing+Script);

*, *:before, *:after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.svg {
  position: absolute;
  width: 0;
  height: 0;
}

.candle-container, .plate, .wrapper {
  display: grid;
  place-items: center;
}

.wrapper {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: linear-gradient(to top, #eee, transparent);
}

.greeting {
  font-family: "Cookie", cursive;
  font-size: 4rem;
  color: rgb(255, 255, 255);
  transform: scale(0);
}

.messengea {
  font-family: "Cookie", cursive;
  font-size: 4rem;
  color: rgb(255, 255, 255);
  
}

.message {
  font-family: "Cookie", cursive;
  font-size: 2.5rem;
  color: #777;
}

.plate {
  position: relative;
  width: 250px;
  height: 75px;
  background: #f1f1f1;
  margin-top: 0;
  border-radius: 50%;
  box-shadow: 0px 3px 5px 0px #aaa;
}

.cake-wrap {
  position: absolute;
  bottom: 50%;
}

.cake-base {
  position: relative;
  width: 200px;
  height: 50px;
  background: #c5a5c0;
}
.cake-base .base-front {
  position: absolute;
  width: 100%;
  height: 100%;
  background: inherit;
}
.cake-base .base-front:after {
  content: "";
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  height: 55px;
  transform: translatey(-50%);
  background: inherit;
  border-radius: 50%;
}
.cake-base .base-top {
  position: absolute;
  width: 100%;
  height: 65px;
  top: 0;
  transform: translatey(-50%);
  border-radius: 50%;
  background: inherit;
}
.cake-base .base-top:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  clip-path: polygon(0 0, 0% 50%, 100% 50%, 100% 0);
}
.cake-base .base-top:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border-bottom-color: black;
  clip-path: polygon(0 50%, 60% 50%, 60% 101%, 0 101%);
}

.cake-topping {
  position: absolute;
  bottom: 0%;
  width: 200px;
  height: 100px;
  z-index: 99;
}
.cake-topping .topping-front {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #b381ae 40%, transparent);
}
.cake-topping .topping-front .top-layer {
  height: 30%;
  background: #b381ae;
}
.cake-topping .topping-front .bottom-layer {
  position: relative;
  height: 70%;
  background: #b381ae;
  clip-path: url("#my-clip-path");
}
.cake-topping .topping-top {
  background: #b381ae;
  position: absolute;
  width: 100%;
  height: 65px;
  top: 0;
  transform: translatey(-50%);
  border-radius: 50%;
  z-index: 9;
}
.cake-topping .topping-top:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  clip-path: polygon(0 0, 0% 50%, 100% 50%, 100% 0);
}
.cake-topping .topping-top:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: inset 0 -1px 1px 2px rgba(200, 169, 195, 0.5);
  clip-path: polygon(10% 50%, 70% 50%, 70% 101%, 10% 101%);
}

.candle-container {
  width: 200px;
  position: absolute;
  bottom: 60%;
  z-index: 9999;
  opacity: 0;
}
.candle-container .candle-wrap {
  position: relative;
  width: 15px;
}
.candle-container .flame-wrap {
  position: relative;
  z-index: 99;
  width: 100%;
  background: #fcc56c;
  height: 30px;
  transform-origin: bottom center;
  transform: scale(0);
  clip-path: url(#my-flame-path);
}
.candle-container .candle-top {
  position: absolute;
  top: 0;
  left: 0;
  transform: translatey(-50%);
  width: 100%;
  height: 8px;
  background: white;
  border-radius: 50%;
  z-index: 9;
  background: radial-gradient(#eee, #f0abf0);
}
.candle-container .candle-base {
  position: relative;
  width: 100%;
  height: 75px;
  margin: 2px 0;
  background: repeating-linear-gradient(45deg, #eee, #f0abf0 20%);
}
.candle-container .candle-base:before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  background: #eee;
  transform: translateY(50%);
  height: 5px;
  width: 100%;
  z-index: -1;
  border-radius: 50%;
}
.candle-container .candle-base:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  height: 10px;
  width: 200%;
  border-radius: 50%;
  background: radial-gradient(#9e7199, #b381ae);
  z-index: -2;
}
.candle-container .star {
  width: 15px;
  height: 15px;
  position: absolute;
  background-color: orange;
  clip-path: url(#my-star-path);
  opacity: 0;
}
.candle-container .star:nth-of-type(1) {
  top: -20%;
  left: 30%;
}
.candle-container .star:nth-of-type(2) {
  top: 30%;
  left: 10%;
}
.candle-container .star:nth-of-type(3) {
  top: -10%;
  left: 85%;
}
.candle-container .star:nth-of-type(4) {
  top: 35%;
  left: 65%;
}
.candle-container .star:nth-of-type(5) {
  top: 55%;
  left: 90%;
}


/*the css of the card*/

* {
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
}

#card-front {
  color: #FFDFDF;
}

#card, #card-front, #card-inside {
  height: 600px;
}

.wrap {
    padding: 1.5em 2.5em;
    height: 100%;
}
#card-front, #card-inside {
  width: 50%;
  -webkit-box-shadow: 2px 2px 30px rgba(0, 0, 0, .25), 0 0 1px rgba(0, 0, 0, .5);
  -moz-box-shadow: 2px 2px 30px rgba(0, 0, 0, .25), 0 0 1px rgba(0, 0, 0, .5);
  box-shadow: 2px 2px 30px rgba(0, 0, 0, .25), 0 0 1px rgba(0, 0, 0, .5);
  position: absolute;
  left: 50%;
}


#card-inside .wrap {
    background: #FFEFEF;
    -webkit-box-shadow: inset 2px 0 1px rgba(0, 0, 0, .05);
    -moz-box-shadow: inset 2px 0 1px rgba(0, 0, 0, .05);
    box-shadow: inset 2px 0 1px rgba(0, 0, 0, .05);
}
#card {
    max-width: 960px;
    margin: 0 auto;
    transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    perspective: 5000px;
    -moz-perspective: 5000px;
    -webkit-perspective: 5000px;
    position: relative;
}

#card h1 {
    text-align: center;
    font-family: 'Nobile', sans-serif;
    font-style: italic;
    font-size: 70px;
    text-shadow: 
        4px 4px 0px rgba(0, 0, 0, .15),
        1px 1px 0 rgba(255, 200, 200, 255),
        2px 2px 0 rgba(255, 150, 150, 255),
        3px 3px 0 rgba(255, 125, 125, 255);
    color: #FFF;
}
#card-inside {
    font-size: 1.1em;
    line-height: 1.4;
    font-family: 'Nobile';
    color: #331717;
    font-style: italic;
}

p {
    margin-top: 1em;
}

p:first-child {
    margin-top: 0;
}

p.signed {
    margin-top: 1.5em;
    text-align: center;
    font-family: 'Dancing Script', sans-serif;
    font-size: 1.5em;
}

#card-front {
    background-color: #FF5555;
    background-image: linear-gradient(top, #FF5555 0%, #FF7777 100%);
    background-image: -moz-linear-gradient(top, #FF5555 0%, #FF7777 100%);
    background-image: -webkit-linear-gradient(top, #FF5555 0%, #FF7777 100%);
            transform-origin: left;
       -moz-transform-origin: left;
    -webkit-transform-origin: left;
            transition:         transform 1s linear;
       -moz-transition:    -moz-transform 1s linear;
    -webkit-transition: -webkit-transform 1s linear;
    position: relative;
}

#card-front .wrap {
            transition: background 1s linear;
       -moz-transition: background 1s linear;
    -webkit-transition: background 1s linear;
}

#card-front button {
  position: absolute;
  bottom: 1em;
  right: -12px;
  background: #F44;
  color: #FFF;
  font-family: 'Nobile', sans-serif;
  font-style: italic;
  font-weight: bold;
  font-size: 1.5em;
  padding: .5em;
  border: none;
  cursor: pointer;
          box-shadow: 2px 2px 3px rgba(0, 0, 0, .25), 0 0 1px rgba(0, 0, 0, .4);
     -moz-box-shadow: 2px 2px 3px rgba(0, 0, 0, .25), 0 0 1px rgba(0, 0, 0, .4);
  -webkit-box-shadow: 2px 2px 3px rgba(0, 0, 0, .25), 0 0 1px rgba(0, 0, 0, .4);
}

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

#close {
  display: none;
}

#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 {
            transform: rotateY(-90deg);
       -moz-transform: rotateY(-90deg);
    -webkit-transform: rotateY(-90deg);
}
#card.open-half #card-front .wrap {
    background-color: rgba(0, 0, 0, .5);
}

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

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

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

#card.open-fully #card-front .wrap *,
#card.close-half #card-front .wrap * {
   display: none;
}


@import url("https://fonts.googleapis.com/css2?family=Satisfy&display=swap");
/*----Variables ----*/
/*----Abstract Classes ----*/
.envelope .shadow, .envelope .paper .message, .envelope .paper, .envelope {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/*----Components ----*/
.envelope {
  background: #7979aa;
  width: 150px;
  height: 90px;
}
.envelope .cover {
  position: relative;
}
.envelope .cover .top,
.envelope .cover .side,
.envelope .cover .bottom {
  position: absolute;
  width: 150px;
  z-index: 2;
}
.envelope .cover .top {
  cursor: pointer;
  filter: drop-shadow(0px 2px 3px rgba(50, 0, 50, 0.1));
}
.envelope .cover .top .top-cover {
  height: calc(90px - 30px);
  background: #7979aa;
  -webkit-clip-path: polygon(0 0, 50% 100%, 100% 0);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
}
.envelope .cover .side {
  filter: drop-shadow(0px -1px 3px rgba(50, 0, 50, 0.2));
  height: 90px;
}
.envelope .cover .side .left,
.envelope .cover .side .right {
  position: absolute;
  background: #5d5d93;
  width: calc(150px / 2);
  height: 90px;
}
.envelope .cover .side .left {
  left: 0;
  -webkit-clip-path: polygon(0 0, 0 100%, 100% 50%);
  clip-path: polygon(0 0, 0 100%, 100% 50%);
}
.envelope .cover .side .right {
  right: 0;
  -webkit-clip-path: polygon(0 50%, 100% 0, 100% 100%);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}
.envelope .cover .bottom {
  top: calc(90px / 2);
  height: calc(90px / 2);
  background: #555587;
  -webkit-clip-path: polygon(0 100%, 50% 0%, 100% 100%);
  clip-path: polygon(0 100%, 50% 0%, 100% 100%);
}
.envelope .paper {
  position: relative;
  width: 120px;
  height: 70px;
  background: #dadae7;
  color: #50507f;
  border-radius: 3px;
  box-shadow: 0 0 2px rgba(50, 0, 50, 0.3);
  z-index: 1;
}
.envelope .paper .message {
  font-size: 12px;
  text-align: left;
}
.envelope .paper .close {
  cursor: pointer;
  position: absolute;
  font-size: 12px;
  top: 10px;
  right: 10px;
}
.envelope .shadow {
  height: 30px;
  width: 160px;
  top: 250%;
  border-radius: 50%;
  background-image: radial-gradient(rgba(0, 0, 50, 0.3), rgba(250, 250, 250, 0));
  filter: blur(5px);
}
.long_mess{
  line-height: 1.5;
  margin: 0 auto;
  z-index: 9999;
  padding: 5px;
  text-align: left;
  background-color: #e5eecc;
  padding: 50px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-20%);
  width: 1000px;
}

.longlongmess{
  line-height: 1.5;
  margin: 0 auto;
  z-index: 9999;
  padding: 5px;
  text-align: left;
  background-color: #e5eecc;
  padding: 50px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-20%);
  width: 1000px;
}