@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,wght@0,400;1,700&family=Nanum+Myeongjo&display=swap');

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

body {
    font-family: Arial, sans-serif;
    background-color: #FFC3C3;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 0 20px;
}

/* Video overlay styles */
#background-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translate(-50%, -50%);
    opacity: 0.2;
    background-image: url('fallback2.gif'); /* Add this line with the correct path to your GIF */
    background-size: cover; /* Add this line to scale the background image to cover the container */
    background-position: center; /* Add this line to center the background image */
}

#fallback-gif {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: -1;
  transform: translate(-50%, -50%);
  opacity: 0.2;
}

@media screen and (max-width: 767px) {
  #fallback-gif {
      display: block;
  }
}

.main-content {
    position: relative;
    z-index: 1;
}

.logo {
    margin-bottom: 20px;
}

.logo img {
    max-width: 200px;
    width: 100%;
}

.email-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 350px;
}

.email-form input[type="email"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 25px;
    margin-bottom: 10px;
    width: 100%;
    background-color: #fff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.email-form button {
    padding: 10px 20px;
    background-color: #83CBFF;
    color: #000;
    border: 1px solid #83CBFF;
    border-radius: 25px;
    cursor: pointer;
    width: auto;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), inset 0 -2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease-in-out;
    font-family: 'Bodoni Moda', serif;
    font-weight: 700;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}

.email-form button:hover {
    background-color: #69b4f7;
    border-color: #69b4f7;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), inset 0 -3px 0 rgba(0, 0, 0, 0.1);
}

.email-form button:active {
    background-color: #57a1e0;
    border-color: #57a1e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), inset 0 1px 2px rgba(0, 0, 0, 0.15);
}


.animated-p {
  font-family: 'Bodoni Moda', serif;
  font-size: 20rem;
  font-weight: 700;
  color: #000;
  perspective: 1000px;
  transform-style: preserve-3d;
  text-shadow: 2px 2px 0 #000, 4px 4px 0 #000, 6px 6px 0 #000, 8px 8px 0 #000, 10px 10px 0 #000;
}

@keyframes rotateP {
  0% {
      transform: rotateX(0) rotateY(0) rotateZ(0);
  }
  100% {
      transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
  }
}

.animated-p {
  animation: rotateP 5s linear infinite;
}

/* Raining "P" letters styles */
#raining-letters {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: -1;
  height: 100%;
}

.rain-letter {
  font-family: 'Bodoni Moda', serif;
  font-weight: 700;
  position: absolute;
  font-size: 2rem;
  text-shadow: 2px 2px 0 currentColor, 4px 4px 0 currentColor;
  opacity: 0.8;
  animation: rain 6s linear infinite;
}

@keyframes rain {
  0% {
      transform: translateY(-150%);
  }
  100% {
      transform: translateY(150%);
  }
}

#notification {
  font-family: 'Bodoni Moda', serif;
  padding-bottom: 60px;
  text-align: center; /* Add this line to center the text */
}

/* Media query for mobile devices */
@media screen and (max-width: 768px) {
  .animated-p {
      font-size: 10rem;
  }

  .email-form {
      padding: 0 20px;
  }

  .rain-letter {
      font-size: 1rem;
  }
  
  #background-video {
      display: none;
  }
}


