:root {
  --primary-color: #000000;
  --secondary-color: #ffffff;
  --font-main: "Courier New", Courier, monospace;
}

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

body {
  font-family: var(--font-main);
  background-color: white;
  color: var(--primary-color);
  min-height: 100vh;
}

#app {
  position: relative;
  width: 100vw;
  min-height: 100vh;
}

#bgCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: transparent;
}

.dictionary-entry, .projects-section, .contact-section {
  padding: 2rem;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 800px;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(20px);
  animation: heatHaze 2s ease-out forwards;
  animation-delay: 2s;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
}

.dictionary-entry {
  margin-top: 80vh;
}

@keyframes heatHaze {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(20px);
  }
  50% {
    opacity: 0.5;
    filter: blur(5px);
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.pronunciation {
  color: #666;
  font-family: monospace;
  margin-right: 1rem;
}

.part-of-speech {
  color: #444;
  margin-right: 1rem;
}

.definition {
  margin: 1rem 0;
  padding-left: 1rem;
}

.example {
  color: #666;
  font-style: italic;
  margin: 1rem 0;
  padding-left: 1rem;
}

.etymology {
  font-size: 0.9em;
  color: #777;
  margin-top: 1.5rem;
  padding-left: 1rem;
}

.projects-section,
.contact-section {
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 1rem;
}

.project-card {
  background: white;
  padding: 1.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card h3 {
  margin-bottom: 1rem;
}

.project-card p {
  margin-bottom: 1.5rem;
  color: #666;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--primary-color);
  transition: all 0.3s ease;
}

.project-link:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
}

/* Contact Form Styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

.contact-form button {
  width: fit-content;
  cursor: pointer;
}

.form-message {
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 4px;
  font-family: var(--font-main);
}

.form-message.success {
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid rgba(0, 255, 0, 0.3);
  color: #006400;
}

.form-message.error {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.3);
  color: #640000;
}

.contact-form.hidden {
  display: none;
}




.ascii-art-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    margin-top: 2rem;
}

.ascii-art {
    font-family: monospace;
    white-space: pre;
    font-size: 12px;
    line-height: 1;
    color: var(--primary-color);
    text-align: center;
}


@media (max-width: 768px) {
  .menu {
    bottom: 1rem;
    left: 1rem;
  }

  .page-title {
    font-size: 2rem;
  }
}