
html, body {
  min-height: 100%;
  /* height: 100%; */
}

html {
  background: #333333;
}

body {
  /* font-family: 'Rubik', sans-serif; */
  /* font-family: 'Roboto', sans-serif; */
  color: var(--color-gray-dark);
  /* letter-spacing: 0.5px; */
  font-size: 1rem;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: antialiased;
  color: black;
}

h1, p {
  margin-bottom: 20px;
}

.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  display: none;
  opacity: 0;
  transition: all .5s ease-in-out;

  &.displayed {
    display: block;
  }

  &.active {
    opacity: 1;
  }

  &.backdrop-transparent {
    background-color: transparent;
  }

  &.backdrop-black {
    background-color: rgba(0,0,0,.5);
  }
}

#shareOverlay {
  display: none;
  position: fixed;
  padding: 10px;
  border-radius: 10px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 9001;
  background: white;
  opacity: 0;
  transition: all .5s ease-in-out;
  width: calc(100% - 20px);
  min-height: 200px;
  text-align: center;

  &.displayed {
    display: block;
  }

  &.active {
    opacity: 1;
  }
}

main {
  background: #004f36;
  box-shadow: 0 0 5px 5px #004f36;
  
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding-top: 80px;
  overflow-y: scroll;
}

.clear-after:after {
  content: '';
  display: block;
  clear: both;
}

.unbreak {
  white-space: nowrap;
}

a:link, a:hover, a:visited {
  color: white;
}

.error-msg {
  text-align: center;
  color: var(--color-error);
}

.has-error {
  border: 1px solid #c76f6f;
  box-shadow: #c76f6f 0 0 2px 0px inset;
}

.btn {
  display: inline-block;
  border: 0 none;
  border-radius: 4px;
  padding: 10px 20px;
  text-decoration: none !important;
  background-color: black;
  color: white;
  transition: all .25s ease-in-out;
  margin-bottom: 10px;

  &.btn-no-margin {
    margin: 0;
  }

  &:not(.disabled):hover {
    background-color: rgba(0,0,0,.25);
    box-shadow: 0 0 10px 2px rgba(0,0,0,.3), 0 0 2px 1px rgba(0,0,0,.75);
    color: black;
  }

  &.btn-height-as-field {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  &.disabled {
    background-color: gray;
    cursor: default;
    color: white;
  }
}

.btn-small {
  padding: 10px 24px !important;
  font-size: 13px;
  line-height: 20px;
}

.loading {
  border: 4px solid #f3f3f3; /* Light gray background for the circle */
  border-top: 4px solid #3498db; /* Blue color for the "swirl" part */
  border-radius: 50%; /* Makes the div a perfect circle */
  width: 40px; /* Size of the spinner */
  height: 40px; /* Size of the spinner */
  animation: spin 1s linear infinite; /* Applies the animation */
  display: inline-block;
}

@keyframes spin {
  0% { transform: rotate(0deg); } /* Start at 0 degrees rotation */
  100% { transform: rotate(360deg); } /* End at 360 degrees rotation */
}
