/* Sections */

body {
  background: #150e08;
  background: url("https://tools.unfamiliarplace.com/aoe2civs/assets/backgrounds/wood.jpg");
  background-size: 100%;
  background-blend-mode: darken;
}

#app {
  width: 1255px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 15px;

  font-family: "Helvetica", "Arial", sans-serif;
  font-size: 15px;
  color: #391c1b;

  background: url("https://tools.unfamiliarplace.com/aoe2civs/assets/backgrounds/parchment.jpg"),
  #d8b393;
  background-repeat: no-repeat;
  background-size: 120%;
  background-position: -20px 0px;
  background-blend-mode: normal;

  border: 4px ridge #b59d33;
}

a {
  color: #fff2e6;
}

#options {
  height: 20px;
  padding: 20px;
}

#specialCivs {
  background: #b89579;
  background: rgba(184, 149, 121, 0.55);
}

#credits {
  text-align: right;
  padding: 5px 5px 8px 5px;
  font-size: 13px;
}

#options,
#credits {
  background: #6e5847;
  background: rgba(110, 88, 71, 0.9);
  color: #fff2e6;
}

/* Options */

select,
option {
  border-radius: 5px;
  background: #eee;
}

label {
  cursor: pointer;
}

label[for="nCols"] {
  cursor: default;
}

label[for="useHover"] {
  margin-right: 10px;
}

.labelDisabled {
  color: #bbb;
}

.separator {
  position: relative;
  display: inline;
  padding-right: 20px;
  margin-right: 15px;
  border-right: 1px solid #fff2e6;
}

.radioPanel {
  display: inline;
  margin-right: 20px;
}

.radioPanelLast {
  margin-right: 0px;
}

#filters input,
#filters label:hover,
select:hover {
  cursor: pointer;
}

#filters input[disabled="disabled"],
#filters label.labelDisabled {
  cursor: default;
}

#filters {
  float: left;
}

#display {
  float: right;
  display: inline;
}

#display select {
  margin-left: 5px;
}

/* Custom checkbox & radio box */

input[type="checkbox"],
input[type="radio"] {
  opacity: 0;
  width: 0;
  height: 0;
  cursor: pointer;
  display: none;
}

.checkmark,
.radio {
  position: relative;
  display: inline-block;
  height: 16px;
  width: 16px;
  top: 3px;
  background-color: #eee;
  cursor: pointer;
  margin-right: 5px;
  border: 2px ridge #b59d33;
}

.radio {
  width: 14px;
  height: 14px;
  border-radius: 8px;
}

label input[type="checkbox"]:checked ~ .checkmark,
label input[type="radio"]:checked ~ .radio {
  background-image: linear-gradient(#8b080f 45%, #76070d 55%);
}

.checkmark:after,
.radio:after {
  content: "";
  position: absolute;
  display: none;
}

label input:checked ~ .checkmark:after,
label input:checked ~ .radio:after {
  display: block;
}

label .checkmark:after {
  left: 4px;
  top: 0px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

label .radio:after {
  left: 2px;
  top: 2px;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: #fff2e6;
}

/* Tooltips */

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltipHint {
  border-bottom: 1px dotted #fff2e6;
}

.tooltip .tooltipText {
  visibility: hidden;
  width: auto;
  white-space: nowrap;
  text-align: center;
  padding: 5px;
  border-radius: 1px;
  position: absolute;
  top: 25px;
  left: 0px;
  z-index: 1;
  background-image: linear-gradient(#8b080f 45%, #76070d 55%);
  color: #f2d2b6;
  border: 2px ridge #b59d33;
}

.tooltip:hover .tooltipText {
  visibility: visible;
}

/* Civs section */

#civs,
#specialCivs {
  padding: 5px 2px;
  clear: both;
}

.civImg,
.civName {
  display: block;
}

.civImg {
  content-align: center;
  padding: 2px;
}

.civImg img {
  width: 40px;
  height: 40px;
}

.civItem {
  width: 95px;
  min-width: 95px;
  vertical-align: middle;
  border-radius: 5px;
  height: 75px;
  white-space: nowrap;
}

.civItem:hover {
  background: rgba(166, 10, 19, 0.9);
  color: #f2d2b6;
  cursor: pointer;
}

#civGroups tr {
  height: 75px;
}

.groupItem {
  border-radius: 5px;
  min-width: 140px;
  width: 140px;
  text-align: center;
  font-size: 16px;

  background: #76070d;
  background-image: linear-gradient(#8b080f 45%, #76070d 55%);
  color: #f2d2b6;
  cursor: default;
}

.groupItem:empty {
  background: initial;
}

.civButton {
  text-align: center;
  display: block;
  padding: 2px;
}

/* Civ image effects */

.civImgIcon img {
  filter: invert(0.2);
}

.civItem:hover .civImgIcon img {
  filter: invert(0.9);
}

.civItem:hover .civImgCrest img {
  filter: contrast(120%);
  filter: brightness(130%);
}

.civItem .civImgUnit img,
#hoverPanel .civImgUnit img {
  filter: contrast(125%);
  filter: brightness(130%);
}

.civItem:hover .civImgUnit img {
  filter: contrast(145%);
  filter: brightness(150%);
}

/* Hover panel */

#hoverPanel {
  display: none;
  position: absolute;
}

.civPanel {
  width: 320px;
  height: 200px;
  border: 4px ridge #b59d33;
  border-radius: 15px;

  background: url("https://tools.unfamiliarplace.com/aoe2civs/assets/backgrounds/parchment2.jpg"),
  rgba(216, 179, 147, 0.1);
  background-repeat: no-repeat;
  background-size: 280%;
  background-blend-mode: color-dodge;
  background-position: -50px -27px;
}

.civPanel .civImg {
  padding: 5px;
}

.civPanel .civImg img {
  width: 64px;
  height: 64px;
}

.civPanel .civName {
  font-size: 20px;
  position: relative;
  top: -24px;
  padding-left: 3px;
}

.civPanel .civImg,
.civPanel .civName {
  display: inline-block;
  white-space: nowrap;
}

.civPanelOrigins {
  display: inline-block;
  font-style: italic;
  float: right;
  position: relative;
  top: 10px;
  padding: 10px 7px;
  text-align: right;
}

.civPanelDetails {
  padding: 15px 10px;
}

.civPanelUU {
  display: inline-block;
  margin-right: 15px;
}

.civPanelUUName {
  max-width: 120px;
  vertical-align: top;
}

.twoUUs .civPanelUUName {
  max-width: 84px;
}

.civPanelUU img {
  width: 36px;
  height: 36px;
  margin-right: 5px;
}

/* Paypal */

#paypal,
#paypal form {
  display: inline;
}

#paypal input[type="image"] {
  height: 16px;
  filter: saturate(75%);
  position: relative;
  top: 3.5px;
}

/* Sources page */

#sources {
  padding: 20px;
}

#sources a {
  color: #391c1b;
  padding: 2px;
}

#sources a:hover {
  background: rgba(166, 10, 19, 0.9);
  color: #f2d2b6;

}

#sources h1 {
  margin-top: 0;
  font-size: 28px;
}

#sources h2 {
  font-size: 21px;
}

#sources h3 {
  margin-bottom: 0;
  font-size: 14px;
}
