@import '@mantine/core';

:root {
  --primary-color: rgb(16, 39, 59);
  --secondary-color: rgb(46, 76, 99);
  --background-color: #f4f4f4;
  --header-text-color: white;
  --text-color: #10273b;
  --feature-background: rgb(46, 76, 99);
  --footer-background: rgb(16, 39, 59);
  --footer-text: white;
  --waitlist-background: white;
  --waitlist-text: rgb(46, 76, 99);
  --label-color: rgb(46, 76, 99);
  --input-background: white;
  --input-border: rgb(102, 102, 102);
  --input-color: black;
  --button-background: rgb(16, 39, 59);
  --button-hover-background: rgb(46, 76, 99);
  --button-text: white;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background-color: #10273b;
    --text-color: #f4f4f4;
    --feature-background: rgb(46, 76, 99);
    --footer-background: rgb(46, 76, 99);
    --footer-text: #f4f4f4;
    --header-text-color: white;
    --waitlist-background: #18283a;
    --waitlist-text: #f4f4f4;
    --label-color: #f4f4f4;
    --input-background: #334b63;
    --input-border: #99aabb;
    --input-color: white;
    --button-background: rgb(46, 76, 99);
    --button-hover-background: rgb(16, 39, 59);
    --button-text: #f4f4f4;
  }
}

body {
  display: flex;
  flex-direction: column;
  font-family: 'Verdana, sans-serif';
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: var(--background-color);
  color: var(--text-color);
}

.heroImage {
  background-color: var(--primary-color);
  color: var(--header-text-color);
  font-size: 2rem;
  padding: 50px;
  text-align: center;
}

.heroImage img {
  max-width: 100%;
  height: auto;
}

.heroImage h1 {
  margin: 0;
  font-size: 3rem;
  color: var(--header-text-color);
}

.heroImage p {
  margin: 10px 0 0;
  font-size: 1.5rem;
  color: var(--header-text-color);
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 20px;
}

.feature {
  background-color: var(--feature-background);
  color: white;
  flex: 1 1 300px;
  font-size: 1.5rem;
  margin: 10px;
  padding: 20px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.feature img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.waitlist {
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--waitlist-background);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.waitlist h2 {
  margin: 0 0 10px;
  font-size: 2rem;
  color: var(--text-color);
}

.waitlist p {
  margin: 0 0 20px;
  font-size: 1rem;
  color: var(--waitlist-text);
}

.waitlist form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 400px;
}

.waitlist label {
  margin-bottom: 5px;
  font-size: 1rem;
  color: var(--label-color);
}

.waitlist input[type="email"], .waitlist select {
  padding: 10px;
  background-color: var(--input-background);
  border: 1px solid var(--input-border);
  border-radius: 5px;
  color: var(--input-color);
  margin-bottom: 10px;
  width: 100%;
}

.waitlist input[type="submit"] {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  background-color: var(--button-background);
  color: var(--button-text);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.waitlist input[type="submit"]:hover {
  background-color: var(--button-hover-background);
}

footer {
  background-color: var(--footer-background);
  color: var(--footer-text);
  text-align: center;
  padding: 10px;
  margin-top: auto;
}

/* Responsive design */
@media (max-width: 768px) {
  .heroImage {
    padding: 20px;
  }

  .features {
    flex-direction: column;
    padding: 10px;
  }

  .feature {
    margin: 10px 0;
    font-size: 1.2rem;
  }

  .waitlist {
    padding: 20px;
  }

  .waitlist h2 {
    font-size: 1.5rem;
  }

  .waitlist p {
    font-size: 0.9rem;
  }

  .waitlist input[type="email"], .waitlist select, .waitlist input[type="submit"] {
    font-size: 0.9rem;
  }
}
