body {
  font-family: Arial, sans-serif;
  background-color: #f7f7f7;
  color: #333;
  padding: 20px;
  padding-bottom: 90px; /* Added padding to prevent content overlap with footer */
}

/* Make sizing predictable and prevent children from overflowing parent widths */
*, *::before, *::after { box-sizing: border-box; }

.container {
  display: none; /* hide by default; JS will toggle visibility when user selects Text Encryption */
  max-width: 600px;
  margin: auto;
  padding: 25px;
  border-radius: 20px;
  /* stronger background so the card is visible on top of the matrix canvas */
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  position: relative;
  z-index: 1;
  overflow: hidden; /* prevent strong children from visually escaping */
}




textarea, input, select {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
select {
  background-color: rgba(255, 255, 255, 0.1); /* transparent glass */
  color: white; /* matrix neon green */
  /* border: 1px solid white; */
  border-radius: 8px;
  padding: 10px;
  appearance: none; /* removes default OS arrow styling */
  -webkit-appearance: none;
}

select option {
  background-color: #111;  /* dark dropdown background */
  color: white;          /* visible neon text */
}



button {
  padding: 10px 20px;
  font-size: 16px;
  background: rgba(63, 81, 181, 0.8);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(63, 81, 181, 0.5);
  transition: all 0.3s ease;
}
button:hover {
  background: rgba(48, 63, 159, 0.9);
}



.clear-btn {
  background-color: #e53935; /* red */
  color: white;
  margin-left: 10px;
}

.clear-btn:hover {
  background-color: #c62828; /* darker red on hover */
}


.note-entry {
  background: rgba(0, 230, 118, 0.1);  /* subtle green bg */
  color: #00e676;                      /* bright green text */
  border-left: 4px solid #00e676;
  padding: 10px;
  margin-top: 10px;
  font-size: 14px;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
}



.note-entry {
  transition: all 0.3s ease;
}
.footer {
  text-align: center;
  margin-top: 40px;
  font-size: 14px;
  color: #666;
  font-style: italic;
}

.footer a {
  color: #3f51b5;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ===== Matrix Background Canvas ===== */
#matrixCanvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100vw;
  height: 100vh;
  background: black;
}


a {
  color: white; /* Neon Matrix green or your preferred color */
  text-decoration: none;
}

a:hover {
  color: #00ffee;
  text-decoration: underline;
}


.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.button-row button {
  flex: 1 1 45%;
  min-width: 120px;
}



.button-row1 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.button-row1 button {
  flex: 1 1 45%;
  min-width: 120px;
}


#qrOutput canvas {
  background-color: #ffffff !important;  /* 🔥 FORCE white bg */
  border-radius: 12px;
  padding: 10px;
  border: 2px solid #000;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

#qrOutput {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 30px;
  text-align: center;
  flex-direction: column;
}

#qrOutputWrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    
  background-color: #ffffff;  /* Pure white background */
  border: 2px solid #000000;  /* Solid black border like Insta QR */
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  margin-top: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#qrOutput canvas {
  background-color: #ffffff !important; /* ensures QR canvas itself has no transparency */
  border-radius: 12px;
  max-width: 100%;
  height: auto;
}
#qrSection, #qrOutputWrapper {
  text-align: center;

}





.loader {
  font-size: 1rem;
  color: #111;
  text-align: center;
  margin-top: 20px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

.hidden {
  display: none;
}


/* 🧨 Fullscreen Intro Styling */


#intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  color: lime;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.intro-title {
  font-family: 'Courier New', Courier, monospace;
  font-size: 5rem;
  letter-spacing: 2px;
  text-shadow: 0 0 1px #0f0, 0 0 10px #0f0;
  white-space: pre;
}

.download-qr-btn {
  margin-top: 10px;
}


.image-link {
  display: inline-block;
  background: linear-gradient(135deg, #6e00ff, #9e00ff);
  color: #fff;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  font-size: 1rem;
  margin-top: 20px;
}

.image-link:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.image-link:active {
  transform: scale(0.98);
}

/* siddharth */


.footer {
  text-align: center;
  padding: 1rem;
  font-size: 1rem;
  color: white;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.footer a {
  color: #ff4b4b;
  text-decoration: none;
  font-weight: bold;
  position: relative;
}

.footer a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: #ff4b4b;
  bottom: -3px;
  left: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.footer a:hover::after {
  transform: scaleX(1);
}

.footer .heart {
  animation: pulse 1.5s infinite;
  display: inline-block;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Footer tweaks - make footer a normal document flow element so it appears under the container on index only */
#site-footer{
  position: static;
  left: auto;
  transform: none;
  bottom: auto;
  display: block;
  margin: 18px auto 30px auto;
  z-index: 1;
  background: transparent;
  padding: 6px 12px;
  border-radius: 8px;
}

/* ===== Responsive / Mobile Improvements ===== */
@media (max-width: 900px) {
  .container {
    max-width: 92%;
    margin: 18px auto;
    padding: 18px;
    /* ensure container uses full available width and respects box-sizing */
    width: 100%;
    box-sizing: border-box;
  }

  /* landing choices stack vertically and full width */
  .landing-choices {
    flex-direction: column;
    gap: 12px;
    padding: 0 12px;
  }

  .choice-btn {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
  }

  .button-row button {
    flex: 1 1 100%;
  }

  .button-row1 button {
    flex: 1 1 100%;
  }

  textarea, input, select {
    font-size: 15px;
    padding: 12px;
  }

  #intro-screen .intro-title { font-size: 3.2rem; }

  /* Prevent the fixed footer from overlapping content on narrow screens */
  #site-footer {
    position: static;
    transform: none;
    left: auto;
    bottom: auto;
    margin-top: 18px;
    z-index: 1; /* keep below the main content */
  }

  /* Add extra bottom padding so fixed elements (if any) don't cover inputs */
  body { padding-bottom: 140px; }

  /* Make QR output wrapper adapt to narrow widths */
  #qrOutputWrapper { width: 100%; box-sizing: border-box; padding: 12px; }
}

@media (max-width: 480px) {
  body { padding: 16px 12px 120px 12px; } /* give room for footer if needed */

  .container { padding: 14px; border-radius: 12px; }

  /* Make footer static on mobile so it doesn't obstruct content */
  #site-footer {
    position: static;
    transform: none;
    left: auto;
    bottom: auto;
    margin-top: 18px;
  }

  /* Make action buttons larger for touch */
  button { padding: 14px 18px; font-size: 16px; }

  /* Make QR and other outputs full width */
  #qrOutputWrapper { width: 100%; box-sizing: border-box; padding: 12px; }

  /* Matrix canvas should remain full-screen but reduce CPU on small devices (optional) */
  #matrixCanvas { display: block; }
}

#site-footer .heart{
  display:inline-block;
  margin: 0 8px;
  font-size: 1.05rem;
}

#site-footer .made, #site-footer .by{
  color: rgba(255,255,255,0.9);
  margin: 0 6px;
}

#site-footer #footer-author{
  color: #9b59ff;
  font-weight:700;
  margin-left:6px;
}
