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

* {
    margin: 0;
    padding: 0;
}

html {
    overflow-y: scroll;
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background-color: var(--color-background);
    color: var(--color-text-body);
    line-height: var(--line-height-body);
    font-family: var(--font-family);
    font-size: var(--s2);
}

.app {
    padding: 0 var(--s3);
}

img,
picture,
svg {
    display: block;
    max-inline-size: 100%;
}

form {
    padding: var(--s2);
}

input,
button,
textarea,
select {
    font: inherit;
}

input[type="checkbox"] {
    width: var(--s2);
    height: var(--s2);
}

input[type="checkbox"],
input[type="submit"] {
    cursor: pointer;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  text-indent: 1px;
  text-overflow: '';
}

h1,
h2,
h3,
h4,
h5,
h6 {
    /* color: var(--color-text-header); */
    line-height: var(--line-height-headers);
}

h1 {
    font-size: var(--s4);
}

h2 {
    font-size: var(--s3);
}

h3 {
    font-size: var(--s2);
}

h4 {
    font-size: var(--s1);
}


a {
    color: white;
    text-decoration: none;
    transition: color 200ms;

    &:hover,
    &:focus,
    &:active {
        color: var(--color-primary);
    }
}

button {
    transition: color 200ms;
    transition: border-color 200ms;
}


select, input {
    background-color: black;
    color: white;
    padding: var(--s-1);
    border: solid white var(--s-5);

    &:hover,
    &:focus,
    &:active {
        outline: none;
        border: solid var(--color-primary) var(--s-5);
    }
}

button {
    cursor: pointer;
    background-color: black;
    color: white;
    padding: var(--s-3);
    border: solid white var(--s-5);

    &:hover,
    &:focus,
    &:active {
        outline: none;
        border: solid var(--color-primary) var(--s-5);
        color: var(--color-primary);
    }
}
