/**
 * Copyright (c) 2019 Nadav Tasher
 * https://github.com/NadavTasher/Template/
 **/

html {
    /* Scrolling */
    overflow-x: hidden;
    overflow-y: scroll;
    /* Sizing */
    height: 100%;
    width: 100%;
    /* Background */
    background-color: var(--theme);
}

body {
    /* Alignment */
    margin: auto !important;
}

/* Base flex */

[text], [button], [input], [row], [column], p, button, input, div, body, html {
    /* Display */
    display: flex;
    flex-direction: column;
    /* Font */
    font-family: sans-serif;
    /* Transition */
    transition-duration: 0.5s;
    /* Outline and Decoration */
    outline: none;
    text-decoration: none;
}

/* Alignment */

[text], [button], [input], p, button, input {
    /* Alignment */
    justify-content: center;
    justify-items: center;
    align-content: center;
    align-items: stretch;
}

[row], [column], div, body, html {
    /* Alignment */
    justify-content: center;
    align-content: center;
}

[row] {
    /* Flex */
    flex-direction: row;
    /* Alignment */
    align-items: stretch;
}

[column] {
    /* Flex */
    flex-direction: column;
    /* Alignment */
    align-items: stretch;
}

/* Padding, Margins */

[text], [button], [input], p, button, input {
    /* Padding, Margins */
    padding: 1.5vh;
    margin: 1.5vh;
}

[row], [column], div, body, html {
    /* Padding, Margins */
    padding: 0;
    margin: 0;
}

/* Sizing */

[text], [button], [input], [row], [column], p, button, input, div, body, html {
    /* Sizing */
    line-height: 100%;
    /* Height */
    min-height: fit-content;
}

[button], [input], button, input {
    /* Width */
    width: auto;
}

[row] > * {
    /* Width */
    width: 100%;
}

/* Border */

[button], [input], button, input {
    /* Border */
    border-style: solid;
    border-radius: 0.5vh;
}

[input], input {
    border-width: 0 0 0.5vh 0;
}

[button], button {
    border-width: 0.5vh;
}

/* Colors */

[text], [button], [input], p, button, input {
    /* Background */
    background-color: transparent;
}

[button], [input], button, input {
    /* Colors */
    color: var(--passive);
    border-color: var(--passive);
}

[button]:hover, [input]:hover, button:hover, input:hover {
    /* Colors */
    color: var(--active);
    border-color: var(--active);
}

[text], p {
    /* Colors */
    color: var(--passive);
}

/* Alignment */

[center] {
    /* Text */
    text-align: center;
    text-align-last: center;
}

[left] {
    /* Text */
    text-align: start;
    text-align-last: start;
}

[right] {
    /* Text */
    text-align: end;
    text-align-last: end;
}

/* Text */

[small] {
    /* Font */
    font-size: 2.5vh;
}

[medium] {
    /* Font */
    font-size: 4vh;
}

[large] {
    /* Font */
    font-size: 6vh;
}

/* Additional */

[hidden] {
    display: none !important;
}

*::-webkit-scrollbar {
    display: none;
}