@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css");

/* Common */
ol ol li {
  list-style-type: lower-alpha;
}

table {
  border-collapse: separate!important;
  margin: auto;
}

.float-figure-content-wrapper {
  overflow: visible;
  float: right;
}

.invisible {
  display:none!important;
}

.structure-figure-wrapper {
  width: fit-content;
  position: relative!important;
  max-width: 100%!important;
  padding: 1%!important;
  text-align: center;
  margin: auto!important;
}

.structure-figure {
  display: inline-block!important;
  position: relative!important;
}

.structure-figure img  {
  max-width: 100%;
  max-height: 85vh;
  padding: 0px!important;
  margin: 0px!important;
}

.structure-highlight {
  position: absolute;
  opacity: 0.3;
  min-width: 25.2%;
  min-height: 15.9%;
  border-radius: 5px;
}

.structure-highlight:before{
  content:"";
  left: 4%;
  top: 11%;
  border-width:3px;
  border-style:solid;
  border-color:rgba(0, 0, 255, 1);
  background:rgba(0, 0, 255, 0.5);
  position:absolute;
  border-right-color:transparent;
  width:80%;
  height:75%;
  transform:rotate(2deg);
  border-radius:50%;
  padding:0.1em 0.25em;
}

.structure-highlight:after{
  content:"";
  left: 4%;
  top: 13%;
  padding:0.1em 0.25em;
  border-width:3px;
  border-style:solid;
  border-color:rgba(0, 0, 255, 1);
  border-left-color:transparent;
  border-top-color:transparent;
  position:absolute;
  width:80%;
  height:75%;
  transform:rotate(-1deg);
  border-radius:50%;
}

.image-wrapper, .video-wrapper {
  min-width: 30%;
  position: relative;
  text-align: center;
}

.image-wrapper span:before { 
  content: "Source: "; 
}

.figure-wrapper img,
.figure-wrapper video {
  max-width: 90%;
  max-height: 450px;
  margin: auto;
  padding: 5%;
}

.image-wrapper span { 
  font-size: 60%;
  position: absolute;
  right: 20px;
  bottom: 20px;
}

blockquote {
  text-align: justify;
}

.game-table-wrapper th {
  padding: 4px 8px;
}

.game-table-wrapper td .p1-action,
.game-table-wrapper td .p2-action {
  white-space: nowrap;
}

.game-tree-wrapper, .figure-wrapper,
table th, table td {
  border-bottom-left-radius: 15px 255px!important;
  border-bottom-right-radius: 225px 15px!important;
  border-top-left-radius: 255px 15px!important;
  border-top-right-radius: 15px 225px!important;
  border-color: black!important;
  border: 3px solid!important;
  width: fit-content;
  margin: 0px auto;
}

.activity {
  border-bottom-left-radius: 10px 25px!important;
  border-bottom-right-radius: 25px 15px!important;
  border-top-left-radius: 55px 15px!important;
  border-top-right-radius: 15px 55px!important;
  border-color: black!important;
  border: 1px solid!important;
  padding: 10px;
  margin: 10px 0;
  width: 100%;
  text-align: justify;
}

.activity label, .activity::before {
  font-weight: bold;
}

.game-tree-wrapper {
  width: auto;
}

table th {
  border: 3px solid!important;
  text-align: center!important;  
}

table td {
  border: 3px dotted!important;
  text-align: center!important;  
}

.org-left {
  text-align: left!important;  
}

.org-right {
  text-align: right!important;  
}

table td:first-child {
  border-left: 3px solid!important;
  border-bottom-right-radius: 50px 255px!important;
}

table td:last-child {
  border-right: 3px solid!important;
  border-bottom-right-radius: 50px 255px!important;
}

table tr:last-child td {
  border-bottom: 3px solid!important;
  border-top-left-radius: 40px 255px!important;
}

.game-tree-wrapper svg :not(g[cursor="pointer"]) path {
  fill: none;
  stroke-opacity: 0.8;
  stroke-width: 1.5;
  stroke: black;
}

.game-tree-wrapper .player {
  font-size: 1.2rem;
  font-weight: bold;
}

.game-tree-wrapper .action {
  font-size: 0.9rem;
}

.game-tree-wrapper .payoff {
  font-size: 1.0rem;
}

/* Blog */
article p, article li, article .f6, article .f5 {
  text-align: justify;
}

article .figure-wrapper {
  width: auto;
  margin: unset;
  padding: 10px 0px;
}

.f4 #references, .f5 #context, .f6 #context {
  display: none;
}

.f5 ul, .f6 ul, .f5 li, .f6 li {
  list-style: none;
  display: contents;
}

.f5 li li, .f6 li li {
  display: contents;
  font-style: oblique;
}

.f5 ul ul:first-child, .f6 ul ul:first-child {
  display: block;
  padding: 5px;
}

article .float-figure-wrapper {
  display: flex;
  flex-direction: column-reverse;
}

.solution label:before {
  content: 'Hints';
}

.collapsible {
  display: flex;
  flex-direction: column
}

.collapsible:nth-of-type(1) {
  border-top: 1px solid #e6e7e9
}

.collapsible .collapsible-body {
  transition: all 235ms ease-in-out 0s;
  background-color: rgba(204,204,204,.03);
  border-bottom: 1px solid #e6e7e9;
  margin: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 .75rem
}

.collapsible input {
  display: none
}

.collapsible input:checked + label {
  color: #41403e
}

.collapsible input[id^=collapsible]:checked ~ div.collapsible-body {
  margin: 0;
  max-height: 2960px!important;
  opacity: 1;
  padding: .75rem
}

.collapsible label {
  border-bottom: 1px solid #e6e7e9;
  color: #41403e;
  display: inline-block;
  font-weight: 600;
  margin: 0 0 -1px;
  padding: .75rem;
  text-align: center
}

.collapsible label:hover {
  color: #868e96;
  cursor: pointer
}

/* Slides */
.slides {
  inset: 5% auto auto 5%!important;
  width: 90%!important;
  height: 90%!important;
  min-height: 90%!important;
}

.slides .title {
  font-size: clamp(1vmin, 5rem, 10vmin);
}

.slides .title-container {
  overflow: hidden;
  position: relative;
  min-height: 45vh;
  font-size: clamp(1vmin, 2rem, 3.5vmin);
}

.slides .title-container-left {
  position: absolute;
  bottom: 0px;
  padding-left: 5%;
}

.slides .title-container-left h3 {
  text-align: left;
}

.slides .title-container-right {
  position: absolute;
  bottom: 0px;
  right: 0px;
  padding-right: 5%;
  text-align: right;
}

.slides .title-container-right h3 {
  text-align: right;
}

.present {
  font-size: clamp(10%, 4rem, 3.5vmin);
  line-height: 1.1!important;
  text-align: left;
}

.slides li {
  text-align: justify;
}

.slides blockquote {
  font-size: 80%;
}

.slides h1, .slides h2, .slides h3, .slides h4, .slides h5 { 
  text-transform: none;
} 


.slides h1, .slides h2, .slides h3, .slides h4, .slides h5,
.slides .figure-wrapper {
  text-align: center;
}

.slides .invertible {
  filter: invert(0.85);
}

.slides .game-tree-wrapper, .slides .figure-wrapper,
.slides .game-table-wrapper th, .slides .game-table-wrapper td {
  border-color: black;
}

.slides .figure-wrapper {
  min-width: 75vmin;
  height: fit-content;  
}

.slides .float-figure-wrapper .figure-wrapper,
.slides .float-figure-wrapper .image-wrapper,
.slides .float-figure-wrapper .video-wrapper {
  float: right;
  display: inline;
  min-width: 45%!important;
  max-width: 45%!important;
  height: fit-content;
  margin-left: 2vmin;
  margin-bottom: 2vmin;
}

.slides .float-figure-content-wrapper {
  display: contents;
}

.slides .float-figure-content-wrapper ul {
  display: contents;
  text-align: justify;
}

.slides .image-wrapper img,
.slides .video-wrapper video {
  object-fit: contain;
  width: -webkit-fill-available;
  width: -moz-available;
  width: fill-available;
  width: 100%;
  max-height: 70vh;
  height: auto;
}

.slides .structure-figure-wrapper {
  max-width: 95vmin!important;
}

.slides .float-figure-wrapper {
  display: block;
}

.slides .float-figure-wrapper .video-wrapper {
  padding: 12px;
}

.slides ul {
  margin-left: 0%!important;
  width: 90%;
  text-align: left;
}

.slides .game-tree-wrapper {
  max-width: 75%;
  margin:auto
}

.slides .game-tree-wrapper text,
.slides .game-tree-wrapper svg :not(g[cursor="pointer"]) circle {
  fill: black;
}

.slides .game-tree-wrapper svg :not(g[cursor="pointer"]) path {
  stroke: black;
}

#slide-bibliography {
  line-height: 1.2;
  font-size: 0.42em!important;  
}

/* Handout */
#content p, #content li {
  text-align: justify;
}

#text-table-of-contents ul,
#text-table-of-contents ul ul {
  list-style-type: none;
}

#content div[class^="outline"] {
  display: inline-block;
  overflow: visible;
    width: 100%;
}

#content .figure-wrapper {
  margin: auto;  
  margin-bottom: 15px;  
}

#content .two-column-figures {
  display: inline-block;
}

#content .two-column-figures .figure-wrapper {
  max-width: 49%;
  margin: 0px;  
  padding: 0px;  
}

#content .structure-figure-wrapper {
  max-width: 50%!important;
}

#content .float-figure-wrapper {
  display: flex;
  flex-direction: row-reverse;
}

#content .float-figure-content-wrapper {
  flex: auto;
  margin-right: 1%;  
}

#content .outline-3[id$="exercises"] .solution {
  display: none;
}

#outline-container-reading-material dd dt,
#outline-container-reading-material dd dd,
#outline-container-reading-material dd dd p:first-child {
  display: inline;
  margin-inline-start: 2px;
}

#content .activity {
  display: flow-root;
  width: auto;
  min-width: 10%;
}

#content .activity[type="example"]::before {
  content: "Example: ";
}

#content .activity[type="examples"]::before {
  content: "Examples: ";
}

#content .activity[type="exercise"]::before {
  content: "Exercise: ";
}

#content .activity[type="exercises"]::before {
  content: "Exercises: ";
}

#postamble {
  max-width: 60em;
  border-top: solid 2px;
  margin: 20px auto;
}

/* Exercises */
#content .outline-2[id$="exercises"] .solution:before {
  font-size: 16px;
  font-weight: bold;
  content: 'Hints';
  border-bottom: 1px solid black;
}

#content .outline-2[id$="exercises"] .solution {
  display: block!important;
  border-bottom: 2px solid black;
  padding-bottom: 5px;
  margin-bottom: 45px;
}

/* Print */
@media print {
  .collapsible-body {
    display: contents;
  }
}

@media print {
  #content h1, #content h2, #content h3, #content h4, #content h5,
  #content .activity::before {
    page-break-after: avoid;
  }
  
  #content .bg-black {
    display: none!important;
  }

  #content div[class^="outline"] {
    display: block;
  }
  
  #content .two-column-figures .figure-wrapper {
    width: 49%!important;
    max-width: 49%!important;
    padding:0!important;
  }
  
  #content .figure-wrapper, #content .game-tree-wrapper,
  #content .video-wrapper, #content .plot-container,
  #content table, #content .float-figure-wrapper,
  #content #postamble {
    break-before: auto!important;
    break-after: auto!important;
    break-inside: avoid!important;
  }

  #content .figure-wrapper, #content .game-tree-wrapper,
  #content .video-wrapper, #content .plot-container,
  #content #postamble {
    display: block;
  }

  #content .activity {
    border-color: transparent!important;
  }
  
  a:link, a:visited {
    color: blue;
  }
}
