@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

body {
  font-family: 'Press Start 2P', monospace;
  background: linear-gradient(135deg, #ffe0f0, #e0f7ff, #e0ffe4);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  margin: 0;
  padding: 20px;
  text-align: center;
  color: #333;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

h1, h2, h3, p, label {
  font-family: 'Press Start 2P', monospace;
  color: #444;
  margin-bottom: 16px;
}

input, textarea, button {
  font-family: 'Press Start 2P', monospace;
  padding: 12px;
  border: 2px solid #000;
  background: #fff6fb;
  box-shadow: 4px 4px 0 #aaa;
  border-radius: 4px;
  width: 90%;
  max-width: 420px;
  margin: 10px auto;
  display: block;
  font-size: 0.8rem;
  color: #333;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #ff88cc;
  box-shadow: 0 0 8px #ffc1eb;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(255, 240, 255, 0.9);
}

.modal-content {
  background: #fff6fb;
  margin: 15% auto;
  padding: 20px;
  border: 2px solid #000;
  width: 90%;
  max-width: 420px;
  box-shadow: 6px 6px 0 #888;
  border-radius: 6px;
  text-align: center;
  font-family: 'Press Start 2P', monospace;
  color: #333;
}

.modal-content button {
  margin: 10px;
}

button {
  background-color: #ffcaff;
  color: #000;
  transition: all 0.2s ease;
  cursor: pointer;
}

button:hover {
  background-color: #ffe8fb;
  transform: translateY(-2px);
  box-shadow: 6px 6px 0 #888;
}

/* Auth button container in top-right row */
.auth-button {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    margin:auto
  }
  
  /* Remove underline on links */
  .auth-button a {
    text-decoration: none;
  }
  
  /* Style the actual buttons */
  .auth-button button {
    background-color: #caffff;
    color: #000;
    font-family: 'Press Start 2P', monospace;
    border: 2px solid #000;
    padding: 8px 12px;
    font-size: 0.6rem;
    box-shadow: 3px 3px 0 #aaa;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    text-decoration: none;
  }
  
  .auth-button button:hover {
    background-color: #eaffff;
    transform: translateY(-2px);
    box-shadow: 5px 5px 0 #888;
  }
  
  

#editor {
  width: 90%;
  max-width: 720px;
  min-height: 300px;
  background: #fff9fb;
  border: 2px dashed #ff99ff;
  border-radius: 6px;
  padding: 15px;
  box-shadow: 4px 4px 0 #bbb;
  overflow-y: auto;
  margin: 20px auto;
  font-size: 0.9rem;
  text-align: left;
  color: #222;
}

#editor:focus {
  border-color: #ff99ff;
  box-shadow: 0 0 12px #ffc1eb;
}

footer {
  font-size: 0.6rem;
  color: #999;
  margin-top: 30px;
  text-shadow: 1px 1px #fff;
}

/* Login / Sign-Up Form Styling */
form {
    background-color: #fff6fb;
    border: 2px solid #000;
    padding: 30px 20px;
    border-radius: 6px;
    width: 90%;
    max-width: 420px;
    margin: 40px auto;
    box-shadow: 6px 6px 0 #bbb;
  }
  
  form input[type="email"],
  form input[type="password"] {
    display: block;
    width: 90%;
    padding: 12px;
    margin-bottom: 16px;
    font-family: 'Press Start 2P', monospace;
    font-size: 0.7rem;
    border: 2px solid #000;
    background-color: #ffffff;
    box-shadow: 4px 4px 0 #aaa;
    border-radius: 4px;
    color: #333;
  }
  
  form input:focus {
    outline: none;
    border-color: #ff99cc;
    box-shadow: 0 0 8px #ffc1eb;
  }
  
  form button {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.8rem;
    padding: 12px 20px;
    background-color: #ffcaff;
    color: #000;
    border: 2px solid #000;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 4px 4px 0 #aaa;
    transition: all 0.2s ease;
    display: block;
    width: 100%;
  }
  
  form button:hover {
    background-color: #ffe8fb;
    transform: translateY(-2px);
    box-shadow: 6px 6px 0 #888;
  }
  
  p {
    font-family: 'Press Start 2P', monospace;
    font-size: 0.6rem;
    color: #444;
    margin-top: 20px;
  }
  
  p a {
    color: #ff44aa;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: border 0.2s ease;
  }
  
  p a:hover {
    border-bottom: 1px dashed #ff88cc;
    background-color: #fff0fa;
  }
  
  /* Page Header */
  h1 {
    font-family: 'Press Start 2P', monospace;
    color: #222;
    margin-top: 40px;
    font-size: 1rem;
    text-shadow: 2px 2px #fff;
  }
  
