/* apply a natural box layout model to all elements, but allowing components to change */
html {
  box-sizing: border-box;
}

*, *:before, *:after {
  box-sizing: inherit;
}

html, body, #app, #container {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

body {
  font-family: 'Helvetica Neue', Verdana, Helvetica, Arial, sans-serif;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  font-size: 1.125em;
  color: #333;
  background-color: #404040
  line-height: 1.5em;
}

#app {
  display: flex;
  justify-content: center;
  align-items: center; 
}

h1, h2, h3 {
  color: #000;
}

h1 {
  font-size: 2.5em
}

h2 {
  font-size: 2em
}

h3 {
  font-size: 1.5em
}

a:hover {
  text-decoration: underline;
}

/*** SPINNER ***/

#spinner {
  display: inline-block;
  width: 128px;
  height: 128px;
  animation: spinner 0.3s linear infinite;
}

@keyframes spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/*** ELEMENTS ***/

#choosefile input[type="file"] {
    display: none;
}

#choosefile label {
  cursor: pointer;
}

#container {
  display: block;
}

#interface {
  position: absolute;
  top: 0px;
  right: 0px;
  left: 0px;
  bottom: 0px;
  opacity: 0;
}

#interface:hover {
  opacity: 1;
}

#animation svg {
  border: 1px dashed silver;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 95vw;
  max-height: 95vh;
  width: unset;
  height: unset;
}

/*** HELP ***/

#modal {
  background-color: #363636;
  width: 100%;
  color: white;
  padding: 5em 1em;
}

#modal > div {
  max-width: 600px;
  margin: auto;
}

#intro {
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #eee;
  padding: 75px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#intro > div {
  width: 600px;
  max-width: 95vw;
}

#intro li + li {
  margin-top: 0.5em;
}

#help-page {
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #eee;
  padding-top: 75px;
  overflow-y: auto;
}

#help-page > div {
  width: 500px;
  max-width: 100%;
  margin: auto;
  padding: 1em;
}

#help-page img {
  display: block;
  margin: 50px auto;
  border: 1px solid #333;
  border-radius: 3px;
  box-shadow: 0px 0px 10px #555;
}

#help-page svg.icon {
  fill: #333;
  width: 48px;
  height: 48px;
  cursor: pointer;
  vertical-align: middle;
  float: right;
}

#help-page button, #modal button {
  border: none;
  border-radius: 3px;
  background-color: #01C7C7;
  color: white;
  font-size: 1.5em;
  font-weight: bold;
  margin: 1em 0em;
  padding: 0.25em 1em;
  float: right;
}

#help-page a {
  color: #333;
  font-weight: bold;
}

/*** MENU ***/

#menu {
  display: block;
  background-color: #262626;
  position: absolute;
  top: 0px;
  right: 0px;
  width: 100%;
  padding: 0px;
  margin: 0px;
  color: white;
  font-weight: bold;
  text-align: center;
  display: flex;
  align-items: center;
}

#menu a {
  text-decoration: none;
  color: #fff;
}

#menu > span {
  flex-basis: 33%;
}

#menu > span > span {
  margin: 10px;
  display: inline-block;
}

#menu #buttons {
  text-align: left;
}

#menu #buttons > * {
  text-align: center;
}

#menu #filename {
  padding-right: 2em;
}

#menu #actions {
  text-align: right;
  vertical-align: middle;
}

#menu #actions > * {
  text-align: center;
  vertical-align: middle;
}

#menu #actions .menu > * + * {
  margin-left: 1em;
}

#menu svg.icon {
  fill: #fff;
  width: 1em;
  height: 1em;
  cursor: pointer;
  vertical-align: middle;
}

#menu #logo {
  width: 48px;
  margin-left: 20px;
  margin-right: 20px;
  vertical-align: middle;
}

#menu .button {
  color: white;
  background-color: #787878;
  border-radius: 3px;
  border: none;
  padding: 0.5em;
  font-weight: bold;
  width: 150px;
  display: inline-block;
  cursor: pointer;
}

#menu #pp.button {
  background-color: #01C7C7;
}
