body, html {
  margin: 0;
  padding: 0;
  background-color: black;
  height: 100%;
  width: 100%;
  display: flex;                 
  justify-content: center;      
  align-items: center;           
  overflow: hidden;              
  -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
}

#bg-fade {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;  
  z-index: 0;              
}

.container > *:not(#bg-fade) {

  z-index: 1;
}

.heart{
  position: absolute;
  width: 350px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.hidden {
  display: none;
}

#love-explosion {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.floating-heart {
  position: absolute;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
}

#floating-text {
  position: fixed;
  top: 50%;        
  left: 50%;       
  transform: translate(-50%, -50%);
  color: red;
  font-size: 5rem;
  font-weight: bold;
  text-align: center;
  z-index: 10;     
  pointer-events: none; 
  opacity: 0;      
  font-family: 'Pinyon Script', cursive;  
}


.heart-icon {
  width: 50px;
  height: 50px;
  vertical-align: middle; 
}

.glass-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 600px;
  padding: 30px 60px;       
  padding-bottom: 50px;    
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: black;
  font-family: 'Pinyon Script', cursive;
  font-size: 2rem;
  z-index: 20;
  pointer-events: none;
  opacity: 0; 
  transition: opacity 1.5s ease;
  height: 800px;
}



#message {
  font-size: 3rem;
}

#long-text {
  opacity: 0;  
}

@media (max-width: 480px) and (orientation: portrait) {
  .heart {
    width: 60vw;
  }

  .glass-container {
    margin: 6vw;
    padding: 5vw;
    font-size: 1.5rem;
    height: auto;
  }

  #floating-text {
    font-size: 3rem;
  }
  
}

/* Adjust for landscape orientation */
@media (max-width: 480px) and (orientation: landscape) {
  .heart {
    width: 30vh; /* scale based on height instead */
  }

  .glass-container {
    width: 70%;
    max-width: 500px;
    font-size: 1.5rem;
    margin: 4vh;
    padding: 3vw;
  }

  #floating-text {
    font-size: 3rem;
  }
}