#auth-buttons {
  position: fixed; /* Stronger than absolute — follows screen */
  top: 0.8rem;     /* Slightly higher */
  right: 1.2rem;   /* Even closer to edge */
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;     /* Slightly tighter between buttons */
  z-index: 1200;   /* Very top layer */
}


#auth-buttons .btn {
  font-size: 0.9rem;
  width: 4rem;           
  padding: 10px 0;      
  background-color: #5a3d1c;
  color: white;
  border: none;
  border-radius: 6px;
  text-align: center;    
  transition: background-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  text-shadow: 1px 1px 1px black;
}


#auth-buttons .btn:hover {
  background-color: #7a5230;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#auth-buttons .btn:active {
  transform: scale(0.97);
  background-color: #8f6d3f;
}

.greeting {
  font-family: 'TitleFont', sans-serif;
  font-size: 2.25vw;
  font-weight: bold;
  color: #a0522d;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
  text-align: center;
 
  display: none;
}

/* Modal Styles */
.modal {
  display: none;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
  width: 90%;
  max-width: 420px;
  z-index: 1000;
}

.modal.show {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%);
}

.modal h3 {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #333;
}

.modal input {
  display: block;
  margin: 10px 0;
  padding: 12px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}

.modal button {
  margin-top: 1rem;
  padding: 12px;
  width: 100%;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  background-color: #28a745;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal button:hover {
  background-color: #218838;
}

.modal .modal-links {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.modal .modal-links a {
  color: #007bff;
  text-decoration: none;
  margin: 0 0.5rem;
}

.modal .modal-links a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  #auth-buttons {
    flex-direction: column;
    align-items: flex-end;
  }

  #auth-buttons .btn {
    width: 100%;
    text-align: center;
  }

  .modal {
    padding: 1.5rem;
  }

  .greeting {
    font-size: 3.5vw;
  }
}
