body {
  margin: 0;
  padding: 0;
  background-color: #000; /* solid black background, images removed */
  color: white;
  font-size: 14px;
  font-family: sans-serif;
  overflow: auto;
}
a {
  color: white;
  font-size: 14px;
}
#main {
  width: 100%;
}
#wrap {
  position: relative;
  margin: 0 auto;
  width: 1100px;
  height: 680px;
  margin-top: 10px;
}
#text {
  width: 272px;
  height: 560px;
  left: 188px;
  top: 80px;
  position: absolute;
}
#code {
  display: none;
  color: rgb(196, 255, 255);
  font-size: 16px;
  margin-top: 70px;
  line-height: 25px;
  font-size: larger;
  font-weight: bolder;
}
#clock-box {
  position: absolute;
  left: 60px;
  top: 550px;
  font-size: 28px;
  display: none;
}
#clock-box a {
  font-size: 28px;
  text-decoration: none;
}
#clock {
  margin-left: 48px;
}
#clock .digit {
  font-size: 64px;
}
#canvas {
  margin: 0 auto;
  width: 1100px;
  height: 680px;
}
#error {
  margin: 0 auto;
  text-align: center;
  margin-top: 60px;
  display: none;
}
.hand {
  cursor: pointer;
}
.say {
  margin-left: 5px;
}
.space {
  margin-right: 150px;
}

#message-box{
  position: absolute;
  margin-top:450px;
  font-size: 25px;
  font-family: monospace;

}

.site-hidden {
  display: none !important;
}


.password-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(196, 255, 255, 0.2), transparent 24%),
    radial-gradient(circle at 82% 84%, rgba(255, 105, 145, 0.3), transparent 28%),
    linear-gradient(145deg, #07020b 0%, #1b0712 48%, #020104 100%);
}
.password-card {
  width: min(520px, 100%);
  padding: 44px 34px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  text-align: center;
  position: relative;
  z-index: 1;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  box-shadow: 0 28px 84px rgba(0, 0, 0, 0.45), 0 20px 70px rgba(255, 64, 119, 0.18);
  backdrop-filter: blur(14px);
  animation: language-card-in 650ms ease both;
}
.password-kicker {
  margin: 0 0 12px;
  color: rgb(196, 255, 255);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 800;
}
.password-card h1 {
  margin: 0;
  color: #fff8fb;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(30px, 6vw, 50px);
  line-height: 1.05;
}
.password-subtitle {
  margin: 14px 0 28px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 19px;
}
.password-form {
  display: grid;
  gap: 12px;
}
.password-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 15px 18px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 18px;
  color: #fff;
  background: rgba(0, 0, 0, 0.32);
  font-size: 18px;
  outline: none;
}
.password-form input:focus {
  border-color: rgba(196, 255, 255, 0.8);
  box-shadow: 0 0 0 4px rgba(196, 255, 255, 0.12);
}
.password-form button {
  padding: 15px 22px;
  border: 0;
  border-radius: 999px;
  color: #24000a;
  background: linear-gradient(135deg, #ffffff, #ff8faf 58%, #ffe0e9);
  box-shadow: 0 16px 36px rgba(255, 112, 153, 0.28);
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
}
.password-error {
  min-height: 22px;
  margin: 14px 0 0;
  color: #ffd5df;
  font-size: 15px;
  font-weight: 700;
}

.language-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 203, 217, 0.42), transparent 18%),
    radial-gradient(circle at 84% 22%, rgba(124, 245, 255, 0.18), transparent 24%),
    radial-gradient(circle at 50% 95%, rgba(255, 63, 111, 0.28), transparent 30%),
    linear-gradient(140deg, #120008 0%, #260414 48%, #050004 100%);
}
.language-screen::before,
.language-screen::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}
.language-screen::before {
  width: 520px;
  height: 520px;
  left: -180px;
  bottom: -220px;
  background: repeating-radial-gradient(circle, rgba(255,255,255,0.18) 0 2px, transparent 3px 15px);
  opacity: 0.45;
}
.language-screen::after {
  width: 230px;
  height: 230px;
  right: 9%;
  top: 9%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 90px rgba(255, 100, 145, 0.34) inset;
  transform: rotate(-14deg);
}
.language-card {
  width: min(560px, 100%);
  padding: 48px 38px 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  text-align: center;
  position: relative;
  z-index: 1;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42), 0 20px 70px rgba(255, 64, 119, 0.2);
  backdrop-filter: blur(14px);
  animation: language-card-in 650ms ease both;
}
.language-card::before {
  content: "♥";
  position: absolute;
  top: -34px;
  left: 50%;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  transform: translateX(-50%) rotate(-8deg);
  border-radius: 24px;
  color: #39000f;
  background: linear-gradient(135deg, #fff7fb, #ff759e);
  box-shadow: 0 16px 38px rgba(255, 80, 128, 0.42);
  font-size: 32px;
}
.language-kicker {
  margin: 8px 0 14px;
  color: rgb(196, 255, 255);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
}
.language-card h1 {
  margin: 0;
  color: #fff8fb;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.02;
  text-shadow: 0 8px 28px rgba(255, 83, 132, 0.28);
}
.language-subtitle {
  margin: 16px 0 32px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 20px;
}
.language-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.language-button {
  min-width: 154px;
  padding: 15px 24px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  color: #21000a;
  background: linear-gradient(135deg, #ffffff, #ff8caf 54%, #ffd5e2);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(255, 83, 132, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}
.language-button:hover,
.language-button:focus {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 38px rgba(255, 134, 170, 0.36);
  filter: brightness(1.04);
  outline: none;
}
.lang-fa #text {
  top: 34px;
  height: 610px;
}
.lang-fa #code {
  text-align: right;
  font-family: Tahoma, sans-serif;
  line-height: 25px;
  margin-top: 46px;
}
.lang-fa .say {
  margin-left: 0;
  margin-right: 5px;
}


.memory-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(95, 235, 255, 0.18), transparent 24%),
    radial-gradient(circle at 82% 78%, rgba(255, 105, 145, 0.28), transparent 28%),
    linear-gradient(145deg, #05040b 0%, #170610 44%, #300715 100%);
}
.memory-screen::before {
  content: "";
  position: absolute;
  inset: 7%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 42px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), transparent 45%);
  pointer-events: none;
}
.memory-orbit {
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px dashed rgba(255, 210, 225, 0.28);
  border-radius: 50%;
  animation: memory-spin 18s linear infinite;
}
.memory-orbit::before,
.memory-orbit::after {
  content: "♥";
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  color: #28000b;
  background: linear-gradient(135deg, #fff, #ff7da3);
  box-shadow: 0 14px 34px rgba(255, 88, 136, 0.32);
}
.memory-orbit::before { left: 22px; top: 36px; }
.memory-orbit::after { right: 26px; bottom: 42px; }
.memory-card {
  width: min(640px, 100%);
  padding: 46px 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 34px;
  text-align: center;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46), 0 18px 60px rgba(255, 88, 136, 0.2);
  backdrop-filter: blur(16px);
  animation: memory-card-in 650ms ease both;
}
.memory-kicker {
  margin: 0 0 12px;
  color: rgb(196, 255, 255);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 800;
}
.memory-card h1 {
  margin: 0;
  color: #fff7fb;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1.02;
  text-shadow: 0 10px 34px rgba(255, 105, 145, 0.36);
}
.memory-date {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 22px;
}
.memory-date span {
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  color: #fff;
  background: rgba(0, 0, 0, 0.28);
  font-size: clamp(22px, 5vw, 36px);
  font-weight: 900;
  letter-spacing: 1px;
}
.memory-line {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 3vw, 24px);
}
.memory-elapsed {
  margin: 0 0 30px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  color: #fff;
  background: rgba(0, 0, 0, 0.24);
  font-size: clamp(15px, 2.4vw, 19px);
  line-height: 1.7;
}
.memory-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
  padding: 15px 22px;
  border: 0;
  border-radius: 999px;
  color: #24000a;
  background: linear-gradient(135deg, #ffffff, #ff8faf 58%, #ffe0e9);
  box-shadow: 0 16px 36px rgba(255, 112, 153, 0.3);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.memory-next strong {
  padding: 7px 12px;
  border-radius: 999px;
  color: #fff;
  background: #2b000c;
}
.memory-next:hover,
.memory-next:focus {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 22px 44px rgba(255, 112, 153, 0.4);
  outline: none;
}
.lang-fa .memory-card {
  font-family: Tahoma, sans-serif;
}
.lang-fa .memory-kicker {
  letter-spacing: 0;
}
@keyframes memory-spin {
  to { transform: rotate(360deg); }
}
@keyframes memory-card-in {
  from { opacity: 0; transform: translateY(22px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes language-card-in {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 700px) {
  .language-screen,
  .password-screen,
  .memory-screen {
    padding: 22px;
  }
  .language-card,
  .password-card,
  .memory-card {
    padding: 42px 22px 28px;
    border-radius: 26px;
  }
  .language-actions,
  .memory-next {
    flex-direction: column;
  }
  .language-button,
  .memory-next {
    width: 100%;
  }
  .memory-orbit {
    width: 280px;
    height: 280px;
  }
}

