* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    "Gantari",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    sans-serif;
  font-size: 18px;
}

:root {
  --primary: #0090f5;
  --secondary: #d2727b;
  --text: #1f2937;
  --grey: #e2e8f0;
}

body {
  line-height: 1.8;
  color: var(--text);
}

h2 {
  font-size: 1.8rem;
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--primary);
}

a:visited {
  color: var(--secondary);
}

a:active {
  color: var(--primary);
}

/* Nav */

nav {
  padding: 1rem 5%;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  z-index: 100;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav .logo img {
  height: 1.5rem;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
}

/* Hero */

.hero {
  padding: 0.5rem 5% 0.5rem;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
}

/* Input */

.hero .box {
  /* Style */
  background: white;
  /* Spacing */
  max-width: 800px;
  margin: 0.5rem auto;
  padding: 1rem;
  /* Grid */
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  place-items: center;
}

.box-title {
  font-weight: bold;
  font-size: 1.8rem;
  text-align: center;
}

.prompt-selector-and-submit-button {
  display: grid;
  grid-template-rows: auto; /* Two rows: one for the label, one for the controls */
  gap: 0.5rem;
  grid-template-columns: 1fr max-content;
  width: 100%;
}

label.example-prompts {
  color: var(--text);
  display: block;
}

select#prompt-selector {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--grey);
  font-size: 0.9rem;
  color: var(--text);
  background: white;
  cursor: pointer;
  flex-grow: 1;
}

select#prompt-selector:focus {
  outline: none;
  border-color: var(--primary);
}

button.ask-ai {
  /* Style */
  font-weight: bold;
  color: white;
  background: var(--primary);
  transition: background-color 0.2s;
  cursor: pointer;
  /* Size */
  width: fit-content;
  /* Spacing */
  padding: 1rem 2rem;
  border: none;
}

button.ask-ai:hover {
  background: var(--secondary);
}

button.ask-ai:disabled {
  background: #cccccc;
  cursor: not-allowed;
  opacity: 0.7;
}

.ai-response {
  font-family: monospace;
  font-size: 0.8rem;
  white-space: pre-wrap;
  line-height: 1.5;
  text-align: left;
  align-self: start;
  justify-self: start;
  height: 8rem;
  width: 100%;
  border: 3px solid var(--primary);
  border-bottom: 0px;
  padding: 1rem;
}

.ai-response.generating {
  border-color: var(--secondary);
}

.fade-bottom {
  --mask-height: 50px;
  -webkit-mask-image: linear-gradient(
    to bottom,
    black 0%,
    black calc(100% - var(--mask-height)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    black 0%,
    black calc(100% - var(--mask-height)),
    transparent 100%
  );
}

/* FAQ */

.faq {
  padding: 4rem 5%;
  background: var(--grey);
}

.faq .content {
  max-width: 800px;
  margin: 0 auto;
}

.feature-card {
  background: white;
  padding: 2rem;
}

.feature-card h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Footer */

footer {
  background: var(--text);
  color: white;
  padding: 2rem 5%;
  text-align: center;
}

/* Cycling words */

span#cycle-words {
  position: relative;
  color: #0066cc;
  font-size: inherit;
}

span#cycle-words::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 0;
  height: 100%;
  width: 3px;
  background-color: #0066cc;
  animation: cursor-blink 1s infinite;
}

@keyframes cursor-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .ai-input-box {
    flex-direction: column;
  }
  .ai-submit {
    width: 100%;
  }
}
