:root {
  --font-main: Inter, Arial, Helvetica, sans-serif;
  --font-header: Forum, Times, serif;
  --color-accent: #bb945f;
}

html {
  font-size: 20px;
  scroll-behavior: smooth;
  /* overflow-x: hidden; */
  display: flex;
  justify-content: center;
}

body {
  width: 100%;
  max-width: 1440px;
  font-family: var(--font-main);
  margin: 0;
}

h1 {
  font-weight: 400;
  font-family: var(--font-header);
  font-size: 1.5rem;
  letter-spacing: 0.5px;
}
h2 {
  display: block;
  color: black;
  font-weight: 400;
  font-family: var(--font-header);
  text-align: center;
  font-size: 2rem;
  letter-spacing: 2px;
}
h2::after {
  content: '';
  display: block;
  margin: 1rem auto 2rem;
  width: 50px;
  height: 1px;
  background-color: black;
}
h3 {
  color: var(--color-accent);
  font-weight: 400;
  font-family: var(--font-header);
  font-size: 2rem;
  letter-spacing: 2px;
}
h4 {
  letter-spacing: 2px;
}
h5 {
  font-family: var(--font-header);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.1px;
  text-transform: uppercase;
  margin: 1rem 0;
}

ul,
ul li {
  list-style: none;
  padding: 0px;
  margin: 0px;
}

button:not(.own, :disabled),
a {
  cursor: pointer;
}
button,
a,
a:link,
a:visited {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease-in-out;
}
a:hover {
  color: var(--color-accent);
}

wrap-row {
  display: flex;
  flex-wrap: wrap;
}

.small {
  font-size: 0.75rem;
}
.right {
  text-align: right;
}
.spacing {
  letter-spacing: 2px;
}
.strong {
  font-weight: bold;
}

.small-button {
  width: 3.75rem;
  height: 1.5rem;
  border: 1px solid black;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  background-color: transparent;
  transition: color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}
.disabled,
.small-button:disabled {
  cursor: default;
  opacity: 0.6;
}
.small-button:not(.own, :disabled):hover {
  color: white;
  background-color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

input[type='radio'] {
  accent-color: black;
  width: 0.75rem;
  height: 0.75rem;
}

.relative-container {
  position: relative;
}

/* Modal */
#modal_register,
#modal_login,
#modal_profile,
#modal_buy_card {
  z-index: 100;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
}
#modal_register h5,
#modal_login h5 {
  text-align: center;
  width: 100%;
}
.modal_inner {
  box-sizing: border-box;
  width: 250px;
  position: relative;
  background-color: white;
  padding: 0 1.25rem;
}
#modal_register .modal_inner {
  height: 382px;
}
#modal_login .modal_inner {
  height: 262px;
}
#modal_profile .modal_inner {
  width: 600px;
  height: 400px;
  display: flex;
  flex-direction: row;
  padding: 0;
}
#modal_buy_card .modal_inner {
  width: 640px;
  height: 540px;
  display: flex;
  flex-direction: column;
  padding: 0;
}
.modal_close {
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}
.modal_inner form {
  display: flex;
  flex-direction: column;
  row-gap: 0.5rem;
  width: 200px;
}
.modal_inner label {
  font-size: 0.75rem;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  row-gap: 0.5rem;
}
.modal_inner input {
  border: 1px solid var(--color-accent);
}
.modal_inner button {
  margin-top: 0.5rem;
}
.modal_info {
  font-size: 0.5rem;
}
.modal_inner a {
  letter-spacing: 1px;
  text-decoration: underline;
}

/* Profile */
.profile_stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  row-gap: 0.5rem;
}
.profile_score {
  font-size: 0.5rem;
}
