body, html {
  margin: 0;
  padding: 0;
  height: 100dvh;
  width: 100vw;
  background-color: #000;
  overflow: hidden;
  font-family: sans-serif;
}

#bg-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: #000;
  overflow: hidden;
}

.bg-layer {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%; /* Slightly larger to prevent white edges when blurred */
  height: 120%;
  object-fit: cover;
  filter: blur(20px) brightness(0.7);
  transition: opacity 0.8s ease-in-out;
  opacity: 0;

  /* --- iOS Safari rendering fixes --- */
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: opacity;
}

.bg-layer.active {
  opacity: 1;
}

 img {
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.swiper {
  width: 100%;
  height: 100%;
  z-index: 2;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.swiper-slide img {
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.8);
}

/* Pagination Dots */
.swiper-pagination-bullet {
  background: #fff !important;
  opacity: 0.5;
}
.swiper-pagination-bullet-active {
  opacity: 1;
}
:root {
    --swiper-pagination-bottom: 24px;
}

/* Footer */
div#footer {
    position: relative;
    z-index: 2;
    bottom: 14px;
    width: 100%;
    text-align: center;
    font-size: 10px;
    color: #ccc;
}

div#footer a {
    color: inherit;
    text-decoration: none;
}

div#footer a:hover {
    text-decoration: underline;
}

/* Form Styling */
#form-container {
  width: 100%;
  max-width: 500px;
  max-height: 85%;
  overflow-y: scroll;
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#form-container h2 {
  margin-top: 0;
  color: #333;
}

#form-container input, #form-container textarea {
  width: 100%;
  margin-bottom: 15px;
  padding: 10px;
  box-sizing: border-box;
}

#form-container button {
  width: 100%;
  padding: 15px;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  margin-bottom: 10px;
  cursor: pointer;
}

button#submit {
    background:#007bff; 
}

button#start-over {
    margin-top: 10px;
    background: none;
    border: 1px solid #666;
    color: #666;
    
}

iframe {
  border: 0;
  width: 100%;
}

@media screen and (max-height: 620px){
    .swiper-slide img {
        max-width: 300px;
    }
    #form-container button {
        max-width: 49.5%;        
    }
}

/* Install Banner */
#install-banner {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: #333;
  color: white;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  box-sizing: border-box;
}

/* iOS Prompt Styling */
.ios-install-prompt {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 320px;
  background-color: white;
  color: #333;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: slideUp 0.5s ease-out;
}

.prompt-content p {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.arrow-down {
  width: 0; 
  height: 0; 
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid white;
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

#close-ios-prompt {
  background: none;
  border: none;
  font-size: 24px;
  color: #999;
  padding-left: 10px;
  cursor: pointer;
}

@keyframes slideUp {
  from { transform: translate(-50%, 100px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}