/* Global styles go here. */
/* Be civil and keep this file as small as possible, please */

/* IF YOU CREATE A NEW SECTION, ADD IT TO THE INDEX! */

/**
 **************** INDEX ********************
 *
 *
 * 1. TYPOGRAPHY
 * 2. GENERAL GLOBAL STYLES
 * 3. HELPER CLASSES
 * 4. SITE HEADER
 * 5. INPUTS
 * 6. WP-POLLS //Deleted in h512.com
 * 7. BLOCKS
 */

/************* 1. TYPOGRAPHY *****************************/
@font-face {
  font-family: 'Axiforma';
  src: url('../fonts/leanfonts/Axiforma-Thin.woff') format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: 'Axiforma';
  src: url('../fonts/leanfonts/Axiforma-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: 'Axiforma';
  src: url('../fonts/leanfonts/Axiforma-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: 'Axiforma';
  src: url('../fonts/leanfonts/Axiforma-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: 'Axiforma';
  src: url('../fonts/leanfonts/Axiforma-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: 'Axiforma';
  src: url('../fonts/leanfonts/Axiforma-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: optional;
}
@font-face {
  font-family: 'Axiforma';
  src: url('../fonts/leanfonts/Axiforma-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: optional;
}
/*@font-face {*/
/*  font-family: 'Axiforma';*/
/*  src: url('../fonts/Axiforma-Bold-Italic.woff') format('woff'), url('../fonts/Axiforma-ExtraBold-Italic.woff') format('woff');*/
/*  font-weight: 700;*/
/*  font-style: italic;*/
/*}*/
/*@font-face {*/
/*  font-family: 'Axiforma';*/
/*  src: url('../fonts/Axiforma-Black-Italic.woff') format('woff'), url('../fonts/Axiforma-Heavy-Italic.woff') format('woff');*/
/*  font-weight: 900;*/
/*  font-style: italic;*/
/*}*/
/*@font-face {*/
/*  font-family: 'Axiforma book';*/
/*  src: url('../fonts/Axiforma-Book-Italic.woff') format('woff');*/
/*  font-weight: 400;*/
/*  font-style: italic;*/
/*}*/
/*@font-face {*/
/*  font-family: 'Axiforma book';*/
/*  src: url('../fonts/Axiforma-Book.woff') format('woff');*/
/*  font-weight: 400;*/
/*  font-style: normal;*/
/*}*/
/*@font-face {*/
/*  font-family: 'Axiforma';*/
/*  src: url('../fonts/Axiforma-Italic.woff') format('woff');*/
/*  font-weight: 400;*/
/*  font-style: italic;*/
/*}*/
/*@font-face {*/
/*  font-family: 'Axiforma';*/
/*  src: url('../fonts/Axiforma-Medium-Italic.woff') format('woff');*/
/*  font-weight: 500;*/
/*  font-style: italic;*/
/*}*/
/*@font-face {*/
/*  font-family: 'Axiforma';*/
/*  src: url('../fonts/Axiforma-Light-Italic.woff') format('woff');*/
/*  font-weight: 300;*/
/*  font-style: italic;*/
/*}*/
/*@font-face {*/
/*  font-family: 'Axiforma';*/
/*  src: url('../fonts/Axiforma-SemiBold-Italic.woff') format('woff');*/
/*  font-weight: 600;*/
/*  font-style: italic;*/
/*}*/
/*@font-face {*/
/*  font-family: 'Axiforma';*/
/*  src: url('../fonts/Axiforma-Thin-Italic.woff') format('woff');*/
/*  font-weight: 100;*/
/*  font-style: italic;*/
/*}*/



* {
  box-sizing: border-box;
}

body {
  font-family: Axiforma, sans-serif;
  color: var(--color-text);
  font-size: 14px;
  line-height: 140%;
  font-weight: 300;
  /*line-height: 23px;*/ /* TODO: this is the correct value, we need to implement it when we're ready to test it */
  /*letter-spacing: 0.64px;*/ /* TODO: this will need to be uncommented at one point, but the site needs to be thoroughly checked for overflowing stuff, when we do */
  /*font-weight: 400;*/ /* TODO: this is the correct value, we need to implement it when we're ready to test */
}

h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6 {
  margin: 0;
}

h1, .h1 {
  font-size: 60px;
  font-weight: 900;
  line-height: 66px;
  /*letter-spacing: 1.2px;*/
}

h2, .h2 {
  font-size: 48px;
  font-weight: 700;
  line-height: 55px;
  /*letter-spacing: 1px;*/ /* a catch-all letter spacing rule like this is a very stupid idea */
}

h3, .h3 {
  font-size: 40px;
  font-weight: 700;
  line-height: 45px;
  /*letter-spacing: 0.8px;*/
}

h4, .h4 {
  font-size: 30px;
  font-weight: 700;
  line-height: 33px;
  /*letter-spacing: 0.6px;*/
}

h5, .h5 {
  font-size: 20px;
  font-weight: 700;
  line-height: 33px;
  /*letter-spacing: 3px;*/
}

h6, .h6 {
  font-size: 16px;
  font-weight: 700;
  line-height: 23px;
}

a {
  text-decoration: none;
}

.highlighted-text {
  color: #304ffe;
}
/************* 2. GENERAL GLOBAL STYLES ******************/

img {
  max-width: 100%;
  vertical-align: middle;
  display: inline-block;
  width: auto;
  height: auto;
}

img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.container {
  width: 90%;
  max-width: 1300px;
  margin-right: auto;
  margin-left: auto;
}

.card {
  padding: 25px;
  background-color: var(--color-white);
  border-radius: 5px;
  box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.02);
}

/********** 3. HELPER CLASSES *************/

/* Apply this one to the body, for example when opening modal dialogs */
.disable-scroll {
  overflow-y: hidden;
}

/* Rounds elements */
.rounded {
  border-radius: 50%;
}

/* Makes text uppercase */
.uppercase {
  text-transform: uppercase;
}

/* spaces out the letters in a title (or text). Used in some page titles */
.spaced {
  letter-spacing: 2px;
}

/* Visually hides an element, but keeps it visible to screen readers */
.sr-only {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* creates an 'X' close button. You'll need to position it yourself though. */
.button-close::before {
  display: block;
  content: '+';
  width: 20px;
  height: 20px;
  font-size: 45px;
  transform: rotate(45deg);
  color: #cecece;
  cursor: pointer;
}

/* adds a white background and a border radius to a section */
.white-section {
  background-color: var(--color-white);
  border-radius: 5px;
  padding: 50px 48px;
}

/* creates an absolute 100% width/height link overlay. Make sure its parent is relatively positioned */
.overlay-link {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 2;
}

/* A overlay that covers the whole page. */
.curtain {
  position: fixed;
  width: 0;
  height: 0;
  background: rgba(0, 0, 0, 0);
  top: 0;
  left: 0;
  z-index: -1;
  transition: background 0.5s ease-in-out;
}

.curtain.open {
  width: 100%;
  height: 100%;
  background: #000000d9;
  z-index: 6;
}

.curtain.open.invisible {
  background: rgba( 0, 0, 0, 0 );
  z-index: 15;
}

.link-overlay-after::after {
  content: '';
  position: absolute;
  inset: 0;
}

/******************* 4. SITE HEADER ***********************/
.nav .login-links .button {
  font-size: 14px;
}

/******************* 5. INPUTS ****************************/
.devbg-input {
  padding: 14px 17px 12px;
  border: 1px solid #59595980;
  border-radius: 5px;
  color: #231F20;
  font-weight: 400;
  font-size: 16px;
  transition: all 0.2s ease-in-out;
  resize: none;
  background-color: var(--color-white);
}

.devbg-input::placeholder {
  font-size: 16px;
  color: #ADADAD;
}

.devbg-input:focus {
  border-color: var(--color-grey-50);
  outline: none;
}

.input-error,
.devbg-input-error {
  border-color: #D34835;
}

.input-error-hint {
  display: block;
  margin-top: 10px;
  color: #D34835;
}

.devbg-input-label {
  font-size: 13px;
  font-weight: 300;
  color: var(--color-text);
}

.devbg-input-label.required::after {
  content: '*';
  color: #C53A1F;
  margin-left: 2px;
}

.devbg-input.input-disabled {
  background-color: #EBEBEB;
  color: var(--color-text);
  opacity: 0.5;
  cursor: not-allowed;
}

/******************* 6. BLOCKS ****************************/
/*************** General tweaks to some blocks ************/
.wp-block-image .alignleft,
.wp-block-image .alignright {
  max-width: 50%;
}

.wp-block-image .wp-element-caption {
  font-size: 18px;
}


/* Small breakpoint */
@media screen and (max-width: 950px) {

  .h1 {
    font-size: 28px; /* this is based on an existing design, we need to standardize our heading sizes.. */
    line-height: 32px;
  }

  .h3 {
    font-size: 30px;
    line-height: 33px;
  }

  .white-section {
    padding: 25px;
  }

  .devbg-input {
    padding: 7px 17px 5px;
  }

  .hide-for-small {
    display: none !important;
  }

  .wp-block-image .wp-element-caption {
    font-size: 13px;
    line-height: 1.1;
  }
}

@media screen and (max-width: 950px) {
  .desktop-only {
    display: none !important;
  }
}

/* Medium ONLY  */
@media screen and (min-width: 951px) and (max-width: 1200px) {
  .mobile-only {
    display: none !important;
  }
}

/* large ONLY - > 1200px */
@media screen and (min-width: 1200px) {
  .mobile-only {
    display: none !important;
  }

  /*.wide-section {*/
  /*  width: 116%;*/
  /*  margin-left: -8%;*/
  /*}*/
}
