.gift-experience__greetingcardwrapper {
  position: relative;
  width: 100%;
  display: block;
}

.greeting-card-container {
  position: relative;
  perspective: 100vw;
  perspective-origin: center center;
  transition: all 1s ease-in;
  width: 63%;
  height: 460px;
}

@media (max-width: 1100px) {
  .greeting-card-container {
    height: 400px;
  }
}

@media (max-width: 1000px) {
  .greeting-card-container {
    height: 350px;
  }
}

@media (max-width: 850px) {
  .greeting-card-container {
    height: 320px;
    width: 80%;
  }
}

@media (max-width: 699px) {
  .greeting-card-container {
    width: 93%;
  }
}

@media (max-width: 599px) {
  .greeting-card-container {
    height: 250px;
  }
}

.greeting-card-front {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  background: none;
  width: 100%;
  height: 100%;
  transition: all 1s ease-in;
}

.front-left {
  flex: 1;
}

.front-right {
  flex: 1;
}

.front-image {
  box-shadow: 0px 0px 5px 2px lavender, 0px 0px 0px 2px grey;
  max-width: 100%;
}

.greeting-card-back {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  flex: 1;
  background: none;
  width: 100%;
  height: 100%;
  transition: all 1s ease-in;
}

.back-left {
  flex: 1;
}

.back-right {
  flex: 1;
  background: var(--greetingcard_back_image) no-repeat center center, white;
  background-size: cover;
  transform: rotateY(-180deg);
  box-shadow: 0 5px 10px 2px grey;
}

.greeting-card-back-still {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  flex: 1;
  background: none;
  width: 100%;
  height: 100%;
  transition: all 1s ease-in;
}

.back-still-left {
  flex: 1;
}

.back-still-right {
  flex: 1;
}

.back-still-shadow {
  background: #fff;
  box-shadow: 0px 0px 5px 2px lavender, 0px 0px 0px 2px grey;
  box-shadow: 0 5px 10px 2px grey;
  height: 100%;
}

.back-still-shadow-message-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  background: linear-gradient(to left, transparent, #cccccc10, #00000020);
}

.back-still-shadow-message {
  flex: 1;
  padding: 1em;
  word-break: break-all;
  scrollbar-width: thin;
  scrollbar-color: #ececec #2d2d2d10;
  overflow-y: auto;
  margin: 10px 0 75px 0;
}

.greeting_message {
  width: 100%;
  height: 100%;
  display: grid;
  justify-items: center;
  align-items: center;
}

.back-still-shadow-message::-webkit-scrollbar {
  width: 0.5rem;
  height: 0;
  right: 0.25rem;
}

.back-still-shadow-message::-webkit-scrollbar-track {
  opacity: 0.5;
  border-radius: 4px;
  background-color: var(--primary-light-color);
  border-right: 4px white solid;
  border-top: 5px white solid;
  border-bottom: 5px white solid;
}

.back-still-shadow-message::-webkit-scrollbar-thumb {
  background-color: var(--secondary-light-color);
  border-radius: 4px;
  background-clip: padding-box;
  border-right: 4px white solid;
  border-top: 5px transparent solid;
  border-bottom: 5px transparent solid;
}

#greeting_message_id {
  white-space: pre-line;
  text-align: center;
}

.greeting-card-front {
  z-index: 100;
}

.greeting-card-rotate-in-place-slide {
  transform: translateY(1000px);
}

.greeting-card-front-rotate {
  /* z-index: 99; */
  transform: rotateY(-180deg);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* Safari */
}

.greeting-card-back-still-rotate {
  /* z-index: 100; */
  transform: rotateY(-180deg);
  transform-style: preserve-3d;
}

.greeting-card-front-hover {
  z-index: 99;
  transform: rotateY(-180deg);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  /* Safari */
}

.front-left,
.front-right,
.back-left,
.back-right,
.back-still-left,
.back-still-right {
  height: 100%;
}

.greeting-card-back {
  z-index: 99;
}

.greeting-card-back-hover {
  transform: rotateY(-180deg);
  transform-style: preserve-3d;
}

.greeting-card-back-still .back-still-left {
  z-index: 100;
}

.greeting-card-back-still .back-still-right {
  z-index: 99;
}

.greeting-card-back-still-hover .back-still-left {
  z-index: 99;
}

.greeting-card-back-content-hover {
  transform: rotateY(180deg);
}

.front-image {
  min-height: 100%;
}

.opengift-wrapper-link {
  position: absolute;
  top: calc(100% - 55px);
  right: 1rem;
  outline: none;
  width: 55px;
  height: 55px;
  font-size: 0.6rem;
  font-family: var(--primary-bold-font);
  text-transform: uppercase;
  text-align: center;
}

.opengift-wrapper-link img {
  width: 100%;
  margin-bottom: 0.15rem;
}
