#levelingTip {
  position: absolute;
  top: 3vw;
  left: 40vw;
  /* width: 50vw; */
  height: 80vh;
  margin: 0;
  background-color: transparent;
  background-image: url("./images/pergament.jpg");
  background-size: 100% 100%;
  max-width: 55vw;
  display: none;

  font-size: 1.5vw;

  overflow-y: scroll;

  /* overflow: visible; */

  border-image: linear-gradient(to bottom, #865c00, #ffe494, #8f5f00) 30;
  border-width: 0.2vw;
  border-style: solid;

  scrollbar-width: thin;
  scrollbar-color: rgb(165, 148, 0) transparent;
}
#levelingTip > * {
  margin-left: 1vw;
  margin-right: 1vw;
  margin-top: 1vw;
  margin-bottom: 1vw;
}

.table_header > * {
  padding-right: 1vw;
  padding-left: 1vw;
  background-color: rgba(87, 81, 81, 0.336);
}
tr {
  margin: 0;
}
table,
td {
  border-collapse: collapse;
  border: 1px solid black;
  text-align: center;
}

table {
  font-size: 1.1vw;
  /* font-weight: bold; */
}
.wide_table {
  font-size: 0.7vw;
}
.wide_table > td {
  max-width: 7vw;
}

.long {
  /* text-align: center; */
}
td:has(> span[class="long"]) {
  text-align: center;
}
.short {
  position: absolute;
  display: none;
}

.tableAbility,
.spellTip {
  text-decoration-line: underline;
  cursor: pointer;
}

.explanation {
  position: fixed;
  /*width: 70vw;*/
  max-width: 70vw;
  /*height: 20vw;*/
  max-height: 20vw;
  left: 3vw;
  /* top: 10vw; */
  font-size: 1.1vw;
  /* background-color: rgb(235, 235, 235); */
  background-color: transparent;
  /* background-color: rgba(175, 116, 28, 0.979); */
  background-image: url("./images/pergament.jpg");
  background-size: 5000% 5000%;
  background-position: -20% -20%;
  overflow-y: auto;

  border-image: linear-gradient(to bottom, #865c00, #ffe494, #8f5f00) 30;
  border-width: 0.2vw;
  border-style: solid;
  /* border-radius: 50%; */

  scrollbar-width: thin;
  scrollbar-color: rgb(165, 148, 0) transparent;
  text-align: start;
}

.explanation > * {
  margin-left: 1vw;
  margin-right: 1vw;
  margin-top: 1vw;
  margin-bottom: 1vw;
}

.spell {
  position: fixed;
  max-width: 30vw;
  /* min-height: 10vw; */
  max-height: 20vw;
  left: 3vw;
  overflow-y: hidden;
  background-color: white;

  border-image: linear-gradient(to bottom, #aa7502, #ffe494, #8f5f00) 30;
  border-width: 0.2vw;
  border-style: solid;

  background-image: linear-gradient(
    to bottom,
    rgb(31, 27, 24) 85%,
    rgb(126, 126, 126) 130%
  );
  background-size: 100% 100%;

  padding: 0.6vw 0.6vw 0.6vw 0.6vw;
}

.spellInfo {
  padding: 0;
  /* position: relative; */
  max-height: 20vw;
  display: flex;
  flex-direction: column;
  color: rgb(99, 78, 60);
  text-align: left;
}
.spellName {
  font-size: 1vw;
  font-weight: bold;
  color: white;
}
.spellDamage {
  /* font-size: 1vw; */
  font-weight: bold;
  margin-bottom: 0.5vw;
  display: flex;
  flex-direction: row;
}
.spellDescriptionDiv {
  max-height: 100%;
  font-size: 1vw;
  overflow-y: auto;
}
.spellDescription {
  height: 100%;
  color: rgb(173, 154, 136);
}
.spellDamageValue {
  margin-right: 1vw;
  color: rgb(173, 154, 136);
}

.spellRangeNclasses {
  color: rgb(129, 129, 129);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-top: 0.3vw;
  padding-bottom: 0.3vw;
}

.spellTimeLevel {
  padding: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  color: rgb(173, 154, 136);
  /* height: 1vw; */
}
.spellClasses {
  font-size: 0.7vw;
}

.spellIcon {
  aspect-ratio: 1/1;
  width: 4vw;
  position: fixed;
  background-size: 80% 80%;
  background-color: rgb(31, 27, 24);
  background-repeat: no-repeat;
  background-position: center;

  border-radius: 50%;
  /* border-radius: 50%;
  border-image: radial-gradient(#865c00, #ffe494, #8f5f00) 30;
  border-width: 0.2vw;
  border-style: solid; */
}
.spellIcon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(30deg, #aa7502, #ffe494, #8f5f00);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

#resistancesPanel {
  position: absolute;
  top: 20vw;
  left: 20vw;
  width: 30vw;
  height: 11vw;
  margin: 0;
  background-color: transparent;
  background-image: url("./images/pergament.jpg");
  background-size: 100% 100%;
  max-width: 55vw;
  display: none;

  font-size: 1.5vw;

  /* overflow-y: scroll; */

  /* overflow: visible; */

  border-image: linear-gradient(to bottom, #865c00, #ffe494, #8f5f00) 30;
  border-width: 0.2vw;
  border-style: solid;

  scrollbar-width: thin;
  scrollbar-color: rgb(165, 148, 0) transparent;
}

#resistanceTypesOfDamage {
  margin-top: 0.5vw;
}
#resistanceTypesOfDamage > button {
  width: 1.85vw;
  height: 1.85vw;
  background-size: 100% 100%;
  background-color: transparent;
  border: 0;
  outline: 0;
  cursor: pointer;
}
#aboutResistances {
  position: fixed;
  top: 20vw;
  left: 52vw;
  width: 30vw;
  height: 17vw;
  padding: 0.5vw 0.5vw 0.5vw 0.5vw;
  background-color: transparent;
  background-image: url("./images/pergament.jpg");
  background-size: 100% 100%;
  max-width: 55vw;
  display: none;
  overflow-y: auto;
}
#aboutResistances span {
  font-size: 1.5vw;
}
#aboutResistances img {
  width: 2vw;
  height: 3vw;
  /* position: relative;
  margin-top: 1vw; */
}
