/*!
Theme Name: codex
Author: Nikita Pankin based on Underscores.
Description: Special for Codex <3
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
*/

/* 
Reset
*/

/**
 * Render the `main` element consistently in IE.
 */

@layer reset {
  .site {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
  }
  main {
    display: block;
    flex-grow: 1;
  }
  header, footer {
    flex-shrink: 0;
  }

  a, button {
    cursor: pointer;
  }

  * {
    padding: 0px;
    margin: 0px;
    border: none;
  }

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

  /* Links */

  a, a:link, a:visited  {
      text-decoration: none;
      color: inherit;
      display: block;
  }

  a:hover  {
      text-decoration: none;
  }

  /* Common */

  aside, nav, footer, header, section, main {
    display: block;
  }

  h1, h2, h3, h4, h5, h6, p {
      font-size: inherit;
    font-weight: inherit;
  }

  ul, ul li {
    list-style: none;
  }

  img {
    vertical-align: top;
  }

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

  address {
    font-style: normal;
  }

  /* Form */

  input, textarea, button, select {
    font-family: inherit;
      font-size: inherit;
      color: inherit;
      background-color: transparent;
  }

  input::-ms-clear {
    display: none;
  }

  button, input[type="submit"] {
      display: inline-block;
      box-shadow: none;
      background-color: transparent;
      background: none;
      cursor: pointer;
  }

  input:focus, input:active,
  button:focus, button:active {
      outline: none;
  }

  button::-moz-focus-inner {
    padding: 0;
    border: 0;
  }

  label {
    cursor: pointer;
  }

  legend {
    display: block;
  }

  * {
    -webkit-appearance: none;
    appearance: none;
  }


  /* 
  404
  */
  .error-404 {
    margin-top: 20vh;
    display: grid;
    align-items: center;
    justify-items: center;
    height: 100%;
    a {
      color: #33f;
    }
  }
}