* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-feature-settings: "pnum" on, "lnum" on;
  font-family: "Hubot Sans", serif;
}

body {
  background-color: var(--bg-color);
  color: var(--text-body);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Text Start */

.text-projectpage-overline {
  color: var(--text-overline1);
  text-align: left;
  letter-spacing: 1.5px;
  margin-top: 1px;
  font-size: 11px;
  font-weight: 500;
  line-height: 19px;
}

.text-projectpage-heading {
  color: var(--heading-color1);
  letter-spacing: -0.1px;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2),
    0 -6px 15px rgba(255, 90, 0, 0.1), 0 5px 15px rgba(0, 87, 255, 0.25);
  font-size: 40px;
  font-weight: 500;
  line-height: 125%;
  font-family: "Cinzel", serif;
}

.text-projectpage-subheading {
  color: var(--heading-color1);
  letter-spacing: 0.1px;
  flex: 0 auto;
  font-size: 24px;
  font-weight: 500;
  line-height: 125%;
  border-bottom: 1px solid var(--accent-color);
}

.text-projectpage-body {
  color: var(--text-body);
  letter-spacing: 0.4px;
  flex: 1;
  font-size: 16px;
  font-weight: 300;
  line-height: 150%;
}

.text-highlighted-body {
  color: var(--text-highlight-color);
  text-shadow: 0 0 10px rgba(242, 242, 242, 0.4);
  font-weight: 400;
}

span{
  color: rgba(27, 27, 27, 0.9);
  /* text-shadow: 0 0 10px rgba(242, 242, 242, 0.4); */
  font-weight: 400;
}

/* Text End */

.main {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 10px;
  width: 1200px;
  margin-top: 3rem;
}

.viewer {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 1rem;
  position: relative;
}

.field {
  background-color: var(--card-color);
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.234);
  border-radius: 1rem;
}

.stat-field {
  padding: 1rem;
  column-count: 2;
  border-radius: 0;
  /* background: url(../img/stat-block-top-texture.png), url(../img/paper.jpg); */
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat, repeat;
  position: relative;
}

.stat-field.item{
  display: flex;
  flex-direction: column;
  column-count: 1;
  gap: 1rem;
}

.stat-field.item div{
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.stat-field::before, .stat-field::after {
  content: "";
  display: block;
  background-image: url(../img/item-frame.V4_1.1.2.svg);
  /* background: var(--accent-color); */
  background-size: 100% 100%;
  height: 1rem;
  position: absolute;
  left: -3px;
  right: -3px;
}

.stat-field::before {
  top: -.5rem;
}

.stat-field::after {
  bottom: -.5rem;
}

*, *::before, *::after {
  box-sizing: inherit;
  -webkit-tap-highlight-color: transparent;
  outline: 0;
}

*, *::after, *::before {
  box-sizing: inherit;
}

.stat-field span {
  font-weight: bold;
  color: var(--text-highlight-color);
}

.stat-field p,
.stat-field div {
  break-inside: avoid-column;
}

.repeater b,
.stats-body-list b{
  color: var(--text-highlight-color);
}

.stat-blocks{
  margin: 5px 0;
}

.stat-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  row-gap: 3rem;
  align-items: center;
  justify-content: center;
}

.stat-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  background-image: url(../img/item-frame.V1_1.1.2.svg);
  background-position: center;
  background-size: cover;
  width: 110px;
  height: 120px;
  gap: 0.25rem;
  /* box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.234);
  border-radius: 1rem;
  background-color: var(--card-color);
  border: 2px solid var(--accent-color); */
  padding: 0.5rem 1rem;
}

.stat-box-heading {
  border-bottom: 1px solid var(--accent-color);
}

.stat-box-nr {
  font-size: 2em;
}

.mod-box {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom: -15%;
  background-image: url(../img/item-frame.V3_1.1.1.svg);
  background-position: center;
  background-size: cover;
  background-color: var(--card-color);
  /* box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.234);
  border: 2px solid var(--accent-color); */
  border-radius: 2rem;
  padding: 0.5rem;
  height: 40px;
  width: 70px;
  z-index: 2;
}

.stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 0;
}

.stats-box {
  padding-bottom: 3rem;
}

.stats-body-list {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stats-body-list p {
  padding: 0 0.25rem 0.25rem 0.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.234);
}

.extra-field {
  display: flex;
  flex-direction: column;
}

.sticky-field {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 1rem;
}

.top-box {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 200px;
  max-height: 17.5rem;
  padding: 1rem;
}

.img-box {
  overflow: hidden;
  height: 25rem;
  position: relative;
}

.img-box img {
  border-radius: 0.75rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 400px;
}

#authoractions {
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.divider{
  width: 100%;
  border: 1px var(--card-bg-border);
  margin: 1rem 0;
}



#description-edit {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 600px;
  height: auto;
  max-height: 80%;
  background-color: var(--card-color);
  border-radius: .5rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
  gap: .5rem;
}

.description_item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ccc;
  padding: .25rem 0;
}

.text-box{
  display: flex;
  flex-direction: row;
  gap: .25rem;
  align-items: center;
}

.head{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.publish-form{
  padding:1rem 0;
  display: flex;
  flex-direction: row;
  gap: 1rem;
}

.ad-head{
  display: flex;
  flex-direction: row;
  gap: 2rem;
  align-items: center;
}