:root {
    --dark_purple: hsl(245, 23%, 21%);
    --medium_purple: hsl(244, 11%, 50%);
    --light_purple: hsl(240, 22%, 90%);
    --red: hsl(0, 57%, 58%);
    --beige: hsl(0, 10%, 90%);
    --button: rgba(133, 133, 168, 95%);
    --title: hsl(245, 23%, 70%);
}

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

@font-face {
  font-family: "Roboto Flex";
  src: url("../fonts/RobotoFlex.d9acae3692d9.ttf") format("truetype");
  font-weight: 100 1000;
  font-stretch: 75% 125%;
  font-style: normal italic;
}


/* BASE */

html,
body {
    height: 100%;
    line-height: 1.5;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    font-family: 'Roboto Flex', sans-serif;
    color: var(--dark_purple);
    font-size: 1em;
    font-weight: 300;
    overflow-x: hidden;
    background-color: #fff;
    scroll-behavior: smooth;
    text-rendering: unset;
    -webkit-font-smoothing: unset;
}

body {
    margin: 0;
    margin: auto;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body._lock {
    overflow: hidden;
}

h1 {
    font-size: 3em;
    line-height: 1.2;
    font-weight: 500;
}

h2 {
    font-size: 2.2em;
    line-height: 1.1;
    font-weight: 500;
    margin: 2rem 0 10px 0;
}

h2:first-child {
    margin-top: 0;
}

@media (max-width: 845px) {

    h2 {
        font-size: 1.6em;
    }

}

h3 {
    font-size: 1.3em;
    font-weight: 500;
    line-height: 1.2;
    margin: 2rem 0 10px 0;
}

h4 {
    font-size: 1.1em;
    font-weight: 500;
}

p, a {
    margin-bottom: 0;
    line-height: 1.4;
    font-size: 1em;
}

b {
    font-weight: 600;
}

hr {
    -moz-box-sizing: content-box;
    box-sizing: content-box;
    height: 0;
	border: none;
	border-bottom: 1px solid #222224;
}

a {
    background-color: transparent;
    -webkit-text-decoration-skip: objects;
    text-decoration: none;
    transition: 0.6s ease;
}

a:hover {
    transition: 0.3s ease;
}

img {
    border-style: none;
    vertical-align: top;
    width: 100%;
    height: auto;
}

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

button,
input,
optgroup,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    margin: 0;
    -webkit-appearance: none;
    -webkit-border-radius: 0;
    border-radius: 0;
    background-color: transparent;
}


input:focus,
select:focus,
textarea:focus {
    outline: none;
}

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button,
html [type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
    outline: 1px dotted ButtonText;
}

fieldset {
    padding: 0.35em 0.75em 0.625em;
}

legend {
    box-sizing: border-box;
    color: inherit;
    display: table;
    max-width: 100%;
    padding: 0; /* 3 */
    white-space: normal;
}

progress {
    display: inline-block;
    vertical-align: baseline;
}

textarea {
    overflow: auto;
}

[type="checkbox"],
[type="radio"] {
    box-sizing: border-box;
    padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
    height: auto;
}

[type="search"] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
    font: inherit;
}

.hide {
    display: none;
}

.container {
    position: relative;
    display: flex;
    flex-direction: column;
    /*margin-top: 90px;*/
    flex: 1;
}

.button {
    background-color: var(--button);
    color:  white;
    padding: 1rem 3rem;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: 300;
    width: 300px;
    font-size: 15px;
    letter-spacing: 1px;
    cursor: pointer;
    text-align: center;
    display: inline-block;
}

.button:hover {
    background-color: var(--medium_purple);
}

.main_title {
    display: flex;
    justify-content: center;
    margin: 1rem auto 2rem auto;
    flex-direction: column;
    align-items: center;
    padding: 0 10%;
    text-align: center;
}

.main_title h1 {
     color: var(--title);
     text-transform: uppercase;
     letter-spacing: 1px;
     font-size: 3.5rem;
}

@media (max-width: 1025px) {

    /*.container {
        margin-top: 70px;
    }*/

    .main_title h1{
        font-size: 2rem;
    }

}

@media (max-width: 430px) {
    .main_title h1{
        font-size: 1.8rem;
    }
}

.error_404 {
    padding: 0 10% 2rem 10%;
    text-align: center;
    font-size: 2rem;
}

.error_404 .main_title h1 {
    font-size: 7rem;
}

@media (max-width: 520px) {
    .error_404 {
        padding: 0 10px 2rem 10px;
        text-align: center;
        font-size: 1.3rem;
    }

    .error_404 .main_title h1 {
        font-size: 5rem;
    }
}