/* 🎅🎄🎁------------------------------------  
          FONT FACE  
------------------------------------🎁🎄🎅 */
@font-face {
  font-family: 'Santas Air Mail';
  src: url('../fonts/santas-air-mail.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ✍️📚------------------------------------  
          TYPOGRAPHY  
------------------------------------📚✍️ */
body {
  background: linear-gradient(#fefefe, #f2e9e4);
  margin: 0;
  color: #333;
}

h2 {
  font-family: 'Mountains of Christmas', serif;
}

h1 {
  font-family: 'Santas Air Mail', cursive, sans-serif;
}

.h1-icon {
  height: 2em;
  vertical-align: middle;
  margin: 0 0.3em;
}

/* 🏠🎨------------------------------------  
          HEADER  
------------------------------------🎨🏠 */
header {
  background: #800000;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 1.8rem;
  border-bottom: 5px solid #922b21;
}

/* 📥🗂------------------------------------  
          INBOX LAYOUT & MESSAGES  
------------------------------------🗂📥 */
.inbox {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
}

.message-preview {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 12px;
  padding: 0.8rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
  transition: transform 0.1s;
  cursor: pointer;
}
.message-preview:hover {
  transform: scale(1.02);
}
.message-preview img {
  width: 50px;
  margin-right: 1rem;
}

/* 👣------------------------------------  
         	 FOOTER 
------------------------------------👣 */
footer {
   background: linear-gradient(90deg, #800000, #b30000); /* rich red gradient */
  color: #fffaf7;
  padding: 1.5rem 1rem;
  margin-top: 3rem;
  border-top: 4px solid #922b21; /* darker top border */
  text-align: center;
  font-size: 1rem;
  font-family: 'Mountains of Christmas', serif;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 10;
}

/* Optional: add a small snowflake or gift icon before the text */
footer p::before {
  content: "❄️ ";
  margin-right: 0.4em;
  font-size: 1.2rem;
  vertical-align: middle;
}

/* 🦌 Footer Return Button */
.footer-return {
  text-align: center;
  margin-top: 2rem;
}

.footer-return a {
  background: #e4cddd;
  color: #800000;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Mountains of Christmas', serif;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease;
}

.footer-return a:hover {
  background: #ca99ab;
}

/* 💬📦------------------------------------  
          MODAL (POPUP MESSAGE)  
------------------------------------📦💬 */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-content {
  background: #fffaf7;
  border: 3px solid #333;
  border-radius: 5px;
  padding: 0;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  font-size: 1.1rem;
}
.modal-header {
  background: linear-gradient(90deg, #800000, #800e13, #640d14, #38040e);
  color: white;
  text-align: center;
  padding: 0.5rem;
  font-weight: bold;
  border-bottom: 2px solid #333;
}
.modal-body {
  padding: 1.5rem;
  text-align: center;
}
.modal-body h2 {
  margin-top: 0;
  color: #800000;
}
.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-top: 1rem;
  color: #800000;
  transition: transform 0.2s ease;
}
.close-btn:hover {
  background: #e4cddd;
  transform: scale(1.2);
}

/* 📝📮------------------------------------  
          GOOGLE FORM CONTAINER  
------------------------------------📮📝 */
.form-container {
  margin: 2rem auto;
  max-width: 600px;
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}
.form-container h2 {
  text-align: center;
  color: #800000;
  margin-bottom: 1rem;
}
.form-container iframe {
  width: 100%;
  height: 600px;
  border: none;
  border-radius: 8px;
}
.form-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.stamp-icon {
  width: 60px;
  height: auto;
  transform: rotate(-10deg);
  border-radius: 4px;
  position: relative;
  top: -5px;
  left: 2px;
  opacity: 0.95;
}
.stamp-icon:hover {
  transform: rotate(0deg) scale(1.05);
  transition: 0.3s ease;
}

/* ✨🎬------------------------------------  
          ANIMATIONS  
------------------------------------🎬✨ */
.envelope.animate {
  animation: envelopeOpen 1s ease forwards;
}
@keyframes envelopeOpen {
  0% { transform: scale(1) rotate(0deg); }
  30% { transform: scale(1.1) rotate(-2deg); }
  60% { transform: scale(0.9) rotate(2deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.typing {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #800000;
  animation: typing 3s steps(30, end), blink 0.75s step-end infinite;
}
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}
@keyframes blink {
  50% { border-color: transparent }
}

/* 🧝‍♂️🎅------------------------------------  
          ELF MODE BUTTON  
------------------------------------🎅🧝‍♂️ */
#elfModeBtn {
  display: block;
  margin: 2rem auto;
  padding: 0.8rem 1.5rem;
  font-size: 1.1rem;
  font-family: 'Mountains of Christmas', serif;
  background-color: #b30000;
  color: #fffaf7;
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

#elfModeBtn:hover {
  background-color: #800000;
  transform: scale(1.05);
}

/* Elf Mode */
.elf-mode body {
  background: #fffbe6;
  font-family: 'Comic Sans MS', cursive !important;
}
.elf-mode h1 {
  transform: rotate(-2deg);
  text-shadow: 1px 1px #f00, -1px -1px #0f0;
}

/* 📱📐------------------------------------  
        RESPONSIVE DESIGN  
 		PHONE 
------------------------------------📐📱 */

/* 📱📏------------------------------------
      RESPONSIVE DESIGN
      Breakpoints: 768px and 480px
------------------------------------📏📱 */

/* ===== Tablet (max-width: 768px) ===== */
@media (max-width: 768px) {
  header {
    font-size: 1.4rem;
    padding: 0.8rem;
  }

  .inbox {
    padding: 0.8rem;
    gap: 0.8rem;
  }

  .message-preview {
    padding: 0.6rem;
  }

  .message-preview img {
    width: 40px;
    margin-right: 0.6rem;
  }

  .form-container {
    max-width: 90%;
    margin: 1.5rem auto;
    padding: 0.8rem;
  }

  .form-container iframe {
    height: 500px;
  }

  footer {
    font-size: 0.9rem;
    padding: 1rem;
  }

  #elfModeBtn {
    margin: 1.5rem auto;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
  }
}

/* ===== Mobile (max-width: 480px) ===== */
@media (max-width: 480px) {
  header {
    font-size: 1.2rem;
    padding: 0.6rem;
  }

  .inbox {
    padding: 0.6rem;
    gap: 0.6rem;
  }

  .message-preview {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem;
  }

  .message-preview img {
    width: 35px;
    margin: 0 0 0.5rem 0;
  }

  h1 {
    font-size: 1.3rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .form-container {
    max-width: 95%;
    margin: 1rem auto;
    padding: 0.5rem;
  }

  .form-container iframe {
    height: 400px;
  }

  footer {
    font-size: 0.85rem;
    padding: 0.8rem;
  }

  #elfModeBtn {
    margin: 1rem auto;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

