/*
Copyright (C) 2018 Alkis Georgopoulos <alkisg@gmail.com>.
SPDX-License-Identifier: CC-BY-SA-4.0
*/
body, html  {
    font-size: 1.5vw;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    justify-content: space-around;
    background: url('resource/background.svg') no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    box-sizing: border-box;
    overflow: hidden;
}

.tabsheader {
    display: flex;
    align-items: stretch;
    margin: 0vw 2vw 0vw 2vw;
}

.tablink {
    flex-grow: 1;
    border: none;
    border-radius: 1vw 1vw 0vw 0vw;
    outline: none;
    cursor: pointer;
    padding: 0.5vw;
    text-align: center;
}

.tablink:hover {
    background-color: #f0f0f0;
}

.tabcontent {
    background-color: white;
    border: 0.5vw solid #e6e6e6;
    border-radius: 1vw;
    clear: both;  /* Tabs float, content should go below */
    overflow: hidden;
    display: none;
    padding: 1vw;
    margin: 0;
    flex: 1;
}

iframe {
    overflow-y: scroll;
    border: none;
    height: 100%;
    width: 100%;
}

#narration {
    border: 0.2vw solid transparent;
    width: 30vw;
    /* height: 6vw; /* Audio controls don't support height */
    vertical-align: middle;
    margin-left: 0.5vw;
}

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

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

.fvp /* Flex Vertical Parent */
{
    display: flex;
    justify-content: space-around;
    flex-direction: column;
}

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

#paint { overflow: hidden;
    border: 0.5vw solid #e6e6e6;
    border-radius: 1vw;
}

#description {
}

#monster {
    background: white url('resource/monster0.svg') no-repeat center center;
    -webkit-background-size: contain;
    -moz-background-size: contain;
    -o-background-size: contain;
    background-size: contain;
    box-sizing: border-box;
    border: 1vw solid white;
}

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

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


.footer {
    width: 100%;
    text-align: center;
    font-size: 3vw;
    margin: 0vw 0vw 1vw 0vw;
}

#menubar {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color-: rgba(127,127,127,0.5);
  position-: absolute;
  left: 0em;
  bottom: 0.5em;
  padding: 0 0.5em 0 0.5em;
  border-: 0.1em solid rgba(255,255,255,0.5);
  border-radius-: 0 1em 1em 0;
  -webkit-animation: menubar_animation;
  animation-name: menubar_animation;
  -webkit-animation-duration: 4s;
  animation-duration: 4s;
}

#menubar img {
  width: 3.5em;
  height: 3.5em;
  margin: 0.5em;
  cursor: pointer;
}

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

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

#menubar p {
  display: inline;
  font-size: 3em;
  margin: 0;
  color: rgb(255,255,255);
}

#help {
  display: none; /* javascript toggles that to flex */
  align-items: center;
  justify-content: center;
  position: fixed;
  background-color: rgba(63,63,63,0.5);
  width: 100%;
  height: 100%;
  top: 0;  /* IE and old webview ignore "fixed" for flex childs */
  left: 0;
}

#help .dialog {
  text-align: center;
  width: 14em;
  background-color: rgb(255,255,255);
  color: rgb(0,0,0);
  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;
}
