* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--background);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  min-height: 100vh;
}

#mainContent {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

h1 {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

#textArea {
  width: 100%;
  min-height: 60vh;
  background-color: var(--surface);
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  color: var(--text-main);
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 1rem;
  line-height: 1.7;
  resize: none;
  outline: none;
  transition: all 0.2s ease;
}

#textArea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

#textArea::placeholder {
  color: var(--text-muted);
}

.action-bar {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.action-bar button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

#restoreButton {
  margin-left: auto;
}

#hidingObject {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--background);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  z-index: 2000;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

#hidingObject h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-main);
}

#hidingObject p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

#hidingObject .action-bar {
  margin-top: 0;
}

footer {
  margin-top: 4rem;
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  width: 100%;
}

#socialLinks h5 {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 500;
  font-style: normal;
}

#socialLinks {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

#socialLinks a {
  color: var(--text-main);
  font-size: 1.5rem;
  transition: all 0.2s ease;
  margin: 0 0.75rem;
}

#socialLinks a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.help-modal ul {
  list-style: none;
  padding-left: 0;
}

.help-modal li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.help-modal li:last-child {
  border-bottom: none;
}

@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  #textArea {
    min-height: 50vh;
    padding: 1rem;
  }

  .action-bar {
    flex-direction: column;
  }

  .action-bar button {
    width: 100%;
    justify-content: center;
  }

  #restoreButton {
    margin-left: 0;
  }
}