@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&family=Inter:wght@400;600&display=swap');

body {
  margin: 0;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
  background-color: #1e1e1e;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  color: #e5e7eb;
}

#ui-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  transition: opacity 0.5s ease, transform 0.5s ease;
  display: flex;
  flex-direction: column;
}

.hidden {
  opacity: 0;
  pointer-events: none;
}

.editor {
  flex-grow: 1;
  font-family: 'Fira Code', monospace;
  font-size: 16px;
  line-height: 1.6;
  color: #d4d4d4;
  outline: none;
  border: none;
  padding: 1rem;
  resize: none;
  background: transparent;
  box-sizing: border-box;
  overflow: auto;
  tab-size: 2;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  margin: 1rem;
}

#run-btn {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background-color: #6366f1;
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
  transition: all 0.2s;
  z-index: 20;
}

#run-btn:hover {
  background-color: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

#run-btn:active {
  transform: translateY(1px);
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

#reset-btn {
  position: fixed;
  top: 1rem;
  right: 10rem;
  background: rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  z-index: 30;
  display: none;
  font-weight: 600;
  backdrop-filter: blur(5px);
  transition: background 0.2s;
}

#reset-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

#bug-btn {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: #ef4444;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  z-index: 30;
  display: none;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3);
  transition: transform 0.1s;
}

#bug-btn:hover {
  background: #dc2626;
  transform: scale(1.05);
}

#bug-btn:active {
  transform: scale(0.95);
}

#footer {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(229, 231, 235, 0.6);
  font-size: 0.875rem;
  z-index: 30;
  font-family: 'Inter', sans-serif;
}

#footer .social-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#footer a {
  color: rgba(229, 231, 235, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

#footer a:hover {
  color: #6366f1;
}
