/* font */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400&display=swap');

* {

  /* colors */
  --primary-color: #F2D245;
  --background-color: #F1C245;
  --text-color: #66644D;
  --header-color: #F0B245;
  --font-color: #33322E;
  --white-color: #f1f1f1;
  --cream-color: #f9f9f9;

  /* globals */
  --total-width: 100vw;
  --max-width: 95vw;
  --border-radius: 8px;
  --grid-gap: .6rem;
  --padding: .6rem;

  /* fonts */
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.9rem;

  /* overflow */
  overflow: -moz-scrollbars-none;
  -ms-overflow-style: none;

  /* default reset */
  cursor: auto;
  margin: 0;
  padding: 0;
  border: none;
  gap: 0;

  word-break: normal;
  overflow-wrap: break-word;
  white-space: break-word;
  letter-spacing: 0.01rem;
  line-height: 0.9rem;
  word-spacing: 0.01rem;

  color: var(--font-color);
}

html,
body {
  overflow-y: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

::-webkit-scrollbar {
  display: none;
}

/* grid  */
body {
  z-index: 0;

  width: stretch;
  width: -moz-available;
  width: -webkit-fill-available;

  height: stretch;
  height: -moz-available;
  height: -webkit-fill-available;

  display: grid;
  gap: var(--grid-gap);
  grid-template-columns: 1fr;
}

/* grid-parts */
header {
  height: fit-content;
}

nav-container {
  display: grid;
  place-items: center;
}

main {
  display: grid;
  justify-content: center;
  place-items: center;

  padding: var(--padding);
}

footer {
  padding: var(--padding);

  display: grid;
}

/* elements */

article,
aside,
div,
hgroup,
section {
  width: -webkit-fill-available;

  padding-top: calc(var(--padding)/2);
  padding-bottom: calc(var(--padding)/2);

  display: grid;
  gap: var(--grid-gap);
  place-items: center;
}

form {
  display: flex;
  gap: var(--grid-gap);
  place-items: center;
  justify-items: center;
  justify-content: space-between;
  flex-wrap: wrap;

  padding: var(--padding);
  border-radius: var(--border-radius);
  background-color: var(--primary-color);

  width: stretch;
  width: -moz-available;
  width: -webkit-fill-available;
}

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

  width: -webkit-fit-content;
  height: -webkit-fit-content;

  padding: var(--padding);
}

a:hover {
  color: var(--background-color);
}

a>img {
  width: 32px;

  -webkit-filter: invert(1);
  filter: invert(1);
}

h1 {
  font-size: 3rem;
  line-height: 3rem;
}

h2 {
  font-size: 2.6rem;
  line-height: 2.6rem;
}

h3 {
  font-size: 2.2rem;
  line-height: 2.2rem;
}

h4 {
  font-size: 1.8rem;
  line-height: 1.8rem;
}

h5 {
  font-size: 1.4rem;
  line-height: 1.4rem;
}

h6 {
  font-size: 1rem;
  line-height: 1rem;
}

nav {
  overflow: hidden;
}

nav ul li button:hover {
  background-color: var(--font-color);
}

i,
span {
  text-align: justify;
}

h1,
h2,
h3,
h4,
h5,
h6,
i,
span,
label {
  color: var(--font-color);
  font-weight: bold;
}

/* inputs */

input,
select,
textarea {
  background-color: transparent;
  border-bottom: solid 1px var(--text-color);
  color: var(--font-color);
  width: 25vw;
  padding: var(--padding);
}

::-webkit-input-placeholder {
  /* Chrome, Firefox, Opera, Safari 10+ */
  color: var(--text-color);
}

::-moz-placeholder {
  /* Chrome, Firefox, Opera, Safari 10+ */
  color: var(--text-color);
}

:-ms-input-placeholder {
  /* Chrome, Firefox, Opera, Safari 10+ */
  color: var(--text-color);
}

::-ms-input-placeholder {
  /* Chrome, Firefox, Opera, Safari 10+ */
  color: var(--text-color);
}

::placeholder {
  /* Chrome, Firefox, Opera, Safari 10+ */
  color: var(--text-color);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--background-color) !important;
}


input[type='checkbox'] {
  width: 1rem;
  height: 1rem;
  border-radius: 20%;
}

input[type='checkbox'] {
  transition: box-shadow .3s;

  cursor: pointer;
  border: solid 2px var(--header-color);

  appearance: none;
  -webkit-appearance: none;
  user-select: none;

  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

input:checked {
  box-shadow: inset 0 0 0 20px var(--background-color);
}

/* buttons */

button {
  width: 18vw;
  height: 6vh;

  background-color: var(--font-color);
  font-weight: bold;
  color: var(--white-color);

  border-radius: var(--border-radius);
  border: solid 1px var(--font-color);
}

button>img {
  width: 25px;

  -webkit-filter: contrast(.5);
  filter: contrast(.5);
}

button:hover>img {
  filter: invert(100%);
}

button:hover {
  color: var(--header-color);
  background-color: transparent;
  border: solid 1px var(--text-color);
}

button:hover::after {
  content: "  >";
}

/* table */
table {
  width: stretch;
  width: -moz-available;
  width: -webkit-fill-available;
}

table thead {
  background-color: var(--font-color);
}

table tfoot {
  background-color: var(--font-color);
}

table th,
table td {
  padding: var(--padding);
}

table th {
  color: var(--cream-color);
}

table tfoot tr td {
  color: var(--white-color);
}

table input,
table select {
  width: stretch;
  width: -moz-available;
  width: -webkit-fill-available;
}

table input:focus,
table select:focus {
  outline: none;
  border-color: var(--header-color) !important;
}

tbody tr:nth-child(even) {
  background: var(--white-color);
}

tbody tr:nth-child(odd) {
  background: var(--cream-color);
}

/* lists */

li,
ol,
ul {
  list-style: none;
  text-decoration: none;
}

li a:hover {
  background-color: var(--background-color);
  color: var(--font-color);
}

@media screen and (max-width: 500px) {

  /* Only desktop */
  .od {
    display: none;
  }

  h1 {
    font-size: 2rem;
    line-height: 2rem;
  }

  h2 {
    font-size: 1.8rem;
    line-height: 1.8rem;
  }

  h3 {
    font-size: 1.6rem;
    line-height: 1.6rem;
  }

  h4 {
    font-size: 1.4rem;
    line-height: 1.4rem;
  }

  h5 {
    font-size: 1.2rem;
    line-height: 1.2rem;
  }

  nav,
  input,
  select,
  textarea {
    grid-column: 1;
  }

  nav {
    width: stretch;
    width: -moz-available;
    width: -webkit-fill-available;
  }

  input,
  select,
  textarea {
    width: 80vw;
  }

  button {
    width: 70vw;
    height: 8vh;
    place-self: center;
  }

  form {
    display: grid;
    gap: var(--grid-gap);
    place-items: center;

    width: fit-content;
    width: -webkit-fit-content;
  }
}