.highlight {
  .code-highlight {
    background-color: yellow !important;
    color: black !important;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
  }
}

.modal {
  position: fixed;  
  display: flex;               /* enable flex */
  justify-content: center;     /* horizontal center */
  align-items: flex-start;     /* start from top */
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  opacity: 1;
  transition: opacity 0.8s ease;
}

.modal.hide {
  opacity: 0;
  pointer-events: none;
}
.modal-content {
  background: #2d2d2d;
  color: #f3f3f3;
  margin: 120px auto auto auto;
  padding: 5px 30px;
  border-radius: 20px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
.lock-icon {
  font-size: 120px;
  margin: 0px;
  padding: 0px;
}
.explain-text {
  font-size: 14px;
  margin-bottom: 10px;
  opacity: 0.85;
}
.modal-content input {
  width: 100%;
  padding: 10px;
  margin: 12px 0;
  text-align: center;
  border-radius: 6px;
  border: 1px solid #555;
  background: #1f1f1f;
  color: #f3f3f3;
}
.decrypt-btn {
  background: #2563eb;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  width: 100%;
  transition: background 0.2s;
}
.decrypt-btn:hover {
  background: #1e40af;
}
.modal-title {
  margin-top: 0px;
}
@keyframes shake {
  0% { transform: translateX(0); }
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
  100% { transform: translateX(0); }
}
.shake {
  animation: shake 0.3s;
}
