/* Keep full-page height and remove default margin/padding */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", sans-serif;
  background-color: #F7DAE7;
  color: #333;
  text-align: center;
}

/* Flex layout container */
.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start; /* keeps elements stacked at top */
  min-height: 100vh;
  text-align: center;
  padding: 100px 20px;
  box-sizing: border-box;
  gap: 20px; /* consistent spacing between message and button */
}


/* Cute heading styling */
h1 {
  font-size: 3.2rem;              
  margin-bottom: 40px;           
  color: #b46e9c;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 1px 1px 2px rgba(255, 182, 193, 0.4); 
  line-height: 1.3;              
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  word-wrap: break-word;
}

/* Button styling (fixed overlap) */
button {
  display: inline-block;
  font-size: 1.1rem;
  padding: 18px 30px;
  background-color: #F7DAE7;
  border: none;
  border-radius: 8px;
  cursor: url('https://cdn.custom-cursor.com/db/2893/32/pink-star-cursor.png'), auto;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
  width: auto;
  max-width: fit-content;
  margin: 20px auto 0 auto; /* Adds space below compliment text */
  position: relative;
}

button:hover {
  background-color: #f4a6c2;
  transform: scale(1.05);     
}

/* Social links */
.social-links {
  margin-top: 30px;
  text-align: center;
}

.social-links a {
  background-color: #fff;
  color: #D45C7C;
  padding: 14px 28px;            
  margin: 6px;
  font-size: 1rem;               
  text-decoration: none;
  border-radius: 24px;           
  font-weight: bold;
  display: inline-block;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, background-color 0.3s;
}

.social-links a:hover {
  background-color: #ffe1e7;
  transform: scale(1.05);
}

/* Compliment message styling */
#message {
  display: inline-block;
  padding: 20px 30px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #5c4b51;
  min-height: 60px;
  max-width: 80%;
  margin: 0 auto 10px auto;
  position: relative;
  text-align: center;
  border-radius: 30px;
  background: linear-gradient(145deg, #fff0f5, #ffe6f0);
  box-shadow: 0 0 20px rgba(255, 192, 203, 0.5),
              0 0 30px rgba(255, 182, 193, 0.3),
              0 0 40px rgba(255, 105, 180, 0.2);
  animation: shimmer 3s infinite ease-in-out;
}

#message::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

/* Shimmer animation */
@keyframes shimmer {
  0% {
    box-shadow: 0 0 10px rgba(255, 192, 203, 0.5),
                0 0 20px rgba(255, 182, 193, 0.3),
                0 0 30px rgba(255, 105, 180, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(255, 182, 193, 0.6),
                0 0 40px rgba(255, 105, 180, 0.4),
                0 0 60px rgba(255, 192, 203, 0.6);
  }
  100% {
    box-shadow: 0 0 10px rgba(255, 192, 203, 0.5),
                0 0 20px rgba(255, 182, 193, 0.3),
                0 0 30px rgba(255, 105, 180, 0.2);
  }
}

/* Twinkle background */
.twinkle-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; 
  overflow: hidden;
}

.twinkle-background::before,
.twinkle-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(#ffffff 1px, transparent 1px),
    radial-gradient(#ffe6f0 1px, transparent 1px),
    radial-gradient(#ffd6fa 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px, 10px 10px;
  opacity: 0.6;
  animation: twinkle 10s linear infinite;
}

@keyframes twinkle {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-50px, -50px);
  }
}

