html {

}

body {
    --font-size: 1rem;
    --font-size-xxxxl: 2rem;
    --font-size-xxxl: 1.5rem;
    --font-size-xxl: 1.125rem;
    --font-size-xl: 1rem;
    --font-size-l: 0.875rem;
    --font-size-m: 0.75rem;
    --font-size-s: 0.6875rem;
    --font-size-xs: 0.625rem;
    --font-size-xxs: 0.625rem;

    --font-weight-normal: 200;
    --font-weight-bold: 400;
    --font-weight-super-bold: 800;

    --border-radius: 0.125em;

    --theme-font-color: #000000;
    --theme-aside-font-color: rgba(0, 0, 0, 0.8);
    --theme-light-font-color: #ffffff;
    --theme-light-base-color: #ffffff;
    --theme-dark-base-color: #333333;
    --theme-light-shadow-color: #efefef;
    --theme-shadow-color: #cccccc;
    --theme-dark-shadow-color: #aaaaaa;
    --theme-border-color: #cccccc;
    --theme-border-radius: 3px;
    --theme-highlight-color: #ffdede;

    --theme-component-color-primary: #4a00ab;
    --theme-component-color-primary-75: rgba(138, 44, 255, 0.75);
    --theme-component-color-primary-50: rgba(138, 44, 255, 0.5);
    --theme-component-color-primary-25: rgba(138, 44, 255, 0.25);

    --theme-component-color-secondary : #7728db;
    --theme-component-color-secondary-75: rgba(119, 40, 219, 0.75);
    --theme-component-color-secondary-50: rgba(119, 40, 219, 0.5);
    --theme-component-color-secondary-25: rgba(119, 40, 219, 0.25);

    --theme-component-border-radius: 3px;

    --theme-application-container: #f4f4f4;
    --theme-page-container: #f9f9f9;

    --theme-radio-button-color: #dddddd;
    --theme-radio-button-checked-color: #c0c0c0;

    --theme-button-color: #eeeeee;
    --theme-button-disabled-color: #fefefe;
    --theme-button-hover-color: #dddddd;

    --theme-button-action-border-color: #434343;
    --theme-button-action-color: #a0a0a0;
    --theme-button-action-hover-color: #767676;

    --theme-grid-header-background: #333333;
    --theme-grid-header-color: #ffffff;
    --theme-grid-content-background: #eeeeee;

    --theme-font-family: 'Open sans', sans-serif;

    width: 100%;
    min-height: 100vh;
    /*height: 100vh;*/

    margin: 0;

    font-family: var(--theme-font-family);
    font-weight: var(--font-weight-normal);
    -webkit-font-smoothing: antialiased;
    background-color: var(--theme-page-container);
    color: var(--theme-font-color);
}

/* Structure */
/* Blocks */

.vertical-block {
    display: flex;
    flex-direction: column;
}

.horizontal-block {
    display: flex;
}

/* Sections */

.section {
    width: 100%;
    padding: 5px;
    box-sizing: border-box;
}

/* General */

/* Modifiers */

.centered-content {
    justify-content: center;
}

/* Links */

a:any-link {
    color: var(--theme-font-color);
    text-decoration: none;
    cursor: pointer;
}

a:hover {
    text-decoration: underline;
}

/* Input Controls */

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

input {
    border: 1px solid var(--theme-shadow-color);
    border-radius: var(--theme-border-radius);;
    background-color: var(--theme-light-base-color);
    padding: 5px;
    font-size: 16px;
}

select {
    -webkit-appearance: none;
    padding: 8px;
    outline: none;
    cursor: pointer;
    color: var(--theme-font-color);
    background-color: var(--theme-light-base-color);
    border: 1px solid var(--theme-shadow-color);
    border-radius: var(--theme-border-radius);;
    transition: 0.3s;
}

select:hover {
    border: 1px solid var(--theme-font-color);
}

/* Selector */

.selector-component {
    position: relative;

    /* TEST */
    display: flex;
    flex-direction: column;

    margin: 5px 20px;
}

.selector-component select {
    -webkit-appearance: none;
    padding: 0.5em 4em 0.5em 0.5em;
    margin: 0em;
    font-size: 0.9em;
    cursor: pointer;
    color: var(--theme-font-color);
    background-color: var(--theme-light-base-color);
    border: 1px solid var(--theme-border-color);
    border-radius: var(--theme-border-radius);;
}

.selector-component select:hover {
    /*box-shadow: 0px 0px 5px 0px var(--theme-shadow-color);*/
}

.selector-component-arrow {
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    height: 100%;
    width: 2rem;
    margin: 0em;
    border-left: 1px solid var(--theme-border-color);
    border-radius: 0px  3px  3px 0px;
    background-color: transparent;
    pointer-events: none;
}

.selector-component-arrow::before,
.selector-component-arrow::after {
    --arrow-size: 0.6em;
    content: '';
    position: absolute;
    width: 0;
    height: 0;

    left: 50%;
    transform: translate(-50%, -50%);
}

.selector-component-arrow::after {
    border-left: var(--arrow-size) solid transparent;
    border-right: var(--arrow-size) solid transparent;
    border-top: var(--arrow-size) solid var(--theme-button-action-color);
    top: 50%;
}

/* Buttons */

button {
    padding: 8px;
    color: var(--theme-font-color);
    background-color: var(--theme-button-color);
    border: 1px solid var(--theme-shadow-color);
    border-radius: var(--theme-border-radius);
    cursor: pointer;
    transition: 0.3s;
}

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

button:disabled,
button[disabled]{
    background-color: var(--theme-button-disabled-color);
    color: #666666;
}

button:disabled,
button[disabled]:hover{
    background-color: var(--theme-button-color);
}

.action-button {
    font-size: var(--font-size-xl);
    min-width: 140px;
    border-radius: 20px;
}

/* Icon */

.icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    stroke-width: 0.2;
    stroke: currentColor;
    fill: currentColor;
}

.icon-button {
    width: 30px;
    height: 30px;
    cursor: pointer;
}

/* Radio Button */

label > input[type="radio"] {
    display: none;
}

label > input[type="radio"] + *::before {
    content: "";
    display: inline-block;
    vertical-align: middle;
    width: 0.6rem;
    height: 0.6rem;
    margin-right: 0.3rem;
    border-radius: 20%;
    border-style: solid;
    border-width: 0.1rem;
    border-color: var(--theme-radio-button-color);
}

label > input[type="radio"]:checked + *::before {
    background-color: var(--theme-radio-button-checked-color);
    border-color: var(--theme-radio-button-checked-color);
}
label > input[type="radio"]:checked + * {
    color: var(--theme-font-color);
}

/* Dialog */

dialog {
    border: none !important;
    border-radius: var(--theme-border-radius);
    box-shadow: 0 0 #0000, 0 0 #0000, 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 1rem;
    min-width: 250px;
    max-width: 900px;
    width: 90%;
    min-height: 250px;
    height: 90%;
}

.dialog-legend-label {
    font-size: var(--font-size-xxxl);
}

.dialog-top-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0;
}

/* Spinner */

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.2);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#modal-message {
    padding: 5px;
    margin: 10px;
    background-color: var(--theme-component-color-primary-25);
    color: var(--theme-font-color);
    font-size: var(--font-size-l);
    border-radius: 50px;
}

.spinner {
    height: 50px;
    width: 50px;
    background-image: url("https://pzazi.cz/media/spinner.gif");
    background-size: contain;
}

.backdrop-hide {
    display: none;
}