/* Global styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Comfortaa', sans-serif;
}

body {
  background-image: url('bg.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 100vh;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Container for all pages */
.page {
  width: 100%;
  max-width: 400px;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  text-align: center;
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.input-group {
  display: flex;
  align-items: center;
  margin: 15px 0;
  padding: 10px;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
}

.input-group input {
  width: 100%;
  border: none;
  background: none;
  outline: none;
  color: white;
  padding: 10px;
  font-size: 1rem;
}

.input-group i {
  margin-right: 10px;
  color: white;
}

button {
  width: 100%;
  padding: 12px;
  border: none;
  background-color: #4caf50;
  color: white;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #45a049;
}

.options {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 15px;
}

.signup-link {
  margin-top: 15px;
  font-size: 1rem;
}

.signup-link a {
  color: #fff;
  text-decoration: none;
}

.signup-link a:hover {
  text-decoration: underline;
}

/* Editor Page Styles */
.editorPage {
  width: 90%;
  max-width: 900px;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  text-align: center;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.editorPage h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

#textEditor {
  width: 100%;
  height: 300px;
  padding: 20px;
  font-size: 1rem;
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  border-radius: 10px;
  border: none;
  resize: none;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.editor-actions {
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
}

.editor-actions button {
  width: 30%;
  background-color: #f44336;
  transition: background-color 0.3s ease;
}

.editor-actions button:hover {
  background-color: #d32f2f;
}

/* Toggle Switch Styling */
.switch {
  position: absolute;
  top: 10px;
  right: 20px;
  display: inline-block;
  width: 50px;
  height: 25px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s ease;
  border-radius: 20px;
}

.slider:before {
  content: "";
  position: absolute;
  height: 19px;
  width: 19px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s ease;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2196f3;
}

input:checked + .slider:before {
  transform: translateX(25px);
}
