@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Basic Resets & Body */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Lora', 'Roboto', sans-serif;
  background-color: #fefdf6; /* Off-white background */
  color: #333;
}
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}
/* Header spanning full width */
header {
  width: 100%;
  background-color: #fff;
  padding: 1rem 2rem;
  border-bottom: 1px solid #ddd;
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 100;
}

/*
  Container that splits the page:
  left (main) ~75%, right (aside) ~25%
*/
.container {
  display: flex;
  flex-direction: row;
  min-height: calc(100vh - 60px); /* Keep some height below header */
}

/* Main content on the left */
.container main {
  width: 75%;
  padding: 2rem;
  box-sizing: border-box;
}

/* The aside on the right can be used or left empty */
.container aside {
  width: 25%;
  padding: 2rem;
  box-sizing: border-box;
  background-color: #fffff8;
}

/* ABOUT / DEEP GAZE SECTIONS */
.about-section {
  margin-bottom: 2rem;
}

.about-section h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 100;
  font-style: italic;

}

.about-section p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.deep-gaze-section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 100;
  font-style: italic;

}

.deep-gaze-section p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Selection & Text Form Styles */
.selection-form,
.text-form {
  margin-bottom: 1.5rem;
}

.selection-form label {
  margin-right: 0.5rem;
}

.selection-form select {
  margin-right: 1rem;
}

.text-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: none;
}

textarea {
  width: 100%;
  max-width: 100%;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  border: none;
  resize: none;
  font-family: 'Roboto', sans-serif;
  background-color: #fffff8;
  color: #3a3939;
  border-radius: 8px;
  padding: 20px;
  filter: drop-shadow(0 0 0.75rem #ddd);
}


textarea::placeholder {
  color: #888;
  font-family: 'Roboto', sans-serif;
  font-size:2rem;
  font-weight: 700;

}

button {
  background-color: #4b80f9;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-size: 1rem;
}
button:hover {
  background-color: #3f6ddb;
}

/* Output Area */
#output {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 1rem;
  margin-bottom: 1rem;
  max-height: 300px;
  overflow-y: auto;
}

#output h2 {
  margin-top: 0;
  font-size: 1.2rem;
}

/* Token Container */
#tokenContainer {
  margin-top: 1rem;
}

/* Token highlighting styles */
#tokenContainer span {
  cursor: default;
  transition: font-size 0.9s ease;
  color: #555;
  display: inline-block;
  transition: font-size 0.9s ease;
  margin-right: 4px;
  padding: 2px 4px;
}

.text-form button {
  background-color: #800000; /* Bordo red */
  color: #fff; /* Optional: set text color to white for contrast */
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

#credits {
  font-size: 0.8rem;
  color: #888;
  margin-top: 1rem;
  font-style: italic;
}