* {
  box-sizing: border-box;
}


.commissionmaster {
  width: 100%;
  height: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding:20 px;
  text-align: center; 
  display: flex;
  flex-direction: column;
}

.commissionpagetitle {
  font-size: 50px;
  font-weight: bold;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: #ffffff;
  padding: 10px 0;
}

.commissiongallerymaster {
  background-color: transparent;
  border: none;
  padding: 20px 0;
  height: auto;
  border-radius: 12px;
  padding: 20px;
}

.commissiongalleryheader,
.commissionslotheader {
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.commissiongallerycontainer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 10px;
}

.listingcontainer {
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 280px;
  padding: 5px;
  background: var(--content-bg-gradient); 
  border: 1px solid var(--bordercolor);
  border-radius: 12px;
}

.listingcontainer:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.listingcontent {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  background-color: #1a1a1a;
  color: #ffffff;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  max-width: 350px;
  max-height: 350px;
  padding: 15px;
}

.listingcontent img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.listingdetailcontainer {
  width: 100%;
  height: auto;
  border-radius: 12px;
  padding: 25px;

  background: var(--panel-bg);
  background-repeat: repeat;
  background-size: 25px auto;
  background-attachment: scroll;
  border: 2px solid var(--bordercolor);
  color: var(--content-text-color);
}

.listingreturnbutton {
  width: max-content;
  height: auto;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  user-select: none; 
  -webkit-user-select: none;
  -moz-user-select: none;
  margin-bottom: 15px;
  background: var(--btn-bg-analogous);
  border: 2px solid var(--btn-border-analogous);
  color: var(--content-text-color);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.listingreturnbutton:hover {
  background: var(--banner-header-analogous);
  border-color: var(--btn-hover-analogous);
}

.ldtitle {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
}

.ldfocus {
  max-width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

#ldfocusimage {
  max-width: 100%;
  max-height: 50vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#ldfocusimage:not([src]), 
#ldfocusimage[src=""] {
  display: none;
}

.lddesc {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.ldgallery {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}

.ldgallery img {
  width: 250px;
}

.commissiongallerycontainer.display-none, 
.listingdetailcontainer.display-none,
.termoverlaymaster.display-none,
.currencychoicecontainer.display-none,
.display-none {
  display: none;
}

.currencybutton {
  width: 50px;
  height: 50px;
  background: var(--btn-bg-analogous);
  border: 2px solid var(--btn-border-analogous);
  color: var(--content-text-color);
  cursor: pointer;
  user-select: none; 
  -webkit-user-select: none;
  -moz-user-select: none;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  position: relative; 
  transform: none;
  margin: 0 auto;
}

.currencychoicecontainer {
  position: absolute;
  top: 100%;       
  left: 0;          
  margin-top: 8px;  
  width: 180px;   
  padding: 12px;
  border-radius: 6px;
  z-index: 10;     
  display: flex;
  flex-direction: column;
  gap: 8px;

  background-color: var(--banner-content-bg); 
  border: 2px solid var(--bordercolor); 
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.currencychoice {
  font-size: 20px;
  color: var(--content-text-color);
  padding: 6px;
  border-radius: 4px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.currencychoice:hover {
  background-color: var(--panel-bg);
  color: var(--activebordercolor);
}

.commissionslotmaster {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 2px dashed rgba(255, 255, 255, 0.2);
}

.commissionslotcontainer {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 0;
  width: 100%;
  justify-content: center;
  align-items: center;
}

.slot-img {
  width: 100px;  
  height: 100px; 
  object-fit: contain;
}

.termsbutton {
  width: max-content;
  height: auto;
  background: var(--btn-bg-analogous);
  border: 2px solid var(--btn-border-analogous);
  color: var(--content-text-color);
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 6px;
  margin: 15px auto 0 auto;
  cursor: pointer;
  user-select: none; 
  -webkit-user-select: none;
  -moz-user-select: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.currencybutton:hover,
.termsbutton:hover {
  background: var(--banner-header-analogous);
  border-color: var(--btn-hover-analogous);
}

.commissiondescriptionmaster,
.commissionpaymentmaster,
.commissionsupportmaster {
  background-color: transparent; 
  border: 2px solid var(--bordercolor);
  border-radius: 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.commissiondescriptionheader,
.commissionpaymentheader,
.commissionsupportheader {
  background: var(--banner-header-analogous);
  padding: 12px 20px;
  font-size: 20px;
  font-weight: bold;
  color: var(--content-text-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
  border-bottom: 2px solid var(--bordercolor);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.commissiondescription,
.commissionpaymentcontainer,
.commissionsupportcontainer {
  background: var(--panel-texture);
  background-size: 45px auto;
  background-blend-mode: overlay;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  gap: 15px;
  padding: 20px;
    border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.commissiondescription a {
  color: cyan;
  text-decoration: underline;
}
.commissiondescription a:hover {
  color: white;
}

.flex-directory-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.termoverlaymaster {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  pointer-events: auto;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.termbg {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(41, 75, 45, 0.4); 
  z-index: 1999;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.termcontainer {
  z-index: 2001;
  width: 450px;
  max-width: 90vw;
  height: max-content;
  max-height: 80vh;
  background-color: var(--banner-content-bg);
  border: 4px solid var(--bordercolor);
  color: var(--content-text-color);
  padding: 25px;
  color: #ffffff;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}



.flex-directory-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}