/**
 * GLOBAL STYLES TO WHOLE APPLICATION.
 *
 */
@import 'normalize.css';
@import 'variables';

*, *:before, *:after {
  box-sizing: inherit;
  -webkit-font-smoothing: antialiased;
}
html {
  box-sizing: border-box;
}

body {
  font-size: 16px;
  font-family: var(--body-font-family);
  color: #222;

  :global &.fonts-loaded {
    font-family: var(--body-font-family-loaded);
    & textarea, input, select, button {
      font-family: var(--body-font-family-loaded);
    }
  }
}

form {
  &:focus {
    outline: none;
  }
}

h1,h2,h3,h4,h5,h6 {
  font-family: inherit;
}

h2 {
  margin-top: 0;
  font-size: 36px;
  margin-bottom: 20px;
}
h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 24px;
}
p { 
  margin-top: 0;
  margin-bottom: 14px;
  line-height: 1.57;
}


a {
  color: var(--link-color);
  text-decoration: none;
  &:hover {
    color: var(--link-hover-color);
  }
}

img {
  max-width: 100%;
  height: auto;
}

ul,
ol {
  margin-top: 0.7em;
  margin-bottom: 1.41hem;
}
ul li,
ol li {
  line-height: 1.57;
  margin-bottom: 8px;
}
ul ul,
ol ul,
ul ol,
ol ol {
  margin-top: 0;
  margin-bottom: 0;
}
/* Code blocks */
code {
  word-wrap: normal;
  white-space: pre;
  white-space: pre-wrap;
  white-space: -moz-pre-wrap;
  white-space: -o-pre-wrap;
}

pre {
  font-family: "Courier 10 Pitch", Courier, monospace;
  padding: 16px;
  overflow: auto;
  font-size: 85%;
  line-height: 1.45;
  background-color: #f7f7f7;
  border-radius: 3px;
  word-wrap: normal;
}

input {
  position: relative;
  padding: 6px 11px 5px;
  line-height: 1.57;
  border-radius: 3px;
  position: relative;

  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: #fff;
  &:focus {
    border: 1px solid rgba(0, 0, 0, 0.2);
    outline: none;
  }
}


[role="button"],
input[type="submit"],
input[type="reset"],
input[type="button"],
button {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  color: var(--link-color);
  text-decoration: none;
  &:hover {
    color: var(--link-hover-color);
  }
}

/* Reset `button` and button-style `input` default styles */
input[type="submit"],
input[type="reset"],
input[type="button"],
button {
  cursor: pointer;
  background: none;
  border: 0;
  color: inherit;
  /* cursor: default; */
  font: inherit;
  line-height: normal;
  overflow: visible;
  outline: none;
  padding: 0;
  -webkit-appearance: button; /* for input */
  -webkit-user-select: none; /* for button */
  -moz-user-select: none;
  -ms-user-select: none;

  color: var(--link-color);
  text-decoration: none;
  &:hover {
    color: var(--link-hover-color);
  }
  &:active {
    outline: none;
  }
}
input::-moz-focus-inner,
button::-moz-focus-inner {
    border: 0;
    padding: 0;
}

/* Make `a` like a button */
[role="button"] {
    color: inherit;
    cursor: default;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    white-space: pre;
    -webkit-user-select: none;
       -moz-user-select: none;
        -ms-user-select: none;
}

input::-webkit-contacts-auto-fill-button {
  visibility: hidden;
  display: none !important;
  pointer-events: none;
  position: absolute;
  right: 0;
}

