@import url("https://fonts.googleapis.com/css?family=Rubik:500");
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

body {
  font-size: 1.6rem;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100vw;
}

figure {
  width: 24rem;
  margin: var(--adjust-size);
  padding: 0.5rem 1rem 4rem 0.5rem;
  box-shadow: 0 0.2em 0.4em rgba(0, 0, 0, 0.25);
  background-color: #eee;
  transform-origin: center 0.22rem;
}

figure img {
  border: solid 1px rgb(142, 142, 142);
  margin-top: 2%;
}

figure .text-box{
  width: 21rem;
  height: 20rem;
  margin: 0rem;
  text-align: center;
}

figure .section-subheading {
  position: relative;
  width: 100%;
  height: 10%;
  margin-top: 1rem;
  font-size: 60%;
  color: #ebeaea;
  text-align: center;
  font-family: "Architects Daughter", cursive;
  font-family: "Shantell Sans", cursive;
}

figure .section-heading {
  position: relative;
  width: 100%;
  height: 10%;
  margin-top: 0rem;
  font-size: 60%;
  color: #ebeaea;
  text-align: center;
  font-family: "Architects Daughter", cursive;
  font-family: "Shantell Sans", cursive;
}

figure .paragraph {
  position: absolute;
  width: 20rem;
  height: 20rem;
  display: flex;
  font-size: 50%;
  padding: 1rem;
  margin-top: -1.8rem;
  overflow: hidden;
  color: #ebeaea;
  text-align: center;
  font-family: "Architects Daughter", cursive;
  font-family: "Shantell Sans", cursive;
}

figcaption{
  /* margin-top: 1rem; */
  /* padding: 1rem; */
  overflow: hidden;
  color: #393737;
  text-align: center;
  font-family: "Architects Daughter", cursive;
}



.top-container::before {
  background-image: url("../images/moanaElsacartoon.png");
  background-size: cover;
  background-repeat: no-repeat;
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: #ffffff;
  opacity: 0.2;
  position: fixed;
}

.image-container {
  /* margin-top: 20%; */
  width: 90%;
  height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

img {
  width: 20rem;
  height: 20rem;
  margin: 1.5rem;
  /* border-radius: 1rem; */
  transition: 0.5s;
}

[poster]{
  width: 20rem;
  height: 20rem;
  margin: 1.5rem;
  }

video {
  width: 20rem;
  height: 20rem;
  margin: 1.5rem;
  /* border-radius: 1rem; */
  transition: 0.5s;
}
.card-background{
  width: 20rem;
  height: 20rem;
  margin: 1.5rem;
  display: flex;
  background-color: #ed9de5;
  border: solid 1px rgb(142, 142, 142);
}

/* img:hover {
  transform: scale(1.1) rotate(3deg);
} */

/* video:hover {
  transform: scale(1.1) rotate(3deg);
} */

figure:hover {
  transform: scale(1.1) rotate(3deg);
}

.no-hover:hover{
  transform:rotate(0deg);
}

.view-image {
  position: fixed;
  z-index: 2;
  height: 100%;
  width: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgb(0, 0, 0, 0.9);
}

.view-image img {
  height: 40rem;
  width: 40rem;
  border-radius: 2rem;
}

.view-image span {
  color: white;
  font-size: 4rem;
  position: absolute;
  top: 2rem;
  right: 8rem;
  cursor: pointer;
}

::-webkit-scrollbar {
  width: 1.3rem;
}

::-webkit-scrollbar-thumb {
  border-radius: 1rem;
  background: #797979;
  transition: all 0.5s ease-in-out;
}

::-webkit-scrollbar-thumb:hover {
  background: #222224;
}

::-webkit-scrollbar-track {
  background: #f9f9f9;
}



/*Paint Button*/

.btn {
  margin-top: 21.5rem;
  margin-left: 12rem;
  cursor: pointer;
  width: 8rem;
  padding: 0.3rem;
  color: #fbdedb;
  background-color: #fbdedb;
  display: inline-block;
  -webkit-transition: 0.3s;
  -moz-transition: 0.3s;
  -o-transition: 0.3s;
  transition: 0.3s;
  font-family: sans-serif;
  font-weight: 800;
  font-size: 0.45em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  -webkit-box-shadow: 0em -0.3rem 0em rgba(0, 0, 0, 0.1) inset;
  -moz-box-shadow: 0em -0.3rem 0em rgba(0, 0, 0, 0.1) inset;
  box-shadow: 0em -0.3rem 0em rgba(0, 0, 0, 0.1) inset;
  position: absolute;
}
.btn:active {
  -webkit-transform: scale(0.8);
  -moz-transform: scale(0.8);
  -ms-transform: scale(0.8);
  -o-transform: scale(0.8);
  transform: scale(0.8);
}
.btn.block {
  display: block !important;
}
.pink {
  background-color: #ed9de5;
}

/*Paint Button End*/







/*Press Play and Pause Button start*/

.play-back{
  margin-top: 20.5rem;
  margin-left: -21rem;
  width: 4rem;
  height: 4rem;
  position: relative;
}
.play-btn {
  position: absolute;
  appearance: none;
  width: 4rem;
  height: 4rem;
  background: #ed9de5;
  cursor: pointer;
  outline: none;
}

.play-btn::before {
  content: "";
  position: absolute;
  width: 4rem;
  height: 4rem;
  background-color: #d913c5;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.play-btn:checked {
  animation: borderAnimate 700ms ease-in-out 1;
  animation-fill-mode: forwards;
}

@keyframes borderAnimate {
  0% {
    transform: rotate(0);
    background: conic-gradient(#dcdf26, transparent 20%);
  }

  80% {
    background: conic-gradient(#dcdf26, transparent 90%);
  }

  100% {
    transform: rotate(360deg);
    background: conic-gradient(#dcdf26, #dcdf26);
  }
}

.play-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  left: 60%;
  top: 50%;
  background-color: #ed9de5;
  transform: translate(-60%, -50%) rotate(90deg);
  clip-path: polygon(50% 15%, 0% 100%, 100% 100%);
  transition: all 400ms ease-in-out;
  cursor: pointer;
}

.play-btn:checked + .play-icon {
  clip-path: polygon(0 100%, 0% 100%, 100% 100%);
}

.pause-icon {
  position: absolute;
  width: 40px;
  height: 40px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.pause-icon::before {
  content: "";
  position: absolute;
  width: 0%;
  height: 100%;
  background-color: #ed9de5;
  left: 0;
}

.pause-icon::after {
  content: "";
  position: absolute;
  width: 0;
  height: 100%;
  background-color: #ed9de5;
  right: 0;
}

.play-btn:checked ~ .pause-icon::before {
  animation: reveal 300ms ease-in-out 350ms 1;
  animation-fill-mode: forwards;
}

.play-btn:checked ~ .pause-icon::after {
  animation: reveal 300ms ease-in-out 600ms 1;
  animation-fill-mode: forwards;
}

@keyframes reveal {
  0% {
    width: 0;
  }

  100% {
    width: 35%;
  }
}
/*Press Play and Pause Button end*/


/* Scroll-to-top button styling */
#scrollToTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #ed9de5;
  color: white;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  display: none;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#scrollToTopBtn:hover {
  background-color: #eb87e1;
  transform: translateY(-5px);
}

#scrollToTopBtn.show {
  display: flex;
}