/* Global Layout and Background */
body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    font-family: "Segoe UI", sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Container for Chat + Button */
.container {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 600px;
    padding: 20px;
    box-sizing: border-box;
}

/* Chat Window */
.chat-window {
    width: 100%;
    max-width: 500px;
    height: 60vh;
    background-color: white;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.chat-header {
    background-color: #075e54;
    color: white;
    padding: 15px 20px;
    font-weight: bold;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#counter {
    font-weight: 400;
    font-size: 0.9rem;
    opacity: 0.85;
}

.chat-body {
    padding: 15px;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #ece5dd;
}

/* Message Bubbles */
.chat-bubble {
    background-color: #dcf8c6;
    padding: 10px 15px;
    border-radius: 15px 15px 0 15px;
    align-self: flex-end;
    font-size: 24px;
    max-width: 80%;
    word-break: break-word;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    animation: pop 0.2s ease-out;
}

/* Timestamp */
.timestamp {
    align-self: center;
    font-size: 12px;
    color: gray;
    background: #ffffffaa;
    padding: 2px 8px;
    border-radius: 12px;
    margin-top: 10px;
    animation: fade 0.3s ease-out;
}

/* Button Styling */
button {
    background-color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    font-size: 64px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

button:active {
    transform: scale(0.95);
}

/* Animations */
@keyframes pop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fade {
    0% {
        opacity: 0;
        transform: translateY(5px);
    }

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

/* Responsive */
@media (max-width: 600px) {
    button {
        width: 100px;
        height: 100px;
        font-size: 48px;
    }

    .chat-window {
        height: 50vh;
    }

    .chat-bubble {
        font-size: 20px;
    }
}

/* Footer */
.site-footer {
    flex-shrink: 0;
    width: 100%;
    padding: 1rem 0;
    background-color: #f0f0f0;
    border-top: 1px solid #ccc;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #333;
    box-sizing: border-box;
}

.footer-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
    user-select: none;
}

/* Easter egg popup */
#easter-egg-popup {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #27ae60; /* fresh green matching your gradient */
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  box-shadow: 0 6px 15px rgba(39, 174, 96, 0.5);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  z-index: 9999;
  transition: opacity 0.4s ease, transform 0.4s ease;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Show with bounce */
#easter-egg-popup.show {
  opacity: 1;
  pointer-events: auto;
  animation: bounceInDown 0.5s forwards;
}

@keyframes bounceInDown {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-50px);
  }
  60% {
    opacity: 1;
    transform: translateX(-50%) translateY(10px);
  }
  80% {
    transform: translateX(-50%) translateY(-5px);
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

#lizard-button {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  font-size: 2.5rem;
  border: none;
  background: linear-gradient(145deg, #f0f0f0, #d0d0d0);
  box-shadow: 4px 4px 10px #aaa, -4px -4px 10px #fff;
  cursor: pointer;
  transition: transform 0.1s ease;
  -webkit-tap-highlight-color: transparent; /* 👈 This fixes the square highlight */
  outline: none; /* 👈 Optional: disables default focus ring */
}
