:root {
  --active-font-color: red;
  --base-font-size: 19px;
  --deactive-color: #d7d7db;
  --grey-color: #d7d7db;
  --dark-grey-color: #5e5c5b;
  --error-background-color: #ffbfc5;
  --error-border-color: #ff7070;
  --error-font-color: #ff4f5e;
  --footer-height: 60px;
  --footer-margin-top: 1.5rem;
  --header-height: 65px;
  --light-border-color: #efefef;
  --main-bg-color: white;
  --main-font-color: black;
  --main-border-radius: 3px;
  --main-font-family: 'Open Sans', sans-serif;
  --max-content-width: 85vw;
  --second-bg-color: black;
  --second-font-color: white;
  --second-font-family: 'Zilla Slab', serif;
  --success-border-color: #46ff55;
  --success-background-color: #71ffc4;
  --review-selected-color: #000000;
  --review-unselected-color: #ffffff;
  --warning-border-color: #ffff00;
  --warning-background-color: #ffffb9;
}

html {
  font-family: var(--main-font-family);
  font-size: var(--base-font-size);
  color: var(--main-font-color);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  /** Prevent the "tinder-card" movement from temporarily trigger a horizontal scrollbar */
  overflow-x: hidden;
}

input,
textarea,
button,
select {
  font-family: var(--main-font-family);
  font-size: 0.8rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--second-font-family);
  font-weight: 400;
  margin: 0.3em 0;
}

h1 {
  font-size: 1.8rem;
}

h2 {
  font-size: 1.6rem;
}

h3 {
  font-size: 1.2rem;
}

h4 {
  font-size: 1rem;
}

a {
  color: inherit;
}

input {
  border-radius: var(--main-border-radius);
  border: 1px solid #959595;
  padding: 0.2rem;
}

.button,
button {
  transition: background-color 300ms, border-color 300ms, color 300ms;
  background-color: var(--main-bg-color);
  border: 2px solid var(--second-bg-color);
  color: var(--main-font-color);
  cursor: pointer;
  font-weight: 600;
  padding: 0.5rem 1rem;
  text-decoration: none;
  text-align: center;
  border-radius: 50px;
}

.button:disabled,
button:disabled {
  background-color: var(--deactive-color);
  border-color: var(--deactive-color);
  box-shadow: none;
}

.button:not(:disabled):hover,
.button:not(:disabled):active,
button:not(:disabled):hover,
button:not(:disabled):active {
  background-color: var(--second-bg-color);
  color: var(--second-font-color);
}

.button:not(:disabled):active,
button:not(:disabled):active {
  box-shadow: none;
}

.button.secondary,
button.secondary {
  background-color: var(--main-bg-color);
  border-color: var(--light-border-color);
  color: var(--main-font-color);
  margin: 0.5rem;
  padding: 0.2rem 1rem;
}

.button.secondary:hover,
.button.secondary:active,
button.secondary:hover,
button.secondary:active {
  background-color: var(--main-bg-color);
  border-color: var(--second-bg-color);
  color: var(--main-font-color);
}

.button.big,
button.big {
  padding: 0.5rem 1rem;
}

select {
  padding: 0.2rem 0;
  max-height: 2rem;
}

#root {
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
}

main {
  max-width: var(--max-content-width);
  margin: 1.5rem auto 0 auto;
  padding-bottom: max(calc(var(--footer-height) + var(--footer-margin-top) + 50px), 200px);
}

form section {
  padding: 0.4rem 0;
}

form label {
  display: inline-block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

form input[type='checkbox'] {
  vertical-align: middle;
  position: relative;
  bottom: 1px;
  margin: 0 10px 0 0;
}

form input[type='password'],
form input[type='text'] {
  width: 100%;
  margin-bottom: 0.5rem;
}

form button:not(.standalone) {
  margin: 0.5rem;
  display: inline-block;
}

.form-message {
  line-height: 1rem;
  text-align: center;
  font-weight: 600;
}

.loading-text {
  display: inline-block;
  font-size: 80%;
  font-weight: 600;
  width: 40%;
}

.no-bullets {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.error-message {
  color: var(--error-font-color);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.small {
  font-size: 0.7rem;
}

.box {
  margin: 1.5rem 0;
  padding: 1rem;
}

.box.success {
  border: 2px solid var(--success-border-color);
  background-color: var(--success-background-color);
}

.box.error {
  border: 2px solid var(--error-border-color);
  background-color: var(--error-background-color);
}

.box.warning {
  border: 2px solid var(--warning-border-color);
  background-color: var(--warning-background-color);
}

.row {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.loading-container {
  position: relative;
}

.spinning:before {
  content: '';
  width: 0px;
  height: 0px;
  border-radius: 50%;
  right: 6px;
  top: 50%;
  position: absolute;
  border-right: 3px solid #2795ae;
  animation: rotate360 0.5s infinite linear, exist 0.1s forwards ease;
}

.loading-container .spinning:before {
  right: unset;
  left: 0px;
}

.loading-container p {
  margin-left: 30px;
}

@keyframes rotate360 {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes exist {
  100% {
    width: 15px;
    height: 15px;
    margin: -8px 5px 0 0;
  }
}
