
* {
  box-sizing: border-box;
}

.text-center {
  text-align: center;
}

#cnv-image-preview {
  max-width: 100%;
  max-height: 100%;
}

body {
  font-size: 12px;
}

@media (min-width: 320px) {
  body {
    font-size: 14px;
  }
}

body {
  font-family: "Helvetica Neue", sans-serif;

  /* Background in @Space */
  background: #f7f7f7;

  height: 100%;
  width: 100%;
  margin: 0;
}

button {
  font-size: 10px;
}

/* SHOW / HIDE TRANSLATIONS */
body.lang-de .lang-en {
  display: none;
}

body.lang-en .lang-de {
  display: none;
}

/* DEBUG ELEMENTS */

.debug--element {
  display: none;
}

.debug--login-container {
  padding: 16px;
}

body.debug .debug--element {
  display: block !important;
}

.shibboleth-container {
  display: none;
}

body.shibboleth .shibboleth-container {
  display: block !important;
}

.shibboleth-container {
  padding: 16px;
}

body.menu-login #menu--upload {
  display: none;
}

#logout-button {
  display: none;
}

#menu--login {
  text-align: center;
}

body.menu-upload #menu--login {
  display: none;
}

body.menu-upload #logout-button {
  display: block;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;

  background-color: #09253f;
}

.flag {

  background-repeat: no-repeat;
  width: 48px;
  height: 48px;
}

.flag.flag-en {
  background-position: -480px -192px;
}

.flag.flag-de {
  background-position: -240px -144px;
}

.header-content {
  padding: 18px;
}

.logo {
  height: 30px;
}

button {
  display: inline-block;
  overflow: hidden;
  justify-content: center;
  width: auto;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #2196f3;
  border-radius: 2px;

  background-color: #2196f3;
  color: white;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

button:hover {
  background-color: #1769aa;
}

button:disabled {
  border: 1px solid #55718b !important;
  background-color: #55718b !important;
  cursor: no-drop;
}

.content {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 64px;
  z-index: 100;
  overflow: auto;
  padding: 16px;
}

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

canvas {
  position: relative;
  z-index: 100;

  /* Get rid of white bars */
  margin-bottom: -4px
}

.footer {
  position: fixed;
  z-index: 200;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  padding: 12px;
  border-top: 1px solid #333;
  background-color: #09253f;

  text-align: center;
}

#upload-info-text {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  padding: 0 24px;
  text-align: center;
}

#upload-info-text h2 {
  margin: 0;
}

.panel {
  padding: 16px;
  background: white;
  border-radius: 3px;
}

.h-divider {
  height: 20px;
  width: 1px;
  background: #333;
  margin: auto;
  margin-top: -16px;
  margin-bottom: -16px;
}

.upload-status {
  display: none;

  position: fixed;
  bottom: 100px;
  background: white;
  border-radius: 3px;
  left: 50%;
  margin-left: -100px;
  text-align: center;
  width: 200px;
  z-index: 200;
  padding: 3px;
}

.upload-status.success {
  color: green;
}

.upload-status.error {
  color: red;
}

#logout-button {
  position: fixed;
  top: 12px;
  right: 10px;
}

.login-intro-text {
  padding: 16px;
}

.connection-in-progress {
  display: none;
}

.connection-error {
  display: none;
}

.language-change {
  display: inline-block;
  overflow: hidden;
  width: auto;
  cursor: pointer;
  user-select: none;
  margin: 0;
}


.error-msg {
  display: block;
  padding: 12px;
  margin: 0 12px 0 12px;

  text-align: left;
  line-height: 18px;

  background-color: white;
  border: 1px solid #f44336;
  border-radius: 2px;
}

#login-error-msg {
  visibility: hidden;
}

#btn-rotate-picture {
  position: fixed;
  bottom: 70px;
  right: 5px;
}

#legal {
  position: fixed;
  bottom: 75px;
  left: 0;
  right: 0;
  padding: 16px
}

#legal, #legal > * {
  display: none;
}

#legal a {
  text-decoration: none;
}
