/*
Copyright (C) 2018 Alkis Georgopoulos <alkisg@gmail.com>.
SPDX-License-Identifier: CC-BY-SA-4.0
*/
* {
  box-sizing: border-box;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.fhp /* Flex Horizontal Parent */
{
  align-items: center;
  display: flex;
  justify-content: space-around;
  width: 100%;
}

.fhpc /* Flex Horizontal Parent with Centered childs */
{
  align-items: center;
  display: flex;
  justify-content: center;
  width: 100%;
}

.fhc /* Flex Horizontal Child */
{
  flex: 1;
}

.fvp /* Flex Vertical Parent */
{
  display: flex;
  align-content: space-around;
  align-items: center;
  flex-direction: column;
  height: 100%;
}

.fvc /* Flex Vertical Child */
{
  flex: 1;
}

.hidden {
  display: none;
}

input, select, range, p {
  font-size: 1.5em;
}

body {
  background: rgb(10,37,91) url('resource/body.svg') no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  color: white;
  font-size: 10px;
  margin: 0;
  overflow: hidden;  /* avoid scrollbars when dragging outside */
}

#main {
  align-content: space-around;
  align-items: center;
  justify-content: space-around;
  height: 36em;
  width: 64em;
  text-align: center;
  overflow: hidden;
  position: fixed;
  margin: auto;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}

.model {
  position: absolute;
  left: 0;
  top: 0;
  width: 64em;
  height: 36em;
}

.slider {
  width: 10em;
  height: 2em;
  margin: 0;
  padding: 0;
}

.sliderdiv {
  position: absolute;
  border: 0.2em solid rgb(200,200,200);
  border-radius: 0.5em;
  padding: 0.5em;
}

#reddiv {
  background-image: linear-gradient(to right, black, red);
  right: 2em;
  top: 2em;
}

#greendiv {
  background-image: linear-gradient(to right, black, green);
  right: 2em;
  top: 10em;
}

#bluediv {
  background-image: linear-gradient(to right, black, blue);
  right: 2em;
  top: 18em;
}

@-webkit-keyframes menubar_animation {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes menubar_animation {
  from { opacity: 0; }
  to { opacity: 1; }
}

#menubar {
  background-color-: rgba(127,127,127,0.5);
  position: absolute;
  left: 0em;
  top: 0em;
  width: 23em;
  height: 23em;
  padding-: 0 0.5em 0 0.5em;
  border-: 0.1em solid rgba(255,255,255,0.5);
  border-radius: 0 0 22em 0;
  -webkit-animation: menubar_animation;
  animation-name: menubar_animation;
  -webkit-animation-duration: 4s;
  animation-duration: 4s;
}

#menubar img {
  position: absolute;
  width: 5em;
  height: 5em;
  margin: 0.5em;
  cursor: pointer;
  vertical-align: middle;
}

#menubar img:hover {
  -webkit-filter: brightness(120%) contrast(1.2);
  filter: brightness(120%) contrast(1.2);
}

#menubar img:active {
  -webkit-filter: brightness(80%) contrast(1.2) !important;
  filter: brightness(80%) contrast(1.2) !important;
}

#menubar p {
  display: inline;
  font-size: 3em;
  vertical-align: middle;
}

#bar_home {
  left: 2em;
  top: 2em;
}

#bar_help {
  left: 2em;
  top: 9em;
}

#bar_about {
  left: 2em;
  top: 16em;
}

#bar_fullscreen {
  left: 2em;
  top: 23em;
}

#help {
  display: none; /* javascript toggles that to flex */
  align-items: center;
  justify-content: center;
  background-color: rgba(63,63,63,0.5);
  position: fixed;
  width: 100%;
  height: 100%;
  margin: 0;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

#help .dialog {
  text-align: center;
  width: 19em;
  background-color: white;
  color: black;
  padding: 1em;
  border: 0.2em solid rgb(80,80,80);
  border-radius: 0.5em;
  -webkit-filter: drop-shadow(0.5em 0.5em 0.5em rgb(80,80,80));
  filter: drop-shadow(0.5em 0.5em 0.5em rgb(80,80,80));
  font-size: 2em;
}
