:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --background: #f9fafb;
  --card-bg: #ffffff;
  --text: #1f2937;
  --text-secondary: #6b7280;
  --border: #e5e7eb;
}

*:focus {
  outline: 1px solid;
  outline-color: var(--primary-hover);
}

body {
  display: flex;
  min-height: 100vh;
  padding: 2px;
  color: var(--text);
  padding-top: min(100px, 15vw);
  flex-direction: column;
  align-items: center;
  background-color: var(--background);

  font-family: sans-serif;
}

h1 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 150px;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  transition: box-shadow 0.2s ease;
  margin-top: 10px;
  margin-bottom: 40px;
  outline: none;
}
textarea:focus {
  box-shadow: 0 0 0 10px rgba(79, 70, 229, 0.1);
}

p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  text-align: center;
}

main {
  background-color: var(--card-bg);
  max-width: 800px;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 40px;
  box-sizing: border-box;
}

button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

button:hover {
  background-color: var(--primary-hover);
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.result {
  display: none;
}

footer {
  background-color: var(--background);
  position: fixed;
  bottom: 0px;
  left: 0px;
  right: 0px;
  padding: 10px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

header {
  background-color: var(--background);
  position: fixed;
  top: 0px;
  left: 0px;
  right: 0px;
  padding: 10px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;

  nav {
    a {
      font-size: 1.1rem;
      text-decoration: none;
      color: inherit;
      margin: 20px 10px;
    }

    a:hover {
      text-decoration: underline;
    }
  }
}

[tooltip]:hover::before {
  display: block;
  content: attr(tooltip);
}

.tier-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;

  gap: 20px;
  padding: 0;
  justify-content: space-between;

  > li.tier-entry {
    padding: 20px;
    border-radius: 5px;
    flex-basis: 250px;
    flex-grow: 1;
    background-color: var(--card-bg);

    display: flex;
    flex-direction: column;
    gap: 40px;

    box-shadow: 0 0 5px 5px rgba(79, 70, 229, 0.2);

    h2 {
      margin-top: 0;
      margin-bottom: 0;
    }

    :last-child {
      margin-top: auto;
    }
  }

  > li:hover,
  > li:focus {
    transition: box-shadow 0.1s ease-in-out;
    box-shadow: 0 0 4px 4px rgba(79, 70, 229, 0.2);
  }
}

ol {
  list-style: none;
  padding-left: 0;

  li.check::before {
    padding-right: 10px;
    content: "✅";
  }

  li.cross::before {
    padding-right: 10px;
    content: "❌";
  }
}

.double-column {
  display: flex;
  flex-wrap: wrap;
  gap: 0 60px;

  * {
    flex-basis: 250px;
    flex-grow: 1;
  }
}
