* {
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  background: linear-gradient(135deg, #ffb3ba 0%, #ffdfdf 25%, #fff5f5 50%, #ffffff 75%, #f8f8ff 100%);
  min-height: 100vh;
  background-attachment: fixed;
}

/* Login page styles */
.login_container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100vw;
  background: linear-gradient(135deg, #ffb3ba 0%, #ffdfdf 25%, #fff5f5 50%, #ffffff 75%, #f8f8ff 100%);
}

.login_form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 400px;
  height: 300px;
  border: 1px solid #ccc;
  border-radius: 20px;
}

input[type="text"],
input[type="password"] {
  width: 300px;
  height: 40px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
  padding-left: 10px;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  border: 2px solid #000;
}

button[type="submit"] {
  width: 300px;
  height: 40px;
  border: none;
  border-radius: 5px;
  background-color: #000;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: #fff;
  color: #000;
  border: 2px solid #000;
}

.login_description {
  font-size: 14px;
  color: #ccc;
  margin: 10px 0;
  padding: 0 10px;
  text-align: center;
}

/* Birtday page styles */
.song {
  visibility: hidden;
}

.container {
  height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  text-align: center;
  visibility: hidden;
  width: 100vw;
  background: linear-gradient(135deg, #ffb3ba 0%, #ffdfdf 25%, #fff5f5 50%, #ffffff 75%, #f8f8ff 100%);
}

.container > div {
  left: 0;
  right: 0;
  top: 20vh;
  position: absolute;
}

.one {
  font-size: 4.5rem;
}

.two {
  font-size: 1.2rem;
  font-weight: lighter;
}

.three {
  font-size: 3rem;
}

.four .text-box {
  border: 2px solid #ccc;
  border-radius: 20px;
  margin: 0 auto;
  padding: 10px;
  position: relative;
  width: 600px;
}

.text-box p {
  margin: 0;
  text-align: left;
}

.text-box span {
  visibility: hidden;
}

.text-box .fake-btn {
  background-color: rgb(21, 161, 237);
  border-radius: 5px;
  bottom: -50px;
  right: 5px;
  position: absolute;
  color: #fff;
  padding: 0.5rem 1rem;
}

.five p {
  font-size: 2rem;
  position: absolute;
  left: 0;
  right: 0;
}

.idea-3 strong {
  border-radius: 3px;
  display: inline-block;
  padding: 3px 5px;
}

.five .idea-5 {
  font-size: 4rem;
}

.idea-5 span,
.idea-6 span,
.wish-hbd span {
  display: inline-block;
}

.idea-6 span {
  font-size: 15rem;
}

.six {
  position: relative;
  top: 10vh;
  z-index: 1;
}

.six img {
  display: inline-block;
  height: 350px;
  max-width: 100%;
  border-radius: 14px;
}

.six .hat {
  position: absolute;
  left: 41.5%;
  top: -35%;
  width: 60px;
  rotate: 14deg;
}

.ballons img {
  display: inline-block;
  position: absolute;
  z-index: 2;
}

.ballons img:nth-child(even) {
  left: -10%;
}

.ballons img:nth-child(odd) {
  right: -10%;
}

.ballons img:nth-child(3n + 0) {
  left: 30%;
}

.seven {
  position: relative;
  z-index: 2;
}

.seven .eight {
  height: 100vh;
  position: fixed;
  top: 0;
  width: 100vw;
}

.eight svg {
  left: 0;
  position: absolute;
  top: 0;
  visibility: hidden;
  width: 25px;
  z-index: -1;
}

.eight svg:nth-child(1) {
  fill: #bd6ecf;
  left: 5vw;
  top: 7vh;
}

.eight svg:nth-child(2) {
  fill: #7dd175;
  left: 35vw;
  top: 23vh;
}

.eight svg:nth-child(3) {
  fill: #349d8b;
  left: 23vw;
  top: 33vh;
}

.eight svg:nth-child(4) {
  fill: #347a9d;
  left: 57vw;
  top: 43vh;
}

.eight svg:nth-child(5) {
  fill: #c66053;
  left: 7vw;
  top: 68vh;
}

.eight svg:nth-child(6) {
  fill: #bfaa40;
  left: 77vw;
  top: 42vh;
}

.eight svg:nth-child(7) {
  fill: #e3bae8;
  left: 83vw;
  top: 68vh;
}

.eight svg:nth-child(8) {
  fill: #8762cb;
  left: 37vw;
  top: 86vh;
}

.eight svg:nth-child(9) {
  fill: #9a90da;
  left: 87vw;
  top: 94vh;
}

.wish-hbd {
  font-size: 3em;
  margin: 0;
  text-transform: uppercase;
}

.wish h5 {
  font-size: 2rem;
  font-weight: lighter;
  margin: 10px 0 0;
}

.nine p {
  font-size: 2rem;
  font-weight: lighter;
}

#replay {
  cursor: pointer;
  z-index: 3;
}

/* New styles for photo together section and love animation */
.six-half {
  position: relative;
  top: 15vh;
  z-index: 1;
  background: linear-gradient(135deg, #ffb3ba 0%, #ffdfdf 30%, #fff5f5 70%, #ffffff 100%);
  border-radius: 20px;
  padding: 50px;
  margin: 0 auto;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 15px 35px rgba(255, 182, 193, 0.3);
}

.photo-together {
  position: relative;
  text-align: center;
  height: 600px;
  overflow: hidden;
}

.photo-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.couple-picture {
  width: 300px;
  height: 400px;
  object-fit: cover;
  border-radius: 20px;
  border: 5px solid #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.love-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.heart {
  position: absolute;
  width: 80px;
  height: 80px;
  opacity: 0;
  pointer-events: none;
}

.heart.falling {
  top: -100px;
  animation: heartRain 3s linear infinite;
}

.heart.falling:nth-child(1) { left: 5%; animation-delay: 0s; }
.heart.falling:nth-child(2) { left: 15%; animation-delay: 0.5s; }
.heart.falling:nth-child(3) { left: 25%; animation-delay: 1s; }
.heart.falling:nth-child(4) { left: 35%; animation-delay: 1.5s; }
.heart.falling:nth-child(5) { left: 45%; animation-delay: 2s; }
.heart.falling:nth-child(6) { left: 55%; animation-delay: 2.5s; }
.heart.falling:nth-child(7) { left: 65%; animation-delay: 0.8s; }
.heart.falling:nth-child(8) { left: 75%; animation-delay: 1.3s; }

@keyframes heartRain {
  0% {
    opacity: 0;
    transform: translateY(-100px) rotate(0deg) scale(0.8);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(800px) rotate(360deg) scale(1.2);
  }
}

.love-text {
  margin-top: 30px;
  color: #333;
  text-align: center;
}

.love-text h3 {
  font-size: 2.2rem;
  margin: 0 0 15px 0;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
  font-weight: 600;
  color: #333;
}

.love-text p {
  font-size: 1.3rem;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(255,255,255,0.3);
  line-height: 1.4;
  max-width: 500px;
  margin: 0 auto;
  color: #444;
}

.love-sticker {
  position: absolute;
  top: -15%;
  right: 15%;
  width: 60px;
  height: 60px;
  z-index: 10;
  transform: rotate(-15deg);
  opacity: 1;
}

.photo-slide .love-sticker {
  position: absolute;
  top: -15%;
  right: 15%;
  width: 60px;
  height: 60px;
  z-index: 10;
  transform: rotate(-15deg);
}

/* Media Queries */
@media screen and (max-height: 1000px) {
  .six .hat {
    left: 40%;
  }
}

@media screen and (max-height: 800px) {
  .six .hat {
    left: 37%;
  }
}

@media screen and (max-height: 700px) {
  .six .hat {
    left: 32%;
  }
}

@media screen and (max-height: 850px) and (max-width: 450px) {
  .six .hat {
    left: 32%;
  }
}

@media screen and (max-width: 500px) {
  .login_form{
    width: 350px;
    height: 250px;
  }

  .container {
    width: 100%;
    padding: 0 10px;
  }

  .four .text-box {
    width: 90%;
  }

  .text-box .fake-btn {
    bottom: -50px;
    right: 5px;
  }

  .idea-5 span {
    display: block;
  }

  .idea-6 span {
    font-size: 10rem;
  }

  .six .hat {
    /* top: -20px; */
    width: 50px;
  }

  .wish-hbd {
    font-size: 2.2em;
  }

  .wish h5 {
    font-size: .8rem;
  }

  .nine p {
    font-size: 1.5rem;
    font-weight: lighter;
  }
  
  .six-half {
    width: 95%;
    padding: 30px 20px;
  }
  
  .photo-together {
    height: 500px;
  }
  
  .couple-picture {
    width: 250px;
    height: 320px;
  }
  
  .love-text h3 {
    font-size: 1.6rem;
  }
  
  .love-text p {
    font-size: 1.1rem;
  }
  
  .heart {
    width: 60px;
    height: 60px;
  }
  
  .heart.falling {
    top: -80px;
  }
  
  .love-sticker {
    width: 45px;
    height: 45px;
    top: -12%;
    right: 12%;
  }
  
  .photo-slide .love-sticker {
    width: 45px;
    height: 45px;
    top: -12%;
    right: 12%;
  }
}
