@font-face {
  font-family: 'Ubuntu';
  src: url('./fonts/ubuntu/Ubuntu-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Ubuntu Light';
  src: url('./fonts/ubuntu/Ubuntu-Light.ttf') format('truetype');
}

@font-face {
  font-family: 'Ubuntu Medium';
  src: url('./fonts/ubuntu/Ubuntu-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'Ubuntu Bold';
  src: url('./fonts/ubuntu/Ubuntu-Bold.ttf') format('truetype');
}

html,
body {
  position: relative;
  width: 100%;
  height: 100%;
}

body {
  color: #333;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu,
    Cantarell, 'Helvetica Neue', sans-serif;
}

body.no-scroll {
  overflow: hidden;
  height: 100%;
}

a {
  color: rgb(0, 100, 200);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

a:visited {
  color: rgb(0, 80, 160);
}

label {
  display: block;
  font-family: 'Ubuntu Bold', sans-serif;
  font-weight: 700;
  font-size: 0.9em;
  margin-bottom: 10px;
}

input,
button,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  -webkit-padding: 0.4em 0;
  padding: 0.4em;
  margin: 0 0 0.5em 0;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 2px;
}

button {
  cursor: pointer;
}

hr {
  border: 0.5px solid #e4e4e4;
  margin: 20px 0 40px 0;
}

textarea {
  border-color: #d3d3d3;
  height: 80px;
  border-radius: 10px;
  max-width: 420px;
  width: 100%;
  font-family: 'Ubuntu Light', sans-serif;
  font-weight: 300;
  resize: none;
}

input {
  border-color: #d3d3d3;
  height: 46px;
  border-radius: 10px;
  max-width: 420px;
  width: 100%;
  font-family: 'Ubuntu Light', sans-serif;
  font-weight: 300;
}

input.prefilled {
  color: #646464;
}

input[type='checkbox'] {
  position: relative;
  width: 14px;
  height: 14px;
  border: none;
}

input[type='checkbox']:checked::before {
  content: url(icons/checkbox.svg);
  position: absolute;
  top: -4px;
  left: 3px;
  z-index: 10;
}

input[type='checkbox']:checked::after {
  content: '';
  background-color: #5a4c40;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  border-radius: 3px;
}

input[type='radio'] {
  width: 14px;
  height: 14px;
}

input:disabled {
  color: #ccc;
}

input::placeholder {
  font-family: 'Ubuntu Light', sans-serif;
  font-weight: 300;
  color: #646464;
}

button {
  color: #333;
  background-color: #f4f4f4;
  outline: none;
}

button:disabled {
  color: #999;
  background-color: #f4f4f4;
  outline: none;
  height: 46px;
  width: 100%;
  max-width: 420px;
  border-radius: 10px;
  border: transparent;
}

button:not(:disabled):active {
  background-color: #ddd;
}

button:focus {
  border-color: #666;
}

button.primary-button {
  background-color: #ffeb00;
  font-family: 'Ubuntu Bold', sans-serif;
  font-weight: 700;
  color: #000000;
  border-radius: 10px;
  height: 46px;
  width: 100%;
  max-width: 420px;
  /* margin: 0 auto; */
  display: block;
  transition: all ease-in 200ms;
  border: transparent;
}

button.primary-button:hover,
button.primary-button:active,
button.primary-button:focus {
  background-color: #fffab9;
}

button.secondary-button {
  background-color: #fff;
  font-family: 'Ubuntu Bold', sans-serif;
  font-weight: 700;
  color: #000000;
  border-radius: 10px;
  height: 46px;
  width: 100%;
  max-width: 420px;
  display: block;
  transition: all ease-in 200ms;
  border: solid 1px #000;
}

button.secondary-button:hover,
button.secondary-button:active,
button.secondary-button:focus {
  background-color: #f5f4f4;
}

select {
  height: 40px;
  font-weight: 500;
  border-style: solid;
  border-color: black;
  border-width: 1.5px;
  border-radius: 8px;
  padding-bottom: 10px;
  padding-right: 9px;
  background-color: #fff;
}

.blank-space {
  margin-top: 4em;
}

.under-text {
  margin-top: -1em;
}

/* ------------------------------------------------
--- Section settings
------------------------------------------------ */
.yellow-border {
  border-left: solid 10px #ffeb00;
}

main.yellow-border {
  min-height: 95vh;
}

/* ------------------------------------------------
--- Section settings
------------------------------------------------ */
section {
  max-width: 420px;
  margin: 0 auto;
}

section.fullwidth {
  margin: 0;
  padding: 0;
  max-width: inherit;
}

/* ------------------------------------------------
--- General and special font setting
------------------------------------------------ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Ubuntu Bold', san-serif;
  color: #000;
  font-weight: 700;
}

h1 {
  color: #5a4c40;
}

h2 {
  font-family: 'Ubuntu Medium', sans-serif;
  font-weight: 500;
  font-size: 1.2em;
}

.brush {
  font-family: 'Ubuntu', sans-serif;
}

.light-weight {
  font-family: 'Ubuntu Light', sans-serif;
  font-weight: 300;
}

.medium-weight {
  font-family: 'Ubuntu Medium', sans-serif;
  font-weight: 500;
}

.bold-weight {
  font-family: 'Ubuntu Bold', sans-serif;
  font-weight: 700;
}

/* ------------------------------------------------
--- Search input, filter and search button
------------------------------------------------ */
.search-input {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  max-width: 420px;
  margin: 0 auto;
}

.search-input .filter-button {
  background-color: #5a4c40;
  border-radius: 10px 0px 0px 10px;
  height: 46px;
  width: 56px;
}

.search-input input[type='text'] {
  flex-grow: 1;
  border-radius: 0;
  border-left: transparent;
  border-right: transparent;
  padding-left: 15px;
}

.search-input .search-button {
  background-color: #ffeb00;
  border-radius: 0px 10px 10px 0px;
  height: 46px;
  width: 56px;
}

/* ------------------------------------------------
--- Icon settings
------------------------------------------------ */
.icon.white {
  color: #fff;
}

.icon.black {
  color: #000;
}

@media (max-width: 440px) {
  section {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    max-width: 420px;
    margin: 0 auto;
  }

  section section {
    padding-left: 0;
    padding-right: 0;
  }
}
