:root {
  --clr-accent-400: hsl(12, 88%, 59%);
  --clr-accent-100: hsl(13, 100%, 96%);

  --clr-primary-400: hsl(228, 39%, 23%);

  --clr-neutral-100: hsl(233, 12%, 13%);
  --clr-neutral-900: hsl(0, 0%, 98%);

  --ff-primary: "Be Vietnam Pro", sans-serif;

  --ff-body: var(--ff-primary);
  --ff-heading: var(--ff-primary);

  --fw-regular: 400;
  --fw-semi-bold: 500;
  --fw-bold: 700;

  --fs-300: 0.8125rem;
  --fs-400: 0.875rem;
  --fs-500: 1rem;
  --fs-600: 1.875rem;
  --fs-700: 2.5rem;
  --fs-750: 2.8rem;
  --fs-800: 8rem;
}

@media (min-width: 35em) {
  :root {
    --fs-800: 5rem;
    --fs-750: 2.8rem;
    --fs-600: 1.5rem;
    --fs-500: 1.25rem;
    --fs-400: 1rem;
  }
}

@media (min-width: 44rem) {
  :root {
    --fs-800: 5rem;
    --fs-750: 6.25rem;
    --fs-600: 1.5rem;
    --fs-500: 1.25rem;
    --fs-400: 1rem;
  }
}

@media (min-width: 75rem) {
  :root {
    /* font-sizes */
    --fs-750: 9.6rem;
    --fs-700: 3.5rem;
    --fs-600: 2rem;
    --fs-500: 1.75rem;
    --fs-400: 1.125rem;
  }
}

/* https://piccalil.li/blog/a-modern-css-reset/ */

/* Box sizing rules */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margin */
* {
  margin: 0;
  padding: 0;
  font: inherit;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core root defaults */
html:focus-within {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
  font-size: 62.5%;
}

/* Set core body defaults */
body {
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  font-family: var(--ff-primary);
  font-size: 1.4rem;

  overflow-x: hidden;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */
img,
picture,
svg {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
}

/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

#login-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal {
  position: fixed;
  z-index: 100;
  top: 15%;
  background: #e6ecf0;
  padding: 1rem 0 2rem 0;
  border-radius: 10px;
  width: 100%;
  max-width: 450px;
  max-height: 80vh;
  /* text-align: center; */
}
.signup-modal {
  background: #e6ecf0;
  padding: 1rem 0 2rem 0;
  border-radius: 10px;
  width: 450px;
  max-height: 60vh;
  /* text-align: center; */
}

form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 400px;
  margin: 1rem auto;
}

form label {
  margin-bottom: 0.8175rem;
}

::placeholder {
  font-size: 2rem;
  color: var(--clr-primary-400);
}

.top-form {
  display: flex;
  justify-content: flex-end;
}

.top-form .close-modal {
  cursor: pointer;
  padding: 0 2rem;
  font-size: 2rem;
}

.signup-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 1rem auto;
}

.form-control {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.signup-form h2 {
  letter-spacing: 2px;
  font-size: var(--fs-700);
}

.signup-form span {
  opacity: 0.7;
}

.signup-form form input {
  width: 75%;
  margin-bottom: 1rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid #d0d5db;
  outline: none;
  border-radius: 3px;
}

.signup-form button {
  padding: 1.2rem 0;
  width: 75%;
  border: 0;
  border-radius: 3px;
  margin: 1rem auto;
  background-color: var(--clr-primary-400);
}

.register-link {
  font-size: 1rem;
  letter-spacing: 1.7px;
}

.register-link:hover {
  transform: scale(1.1);
  transition: 0.3s;
}

.close {
  visibility: hidden;
}

@media (max-width: 35em) {
  body {
    position: relative;
  }
  #signup-modal {
    top: -13%;
    right: 120%;
    width: 100%;
    position: absolute;
  }

  .modal {
    max-width: 300px;
    max-height: 90vh;
  }
}
