﻿:root {
    --input-background-color: rgba(255, 235, 205, 0.6);
    --input-background-image: url(/img/menu-icons/black-scratch-lines.png);
}

html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

html,
body {
    overflow: hidden;
}

header.header {
    display: flex;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 50;

    border-bottom: 1px solid;
    background-image: var(--pattern);
    background-size: 10%
}

main {
    display: flex;
    flex: 1 1 auto;
    overflow-y: auto;
}

footer {
    position: relative;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
    
    background-image: var(--pattern);
    background-size: 10%;
    display: inline-flex;
}

hr {
    background-color: var(--wheat-color);
    width: 100%;
}

.main-content-block {
    display: block;
    width: 100%;
}

form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--main-color);
}

form .column {
    display: flex;
    flex-direction: column;
}

form .row {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
}

form .row input {
    width: 100%;
    background-color: var(--input-background-color);
    background-image: var(--input-background-image);
    background-size: 200px 200px;
    background-repeat: repeat;
    
    border: 1px solid var(--nav-border-color);
    color: var(--main-color);

    padding: 0.5rem;
    border-radius: 0.25rem;
    
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

form .row input[readonly] {
    color: var(--dull-main-color);
    filter: grayscale(100%) brightness(85%);
    outline: none;
}

form .row input::placeholder {
    color: var(--dull-main-color);
    opacity: 0.75;
}

form button {
    width: fit-content;
}

form .row .autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 50%;
    max-width: 100%;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 0.25rem;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

a {
    text-decoration: none;
    color: var(--wheat-color);
}

a:focus,
a:hover {
    text-decoration: none;
    color: var(--yellow-color);
}