@import url(https://www.adventisten.at/include/fonts.css);

html {
  font-size: 14px;
}

body {
  background-color: #fcfcfc;
  font-family: "Sarabun", Arial, sans-serif;
}

div {
  margin-bottom: 15px;
}

#page {
  margin: 20px auto;
  max-width:900px;
}
.paper {
  background-color: #fff;
  padding: 25px;
  border: 1px solid #535353;
}
.text {
  padding: 15px;
}
#result {
  padding: 20px;
}
h3 {
  font-size:2rem;
}
table th, table td {
  padding: 2px 5px 2px 0px;
}
td.bleft {
  border-left:1px solid #535353;
}
td.bspace {
  padding-bottom: 50px;
}
.bold {
  font-weight: bold;
}
input {
  border: 0;
}
input.dotted {
  border-bottom: 1px dotted #535353;
  background-color: #fff;
}
input.euro {
  text-align: right;
  width: 50px;
  border-bottom: 1px dotted #535353;
  background-color: #fff;
}
input.output {
  width: 100%;
  background-color: #fff;
  border-bottom: 1px dotted #535353;
}
textarea {
  border: 0;
  resize: none;
  background-color: #fff;
  border-bottom: 1px dotted #535353;
}
.center {
  text-align:center;
}
.right {
  text-align:right;
}
.bgstacolor {
  background-color: #1ac2d4;
  padding: 15px;
}
a {
  text-decoration: underline;
  color: #1ac2d4;
}


/* START TOOLTIP STYLES */
[tooltip] {
  position: relative;
}

[tooltip]::before,
[tooltip]::after {
  text-transform: none;
  font-size: .9em;
  line-height: 1.2;
  user-select: none;
  pointer-events: none;
  position: absolute;
  display: none;
  opacity: 0;
}
[tooltip]::before {
  content: '';
  border: 5px solid transparent; /* opinion 4 */
  z-index: 1001; /* absurdity 1 */
}
[tooltip]::after {
  content: attr(tooltip); /* magic! */
  font-family: Helvetica, sans-serif;
  text-align: left;
  min-width: 15em;
  max-width: 21em;
  overflow: hidden;
  padding: 1ch 1.5ch;
  border-radius: .3ch;
  box-shadow: 0 1em 2em -.5em rgba(0, 0, 0, 0.35);
  background: #535353;
  color: #fff;
  z-index: 1000; /* absurdity 2 */
}

[tooltip]:hover::before,
[tooltip]:hover::after {
  display: block;
}

[tooltip='']::before,
[tooltip='']::after {
  display: none !important;
}

/* FLOW: UP */
[tooltip]:not([flow])::before,
[tooltip][flow^="up"]::before {
  bottom: 100%;
  border-bottom-width: 0;
  border-top-color: #535353;
}
[tooltip]:not([flow])::after,
[tooltip][flow^="up"]::after {
  bottom: calc(100% + 5px);
}
[tooltip]:not([flow])::before,
[tooltip]:not([flow])::after,
[tooltip][flow^="up"]::before,
[tooltip][flow^="up"]::after {
  left: 50%;
  transform: translate(-50%, -.5em);
}

/* FLOW: DOWN */
[tooltip][flow^="down"]::before {
  top: 100%;
  border-top-width: 0;
  border-bottom-color: #535353;
}
[tooltip][flow^="down"]::after {
  top: calc(100% + 5px);
}
[tooltip][flow^="down"]::before,
[tooltip][flow^="down"]::after {
  left: 50%;
  transform: translate(-50%, .5em);
}

/* FLOW: LEFT */
[tooltip][flow^="left"]::before {
  top: 50%;
  border-right-width: 0;
  border-left-color: #535353;
  left: calc(0em - 5px);
  transform: translate(-.5em, -50%);
}
[tooltip][flow^="left"]::after {
  top: 50%;
  right: calc(100% + 5px);
  transform: translate(-.5em, -50%);
}

/* FLOW: RIGHT */
[tooltip][flow^="right"]::before {
  top: 50%;
  border-left-width: 0;
  border-right-color: #535353;
  right: calc(0em - 5px);
  transform: translate(.5em, -50%);
}
[tooltip][flow^="right"]::after {
  top: 50%;
  left: calc(100% + 5px);
  transform: translate(.5em, -50%);
}

/* KEYFRAMES */
@keyframes tooltips-vert {
  to {
    opacity: .9;
    transform: translate(-50%, 0);
  }
}

@keyframes tooltips-horz {
  to {
    opacity: .9;
    transform: translate(0, -50%);
  }
}

/* FX All The Things */
[tooltip]:not([flow]):hover::before,
[tooltip]:not([flow]):hover::after,
[tooltip][flow^="up"]:hover::before,
[tooltip][flow^="up"]:hover::after,
[tooltip][flow^="down"]:hover::before,
[tooltip][flow^="down"]:hover::after {
  animation: tooltips-vert 300ms ease-out forwards;
}

[tooltip][flow^="left"]:hover::before,
[tooltip][flow^="left"]:hover::after,
[tooltip][flow^="right"]:hover::before,
[tooltip][flow^="right"]:hover::after {
  animation: tooltips-horz 300ms ease-out forwards;
}
