/* Resets */

:root {
  --white: #fff;
  --accent: #F89656;
  --bg: #fff;
  --bg-light: #e5e9f0;
  --bg-lighter: #d8dee9;
  --fg: #2e3440;
  --fg-light: #3b4252;
  --fg-lighter: #434c5e;
  --shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

html,
body {
  padding: 0;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

body[data-dark-mode='dark'] {
  --bg: #222;
  --bg-light: #272727;
  --bg-lighter: #333;
  --fg: #d8dee9;
  --fg-light: #e5e9f0;
  --fg-lighter: #eceff4;
  --shadow: rgb(15 17 21 / 20%) 0px 3px 6px 0px;
}

body {
  background-color: var(--bg);
  color: var(--fg);
}

a {
  color: #4064f2;
  text-decoration: none;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--fg);
}

button,
.button {
  background: var(--bg);
  color: var(--fg);
  border: 2px solid var(--fg);
  border-radius: 4px;
  height: 32px;
  padding: 0 16px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  outline: var(--fg);
  min-width: 150px;
  transition: all 0.2s ease;
}

.button:hover,
button:hover {
  border-color: var(--fg);
  outline: #000;
  cursor: pointer;
  color: var(--bg);
  background: var(--fg);
  box-shadow: var(--shadow);
}

input {
  background: var(--bg);
  color: var(--fg);
  border: 0;
  min-height: 32px;
  padding: 0 16px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
  outline: #fff;
  border-radius: 8px;
}

input[type='text'],
input[type='password'] {
  box-shadow: var(--shadow);
}

a {
  color: var(--accent);
  text-decoration: none;
}

p,
li {
  font-size: 16px;
  line-height: 30px;
}

footer {
  min-height: 32px;
  padding: 16px;
}

/* Dark Mode Resets */

body[data-dark-mode='dark'] .button:hover,
body[data-dark-mode='dark'] button:hover {
  background: var(--fg);
  color: var(--bg);
}

body[data-dark-mode='dark'] input {
  background: #191919;
  color: var(--fg);
}

/* Classes */

.button.no-border,
button.no-border {
  border: 0;
}

.button.secondary,
button.secondary {
  border: 0px;
  background: var(--bg-light);
}

.button.secondary:hover,
button.secondary:hover {
  background: var(--fg);
}

.button.icon,
button.icon {
  height: 32px;
  width: 32px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

input.large {
  font-size: 18px;
  line-height: 30px;
  padding: 16px;
}

.container-boundaries {
  padding: 16px;
  max-width: 900px;
  margin: 0 auto;
}

.container {
  min-height: 85vh;
}

.text-center {
  text-align: center;
}

.w-50 {
  width: 50%;
}

.w-100 {
  width: 100%;
}

.h-50 {
  height: 50%;
}

.h-100 {
  height: 100%;
}

.flex {
  display: flex;
}

.flex-center {
  align-items: center;
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.m-0 {
  margin: 0px;
}

.m-1 {
  margin: 8px;
}

.m-2 {
  margin: 16px;
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 16px;
}

.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mr-1 {
  margin-right: 8px;
}

.mr-2 {
  margin-right: 16px;
}

.ml-1 {
  margin-left: 8px;
}

.ml-2 {
  margin-left: 16px;
}

.ml-auto {
  margin-left: auto;
}

.mr-auto {
  margin-right: auto;
}

.p-0 {
  padding: 0px;
}

.p-1 {
  padding: 8px;
}

.pb-1 {
  padding-bottom: 8px;
}

.pb-2 {
  padding-bottom: 16px;
}

.f-small {
  font-size: 14px;
}

.f-normal {
  font-size: 16px;
}

.f-large {
  font-size: 36px;
}

.fw-normal {
  font-weight: 400;
}

.fw-bold {
  font-weight: 700;
}

.bg-default {
  background-color: var(--bg);
}

.no-wrap {
  white-space: nowrap;
}

.f-right {
  float: right;
}

.f-left {
  float: left;
}

.rounded-sm {
  border-radius: 4px;
}

.rounded-md {
  border-radius: 8px;
}

.rounded-circle {
  border-radius: 50%;
}

@media (prefers-color-scheme: dark) {
  body:not([data-dark-mode]) {
    --bg: #222;
    --bg-light: #272727;
    --bg-lighter: #333;
    --fg: #d8dee9;
    --fg-light: #e5e9f0;
    --fg-lighter: #eceff4;
    --shadow: rgb(15 17 21 / 20%) 0px 3px 6px 0px;
  }

  body:not([data-dark-mode]) .button:hover,
  body:not([data-dark-mode]) button:hover {
    background: var(--fg);
    color: var(--bg);
  }

  body:not([data-dark-mode]) input {
    background: #191919;
    color: var(--fg);
  }

  .h-100-vh {
    height: 100vh;
  }

}
