
/* Version 0.0.7 */

* {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

:root {
	--main-bg: #dae8fc;
	--main-border: #c2c8ce;
}

input[type="radio"], input[type="checkbox"] {
	transform: scale(1.2);
}

label {
	display: flex;
	align-items: center;
	gap: 0.75em;
}

.Form {
	position: absolute;
	background-color: #555;
	border-radius: 10px 10px 0 0;
	user-select: none;
	border: 1px solid #000;
	display: grid;
	grid-template-areas:
		"header header header"
		"left content right"
		"footer footer footer";
	grid-template-columns: 5px 1fr 5px;
	grid-template-rows: 40px 1fr 5px;
	overflow: hidden;
}

.Form .FormBorder {
  cursor: default;
}

.resizeable {
	display: grid;
}

.bsNone {
  /*border: initial;*/
  grid-template-columns: 0px 1fr 0px;
  grid-template-rows: 0px 1fr 0px;
}

.FormShadow {
	box-shadow: 0 14px 28px rgba(0, 0, 0, .25), 0 10px 10px rgba(0, 0, 0, .22);
}

.FormHeader {
	grid-area: header;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}

.FormHeaderText {
	text-align: center;
	color: lightgray;
	font-weight: bold;
	line-height: 2em;
}

.FormHeaderIcons {
	position: absolute;
	right: 8px;
	display: flex;
	gap: 2px;
}

.FormHeaderIcon.FormMinimize {
	background-image: url(../images/minimize.png);
	width: 19px;
	height: 19px;
}

.FormHeaderIcon.FormMaximize {
	background-image: url(../images/maximize.png);
	width: 19px;
	height: 19px;
}

.FormHeaderIcon.FormClose {
	background-image: url(../images/close.png);
	width: 19px;
	height: 19px;
}

.FormClose:hover {
	filter: brightness(0.7);
}

.FormContent {
	position: relative;
	grid-area: content;
	background-color: #dae8fc;
	overflow: hidden;
}

.FormFooter {
    position: relative;
    grid-area: footer;
    bottom: 3px;
    overflow: hidden;
    cursor: pointer;
}

.FormFooterText {
    text-align: center;
    color: lightgray;
    font-weight: bold;
    line-height: 2.3em;
}

.Form.resizeable .FormBorderN {
    position: absolute;
    top: -5px;
    height: 10px;
    left: 5px;
    right: 5px;
    cursor: n-resize;
}

.Form.resizeable .FormBorderNE {
    position: absolute;
    top: -5px;
    height: 10px;
    right: -5px;
    width: 10px;
    cursor: ne-resize;
}

.Form.resizeable .FormBorderE {
    position: absolute;
    right: -5px;
    top: 5px;
    width: 10px;
    bottom: 5px;
    cursor: e-resize;
}

.Form.resizeable .FormBorderSE {
    position: absolute;
    bottom: -5px;
    height: 10px;
    right: -5px;
    width: 10px;
    cursor: se-resize;
}

.Form.resizeable .FormBorderS {
    position: absolute;
    bottom: -5px;
    height: 10px;
    left: 5px;
    right: 5px;
    cursor: s-resize;
}

.Form.resizeable .FormBorderSW {
    position: absolute;
    bottom: -5px;
    height: 10px;
    left: -5px;
    width: 10px;
    cursor: sw-resize;
}

.Form.resizeable .FormBorderW {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: -5px;
    width: 10px;
    cursor: w-resize;
}

.Form.resizeable .FormBorderNW {
    position: absolute;
    top: -5px;
    height: 10px;
    left: -5px;
    width: 10px;
    cursor: nw-resize;
}

.FrameContent {
	position: relative;
	background-color: white;
	overflow: hidden;
}

.CheckBox {
	display: flex;
	gap: 5px;
	width: auto !important;
}

.RadioButton {
	display: flex;
	gap: 5px;
	width: auto !important;
}

#modal {
	position: fixed;
	left: 0px;
	top: 0px;
	right: 0px;
	bottom: 0px;
	display: none;
	backdrop-filter: blur(1.5px);
}

/* ShowMessage dialog */

#ShowMessage {
	display: none;
	width: 300px;
	height: 200px;
}

#ShowMessage_Label {
	position: absolute;
	top: 50px;
	white-space: nowrap;
	left: 50%;
	transform: translateX(-50%);
}

#ShowMessage_Button {
	position: absolute;
	bottom: 40px;
	width: 100px;
	left: 50%;
	transform: translateX(-50%);
}

/*
#ShowMessage_close {
	position: absolute;
	width: 20px;
	height: 20px;
	background-image: url(/images/close.png);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}
*/

#WebSocketStatusNotifier {
	position: fixed;
	right: 20px;
	bottom: -100px;
	width: max-content;
	border: 2px solid #FF5733;
	background-color: #FEE9FF;
	padding: 10px;  
	transition: bottom 0.5s cubic-bezier(0.2, 0.13, 0.27, 1.55);
}
