@font-face {
  font-family: "barlow";
  src: url("fonts/Barlow-regular.tiff") format("tiff");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "barlow-italic";
  font-style: italic;
  font-weight: 1;
  src: url("fonts/Barlow-Italic.woff") format("woff");
}

@font-face {
  font-family: "barlow-bold";
  font-style: bold;
  font-weight: 1;
  src: url("fonts/Barlow-bold.ttf") format("tiff");
}

@font-face {
  font-family: "azbuka";
  font-style: ITALIC;
  font-weight: 1;
  src: url("fonts/Azbuka_W01_Heavy_Condensed.woff") format("woff");
}

/* @font-face {
  font-family: "outlierregular";
  src: url("fonts/outlier-webfont.woff2") format("woff2"),
    url("fonts/outlier-webfont.woff") format("woff");
  font-weight: normal;
  font-style: normal;
} */

/* 
page colors
#a51215 
#dfe0e1
#c4c6c8
#b1b4b6
#292829
*/
/*
Aspect Colors
#bdb67b
#c01d26
#cc7f23
#05914d
#3883c5
#151025
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: barlow;
  line-height: 1.5em;
  color: #292829;
  background-color: #dfe0e1;
  font-size: 18px;
  border-bottom: 15px solid #a51215;
}

h2 {
  text-align: center;
  font-family: azbuka;
}

h3,
h4,
h5 {
  font-family: barlow;
  text-transform: uppercase;

  line-height: 1;

  margin-bottom: 0.5em;

  padding-bottom: 0.25em;
}

h3 {
  font-size: 2em;
  /* border-bottom: 10px solid #a51215; */
  color: #fff;
  background-color: #292829;
  padding: 0.5em;
  clip-path: polygon(0 0, calc(100% - 60px) 0, 100% 20px, 100% 100%, 0 100%);
}

h4 {
  font-size: 1.5em;
  /* border-bottom: 10px solid #a51215; */
  color: #fff;
  background-color: #a51215;
  padding: 0.5em;
  border-radius: 0px 25px 0px 0px;
}

h5 {
  font-size: 1.25em;
  border-bottom: 3px solid #a51215;
  background-color: #b1b4b6;
  padding: 0.25em;
  clip-path: polygon(5% 0, 95% 0, 100% 25%, 100% 98%, 0 98%, 0 25%);
  text-align: center;

  /* letter-spacing: 0.15em; */
}

h6 {
  text-align: center;
}

header {
  padding: 1em;

  font-size: 1.25em;
}

figure {
  text-align: center;
}

.callout {
  color: white;
  background-color: #a51215;
  padding: 1em;
  margin-bottom: 0.5em;
  border-radius: 25px 25px 25px 25px;
  box-shadow: 0px 10px 10px rgb(0 0 0 / 0.25);
}

.callout h4,
.callout h5 {
  border-bottom: 1px solid #fff !important;
}

.example-text {
  font-style: italic;
  color: #a51215;
}

.example-photo {
  border: 2px solid black;
  box-shadow: 0px 15px 10px rgb(0 0 0 / 0.1);
  float: right;
  margin-left: 0.25em;
  max-width: 100%;
}

.centered {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5em;
}

.logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  border-bottom: 10px solid #a51215;
  margin-bottom: 1.5em;
  padding: 0.25em 0;
  border-radius: 0px 0px 25px 25px;
}

footer {
  margin-top: 30px;
  font-size: 1.25em;
  border-top: 10px solid #a51215;
  padding: 20px 0px 20px 0px;
  text-align: center;
  border-radius: 25px 25px 0px 0px;
}

section {
  border-top: 5px solid #a51215;
  border-bottom: 10px solid #a51215;
  box-shadow: 0px 15px 10px rgb(0 0 0 / 0.1);
  padding: 30px 10px;
  background-color: #fff;
  border-radius: 0px 0px 25px 25px;
}

section h5 {
  border-bottom: none;
  margin-left: 0.5em;
  color: #a51215;
}

.footer-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

footer img {
  height: 40px;
}

.container {
  width: 70%;
  margin: auto;
}

.page-title {
  text-align: center;
  margin: 0.5em 0;
  font-family: "barlow";
  letter-spacing: 0.15em;
  border-bottom: 10px solid #a51215;
  padding-bottom: 0.5em;
  font-size: 3em;
}

.example {
  font-family: barlow-italic;
  border-radius: 10px 10px 0px 10px;
  margin: 0.5em;
  padding: 0.5em 0.5em 0.5em 2.5em;
  border-bottom: 5px solid #a51215;
  /* box-shadow: 0px 10px 10px rgb(0 0 0 / 0.6); */
  background-color: #c4c6c8;
  color: #292829;
}

.btn-letter {
  border-radius: 50px 50px 0px 50px;
  text-align: center;
  font-family: barlow;
  cursor: pointer;
  margin-top: 0.5em;
  font-size: 2em;
  padding: 0.25em;
  border-bottom: 5px solid #292829;
  box-shadow: 0px 10px 10px rgb(0 0 0 / 0.1);
  color: #fff;
  /* background: #a51215; */
  background: linear-gradient(
    to right,

    #a51215,
    #a51215,
    #c01d26,
    #a51215,
    #151025
  );
}

.active,
.btn-letter:hover {
  background: linear-gradient(
    to right,
    #bdb67b,
    #c01d26,
    #c01d26,
    #c01d26,
    #c01d26,
    #c01d26,
    #cc7f23,
    #05914d,
    #3883c5,
    #151025
  );
  color: white;
}

.entries {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5%;
  flex-wrap: wrap;
}

.guide-guide {
  background: linear-gradient(
    to right,
    #bdb67b,
    #c01d26,
    #c01d26,
    #c01d26,
    #c01d26,
    #c01d26,
    #cc7f23,
    #05914d,
    #3883c5,
    #151025
  );

  padding: 1.5em;
  border-radius: 50px 50px 0px 50px;
  margin-bottom: 2em;
  border-bottom: 5px solid #292829;
  box-shadow: 0px 10px 10px rgb(0 0 0 / 0.1);
}

.guide-guide h2 {
  color: #fff;
  font-size: 2.5em;
  margin-bottom: 1.5em;
}

.guide-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5%;
  flex-wrap: wrap;
}

/* .entries button {
  border-radius: 20px;
  text-align: center;
  cursor: pointer;
  margin-top: 0.5em;
  padding: 0.25em;
  box-shadow: 0px 5px 10px rgb(0 0 0 / 0.1);
  font-size: 1.5em;
  border-bottom: 5px solid #a51215;
  color: #a51215;
  background-color: #fff;
  font-family: barlow;
  transition: background-color 0.2s ease-out, color 0.2s ease-out;
}

.entries button:hover {
  background-color: #a51215;
  color: #fff;
}
.entries button:active {
  box-shadow: 0px 0px 0px 0px rgb(0 0 0 / 30%);
} */

.official-rules-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px;
}

.official-rules-links a:link,
.official-rules-links a:visited {
  border-radius: 15px;
  text-align: center;
  cursor: pointer;
  margin-top: 0.5em;
  padding: 0.25em;
  box-shadow: 0px 5px 10px rgb(0 0 0 / 0.1);
  font-size: 1.25em;

  border: 1px solid #a51215;
  border-bottom: 5px solid #a51215;
  color: #a51215;
  background-color: #fff;
  font-family: barlow;
  transition: background-color 0.2s ease-out, color 0.2s ease-out;
  text-decoration: none;
}

.official-rules-links a:hover {
  color: #fff;
  background-color: #a51215;
}

.official-rules-links a:active {
  box-shadow: 0px 0px 0px 0px rgb(0 0 0 / 30%);
}

.patch-notes {
  font-size: 0.8em;
  border: 2px solid #a51215;
  padding: 15px;
  border-radius: 15px;
  box-shadow: 0px 5px 10px rgb(0 0 0 / 0.1);
  background-color: #fff;
}

.patch-notes-button {
  font-size: 0.8em;
  text-align: center;
}

.entry-button {
  border-radius: 15px;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 0.5em;
  padding: 0.5em;
  box-shadow: 0px 5px 10px rgb(0 0 0 / 0.1);
  font-size: 1.5em;
  border: 1px solid #292829;
  border-bottom: 5px solid #292829;
  color: #a51215;
  background-color: #fff;
  font-family: azbuka;
  transition: background-color 0.2s ease-out, color 0.2s ease-out;
}

.entry-button:link,
.entry-button:visited {
  text-decoration: none;
}
.entry-button:hover {
  color: #fff;
  background-color: #a51215;
}

.entry-button:active {
  box-shadow: 0px 0px 0px 0px rgb(0 0 0 / 30%);
}

.entry-button-red {
  border-radius: 15px;
  text-align: center;
  cursor: pointer;
  text-transform: uppercase;
  margin-top: 0.5em;
  padding: 0.5em;
  box-shadow: 0px 5px 10px rgb(0 0 0 / 0.1);
  font-size: 1.5em;
  border: 1px solid #292829;
  border-bottom: 5px solid #292829;
  color: #fff;
  background-color: #a51215;
  font-family: azbuka;
  transition: background-color 0.2s ease-out, color 0.2s ease-out;
}

.entry-button-red:link,
.entry-button-red:visited {
  text-decoration: none;
  color: #fff;
}
.entry-button-red:hover {
  color: #292829;
  background-color: #fff;
}

.entry-button-red:active {
  box-shadow: 0px 0px 0px 0px rgb(0 0 0 / 30%);
}

.entry-button-black {
  border-radius: 15px;
  text-align: center;
  cursor: pointer;
  text-transform: uppercase;
  margin-top: 0.5em;
  padding: 0.5em;
  box-shadow: 0px 5px 10px rgb(0 0 0 / 0.1);
  font-size: 1.5em;
  border: 1px solid #292829;
  border-bottom: 5px solid #292829;
  color: #fff;
  background-color: #292829;
  font-family: azbuka;
  transition: background-color 0.2s ease-out, color 0.2s ease-out;
}

.entry-button-black:link,
.entry-button-black:visited {
  text-decoration: none;
  color: #fff;
}
.entry-button-black:hover {
  color: #292829;
  background-color: #fff;
}

.entry-button-black:active {
  box-shadow: 0px 0px 0px 0px rgb(0 0 0 / 30%);
}

.keyword {
  font-variant: small-caps;
  /* font-size: .9em; */
  font-family: azbuka;
  color: #a51215;
}

p {
  margin-bottom: 0.5em;
}

.entry li {
  margin-left: 1.5em;
  margin-bottom: 0.5em;
}

/* li ul li {
  margin-left: 2em;
  list-style-type: disclosure-closed;
  margin-top: 0.5em;
}

li ul li ul li {
  list-style-type: circle;
} */

ol li::marker {
  font-family: azbuka;
  font-size: 1.2em;
}

ol:first-child {
  padding-top: 0.5em;
}

ol li ol li p {
  background-color: #c4c6c8;
  border-left: solid 5px #b1b4b6;
  padding: 0.75em;
}

ol li ol {
  list-style-type: upper-alpha;
}

ul {
  list-style-type: disc;
}

ol li p {
  background-color: #b1b4b6;
  border-left: solid 5px #424042;
  padding: 0.75em;
}

/* li:before {

  counter-increment: yourVariableName;
 
  content: "" counter(yourVariableName) ": ";
  color: #292829;
  font-family: "azbuka";
} */

.aside {
  float: right;
  text-align: center;
  margin: 10px 40px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-direction: column;
  max-width: 150px;
  background-color: #c4c6c8;
  box-shadow: 0px 5px 10px rgb(0 0 0 / 0.3);
}

.aside p {
  /* text-transform: uppercase; */
  font-size: 20px;
  line-height: 20px;
  font-family: barlow;
}

.aside img {
  max-width: 150px;
}

.entry:target {
  position: fixed !important;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-pack: center !important;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center !important;
  -ms-flex-align: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  width: 100%;
}

.entry .entry-dialog {
  position: relative;
  z-index: 12;
  background: #e6e4e1;
  border-radius: 25px;
  -webkit-box-sizing: border-box !important;
  box-sizing: border-box;
  padding: 1em;
  margin: 0 3em;
  max-width: 50%;
  max-height: 90%;
  overflow-x: hidden;
  overflow-y: auto;
  border-bottom: 5px solid #a51215;
  box-shadow: 30px 30px 10px rgb(0 0 0 / 0.3);
}

.entry .entry-close {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 11;
  background-image: url(img/villainy-button.png);
  background-position: top right;
  background-size: 2.5em 2.5em;
  background-repeat: no-repeat;
  background-origin: content-box;
  padding: 0.5em;
}

a:link,
a:visited {
  color: #292829;
}

.related-topics {
  display: flex;
  align-items: center;
  justify-items: space-between;

  flex-wrap: wrap;
}

.related-topics a:link {
  display: block;
  margin-left: 0.25em;
  margin-bottom: 0.25em;
  padding: 0.25em;
  border-radius: 20px;
  text-align: center;
  border: 1px solid #a51215;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0px 5px 10px rgb(0 0 0 / 0.3);
  color: #a51215;
  background-color: #e6e4e1;
  font-family: barlow;
  transition: background 0.2s ease-out, color 0.2s ease-out;
}

.related-topics a:visited {
  color: #a51215;
  background-color: #e6e4e1;
}

.related-topics a:hover {
  color: #e6e4e1;
  background-color: #a51215;
}

.related-topics a:active {
  box-shadow: 0px 0px 0px 0px rgb(0 0 0 / 30%);
}

.btn-back {
  float: right;
  display: block;
  margin: 0.25em 1em 0.25em 0em;

  padding: 0.25em;
  border-radius: 20px;
  text-align: center;
  border: 1px solid #a51215;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0px 5px 10px rgb(0 0 0 / 0.3);
  color: #a51215;
  background-color: #e6e4e1;
  font-family: barlow;
  transition: background 0.2s ease-out, color 0.2s ease-out;
  -webkit-transform: scaleX(-1);
  transform: scaleX(-1);
}

.btn-back:hover {
  background-color: #fff;
}

.hidden {
  display: none;
}

.panel {
  background-color: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.keyword-reference {
  text-transform: uppercase;
  /* font-size: .9em; */
  font-family: barlow;
}

.game-icon {
  display: inline;
  height: 1em;
}

.clipped-corners {
  clip-path: polygon(0 0, 90% 0, 100% 10%, 100% 98%, 10% 100%, 0 90%);
  width: 50%;
  float: left;
  margin-right: 1.5em;
}

.example-dice {
  display: flex;
  align-items: center;
}

.example-dice img {
  height: 2.5em;
  margin-left: 0.25em;
  border-radius: 15px;
}

.icon-list {
  display: grid;
  grid-template-columns: 50px 1fr 50px 1fr;
  align-items: center;
  gap: 5px;
}

.icon-list img {
  justify-self: center;
}

.upgrade-icon {
  display: inline;
  height: 2.5em;
}

.easter-egg a:link {
  text-decoration: none;
  color: #424042;
}

@media (max-width: 1000px) {
  .container {
    width: 100%;
  }

  .example-photo {
    float: none;
    margin-left: 0px;
  }

  .body {
    font-size: 16px;
  }

  .page-title {
    line-height: 1em;
  }

  .btn-letter {
    margin-top: 5px;
  }

  .entry .entry-dialog {
    max-width: 100%;
  }

  h4 {
    font-size: 1.25em;
  }

  h5 {
    font-size: 1em;
  }

  .keyword-reference {
    font-size: 0.9em;
  }

  .aside {
    text-align: center;
    margin: 0px 15px;
    padding: 5px;

    gap: 5px;

    max-width: 100px;
  }

  .aside p {
    font-size: 16px;
    line-height: 15px;
  }

  .aside img {
    max-width: 100px;
  }

  .btn-back {
    max-height: 1.25em;
  }

  .logos img {
    max-width: 100%;
  }
}
