:root {
  --bg: #161328;
  --purple-dark: #4b309c;
  --purple-light: #8a82cf;
  --text: #f3f0f5;
  --red: #b33e3e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;

  background-color: var(--bg);
  background-image: url("https://trashbambi.neocities.org/img/ezgif-44e91116006d651a.gif");
  background-size: 200px;
  background-repeat: repeat;
  background-attachment: fixed;

  color: var(--text);
  font-family: Arial, sans-serif;
}

#page-wrap {
  width: min(1100px, 95vw);
  margin: 5px auto 20px;

  min-height: calc(100vh - 25px);

  display: flex;
  flex-direction: column;
}

#headernav {
  width: 100%;
  margin-bottom: 12px;
}

.header-box {
  position: relative;
  height: 200px;
  overflow: hidden;
  background-image: url("https://trashbambi.neocities.org/img/ezgif-4f22ecac26712b9d.gif");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.small-text {
  font-size: 0.6em;
}

.header-title {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 40px;
  font-weight: bold;
  color: var(--text);
  text-shadow: 2px 2px 4px #000;
}

h3 {
  margin-top: 0;
  font-size: 16px;
}

.ticker {
  margin-top: 8px;
  margin-left: auto;
margin-right: auto;
  padding: 6px;
  border: 2px solid var(--purple-light);
  border-radius: 8px;
  background: var(--purple-dark);

  overflow: hidden;
  white-space: nowrap;
  width: 90%;
}

.ticker-track {
  display: flex;
  width: max-content;

  animation: ticker-scroll 50s linear infinite;
}

.ticker-track span {
  padding-right: 60px;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

#layout {
  display: grid;
  grid-template-columns: 170px 1fr 190px;
  gap: 12px;
  align-items: start;
}

#left-sidebar,
#right-sidebar,
.content-box {
  position: relative;
  overflow: visible;

  background: var(--purple-dark);

  border: 2px solid transparent;
  
  color: var(--text);
}

#left-sidebar,
#right-sidebar {
  position: relative;
  overflow: visible;

  background: var(--purple-dark);

  border: 2px solid transparent;
  padding: 14px;

  color: var(--text);
}

.content-box {
  position: relative;
  overflow: visible;

  background: var(--purple-dark);

  border: 2px solid transparent;
  padding: 0;

  color: var(--text);
}

#left-sidebar::before,
#right-sidebar::before,
.content-box::before {
  content: "";

  position: absolute;
  inset: 0;

  background-image:
    url("https://trashbambi.neocities.org/img/e567e6617a3910964ea531ee2c079150.gif");

  background-repeat: repeat;
  background-size: 350px;

  opacity: 0.05;

  pointer-events: none;
}

#left-sidebar::after,
#right-sidebar::after,
.content-box::after {
  content: "";

  position: absolute;
  inset: -25px;

  border: 48px solid transparent;
  border-image-source: url("https://trashbambi.neocities.org/img/border-white.png");
  border-image-slice: 34%;
  border-image-repeat: round;

  pointer-events: none;
  z-index: 99;
}

#left-sidebar > *,
#right-sidebar > *,
.content-scroll {
  position: relative;
  z-index: 10;
}

#main-content {
  min-width: 0;
}

.content-box {
  height: 600px;
  min-height: 600px;
  overflow: visible;
}

#left-sidebar,
#right-sidebar {
  height: 600px;
  min-height: 600px;
}

.content-scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
padding: 14px;
  position: relative;
  z-index: 10;

  padding-right: 12px;
}

a {
  color: var(--text);
}

a:hover {
  color: var(--purple-light);
}


hr {
  border: none;
  height: 15px;

  background-image: url("https://trashbambi.neocities.org/img/barbedwire2.png");
  background-repeat: repeat-x;
  background-position: center;

  margin: 12px 0;
}

/* Forms */

input,
textarea,
button {
  font-family: inherit;
}

input,
textarea {
  width: 100%;
  margin: 6px 0 12px;
  padding: 8px;
  border: 2px solid var(--purple-light);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

button {
  padding: 7px 12px;
  border: 2px solid var(--purple-light);
  border-radius: 10px;
  background: var(--purple-dark);
  color: var(--text);
  cursor: pointer;
}

button:hover {
  background: var(--purple-light);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-label input {
  width: auto;
  margin: 0;
}

/* Gallery masonry */

#gallery-grid {
  display: block;
}

.gallery-year-section {
  margin-bottom: 24px;
}

.gallery-year-heading {
  margin: 12px 0 8px;
  padding: 5px 10px;

  border: 2px solid var(--purple-light);
  border-radius: 10px;

  background: var(--bg);
  color: var(--text);

  font-size: 20px;
}

.gallery-year-grid {
  columns: 5 100px;
  column-gap: 5px;
}

.gallery-item {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  break-inside: avoid;

  border: 2px solid var(--purple-light);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg);
}

.gallery-item img {
  display: block;
  width: 100%;
  border-radius: 14px;
}

.gallery-description {
  padding: 10px;
  font-size: 14px;
}

.nsfw-hidden {
  display: none;
}


/* Popup */

.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: grid;
  place-items: center;

  background: rgba(0, 0, 0, 0.7);
}

.popup-box {
  width: min(400px, 90vw);
  padding: 20px;

  border: 2px solid var(--purple-light);
  border-radius: 15px;
  background: var(--bg);
  color: var(--text);
  text-align: center;
}

.gallery-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 12px;
}

.gallery-topbar h1 {
  margin: 0;
}

#auth-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

#auth-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

#auth-box input {
  width: 180px;
  margin: 0;
}

.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrap input {
  padding-right: 42px;
}

.password-toggle {
  position: absolute;
  right: 6px;

  width: 30px;
  height: 30px;
  padding: 0;

  display: grid;
  place-items: center;

  border-radius: 8px;
  font-size: 14px;
}

.window-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: grid;
  place-items: center;

  background: rgba(0, 0, 0, 0.65);
}

.window-popup {
  width: min(520px, 92vw);

  border: 2px solid var(--purple-light);
  border-radius: 4px;

  background: var(--bg);
  color: var(--text);

  box-shadow:
    4px 4px 0 #000,
    inset 2px 2px 0 rgba(255, 255, 255, 0.25),
    inset -2px -2px 0 rgba(0, 0, 0, 0.45);
}

.window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 5px 7px;

  background: var(--purple-light);
  color: var(--text);

  font-weight: bold;
  border-bottom: 2px solid var(--bg);
}

.window-titlebar button {
  width: 24px;
  height: 24px;
  padding: 0;

  border-radius: 2px;
  line-height: 1;

  background: var(--purple-dark);
  color: var(--text);
}

.window-body {
  padding: 14px;
  background: var(--bg);
}

.window-buttons {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
}

.window-titlebar {
  cursor: move;
  user-select: none;
}

.bulk-window-popup {
  width: min(760px, 94vw);
  max-height: 85vh;
  overflow: hidden;
}

.bulk-window-popup .window-body {
  max-height: calc(85vh - 40px);
  overflow-y: auto;
}

.bulk-upload-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;

  margin: 12px 0;
  padding: 10px;

  border: 2px solid var(--purple-light);
  border-radius: 8px;
  background: var(--purple-dark);
}

.bulk-upload-item img {
  width: 120px;
  max-height: 120px;
  object-fit: contain;

  border: 2px solid var(--purple-light);
  background: var(--bg);
}



.lightbox-content {
  position: relative;

  width: fit-content;
  max-width: 92vw;
  max-height: 92vh;

  padding: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 2px solid var(--purple-light);
  border-radius: 15px;

  background: var(--bg);

  overflow: hidden;
}

#lightbox-image {
  display: block;

  max-width: calc(92vw - 32px);
  max-height: calc(92vh - 32px);

  width: auto;
  height: auto;

  border-radius: 12px;

  object-fit: contain;
}

#lightbox-description {
  margin-top: 12px;
}

#close-lightbox-btn {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 36px;
  height: 36px;
  padding: 0;

  border-radius: 50%;
  font-size: 18px;
}

.gallery-item {
  overflow: visible;
}

.gallery-item img {
  cursor: pointer;
}

.gallery-image-wrap {
  position: relative;
  overflow: visible;
}

.gallery-image-clip {
  overflow: hidden;
  border-radius: 14px;
}

.gallery-image-clip img {
  border-radius: 14px;
}

.alt-button {
  position: absolute;
  right: 8px;
  bottom: 8px;
}

.gallery-item.mature .gallery-image-clip img {
  filter: blur(15px);
  transform: scale(1.08);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.gallery-item.mature:hover .gallery-image-clip img {
  filter: blur(0);
  transform: scale(1);
}

.gallery-item.mature .gallery-image-wrap {
  position: relative;
}

.gallery-item.mature .gallery-image-wrap::after {
  content: "MATURE";
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  font-weight: bold;
  letter-spacing: 2px;

  color: white;
  text-shadow: 0 0 6px black;

  pointer-events: none;
  transition: opacity 0.2s ease;
}

.gallery-item.mature:hover .gallery-image-wrap::after {
  opacity: 0;
}

.nav-buttons {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-button {
  display: block;

  padding: 5px 8px;
font-size: 14px;
  border: 2px solid var(--purple-light);
  border-radius: 10px;

  background: var(--bg);
  color: var(--text);

  text-decoration: none;
  text-align: center;
  font-weight: bold;

  transition:
    background 0.15s ease,
    transform 0.15s ease;
}

.nav-button:hover {
  background: var(--purple-light);
  transform: translateY(-1px);
}

.nsfw-button {
  border-color: var(--red);
}

.nsfw-button:hover {
  background: var(--red);
}

.gallery-item.mature .gallery-image-clip img {
  filter: blur(15px);
  transform: scale(1.08);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.gallery-item.mature:hover .gallery-image-clip img {
  filter: blur(0);
  transform: scale(1);
}

.gallery-image-clip {
  overflow: hidden;
  border-radius: 14px;
}

.gallery-image-clip img {
  border-radius: 14px;
}

/* OC character list */

#oc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.oc-card {
  position: relative;
  display: block;

  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;

  overflow: hidden;

  border: 2px solid var(--purple-light);
  border-radius: 15px;

  background: var(--bg);
}

.oc-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.oc-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  padding: 3px 8px;

  background: rgba(34, 32, 43, 0.8);
  color: var(--text);

  text-align: center;
  font-weight: bold;
}

.oc-card.dragging {
  opacity: 0.5;
}

/* OC profile */

.oc-profile-header {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  align-items: start;
}

.oc-profile-header img {
  width: 100%;
  border: 2px solid var(--purple-light);
  border-radius: 15px;
  background: var(--bg);
}

.oc-profile-header h2 {
  margin-top: 0;
}

.oc-bio {
  line-height: 1.4;
}

/* OC image gallery */

#oc-gallery-grid {
  columns: 4 140px;
  column-gap: 10px;
}

.oc-gallery-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 12px;

  break-inside: avoid;

  overflow: hidden;

  border: 2px solid var(--purple-light);
  border-radius: 15px;
  background: var(--bg);
}

.oc-gallery-item img {
  display: block;
  width: 100%;
  cursor: pointer;
}

.artist-credit {
  padding: 8px;
  font-size: 13px;
  text-align: center;
}

/* OC popups */

.oc-window-popup {
  width: min(760px, 94vw);
  max-height: 85vh;
  overflow: hidden;
}

.oc-window-popup .window-body {
  max-height: calc(85vh - 40px);
  overflow-y: auto;
}

.oc-gallery-image-wrap {
  position: relative;
  overflow: visible;
}

.oc-gallery-image-clip {
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}

.oc-gallery-image-clip img {
  display: block;
  width: 100%;
  border-radius: 14px 14px 0 0;
}

.oc-gallery-item.mature .oc-gallery-image-wrap {
  position: relative;
}

.oc-gallery-item.mature .oc-gallery-image-clip img {
  filter: blur(12px);
  transition: filter 0.2s ease;
}

.oc-gallery-item.mature .oc-gallery-image-wrap::after {
  content: "MATURE";
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;
  font-weight: bold;
  letter-spacing: 2px;

  color: white;
  text-shadow: 0 0 6px black;

  pointer-events: none;

  transition: opacity 0.2s ease;
}

.oc-gallery-item.mature:hover .oc-gallery-image-clip img {
  filter: blur(0);
}

.oc-gallery-item.mature:hover .oc-gallery-image-wrap::after {
  opacity: 0;
}

.ticker-track span {
  display: flex;
  align-items: center;
  gap: 6px;

  padding-right: 60px;
}

.ticker-track img {
  vertical-align: middle;
}

.updates-box {
  width: calc(100% + 28px);
  margin-left: -14px;
  margin-right: -14px;

  max-height: 200px;

  overflow-y: auto;
  overflow-x: hidden;

  border-top: 2px solid var(--purple-light);
  border-bottom: 2px solid var(--purple-light);

  background: var(--bg);
}

.site-update {
  margin: 8px;
  overflow: hidden;

  border-radius: 8px;

  background: var(--purple-dark);
}

.site-update-date {
  padding: 5px 7px;

  background: var(--purple-light);
  color: var(--text);

  font-size: 12px;
  font-weight: bold;
  text-align: center;
}

.site-update-body {
  padding: 8px;
  font-size: 13px;
  line-height: 1.35;
}

.site-update-body p {
  margin-top: 0;
}

.site-update-window {
  width: min(460px, 92vw);
}

.updates-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 8px;
}

.updates-header h3 {
  margin: 0;
}

.updates-header button {
  padding: 4px 10px;
  font-size: 12px;
}

.bulk-drop-area {
  margin-bottom: 12px;
  padding: 18px;

  border: 2px dashed var(--purple-light);
  border-radius: 12px;

  background: var(--bg);
  text-align: center;
}

.bulk-drop-area.drag-over {
  background: var(--purple-dark);
}

.bulk-file-button {
  display: inline-block;

  padding: 7px 12px;
  border: 2px solid var(--purple-light);
  border-radius: 10px;

  background: var(--purple-dark);
  color: var(--text);

  cursor: pointer;
}

.bulk-file-button input {
  display: none;
}

.remove-bulk-file {
  margin: 6px 0 8px;
  padding: 4px 8px;
  font-size: 12px;
}

.spacer {
  height: 10px;
}

.sidebar-images-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sidebar-images-header h3 {
  margin: 0;
}

.sidebar-images-header button {
  padding: 4px 10px;
  font-size: 12px;
}

.sidebar-images-box {
  width: calc(100% + 28px);
  margin-left: -14px;
  margin-right: -14px;

  max-height: 240px;
  overflow-y: auto;
  overflow-x: hidden;

  border-top: 2px solid var(--purple-light);
  border-bottom: 2px solid var(--purple-light);

  background: var(--bg);
}

#sidebar-images-list {
  padding: 8px;
  text-align: center;
}

#sidebar-images-list img {
  max-width: 100%;
  margin: 3px;
  vertical-align: middle;
}

.sidebar-image-item {
  display: inline-block;
  cursor: grab;
}

.sidebar-image-item.dragging {
  opacity: 0.5;
}

.sidebar-image-item img {
  pointer-events: none;
}

#commission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 5px;
  margin-right: 10px;
}

.commission-card {
  position: relative;

  display: flex;
  flex-direction: column;

  width: 100%;
  aspect-ratio: 3 / 4;
  padding: 0;

  overflow: hidden;

  border: 2px solid var(--purple-light);
  border-radius: 15px;

  background: var(--bg);
}

.commission-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;

  padding: 8px;

  background: rgba(22, 19, 40, 0.6);
  backdrop-filter: blur(3px);

  color: var(--text);

  text-align: center;
  font-weight: bold;
}

.commission-card-image {
  position: relative;
  flex: 1;

  width: 100%;
  min-height: 0;

  overflow: hidden;
}

.commission-card-image img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  opacity: 0;

  transition: opacity 0.6s ease;
}

.commission-card-image img.active-thumb {
  opacity: 1;
}

.commission-placeholder {
  display: grid;
  place-items: center;

  width: 100%;
  height: 100%;

  padding: 10px;
  text-align: center;
  background: var(--bg);
}

.commission-window-popup {
  width: min(850px, 95vw);
  max-height: 85vh;
  overflow: hidden;
}

.commission-window-popup .window-body {
  max-height: calc(85vh - 40px);
  overflow-y: auto;
}

.commission-input-table,
.commission-display-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 12px;
  background: var(--bg);
}

.commission-input-table th,
.commission-input-table td,
.commission-display-table th,
.commission-display-table td {
  border: 2px solid var(--purple-light);
  padding: 6px;
  text-align: center;
}

.commission-input-table input {
  margin: 0;
  width: 100%;
}

.order-button {
  display: inline-block;

  padding: 8px 14px;

  border: 2px solid var(--purple-light);
  border-radius: 10px;

  background: var(--bg);
  color: var(--text);

  text-decoration: none;
  font-weight: bold;
}

.order-button:hover {
  background: var(--purple-light);
  color: var(--text);
}

.bulk-file-button input[type="file"] {
  display: none;
}

.bulk-file-button {
  width: auto;
  margin: 0;
}

#commission-gallery-grid {
  columns: 4 140px;
  column-gap: 5px;
}

.commission-form-row-button {
  display: block;
  margin: 8px 0 18px;
}

.commission-window-popup h3 {
  margin-top: 18px;
}

#delete-commission-btn {
  border-color: var(--red);
}

#delete-commission-btn:hover {
  background: var(--red);
}

.commission-info-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}

.commission-info-box {
  border: 2px solid var(--purple-light);
  border-radius: 10px;
  background: var(--bg);
  padding: 8px;
}

.commission-info-box summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;

  cursor: pointer;
  font-weight: bold;
  list-style: none;
}

.commission-info-box summary::-webkit-details-marker {
  display: none;
}

.expand-label {
  padding: 3px 8px;
  border: 2px solid var(--purple-light);
  border-radius: 8px;
  font-size: 12px;
  background: var(--purple-dark);
}

.commission-info-box[open] .expand-label {
  font-size: 0;
}

.commission-info-box[open] .expand-label::after {
  content: "Collapse";
  font-size: 12px;
}

.tos-window-popup {
  width: min(760px, 94vw);
  max-height: 85vh;
  overflow: hidden;
}

.tos-window-popup .window-body {
  max-height: calc(85vh - 40px);
  overflow-y: auto;
}

.tos-section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tos-section-title-row h2 {
  margin: 0;
}

.tos-section-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tos-section-content {
  margin-top: 10px;
  line-height: 1.45;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}

.rich-toolbar button {
  padding: 5px 9px;
  font-size: 13px;
}

.rich-editor {
  min-height: 180px;
  max-height: 320px;
  overflow-y: auto;

  padding: 10px;
  border: 2px solid var(--purple-light);
  border-radius: 10px;

  background: var(--bg);
  color: var(--text);
}

.rich-editor:focus {
  outline: none;
}

.page-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 200px;
  padding: 12px 15px;
  margin: 3px;

  border: 2px solid var(--purple-light);
  border-radius: 12px;

  background: var(--purple-dark);
  color: var(--text);

  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  text-align: center;

  cursor: pointer;
  transition: 0.15s;
}

.commission-page-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;

  gap: 3px;
  margin: 3px 0;
}

.commission-card.dragging {
  opacity: 0.5;
}

.page-link-button:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.socials-box {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 5px;
}

#socials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  align-items: center;
}

.social-icon-link {
  display: inline-flex;
}

.social-icon {
  display: block;

  width: auto;
  height: 32px;

  max-width: 100%;
  object-fit: contain;
}

.socials-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 3px;
}

.socials-header h3 {
  margin: 0;
}

.socials-header button {
  padding: 4px 10px;
  font-size: 12px;
}

.commission-order-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;

  margin: 12px 0;
}

.commission-order-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-width: 230px;
  padding: 10px 16px;

  border: 2px solid var(--purple-light);
  border-radius: 12px;

  background: var(--bg);
  color: var(--text);

  text-decoration: none;
  font-weight: bold;
}

.commission-order-link img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.commission-order-link:hover {
  background: var(--purple-light);
  color: var(--text);
}

.review-window-popup {
  width: min(700px, 94vw);
  max-height: 85vh;
  overflow: hidden;
}

.review-window-popup .window-body {
  max-height: calc(85vh - 40px);
  overflow-y: auto;
}

.review-card {
  margin: 12px 0;
  margin-right: 10px;
  padding: 12px;

  border: 2px solid var(--purple-light);
  border-radius: 12px;

  background: var(--bg);
}

.review-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.review-header h2 {
  margin: 0;
  font-size: 20px;
}

.review-header p {
  margin: 4px 0 0;
  font-size: 14px;
}

.review-stars {
  white-space: nowrap;
  font-size: 22px;
  color: #f8ed9a;
  text-shadow: 1px 1px 2px #000;
}

.review-date {
  margin: 8px 0;
  font-size: 13px;
  opacity: 0.8;
}

.review-comments {
  line-height: 1.45;
}

.review-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.danger-button {
  border-color: var(--red);
}

.danger-button:hover {
  background: var(--red);
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;

  margin-bottom: 8px;
  padding-bottom: 6px;

  

  font-size: 14px;
}

.review-meta strong {
  font-size: 16px;
}

.review-stars {
  color: #ffd966;
  letter-spacing: 1px;
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;

  margin-bottom: 8px;
  padding-bottom: 6px;

  
}

.review-meta-right {
  margin-left: auto;

  display: flex;
  align-items: center;
  gap: 10px;
}

.review-stars {
  color: #ffd966;
  letter-spacing: 1px;
}

#graphics-grid {
  line-height: 0;
}

.graphics-item {
  display: inline-block;

  width: auto;
  height: auto;

  max-width: 100%;

  margin: 2px;

  vertical-align: middle;

  cursor: grab;
}

.graphics-item.dragging {
  opacity: 0.5;
}

.graphics-item.dragging {
  opacity: 0.5;
}

@media (max-width: 800px) {
  .tos-section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 800px) {
  .commission-info-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .oc-profile-header {
    grid-template-columns: 1fr;
  }

@media (max-width: 800px) {
  #layout {
    grid-template-columns: 1fr;
  }

  #main-content {
    order: 1;
  }

  #left-sidebar {
    order: 2;
  }

  #right-sidebar {
    order: 3;
  }
  
  .content-box {
  height: auto;
  min-height: 600px;
}

.content-scroll {
  height: auto;
  overflow: visible;
}
}

