@import url('css/reset.css');
@import url('css/fonts.css');

/*
  index.css
  Write any global CSS for your app here.
*/

[data-mod-theme="light"],
[data-mod-theme="dark"] {
  --mod-brand: #0099ff;
}

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

:root {
  --brand: #47411f;
  --brand-rgb: 71, 65, 31;
}

body {
  font-family: 'Barlow', sans-serif;
  font-size: 16px;
  line-height: 1.5em;
  background: var(--brand);
  position: relative;
  overflow-x: hidden;
}

body:after {
  content: "";
  display: block;
  position: fixed;
  z-index: 0;
  background: url('/grunge.webp') repeat;
  background-size: cover;
  opacity: 0.06;
  inset: 0;
  z-index: -1;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sohne Breit', sans-serif;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

/* buttons */

.button {
  border: none;
  background: none;
  display: inline-block;
  width: auto;
  padding: 15px 25px;
  border-radius: 30px;
  font-size: 16px;
  line-height: 1em;
  cursor: pointer;
  font-family: "Barlow";
}

a.button {
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
  line-height: 16px;
}

.button:active {
  position: relative;
  top: 2px;
}

.button-primary {
  background: #8C8457;
  color: #fff;
  transition: all 0.5s ease;
}

.button > .fa-arrow-right {
  transition: transform 0.5s ease;
  position: relative;
  top: 1px;
}

.button:hover > .fa-arrow-right {
  transform: translateX(3px);
}

.button-primary:hover {
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
}

.button-secondary {
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  transition: all 0.5s ease;
}

.button-secondary:hover {
  background: #8C8457;
  color: #fff;
}

.button-radius {
  border-radius: 5px;
}

.button-block {
  width: 100%;
  display: block;
}

/* Vendor resets*/

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Forms */

.input-label {
  display: flex;
  font-size: 18px;
  line-height: 1.4em;
  width: 100%;
  margin-bottom: 15px;
}

.input {
  background: rgba(0, 0, 0, 0.2);
  padding: 15px 15px 20px 20px;
  font-size: 18px;
  line-height: 1.4em;
  border-radius: 5px;
  border: none;
  font-family: 'Barlow', sans-serif;
  color: #fff;
  width: 100%;
  display: block;
}

input[type="checkbox"] {
  width: auto;
  font-size: 1px;
  line-height: 1px;
  padding: 0px;
  background: none;
  border: none;
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  top: 1px;
  margin-right: 10px;
}

input[type="checkbox"]:focus {
  outline: none;
  border: none;
  background: none;
}

input[type="checkbox"]:after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.5);
}

input[type="checkbox"]:checked:after {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.7);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l2.5 2.5L10 3' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

input[type="radio"] {
  width: auto;
  font-size: 1px;
  line-height: 1px;
  padding: 0px;
  background: none;
  border: none;
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  top: 1px;
  margin-right: 10px;
  cursor: pointer;
}

input[type="radio"]:focus {
  outline: none;
  border: none;
  background: none;
}

input[type="radio"]:after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.5);
}

input[type="radio"]:checked:before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 1;
}

.input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.input::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.input:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.input::-moz-placeholder {
  color: rgba(255, 255, 255, 0.7);
  opacity: 1; /* Firefox requires setting opacity */
}

.input:focus { 
  outline: 0;
  background: rgba(0, 0, 0, 0.3);
}

.select-input {
  position: relative;
}

.select-input > .fa-chevron-down {
  position: absolute;
  top: 50%;
  right: 15px;
  margin-top: -10px;
  font-size: 20px;
  color: #fff;
}
.select-input select {
  appearance: none;        /* Standard */
  -webkit-appearance: none; /* Safari/Chrome */
  -moz-appearance: none;    /* Firefox */
}

.input-field {
  margin-bottom: 20px;
}

.input-hint { 
  font-size: 16px;
  line-height: 1.4em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 10px;
}

.alert {
  padding: 20px;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.15);
  color: #fff;
  gap: 5px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-size: 17px;
}

.alert i {
  position: relative;
  top: 1px;
  font-size: 20px;
  margin-right: 7px;
}

.alert strong {
  font-weight: 600;
}

.alert a {
  color: #fff;
}

input:focus {
  outline: 0;
  border: none;
  box-shadow: none;
}

.input-hint.error {
  color: #fa5454;
}

@keyframes flash_opacity {
  0% { opacity: 0.1; }
  50% { opacity: 0.5; transform: rotate(3deg); }
  100% { opacity: 0.1; }
}

@media screen and (min-width: 740px) {
  .input-grid {
    display: flex;
    gap: 20px;
  }

  .input-grid * {
    flex: 1;
  } 

  .input-field.no-margin {
    margin: 0px !important;
  }
}
