@font-face {
  font-family: "Montserrat";
  src: local("Montserrat-Regular"), local("Montserrat Regular"),
    url("../fonts/Montserrat-Regular.e16f24733a79.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: var(--input-color);
  cursor: pointer;
}

body {
  font-family: "Montserrat", sans-serif;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  margin: 0;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Montserrat";

  &:focus {
    outline: none;
  }

  &:disabled {
    cursor: default;
    background-color: var(--grey-color-2);
    /* pointer-events: none; ¿es algo estético o funcional? */
  }
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0;
  text-wrap: balance;
}

input {
  background-color: white;
  border-radius: var(--border-radius);
  border: none;
  color: var(--input-color);
  font: var(--input-font);
  min-height: var(--input-height);

  &:focus {
    outline: 3px solid var(--primary-color-3);
  }

  &:disabled {
    background-color: var(--grey-color-2);
  }
}

input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

select {
  background-color: white;
  border: none;
  border-radius: var(--border-radius);
  outline: none;
  cursor: pointer;
  color: var(--input-color);
  min-height: var(--input-height);
  padding: 0.3rem;
  font-family: var(--input-font);

  &:focus {
    outline: 3px solid var(--primary-color-3);
  }
  &:disabled {
    cursor: default;
    opacity: 1;
    background-color: var(--grey-color-2);
  }
}

textarea {
  border-radius: var(--border-radius-input);
  border: none;
  font-family: var(--font-input);
}

ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

li {
  list-style-type: none;
}

details {
  display: flex;
  flex-direction: column;
}

details summary {
  cursor: pointer;
  transition: margin 150ms ease-out;
  min-height: var(--input-height);
  line-height: 3.1rem;
  color: var(--input-color);
}

details[open] summary {
  margin-bottom: 10px;
}

.space-between {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  /*align-items: baseline;*/
}

.space-around {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 0.5rem;
  width: 100%;
}

.space-evenly {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  gap: 0.5rem;
  width: 100%;
}

.flex-column {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  justify-content: center;
}

.flex-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
  align-items: center;
}

.flex-nowrap {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  flex-wrap: wrap;
}

.flex-end {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.flex-none {
  flex: none;
}

.flex-1 {
  flex: 1;
  /*flex-basis: 6rem;*/
}

.flex-2 {
  flex: 2;
}

.hidden {
  display: none !important;
}

.disabled {
  opacity: 0.25;
  pointer-events: none;
}

.text-sm {
  font-size: min(0.8rem, 5vw);
}

.text-md {
  font-size: min(1rem, 7vw);
}

.text-italic {
  font-style: italic;
}

.text-bold {
  font-weight: bold;
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.monospace {
  font-feature-settings: "tnum";
}

.text-ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.img-contain {
  /*margin: auto;*/
  max-inline-size: 100%;
  max-height: 15rem;
  block-size: auto;
  object-fit: contain;
  overflow: hidden;
  padding: 0.5rem;
}

.input-height {
  height: var(--input-height);
}

.h-1rem {
  height: 1rem;
}

.items-center {
  align-items: center;
}

.w-full {
  width: 100%;
}

.select-text {
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}