/* Mobile Phone Video Player */
.mobile-video-container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 180px;
  height: 330px;
  background-color: #56CCF2;
  border-radius: 30px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 0 5px #FFDE59;
  z-index: 999;
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.5s cubic-bezier(0.17, 0.67, 0.21, 1.69);
  padding: 6px;
  opacity: 1;
  animation: gentle-bounce 3s ease-in-out infinite;
  /* Apply the animation */
}

.mobile-video-container.hide {
  transform: translateY(100%);
  animation: none;
  /* Stop animation when hidden */
}

/* Remove the additional gradient styles for a smooth appearance */
.mobile-video-container::before {
  display: none;
  /* Hide the overlay */
}

.phone-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #000;
  border-radius: 30px;
  overflow: hidden;
  border: 3px solid #FF85A2;
  /* Pink border */
}

/* Phone details */
.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 25px;
  background-color: #FF85A2;
  /* Pink notch */
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  z-index: 10;
}

.phone-speaker {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 6px;
  background-color: #111;
  border-radius: 3px;
}

.phone-camera {
  position: absolute;
  top: 8px;
  right: 30px;
  width: 10px;
  height: 10px;
  background-color: #4CAF50;
  border-radius: 50%;
  border: 2px solid #FFDE59;
  box-shadow: 0 0 5px #FF85A2;
  /* Pink glow effect */
}

/* Add glowing effect animation to camera */
@keyframes camera-glow {

  0%,
  100% {
    box-shadow: 0 0 5px #FF85A2;
  }

  50% {
    box-shadow: 0 0 8px #FF85A2, 0 0 12px #56CCF2;
  }
}

.phone-camera {
  animation: camera-glow 2s ease-in-out infinite;
}

.phone-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 5;
  background-color: #000;
  /* Add black background for video */
}

.phone-controls {
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 100%;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.phone-home-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #FFDE59;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.phone-home-button::after {
  content: '';
  width: 15px;
  height: 15px;
  border: 2px solid rgba(200, 200, 200, 0.8);
  border-radius: 5px;
}

.phone-volume-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #FFDE59;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #FF85A2;
  font-size: 16px;
  transition: all 0.3s ease;
}

.phone-volume-button:hover {
  background-color: #FFE86E;
  transform: scale(1.1) rotate(5deg);
}

.phone-volume-button.muted {
  color: rgba(255, 0, 0, 0.7);
}

.video-toggle-btn {
  position: fixed;
  bottom: 30px;
  left: 170px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #56CCF2, #4CAF50);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: white;
  font-size: 18px;
  transition: all 0.3s ease;
}

.video-toggle-btn:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.video-toggle-btn i {
  transition: transform 0.3s ease;
  transform: rotate(45deg);
}

.video-toggle-btn.active i {
  transform: rotate(90deg);
}

/* When toggled (hidden), return to original rotation */
.video-toggle-btn:not(.active) i {
  transform: rotate(0deg);
}

/* Video title bar */
.phone-title-bar {
  position: absolute;
  top: 35px;
  left: 0;
  width: 100%;
  padding: 10px 15px;
  background-color: rgba(86, 204, 242, 0.9);
  /* Light blue background */
  color: #333;
  /* Darker text for readability */
  font-size: 12px;
  font-family: 'Comic Sans MS', 'Poppins', sans-serif;
  /* Kid-friendly font */
  z-index: 6;
  display: flex;
  align-items: center;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
  border-bottom: 2px dotted #FF85A2;
  /* Dotted pink border */
}

.phone-title-bar.show {
  transform: translateY(0);
}

.phone-title-icon {
  margin-right: 5px;
  font-size: 14px;
}

/* Media queries for different screen sizes */
@media (max-width: 768px) {
  .mobile-video-container {
    width: 160px;
    height: 310px;
    bottom: 20px;
    left: 20px;
  }

  .phone-notch {
    width: 80px;
    height: 18px;
  }

  .phone-speaker {
    width: 35px;
    height: 4px;
  }

  .phone-controls {
    padding: 0 8px;
  }

  .phone-home-button,
  .phone-volume-button {
    width: 25px;
    height: 25px;
  }

  .video-toggle-btn {
    width: 35px;
    height: 35px;
    bottom: 20px;
    left: 130px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .mobile-video-container {
    width: 130px;
    height: 250px;
    bottom: 15px;
    left: 15px;
  }

  .video-toggle-btn {
    width: 30px;
    height: 30px;
    bottom: 15px;
    left: 100px;
    font-size: 14px;
  }

  .phone-title-bar {
    padding: 4px 8px;
    font-size: 9px;
  }

  .phone-home-button,
  .phone-volume-button {
    width: 22px;
    height: 22px;
  }
}

/* Add bounce animation */
@keyframes gentle-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}