* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: var(--foreground);
  --background: #393939;
  --secondary-background: #2a2a2a;
  --foreground: #fff1e3;
  --secondary-foreground: #fff1e390;
  --rounded-md: 10px;
  --margin-md: 1rem;
  --xxxs: 0.1rem;
  --xxs: 0.2rem;
  --xs: 0.5rem;
  --sm: 0.8rem;
  --md: 1rem;
  --font-md: 0.9rem;
}

body {
  font-family: sans-serif;
  background: var(--background);
  display: flex;
  justify-content: center;
}

.icon {
  margin-left: 0.3rem;
  width: 1rem;
  height: 1.1rem;
}

.container {
  background: var(--background);
  border: var(--foreground);
  border-width: 2px;
  margin: var(--md) var(--sm);
  width: 100%;
  max-width: 40rem;
  padding: var(--md);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
}

h1 {
  color: var(--foreground);
  font-size: 3em;
  font-weight: 700;
  background-color: var(--background);
  margin: 0;
  z-index: 2;
  position: relative;
  padding: 0px 1rem;
}

h2 {
  font-size: 1.2rem;
  margin-top: 0.7rem;
}

h3 {
  font-size: 1rem;
}

p {
  font-size: 0.9em;
  margin-top: 0.5rem;
}

/* Configure */
.configure {
  background-color: var(--secondary-background);
  margin-top: var(--margin-md);
  border-radius: var(--rounded-md);
  padding: var(--margin-md);
}
.configure-type:first-child {
  margin-top: 0;
}
.configure-type {
  text-align: left;
  border-bottom: 2px solid var(--secondary-foreground);
  padding-bottom: var(--xxs);
  margin-top: var(--md);
}
.config-item {
  display: flex;
  text-align: left;
  justify-content: space-between;
  align-items: left;
  padding-top: var(--md);
}
.config-item label {
  margin-left: var(--xs);
}
.config-item input {
  margin-left: var(--md);
}
/* Tom Select */
.ts-wrapper {
  margin-top: var(--xs);
  display: block;
}
.ts-control {
  background: var(--background) !important;
  color: var(--foreground) !important;
  border-color: var(--foreground) !important;
  font-size: var(--font-md) !important;
  border-radius: var(--rounded-md) !important;
}
.ts-control input {
  color: var(--foreground) !important;
  font-size: var(--font-md) !important;
}
.ts-wrapper.multi .ts-control > div {
  border-radius: var(--rounded-md);
  background: var(--secondary-background) !important;
  color: var(--foreground) !important;
  font-size: var(--font-md) !important;
  border-color: var(--foreground) !important;
}
.remove {
  border-left: none !important;
  margin: var(--xxxs) !important;
}
.ts-dropdown {
  margin-top: var(--xs) !important;
  background: var(--background) !important;
  color: var(--foreground) !important;
  font-size: var(--font-md) !important;
  border-radius: var(--rounded-md) !important;
  border: 1px solid var(--foreground) !important;
}
.ts-dropdown-content {
  max-height: 20rem !important;
}
.ts-dropdown .active {
  background: var(--secondary-background) !important;
  color: var(--foreground) !important;
  border-radius: var(--rounded-md) !important;
  margin: 0 var(--xxs);
}

/* Install */
.grid-btn {
  display: flex;
  justify-content: space-between;
  gap: 1.2rem;
}
.btn {
  text-decoration: none;
  border: none;
  border-radius: var(--rounded-md);
  padding: 12px 24px;
  flex: 1;
  margin-top: var(--margin-md);
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--secondary-background);
}
.btn-reddit {
  background: #ff4500;
}
.btn-reddit:hover {
  background: #cf3700;
}
.btn-discord {
  background: #5865f2;
}
.btn-discord:hover {
  background: #424bb4;
}
.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.btn-secondary {
  background: #6c757d;
}
.btn-secondary:hover {
  background: #5a6268;
}

/* Manifest Url */
.manifest-container {
  margin-top: 1rem;
  border: 2px solid var(--foreground);
  border-radius: 0.625rem;
  padding: 0.2rem;
  display: flex;
}
.manifest-url {
  margin: auto var(--sm);
  overflow: scroll;
  width: 90%;
  text-wrap: nowrap;
  scrollbar-gutter: stable;
  scroll-behavior: unset;
  /* Hide scrollbar for Chrome, Safari and Opera */
  &::-webkit-scrollbar {
    display: none;
  }
  /* Hide scrollbar for IE, Edge and Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.copy-btn {
  background: #28a745;
  border: none;
  border-radius: var(--rounded-md);
  padding: 0.5rem 15px;
  margin: 0.2rem;
  cursor: pointer;
  font-size: 0.9em;
  transition: background 0.3s ease;
  white-space: nowrap;
}
.copy-btn:hover {
  background: #218838;
}

/* Changelog */
/* The Modal (background) */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7); /* Black w/ opacity */
  backdrop-filter: blur(4px);
  text-align: left;
}

/* Modal Content/Box */
.modal-content {
  width: 80vw;
  max-width: 31rem;
  max-height: 35rem;
  background-color: var(--background);
  color: var(--foreground);
  margin: 10rem auto;
  padding: var(--sm);
  border: 2px solid var(--foreground);
  border-radius: var(--rounded-md);
  display: flex;
  flex-direction: column;
}
.changelog {
  padding: 0 1.5rem;
  padding-bottom: 1rem;
  margin: var(--sm) 0;
  background-color: var(--secondary-background);
  border-radius: var(--rounded-md);
  max-width: 29.2rem;
  max-height: 28rem;
  overflow: scroll;
}
.changelog * {
  margin-top: var(--xs);
}
.changelog h2 {
  margin-top: var(--md);
}
/* The Close Button */
.close-modal {
  color: #aaa;
  display: flex;
  width: fit-content;
  justify-content: right;
  margin-right: var(--sm);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  color: var(--foreground);
}
