@font-face {
	font-family: 'Material Icons';
	font-style: normal;
	font-weight: 400;
	src: local('Material Icons'), local('MaterialIcons-Regular'), url(../fonts/MaterialIcons-Regular.ttf) format('truetype');
}

.md-12 {
	font-size: 12px;
}

.md-14 {
	font-size: 14px;
}

.md-16 {
	font-size: 16px;
}

.md-18 {
	font-size: 18px;
}

.md-24 {
	font-size: 24px;
}

.md-32 {
	font-size: 32px;
}

.md-36 {
	font-size: 36px;
}

.md-48 {
	font-size: 48px;
}

.md-12-16 {
	font-size: 12px;
	line-height: 16px;
}

.md-12-24 {
	font-size: 12px;
	line-height: 24px;
}

.md-18-24 {
	font-size: 18px;
	line-height: 24px;
}

.md-18-40 {
	font-size: 18px;
	line-height: 40px;
}

.material-icons, .material-icons-checkbox+label:before, .material-icons-radio+label:before, .mi, .mi-checkbox+label:before, .material-design-icons, .mdi {
	font-family: 'Material Icons';
	font-weight: normal;
	font-style: normal;
	font-size: 24px;
	/* Preferred icon size */
	display: inline-block;
	line-height: 1;
	text-transform: none;
	letter-spacing: normal;
	word-wrap: normal;
	white-space: nowrap;
	direction: ltr;
	/* Support for all WebKit browsers. */
	-webkit-font-smoothing: antialiased;
	/* Support for Safari and Chrome. */
	text-rendering: optimizeLegibility;
	/* Support for Firefox. */
	-moz-osx-font-smoothing: grayscale;
	/* Support for IE. */
	font-feature-settings: 'liga';
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    flex-direction: column;
}

#wrapper {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#header {
    max-height: 200px;
    margin: 10px 0;
}

#forms {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.form-element > * {
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.form-element.required .caption::after {
    content: '*';
    display: inline;
}

.form-element.required.missing .caption {
    color: #ff0000;
}

.form-type-confirm {
    cursor: pointer;
}

.form-type-confirm > div {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 5px;
}

.form-type-caption {
    padding: 0.5em 0;
}

.form-type-caption .text-size-normal {
    font-size: 1em;
}

.form-type-caption .text-size-large {
    font-size: 1.5em;
}

.form-type-caption .text-size-small {
    font-size: 0.75em;
}

.form-type-text {
    position: relative;
}

.form-type-text input {
    padding: 20px 10px 10px;
    border-radius: 5px;
    border: 1px solid #000;
    outline: none;
}

.form-type-text input,
.form-type-text .caption {
    cursor: pointer;
}

.form-type-text input:focus {
    cursor: text;
}

.form-type-text input:focus,
.form-type-text:hover input 
{
    box-shadow: 0px 5px 5px #ccc;
}

.form-type-text .caption {
    position: absolute;
    color: #000;
    font-size: 1em;
    padding: 0;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    transition: all 0.5s;
    transform-origin: 0 0;
    user-select: none;
}

.form-type-text .active .caption {
    top: 2px;
    left: 10px;
    transform: scale(0.6);
    touch-action: none;
    padding: 0;
    opacity: 0.5;
}

.form-type-submit button {
    box-shadow: 0px 2px 2px #ccc;
    display: flex;
    background: #fff;
    border: 0;
    border-radius: 10px;
    padding: 10px 20px;
    color: #000;
    font-weight: bold;

    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;
}

.form-type-submit button:hover {
    box-shadow: 0px 5px 5px #ccc;
}

#overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    font-size: 2em;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    visibility: hidden;
}

body.done #overlay {
    visibility: visible;
}

body.done {
    overflow: hidden;
}

.file-element {
    padding-bottom: 20px;
}

.file-element .inputs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
}

.file-element .more {
    display: flex;
    flex-direction: row;
    cursor: pointer;
    font-size: 0.8em;
    align-items: center;
    font-weight: bold;
    color: #aaa;
    justify-content: center;
}

.file-element .more:hover {
    color: #000;
}

.file-element-item {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    padding: 10px;
    border: 1px solid #aaa;
    border-radius: 5px;
    cursor: pointer;
}

.file-element-item:hover,
.file-element-item.has-file {
    background: #fff;
    box-shadow: 0px 5px 5px #ccc;
    border-color: #000;
}

.file-element-item .text {
    flex-grow: 1;
    flex-basis: 0;
}