body {
  background-color: #181B22;
  background-image: url('img/bg-leafes.gif');
  background-repeat: no-repeat;
  background-position: top center;
  font-family: 'Silkscreen', sans-serif;
  color: #ffffff;
  margin: 0;
  padding: 0;
  image-rendering: pixelated;
}

p {
  font-family: 'JetBrains Mono', sans-serif;
  font-size: 16px;
  line-height: 22px;
  text-align: justify;
  padding: 0;
  margin: 0;
}

b {
  font-weight: 700;
  color: #fff;
}

textarea {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  overflow-y: auto;
}

hr {
  border: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 2px;
  margin-bottom: 2px;
  width: 100%;
}
mark {
  background-color: #ffff88;
  padding: 0 2px;
  border-radius: 2px;
}

.body-small {
  font-family: "JetBrains Mono", sans-serif;
  font-size: 11px;
  line-height: 10px;
  margin-top: 4px;
  color: #818181;
}

.inline-link {
  text-decoration: none;
  font-family: 'Silkscreen', sans-serif;
  font-size: 16px;
  line-height: 18px;
  color: #6E723F;
}
.inline-link:hover {
  color: #ffffff;
}

#simple-link {
  text-decoration: none;
  cursor: pointer;
  color: #C3C980;
}

#simple-link:hover {
  color: #fff;
}

#placeholder-text {
  font-family: 'Silkscreen', sans-serif;
  font-size: 16px;
  margin-top: 4px;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

#placeholder-text-center {
  font-family: 'JetBrains Mono', sans-serif;
  font-size: 14px;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  line-height: 20px;
}

.body-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px;
  margin-bottom: 64px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
}

.section-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

.section-rows {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

@media (max-width: 912px) {
  .section-rows {
    flex-wrap: wrap;
  }
}

.section-column {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

.card-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
  margin-bottom: 16px;
}

#trade-user {
  font-family: "JetBrains Mono", sans-serif;
  font-size: 11px;
  line-height: 10px;
  margin-top: 4px;
  color: #818181;
}

/* BANNER */

.banner-container {
  position: relative;
  width: 100%;
  height: auto;
  border: 1px solid #C3C980;
  border-radius: 8px;
}

.banner-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.banner-container h1 {
  font-size: 32px;
  color: #bdc55e;
  text-align: center;
  border-style: solid;
  border-width: 0px;
  border-left-width: 4px;
  border-right-width: 4px;
  border-color: #bdc55e;
  margin-left: 24px;
  margin-right: 24px;
  padding-left: 24px;
  padding-right: 24px;
}

.trade-banner-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  border: solid 1px #bdc55e;
  cursor: pointer;
}

.trade-banner-image:hover {
  filter: contrast(115%);
  filter: brightness(1.2);
}

/* NAVIGATION */

.nav-buttons-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.nav-button {
  flex: auto;
  min-width: fit-content;
  background-color: #6E723F;
  border: 1px solid #C3C980;
  border-radius: 4px;
  color: #ffffff;
  font-size: 16px;
  padding: 4px 16px;
  padding-bottom: 6px;
  text-align: center;
  text-decoration: none;
}

.nav-button:hover {  
  background-color: #C3C980;
  color: #181B22;
}

.nav-link {
  flex: auto;
  min-width: fit-content;
  height: auto;
  background-color: #181B22;
  border: 1px solid #6E723F;
  border-radius: 4px;
  color: #d5d6c9;
  font-size: 10px;
  padding: 2px;
  font-family: 'Silkscreen', sans-serif;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
}

.nav-link:hover {
  background-color: #475351;
}

.arrow-link {
  min-width: fit-content;
  color: #bdc55e;
  padding: 2px;
  font-family: 'Silkscreen', sans-serif;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}

.arrow-link:hover {
  color: #ffffff;
}

/* CONTENT SECTION */

.content-section {
  background-color: #2C3135;
  border-color: #6E723F;
  border-style: solid;
  border-width: 1px;
  border-radius: 8px;
  padding-left: 12px;
  padding-right: 12px;
  padding-bottom: 12px;
  max-width: 960px;
}

.section-header {
  display: flex;
  justify-content: center;
  box-sizing: border-box;
  padding: 4px;
  padding-bottom: 8px;
  background-color: #181B22;
  border: 1px solid #6E723F;
  border-radius: 6px;
  font-size: 24px;
  letter-spacing: 60%;
  text-align: center;
  color: #bdc55e;
  margin:0;
  margin-top: 12px;
}

.section-subheader {
  display: flex;
  justify-content: center;
  border: 1px solid #6E723F;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  font-size: 16px;
  color: #d5d6c9;
  letter-spacing: 40%;
  text-align: center;
  margin-top: 12px;
  margin-bottom: 12px;
  padding: 4px;
  padding-bottom: 8px;
}

.filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 4px;
}

.filter-bar button {
  background-color: #2C3135;
  border: 1px solid #475351;
  color: #ffffff;
  font-family: 'Silkscreen', sans-serif;
  font-size: 16px;
  border-radius: 6px;
  padding: 4px 12px;
  padding-bottom: 6px;
  cursor: pointer;
}

.filter-bar button:hover {
  background-color: #475351;
}

.collections {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.collection-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: fit-content;
  width: fit-content;
  padding: 6px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.2);
}

.collection-header {
  font-size: 16px;
  color: white;
  border-radius: 4px;
  width: 100%;
  padding: 2px;
  padding-bottom: 5px;
  text-align: center;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.card-collection {
  display: grid;
  grid-template-columns: repeat(5, 55px);
  grid-template-rows: repeat(4, 75px);
  gap: 2px;
  justify-content: center;
}

.card-collection img {
  width: 55px;
  height: 75px;
  object-fit: cover;
}

.collection-stats {
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  background-color: rgba(0, 0, 0, 0.3);
  padding-left: 4px;
  padding-right: 4px;
  padding-top: 2px;
  padding-bottom: 4px;
  margin-top: 6px;
  border-radius: 4px;
}

/* MASTERED */

#mastered-full-deck {
  background-color: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.5);
}

#title-mastered-full-deck {
  background-color: #181B22;
}

/* LOGS */

.log {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
  gap: 6px;
  width: 100%;
}

.log-post {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  border-style: solid;
  border-width: 1px;
  border-radius: 6px;
  padding: 6px;
  width: 100%;
  border-color: #6E723F;
  background-color: #181B22;
  margin-bottom: 2px;
}

#log-date {
  font-size: 16px;
  color: white;
  border-radius: 4px;
  padding: 2px;
  padding-left: 6px;
  padding-right: 6px;
  padding-bottom: 5px;
  text-align: center;
  margin-bottom: 10px;
  text-transform: uppercase;
  background-color: #6E723F;
}

#logs-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.log-text-container {
  padding-left: 6px;
  padding-right: 6px;
  margin-bottom: 6px;
}

#log-text {
  color: #d5d6c9;
  font-family: 'JetBrains Mono', sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 19px;
  text-align: left;
}

.log-history {
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
  padding-left: 6px;
  padding-right: 6px;
  padding-top: 1px;
  padding-bottom: 4px;
  margin-top: 4px;
  width: 100%;
  font-size: 12px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.5);
}

#log-search-input {
  flex: 1 1 160px;
  min-width: 120px;
  height: 40px;
  max-height: 40px;
  line-height: 1.2;
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid #475351;
  border-radius: 6px;
  background-color: #0f1012;
  color: #ffffff;
  font-family: 'JetBrains Mono', sans-serif;
  font-size: 14px;
}

#match-count {
  margin-bottom: 12px;
}

.search-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 2px;
  gap: 3px;
}

/* MASTERED */

.mastered {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.mastered-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: fit-content;
  background-color: rgba(0, 0, 0, 0.2);
  border-color: rgba(0, 0, 0, 0.9);
  border-radius: 6px;
  padding: 4px;

}

.mastered-deck {
  display: flex;
  justify-content: center;
  width: fit-content;
  margin-top: 4px;
}

.mastered-deck img {
  width: 111px;
  height: 75px;
  object-fit: cover;
}

.mastered-date {
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 8px;
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(0, 0, 0, 0.3);
  padding-left: 4px;
  padding-right: 4px;
  padding-bottom: 2px;
  border-radius: 4px;
  margin-top: 4px;
  border: 1px solid #2C3135;
}

/* WISHLIST */

.card {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  border-style: solid;
  border-width: 1px;
  border-radius: 6px;
  padding: 6px;
  width: 100%;
  border-color: #6E723F;
  background-color: #181B22;
  margin-bottom: 2px;
}

.card-box-item {
  width: 280px;
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 8px;
  box-sizing: border-box;
}

.card-box-info{
  display:flex;
  flex-direction:column;
  color:#fff;
  margin-right: 8px;
}

.card-box-priority{
  font-size: 8px;
}

.card-box-name{
  font-size: 16px;
}

.card-box-item img{
  width:55px;
  height:75px;
  object-fit:cover;
  flex-shrink: 0;
}

/* SEARCH */

.btn {
  background-color: #2C3135;
  border: 1px solid #475351;
  color: #ffffff;
  font-family: 'Silkscreen', sans-serif;
  font-size: 16px;
  border-radius: 6px;
  padding: 4px 12px;
  padding-bottom: 6px;
  cursor: pointer;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 912px) {
  #clear-compare-btn {
    margin-top: 2px;
  }
}

.btn:hover {
  background-color: #475351;
}

#copy-btn {
  background-color: #2C3135;
  border: 1px solid #475351;
  color: #ffffff;
  font-family: 'Silkscreen', sans-serif;
  font-size: 16px;
  border-radius: 6px;
  padding: 4px 12px;
  padding-bottom: 6px;
  cursor: pointer;
  margin-top: 6px;
  width: 100%;
}

#copy-btn:hover {
  background-color: #475351;
}

#copy-result-btn {
  width: 100%;
}

#copy-wishlist-btn {
  width: 100%;
}

#compare-btn{
  width: 100%;
}

#clear-compare-btn {
  width: 100%;
}

#search-results {
  border: none;
  background: none;
  padding: 0;
  color: #d5d6c9;
  font-size: 14px;
  margin-top: 4px;
}

#search-results textarea {
  display: block;
  color: #d5d6c9;
  font-size: 14px;
  margin-top: 4px;
  white-space: pre-wrap;
}

.search-output {
  margin-top: 4px;
  color: #d5d6c9;
  font-size: 14px;
  white-space: pre-wrap;
  line-height: 1.4;
}

#search-text {
  color: #d5d6c9;
  font-family: 'JetBrains Mono', sans-serif;
  font-size: 15px;
  font-weight: 300;
  margin-top: 6px;
  margin-bottom: 6px;
  padding-left: 6px;
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 2px;
}

#search-input {
  flex: 1 1 160px;
  min-width: 120px;
  height: 40px;
  max-height: 40px;
  line-height: 1.2;
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid #475351;
  border-radius: 6px;
  background-color: #0f1012;
  color: #ffffff;
  font-family: 'JetBrains Mono', sans-serif;
  font-size: 14px;
}

.search-row .btn {
  margin-top: 0;
}

@media (max-width: 419px) {
  .search-row {
    flex-direction: column;
    align-items: stretch;
  }
}

#search-gallery{
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.card-img{
  width: 55px;
  height: 75px;
  object-fit: cover;
}

.card-fallback{
  width:55px;
  height:75px;

  display:flex;
  align-items:center;
  justify-content:center;
  padding: 2px;

  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;

  text-align: center;
  font-size: 8px;
  background:rgba(0,0,0,0.1);
  color:#818181;
  border-radius:4px;
  border: solid 1px rgba(255, 255, 255, 0.1);
}

#trade-gallery{
  display:flex;
  flex-wrap:wrap;
  gap: 2px;
  margin-top:8px;
}

/* PROFILE */

.profile-card {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 290px;
  min-width: 290px;
  width: fit-content;
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 8px;
}

.palette-colors {
  display: flex;
  flex-direction: row;
  box-sizing: border-box;
  gap: 24px;
}

.palette-column {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  gap: 6px;
}

.profile-card-info {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  color:#fff;
  gap: 4px;
}

.card-box-subheader {
  font-size: 8px;
}

.card-box-name{
  font-size: 16px;
}

.profile-line {
  display: flex;
  gap: 4px;
  white-space: nowrap;
}

.inline-accent {
  font-family: 'Silkscreen', sans-serif;
  color: #6E723F;
  font-size: 12px;
}

#crayon {
  height: 25px;
  width: 11px;
}

#sketchpad {
  height: 75px;
  width: 111px;
}

#frame {
  display: flex;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  border: solid 1px rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  padding: 10px;
  padding-top: 16px;
  width: auto;
  height: fit-content;
  background-color: rgba(0, 0, 0, 0.2);
  font-size: 12px;
  gap: 6px;
}

#palette-frame {
  display: flex;
  box-sizing: border-box;
  flex-direction: column;
  align-items: left;
  border: solid 1px rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  padding: 10px;
  padding-top: 16px;
  width: auto;
  height: fit-content;
  background-color: rgba(0, 0, 0, 0.2);
  font-size: 12px;
  gap: 8px;
}

