﻿/* add all special styles used for displaying the rules */

/* .rules: used for all elements loading rules (rules at main site, rules ingame, popup with rules extract 
   #rules: div with complete rules used at main site
   #rulesPage: ingame rules page display
   #panelRules: ingame rules sidepanel display
   #popup.rules: popup with rules extract only */

#rules ul {
  list-style: none; /* Remove default bullets */
}

/* taken from https://www.w3schools.com/howto/howto_css_bullet_color.asp */
#rules ul li::before {
  content: "\25A0";  /* Add content: \25A0 is the CSS Code/unicode for a square */
  color: #9e0a0e; /* Change the color */
  font-weight: bold; /* If you want it to be bold */
  line-height: 1.5em;
  font-size: 1.5em;
  display: inline-block; /* Needed to add space between the bullet and the text */
  width: 0.7em; /* Also needed for space (tweak if needed) */
  margin-left: -0.7em; /* Also needed for space (tweak if needed) */
}

#rules .chapter .title {
    background-color: #9e0a0e;
    color: white;
    text-align: center;
    padding: 0px;
    font-size: 2em;
}

#rules h2 {
    color: #9e0a0e;
    font-weight: bold;
    text-decoration: underline;
}

#rules .appendix.tiles .paragraph {
    width: 47%;
}

#rules .appendix.tiles .image img {
    width: 35%;
    float: left;
    margin-right: 1em;
}

#rules .appendix.tiles .tilename {
    margin-bottom: 1em;
    text-decoration: underline;
    font-weight: bold;
}

#rulesContainer #rules .appendix.cards .paragraph {
    width: 100%;
}

#rules .hints4Handling div {
    background-color: #eaf2fd;
    margin: 0.5em;
    padding: 0.5em;
}