html {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Work Sans", sans-serif;
}

.container {
  height: 100vh;
  width: 100vh;
  margin: 0 auto;
  text-align: center;
  visibility: hidden;
  position: relative;
  overflow: hidden;
}

.container div.six {
  top: 10vh;
  z-index: 1;
}

.container div.seven,
.container div.eight {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
}

.container > div {
  position: absolute;
  left: 0;
  right: 0;
  top: 20vh;
}

.one {
  font-size: 4.5rem;
}

.one > img {
  vertical-align: middle;
  margin-bottom: 10px;
  max-width: 100%;
  height: auto;
}

.two {
  font-size: 1.2rem;
  font-weight: lighter;
}

.three {
  font-size: 3rem;
}

.four .text-box {
  width: 600px;
  margin: 0 auto;
  border: 3px solid #aaa;
  border-radius: 5px;
  padding: 10px;
  position: relative;
}

.text-box p {
  margin: 0;
  text-align: left;
}

.text-box span {
  visibility: hidden;
}

.text-box .fake-btn {
  position: absolute;
  right: 5px;
  bottom: 5px;
  color: #fff;
  background-color: rgb(21, 161, 237);
  padding: 5px 8px;
  border-radius: 3px;
}

.five p {
  font-size: 2rem;
  position: absolute;
  left: 0;
  right: 0;
}

.idea-3 strong {
  padding: 3px 5px;
  border-radius: 3px;
  display: inline-block;
}

.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;
}

.six img {
  display: inline-block;
  width: 220px;      /* صغري أو كبري الرقم حسب ما يعجبك */
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
}

.six .hat {
  position: absolute;
  width: 55px;   /* كان 80px */
  top: -25px;    /* عدليها حسب مكانها */
  left: 42%;
}

.baloons img {
  display: inline-block;
  position: absolute;
}

.baloons img:nth-child(even) {
  left: -10%;
}

.baloons img:nth-child(odd) {
  right: -10%;
}

.baloons img:nth-child(3n + 0) {
  left: 30%;
}

.eight svg {
  width: 25px;
  position: absolute;
  top: 0;
  left: 0;
  visibility: hidden;
  z-index: -1;
}

.eight svg:nth-child(1) {
  top: 7vh;
  left: 5vw;
  fill: #bd6ecf;
}

.eight svg:nth-child(2) {
  top: 23vh;
  left: 35vw;
  fill: #7dd175;
}

.eight svg:nth-child(3) {
  top: 33vh;
  left: 23vw;
  fill: #349d8b;
}

.eight svg:nth-child(4) {
  top: 43vh;
  left: 57vw;
  fill: #347a9d;
}

.eight svg:nth-child(5) {
  top: 68vh;
  left: 7vw;
  fill: #c66053;
}

.eight svg:nth-child(6) {
  top: 42vh;
  left: 77vw;
  fill: #bfaa40;
}

.eight svg:nth-child(7) {
  top: 68vh;
  left: 83vw;
  fill: #e3bae8;
}

.eight svg:nth-child(8) {
  top: 86vh;
  left: 37vw;
  fill: #8762cb;
}

.eight svg:nth-child(9) {
  top: 94vh;
  left: 87vw;
  fill: #9a90da;
}

.wish-hbd {
  font-size: 3em;
  margin: 0;
  text-transform: uppercase;
}

.wish h5 {
  font-weight: lighter;
  font-size: 2rem;
  margin: 10px 0 0;
}

.nine p {
  font-size: 2rem;
  font-weight: lighter;
}

#replay {
  z-index: 3;
  cursor: pointer;
}

/* 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) {
  .container {
    width: 90%;
  }

  .four .text-box {
    width: 90%;
  }

  .text-box .fake-btn {
    right: 5px;
    bottom: -38px;
  }

  .idea-5 span {
    display: block;
  }

  .idea-6 span {
    font-size: 10rem;
  }

  .six .hat {
    width: 50px;
    top: -20px;
  }

  .wish-hbd {
    font-size: 2.2em;
  }

  .wish h5 {
    font-size: 1.4rem;
  }

  .nine p {
    font-size: 1.5rem;
    font-weight: lighter;
  }
}
/* شاشة البداية */

#start-screen{
    position:fixed;
    inset:0;
    background:#111;
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:9999;
}

#start-btn{
    padding:20px 45px;
    font-size:28px;
    border:none;
    border-radius:50px;
    cursor:pointer;
    background:#ff4da6;
    color:white;
    transition:.3s;
    box-shadow:0 0 20px #ff4da6;
}

#start-btn:hover{
    transform:scale(1.08);
    box-shadow:0 0 40px #ff4da6;
}
#intro{
    display:none;
    text-align:center;
    color:white;
}

.intro-title{
    font-size:60px;
    margin-top:120px;
}

.intro-text{
    font-size:24px;
    margin-top:25px;
    width:70%;
    margin-inline:auto;
}
/* Hanging Lights */

.lightrope{
    position:relative;
    display:flex;
    justify-content:center;
    gap:18px;
    margin:20px auto 60px;
    width:90%;
    padding-top:20px;
}

.lightrope::before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:4px;
    background:#444;
}

.bulb{
    width:20px;
    height:28px;
    border-radius:50% 50% 45% 45%;
    position:relative;
    animation:glow 1s infinite alternate;
}

.bulb::before{
    content:"";
    position:absolute;
    width:4px;
    height:10px;
    background:#444;
    top:-10px;
    left:50%;
    transform:translateX(-50%);
}

.red{background:#ff3b30;}
.yellow{background:#ffd60a;}
.blue{background:#0a84ff;}
.green{background:#30d158;}
.pink{background:#ff2d92;}
.orange{background:#ff9f0a;}
.purple{background:#bf5af2;}
.cyan{background:#64d2ff;}

.bulb:nth-child(2){animation-delay:.2s;}
.bulb:nth-child(3){animation-delay:.4s;}
.bulb:nth-child(4){animation-delay:.6s;}
.bulb:nth-child(5){animation-delay:.8s;}
.bulb:nth-child(6){animation-delay:1s;}
.bulb:nth-child(7){animation-delay:1.2s;}
.bulb:nth-child(8){animation-delay:1.4s;}

@keyframes glow{

    from{
        opacity:.4;
        box-shadow:none;
    }

    to{
        opacity:1;
        box-shadow:
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 35px currentColor;
    }

}
.lightrope{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    display:flex;
    justify-content:space-evenly;
    padding:20px 30px;
    box-sizing:border-box;
}
/* ===== Intro Balloons ===== */

.intro-balloons{
    position:absolute;
    left:0;
    bottom:-120px;
    width:100%;
    display:flex;
    justify-content:space-around;
    pointer-events:none;
}

.intro-balloons span{
    font-size:45px;
    animation:floatBalloon 6s linear infinite;
}

.intro-balloons span:nth-child(2){animation-delay:1s;}
.intro-balloons span:nth-child(3){animation-delay:2s;}
.intro-balloons span:nth-child(4){animation-delay:3s;}
.intro-balloons span:nth-child(5){animation-delay:.5s;}
.intro-balloons span:nth-child(6){animation-delay:1.5s;}
.intro-balloons span:nth-child(7){animation-delay:2.5s;}
.intro-balloons span:nth-child(8){animation-delay:3.5s;}

@keyframes floatBalloon{

0%{
    transform:translateY(0);
    opacity:0;
}

10%{
    opacity:1;
}

100%{
    transform:translateY(-900px) rotate(15deg);
    opacity:0;
}

}
#video-page{
    position:fixed;
    inset:0;
    background:white;
    display:none;
    justify-content:center;
    align-items:center;
    z-index:999999;
}

#birthdayVideo{
    width:90%;
    max-width:420px;
    border-radius:20px;
}
body{
    background:#fff;
    display:flex;
    justify-content:center;
    align-items:center;
    height:100vh;
    margin:0;
}

.container{
    text-align:center;
}

h1{
    color:#ff4d88;
    margin-bottom:25px;
}

p{
    margin-top:20px;
    color:#444;
    font-size:24px;
}
#end-message{
    display:none;
    text-align:center;
    animation:fadeIn 1.2s;
}

#end-message h1{
    color:#ff4d88;
    margin-bottom:20px;
    font-size:45px;
}

#end-message p{
    font-size:22px;
    line-height:1.8;
    color:#555;
    margin-bottom:35px;
}

#end-message button{

    padding:15px 35px;

    border:none;

    border-radius:40px;

    background:#ff4d88;

    color:white;

    font-size:20px;

    cursor:pointer;

    transition:.3s;

}

#end-message button:hover{

    transform:scale(1.08);

    background:#ff2f72;

}

@keyframes fadeIn{

    from{
        opacity:0;
        transform:translateY(20px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}
#end-message button{
    margin-top: 25px;
    padding: 15px 35px;
    font-size: 20px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg,#ff4d88,#ff7eb3);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255,77,136,.4);
    transition: all .3s ease;
}

#end-message button:hover{
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255,77,136,.6);
}

#end-message button:active{
    transform: scale(.96);
}
.replay-btn{
    margin-top:25px;
    padding:15px 35px;
    background:#ff4d88;
    color:#fff;
    border:none;
    border-radius:50px;
    font-size:20px;
    font-weight:bold;
    cursor:pointer;
    box-shadow:0 8px 20px rgba(255,77,136,.4);
    transition:all .3s ease;
}

.replay-btn:hover{
    background:#ff2f72;
    transform:scale(1.05);
}
#password-screen{
    width:100%;
    height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    background:#fff;
}

#password-screen h1{
    color:#ff4d88;
    margin-bottom:20px;
}

#password{
    width:260px;
    padding:12px;
    font-size:18px;
    border-radius:30px;
    border:2px solid #ff4d88;
    text-align:center;
    margin:20px 0;
}

#unlock-btn{
    padding:14px 35px;
    border:none;
    border-radius:40px;
    background:#ff4d88;
    color:white;
    cursor:pointer;
    font-size:18px;
}

#error{
    color:red;
    margin-top:15px;
}