﻿/* 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 */
.rotate90 {
    -webkit-transform: rotate(90deg);
    -moz-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    -o-transform: rotate(90deg);
    transform: rotate(90deg);
}
.rotate180 {
    -webkit-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -o-transform: rotate(180deg);
    transform: rotate(180deg);
}
.rotate270 {
    -webkit-transform: rotate(270deg);
    -moz-transform: rotate(270deg);
    -ms-transform: rotate(270deg);
    -o-transform: rotate(270deg);
    transform: rotate(270deg);
}

#rules .grid-container {
    display: inline-grid;
    grid-template-columns: auto auto auto auto auto;
}

#rules .grid-container.layout {
    width: 396px;
    height: 316px;
}
#rules .grid-container.layout > * {
    width: 75px;
    height: 75px;
}
/* style rules for the div with the explanation for tile rotation */
#rules .height112 {
    height: 112px;
}
#rules .orientation {
    margin-left: 48px;
    margin-top: 27px;
}

#rules .redroundedborder {
    border-style: solid;
    border-width: 3px;
    border-color: red;
    border-radius: 9px;
}

#rules div.highlight4x4 {
    width: 300px;
    height: 300px;
    margin-top: 1%;
    margin-left: 1.5%;
    padding-top: 1%;
    padding-left: 1.5%;
    position: relative;
}

#rules .EmptyTile {
    display: table;
    text-align: center;
    border-style: solid !important;
    border-width: 1px !important;
    border-color: #586a5e !important;
    box-shadow: 0px 0px 0px #000000 !important;
    background-color: rgba(88, 106, 94, 0.35);
}

#rules .EmptyTile span {
    display: table-cell;
    font-size: 22px;
    font-weight: bold;
    vertical-align: middle;
}
#rules .EmptyTile.PlacementWrong span::before {
    content: "❌";
    color: #b5362f;
}
#rules .EmptyTile.PlacementRight span::before {
    content: "✔️";
    color: #6fad59;
}

#rules .LimesTile {
    margin: 0.5%;
    border-style: solid;
    border-width: 0px;
    border-color: #586a5e;
    border-radius: 6px;
    box-shadow: 3px 3px 5px #9c9c9c; /* rotates with the image - needs adjusted values for each image orientation*/
}

#rules .LimesTile.rotate90 {
    box-shadow: 3px -3px 8px #9c9c9c;
}
#rules .LimesTile.rotate180 {
    box-shadow: -3px -3px 8px #9c9c9c;
}

#rules .LimesTile.rotate270 {
    box-shadow: -3px 3px 8px #9c9c9c;
}

.boardgrid {
    position: absolute;
    height: 24%;
    width: 24%;
}
.boardgrid.col0 {
    left: 0%;
}
.boardgrid.col1 {
    left: 12.5%;
}
.boardgrid.col2 {
    left: 25%;
}
.boardgrid.col3 {
    left: 37.5%;
}
.boardgrid.col4 {
    left: 50%;
}
.boardgrid.col5 {
    left: 62.5%;
}
.boardgrid.col6 {
    left: 75%;
}
.boardgrid.col7 {
    left: 87.5%;
}
.boardgrid.row0 {
    top: 0%;
}
.boardgrid.row1 {
    top: 12.5%;
}
.boardgrid.row2 {
    top: 25%;
}
.boardgrid.row3 {
    top: 37.5%;
}
.boardgrid.row4 {
    top: 50%;
}
.boardgrid.row5 {
    top: 62.5%;
}
.boardgrid.row6 {
    top: 75%;
}
.boardgrid.row7 {
    top: 87.5%;
}

#rules img.boardgrid.worker {
    height: 10%;
    width: 10%;
    margin-left:1%;
    margin-top: 1%;
    z-index: 200;
}
/* background image URLs for each Tile -todo change from background image to img
div .Tile1 {
    background-image: url("images/L_1.png");
}
div .Tile2 {
    background-image: url("images/L_2.png");
}
div .Tile3 {
    background-image: url("images/L_3.png");
}
div .Tile4 {
    background-image: url("images/L_4.png");
}
div .Tile5 {
    background-image: url("images/L_5.png");
}
div .Tile6 {
    background-image: url("images/L_6.png");
}
div .Tile7 {
    background-image: url("images/L_7.png");
}
div .Tile8 {
    background-image: url("images/L_8.png");
}
div .Tile9 {
    background-image: url("images/L_9.png");
}
div .Tile10 {
    background-image: url("images/L_10.png");
}
div .Tile11 {
    background-image: url("images/L_11.png");
}
div .Tile12 {
    background-image: url("images/L_12.png");
}
div .Tile13 {
    background-image: url("images/L_13.png");
}
div .Tile14 {
    background-image: url("images/L_14.png");
}
div .Tile15 {
    background-image: url("images/L_15.png");
}
div .Tile16 {
    background-image: url("images/L_16.png");
}
div .Tile17 {
    background-image: url("images/L_17.png");
}
div .Tile18 {
    background-image: url("images/L_18.png");
}
div .Tile19 {
    background-image: url("images/L_19.png");
}
div .Tile20 {
    background-image: url("images/L_20.png");
}
div .Tile21 {
    background-image: url("images/L_21.png");
}
div .Tile22 {
    background-image: url("images/L_22.png");
}
div .Tile23 {
    background-image: url("images/L_23.png");
}
div .Tile24 {
    background-image: url("images/L_24.png");
}
*/
/* vertically middle align tiles with text in Game Components list */
#rules div.TileList {
    display: table;
    margin-top: 12px;
    margin-bottom: 12px;
}
#rules div.TileList img {
    width: 80px;
    height: 80px;
    vertical-align: middle;
    display: table-cell;
    margin-right: 7px;
}
#rules div.TileList span {
    vertical-align: middle;
    display: table-cell;
    font-size: 24px;
}

#rules img.worker {
    height: 43px;
    width: 43px;
}

#rules .zonecontainer {
    margin-top: 12px;
    display: flex;
}
#rules .zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-left: auto;
    margin-right: 20px;
    width: 75px;
}
#rules .zone img {
    height: 58px;
}
#rules .zone span {
    text-align: center;
}

#rules .scorezone {
    margin-top: 1px;
    margin-left: 2px;
    height: 27px;
    width: 27px;
    position: absolute;
    z-index: 900;
    border-width: 5px;
}
#rules .scorezone.hut {
    height: 12px;
    width: 12px;
    border-radius: 6px;
}
#rules .scoringexample {
    position: relative;
    margin-top: 12px;
    padding: 10px;
}
#rules .scoringexample .rcontainer {
    position: relative;
    left: 210px;
    top: 0px;
}
#rules .scoringexample .lcontainer {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 198px;
    padding: 10px;
}
#rules .scoringexample .rcontainer > div {
    width: 233px;
}
#rules .scoringexample .rcontainer .board {
    height: 233px;
    overflow: hidden;
}

#rules .scoringexample .rcontainer .board > div {
    position: relative;
    height: 300px;
    width: 300px;
}
/*
#rules .appendix.tiles {
    width:96%;
}
    */
#rules .tiles .LimesTile {
    height: 110px;
    width: 110px;
}
#rules .areashighlighting {
    position: relative;
    z-index: 500;
    border: 1px solid grey;
    width: 300px;
    height: 300px;
}

#rules .solopoints td:first-child {
    font-weight: bold;
    padding-right: 10px;
    margin-left: 28px;
}
#rules {
    color: #333;
    font-style: normal;
}
    #rules h3, .rules h4, .rules h5 { color: #333; text-shadow: none; }
    #rules h4 { margin-top: 6px; margin-bottom: 9px; }
    #rules h5 { margin-top: 6px; margin-bottom: 9px; font-size: 1.2em; }
    #rules h1 { margin-top: 9px; margin-bottom: 9px; color: #333; font-size: 1.2em; text-shadow: none; }

#rules .chapter ol li::marker {
    color: #333;
    font-family: sans-serif;
    font-size: 1.2em;
    font-weight: bold;
    margin: 1em 80px 0;
}
#rules .chapter .title {
    font-family: agenda, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    color: #aa332c;
    text-shadow: -1px 0 #629d4e, 0 1px #629d4e, 1px 0 #629d4e, 0 -1px #629d4e;
    border-color: #888;
}

#rules .embossedborderoutset {
    border-radius: 5px;
    border-style: groove;
    border-width: 6px;
    padding: 20px;
    box-shadow: 3px 3px 18px 3px #ccc, 1px 2px 10px 3px #c3c3c3 inset, -3px -3px 11px 2px #bbb
}

#rules .cover {
    margin-bottom: 40px;
    margin-top: 30px;
}

.rules p {  text-shadow: none; }

.rules ol { text-shadow: none; vertical-align: top; }

.rules .noshadow { text-shadow: none; }