* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #e5eefc;
  background: #000;
}

body {
  cursor: default;
  position: relative;
  font-family: Vazirmatn, sans-serif;
  background-color: #000;
}

.code-container {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 5;

  width: 80%;
  max-width: 1000px;
  height: 90%;
  padding: 35px;

  overflow: hidden;
  transform: translate(-50%, -50%);

  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.35),
    0 0 15px rgba(0, 150, 255, 0.5),
    0 0 30px rgba(0, 100, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#codeDisplay {
  position: relative;
  z-index: 2;

  width: 100%;
  height: 100%;
  margin: 0;

  overflow-y: auto;
  overflow-x: hidden;

  color: #e5eefc;
  font-family: Vazirmatn, sans-serif;
  font-size: 17px;
  line-height: 2;
  letter-spacing: 0.3px;

  direction: rtl;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;

  text-align: justify;
  text-align-last: right;
  text-shadow: 0 0 5px rgba(229, 238, 252, 0.2);

  scrollbar-width: none;
  -ms-overflow-style: none;
}

#codeDisplay::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

#codeDisplay.pre-init {
  visibility: hidden;
}

#codeDisplay:not(.pre-init)::after {
  content: "|";
  display: inline-block;
  margin-right: 6px;
  color: #00d2ff;
  text-shadow:
    0 0 5px rgba(0, 210, 255, 0.8),
    0 0 10px rgba(0, 150, 255, 0.45);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

#menuContainer {
  position: relative;
  z-index: 15;
}

@media (max-width: 768px) {
  .code-container {
    width: 90%;
    max-width: 400px;
    height: 80%;
    padding: 18px;
    border-radius: 14px;
  }

  .code-container::after {
    inset: 3px;
    border-radius: 12px;
  }

  pre {
    font-size: 15px;
    line-height: 1.6;
    user-select: text;
    -webkit-overflow-scrolling: touch;
  }
}
