/*!  __      __    __               ___
    /  \    /  \__|  | _ __        /   \
    \   \/\/   /  |  |/ /  |  __  |  |  |
     \        /|  |    <|  | |__| |  |  |
      \__/\__/ |__|__|__\__|       \___/

Copyright (C) 2018 Wiki-O, Frank Imeson

This source code is licensed under the GPL license found in the
LICENSE.md file in the root directory of this source tree.
*/

/* link setup */
a:link {
  color: blue;
  text-decoration: none;
}

a:visited {
  color: blue;
  text-decoration: none;
}

a.plain:visited,
a.plain:link {
  color: black;
  text-decoration: none;
}

input.plain {
  background: none !important;
  color: blue;
  border: none;
  padding: 0 !important;
  font: inherit;
  cursor: pointer;
}

.fake-link {
  color: blue;
  cursor: pointer;
}

/* bibliography setup */
ol.bib {
  list-style-type: none;
  counter-reset: step-counter;
}

ol.bib li>p {
  display: inline;
}

ol.bib li>p+p {
  display: block;
  margin-left: 0.3ex;
  margin-bottom: 0;
  list-style-type: none;
}

ol.bib li:before {
  content: "["counter(step-counter) "]";
  counter-increment: step-counter;
  margin-left: -1.5em;
  margin-right: 1ex;
}

/* about popup setup */
.about {
  position: relative;
  display: inline;
}

.about .abouttext {
  position: absolute;
  width: 70vw;
  min-height: 60px;
  color: #000000;
  background: #f0e68c;
  text-align: justify;
  visibility: hidden;
  border-radius: 6px;
  padding: 8px 8px;
}

:hover.about .abouttext {
  visibility: visible;
  opacity: 1;
  left: 100%;
  top: 0%;
  margin-top: -50px;
  margin-left: 15px;
  z-index: 999;
}

@media only screen and (min-width: 768px) {
  .about .abouttext {
    position: absolute;
    width: 600px;
  }
}


/* Points popup setup.
 * Example: https://www.w3schools.com/css/css_tooltip.asp */
.points {
  position: relative;
  display: inline-block;
  word-spacing: -0.3ex;
}

.points .pointstext {
  visibility: hidden;
  width: 7ex;
  background-color: #F0E68C;
  color: #000000;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  top: -5px;
  left: 110%;
}

/* The arrow. */
.points .pointstext::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 100%;
  margin-top: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: transparent #F0E68C transparent transparent;
}

.points:hover .pointstext {
  visibility: visible;
}


/* Used for help page */
tbody.responsive {
  display: block;
  max-height: 5000px;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Used for help page */
ul.actions {
  padding-left: +2ex;
}

/* Used for help page */
ul.offences {
  margin-left: -10px;
  margin-top: 0px;
  margin-bottom: 0px;
  padding-top: 0px;
  padding-bottom: 0px;
}

/* Debug */
.debug {
  outline: 1px solid red;
}

span.debug {
  outline: 1px solid green;
}

/* SVG Icons */
.icon svg {
  display: inline-flex;
  align-self: center;
  height: 1em;
  width: 1em;
}

.icon.svg-baseline svg {
  top: 10em;
  position: center;
}