.wrapper {
  position: unset !important;
}

.cursor-default {
  cursor: default;
}

.cursor-pointer {
  cursor: pointer;
}

.logo {
  margin-top: 32px;
  margin-bottom: 16px;
}

.block {
  min-height: unset;
  position: relative;
  max-width: 1520px;
  margin: 0 auto 12px;
}

span.code {
  font-family: monospace;
  font-size: 90%;
  color: var(--property-value-color);
  border: 1px solid #a79d9138;
  background-color: #9b9b9b1f;
  border-radius: 4px;
  padding-left: 4px;
  padding-right: 4px;
}

.row-justify-content-left {
  justify-content: left !important;
}

.last-block {
  margin-bottom: 60px;
}

.info {
  padding: 8px 16px;
}

.info.box {
  position: relative;
  border: 1px solid #634928;
  margin: 24px;
  margin-top: 12px;
  background-color: #0e0b06;
  box-shadow: 0 0 12px 1px #634928ad;
}

.info.box.overlay {
  position: absolute;
  z-index: 2000;
  display: flex;
}

.close-info-btn {
  position: absolute;
  right: 16px;
  top: 8px;
  cursor: pointer;
  opacity: 0.6;
  font-weight: bold;
  z-index: 2;
}

.top-bar .close-info-btn {
  top: 11px;
}

.info .close-info-btn:hover, .top-bar .close-info-btn:hover {
  opacity: 1;
}

.info-title {
  margin-bottom: 6px;
}

.info-title.bigger {
  font-size: 150%;
  margin-bottom: 12px;
}

.extra-info {
  color: #afa89fbd !important;
}

.gradient-title {
  background: -webkit-linear-gradient(top, white, #8f7859);
  text-shadow: 0 0 3px rgba(255, 168, 53, 0.4);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

#trade {
  margin-bottom: 12px;
}

.results .row,
.results #trade .search-bar,
#trade .results .search-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  margin: 0;
  opacity: 1;
  background-color: rgba(10, 10, 10, 0.8);
  position: relative;
  transition: opacity 0.5s;
}

.results .row h2,
.results #trade .search-bar h2,
#trade .results .search-bar h2,
.results .row h3,
.results #trade .search-bar h3,
#trade .results .search-bar h3 {
  color: #e2e2e2;
  font-family: "FontinSmallcaps", sans-serif;
  font-weight: normal;
}

.text-align-center {
  text-align: center;
}

.examples,
.principles {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  flex-direction: column;
}

@media (min-width: 768px) {
  .examples,
  .principles {
    flex-direction: row;
    justify-content: space-between;
  }
}

.example,
.principle {
  flex: 1 1 calc(33.333% - 1rem);
  box-sizing: border-box;
  padding: 1rem;
}

@media (max-width: 767px) {
  .example,
  .principle {
    flex: 1 1 100%;
  }
}

.example img {
  border: 1px solid #bb9e7469;
  max-width: 100%;
  height: auto;
}

.example p {
  margin-top: 0.5rem;
}

.display-block {
  display: block !important;
}

.praises {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  flex-direction: row;
}

@media (min-width: 768px) {
  .praises {
    justify-content: space-between;
  }
}

.praise {
  flex: 1 1 calc(20% - 1rem);
  box-sizing: border-box;
  padding: 1rem;
}

.praise .praise-text {
  position: relative;
  display: inline-block;
}

.praise .author {
  color: #e2e2e2;
  opacity: 0.8;
  margin-top: 8px;
}

.praise .author::before {
  content: ' -- ';
  margin-left: 8px;
}

@media (max-width: 767px) {
  .praise {
    flex: 1 1 calc(50% - 1rem);
    text-align: center;
  }
}

@media (max-width: 767px) {
  .hide-on-md {
    display: none;
  }
}

.show-on-md {
  display: none !important;
}

@media (max-width: 767px) {
  .show-on-md {
    display: unset !important;
  }
}

.reset-font {
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
}

body, textarea {
  --sb-track-color: #0e0f10;
  --sb-thumb-color: #1e2124;
  --sb-size: 12px;
}

body::-webkit-scrollbar, textarea::-webkit-scrollbar, .dialog::-webkit-scrollbar  {
  width: var(--sb-size)
}

body::-webkit-scrollbar-track, textarea::-webkit-scrollbar-track, .dialog::-webkit-scrollbar-track  {
  background: var(--sb-track-color);
}

body::-webkit-scrollbar-thumb:active, textarea::-webkit-scrollbar-thumb:active, .dialog::-webkit-scrollbar-thumb:active,
body::-webkit-scrollbar-thumb:hover, textarea::-webkit-scrollbar-thumb:hover, .dialog::-webkit-scrollbar-thumb:hover  {
  background-color: #2d3136;
}

body::-webkit-scrollbar-thumb, textarea::-webkit-scrollbar-thumb, .dialog::-webkit-scrollbar-thumb  {
  background: var(--sb-thumb-color);

}

@supports not selector(::-webkit-scrollbar) {
  body {
    scrollbar-color: var(--sb-thumb-color)
                     var(--sb-track-color);
  }

  textarea {
    scrollbar-color: var(--sb-thumb-color)
                     var(--sb-track-color);
  }
}

/* Modal/Lightbox styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  max-width: 90vw;
  max-height: 90vh;
  cursor: default;
  position: relative;
}

.modal-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border: 1px solid #bb9e7469;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

/* Make example images clickable */
.example img {
  cursor: pointer;
  transition: all 0.2s ease;
}

.cursor-pointer {
  cursor: pointer;
}

.example img:hover {
  opacity: 1.1;
  filter: brightness(1.1);
}
