@tailwind base;
@tailwind components;
@tailwind utilities;

/* GLOBAL ENFORCED STYLES */

* {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

:root {
  --primary-color: #00c7c5;
  --secondary-color: #ff7518;
  --custom-black: #191f21;
  --main-background-color: #e9f3ff;
  --full-white: #ffffff;
  --gray100: #f2f2f2;
  --gray300: #bebebe;
  --gray500: #8c8c8c;
  --gray700: #525252;
  --gray900: #454545;
  --card-shadow: 0px 1px 3px rgba(0, 0, 0, 0.25);
  --card-radius: 8px;
}

*:before,
*:after {
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  height: auto;
  background: var(--main-background-color);
}

h1 {
  font-size: 38px;
  font-weight: bold;
  font-family: 'Fira Sans Condensed', sans-serif;
}

h2 {
  font-size: 36px;
  font-weight: bold;
  font-family: 'Fira Sans Condensed', sans-serif;
}

h3 {
  font-size: 30px;
  font-weight: bold;
  font-family: 'Fira Sans Condensed', sans-serif;
}

h4 {
  font-size: 26px;
  font-weight: bold;
  font-family: 'Fira Sans Condensed', sans-serif;
}

a {
  color: inherit; /* blue colors for links too */
  text-decoration: inherit; /* no underline */
}

a:hover {
  color: inherit; /* blue colors for links too */
  text-decoration: inherit; /* no underline */
}

a:active {
  outline: none;
}

button:focus {
  outline: none;
}
button:active {
  outline: none;
}

/** NPROGRESS BAR */

/* Make clicks pass-through */
#nprogress {
  pointer-events: none;
}

#nprogress .bar {
  background: #29d;

  position: fixed;
  z-index: 1031;
  top: 0;
  left: 0;

  width: 100%;
  height: 2px;
}

/* Fancy blur effect */
#nprogress .peg {
  display: block;
  position: absolute;
  right: 0px;
  width: 100px;
  height: 100%;
  box-shadow: 0 0 10px #29d, 0 0 5px #29d;
  opacity: 1;

  -webkit-transform: rotate(3deg) translate(0px, -4px);
  -ms-transform: rotate(3deg) translate(0px, -4px);
  transform: rotate(3deg) translate(0px, -4px);
}

/* Remove these to get rid of the spinner */
#nprogress .spinner {
  display: block;
  position: fixed;
  z-index: 1031;
  top: 15px;
  right: 15px;
}

#nprogress .spinner-icon {
  width: 25px;
  height: 25px;
  box-sizing: border-box;

  border: solid 2px transparent;
  border-top-color: #29d;
  border-left-color: #29d;
  border-radius: 50%;

  -webkit-animation: nprogress-spinner 400ms linear infinite;
  animation: nprogress-spinner 400ms linear infinite;
}

.nprogress-custom-parent {
  overflow: hidden;
  position: relative;
}

.nprogress-custom-parent #nprogress .spinner,
.nprogress-custom-parent #nprogress .bar {
  position: absolute;
}

@-webkit-keyframes nprogress-spinner {
  0% {
    -webkit-transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
  }
}
@keyframes nprogress-spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* CUSTOM GLOBAL OPT-IN CLASSES */

.g-input {
  -webkit-transition: all 0.2s ease-in-out;
  -moz-transition: all 0.2s ease-in-out;
  -ms-transition: all 0.2s ease-in-out;
  -o-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
  background: #ffffff;
  padding: 7px 13px;
  outline: none;
  color: #000000;
  font-family: 'Fira Sans Condensed', sans-serif;
  font-weight: 700;
  border-radius: 7px;
  width: 100%;
}

.g-invalid-input:required:invalid {
  /* -webkit-appearance: none; */
  z-index: 2;
  outline: none;
  box-shadow: 0 0 0 1px rgba(255, 0, 0, 0.3), 0 1px 1px 0 rgba(0, 0, 0, 0.07), 0 0 0 4px rgba(255, 0, 0, 0.3);
}

.g-border {
  border: 1px solid #cccccc;
  border-radius: 7px;
}

.g-primary-button {
  font-family: 'Fira Sans Condensed', sans-serif;
  font-weight: bold;
  white-space: nowrap;
  border: none;
  text-align: center;
  outline: none;
  cursor: pointer;
  border-radius: 5px;
  padding: 15px;
  padding-left: 35px;
  padding-right: 35px;
  cursor: pointer;
}

.g-primary-button:hover {
  filter: brightness(98%);
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.35);
  transition: all 0.2s;
}

.g-card {
  background-color: var(--full-white);
  box-shadow: var(--card-shadow);
  border-radius: var(--card-radius);
}

@tailwind utilities;
