/* Base Styles */
body {
  margin: 0;
  background: #e7e7e3 url('https://tapestry.nu/bg.png') repeat;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: 20px;
  color: #a09ba2;
  text-shadow: 1px 1px 0 #ffffff;
}

/* Global link styles */
a, span a, div a {
  color: #87bfa9;
  text-decoration: underline dashed;
  text-shadow: 1px 1px 0 #ffffff;
}
a:hover, span a:hover, div a:hover {
  color: #e1c280;
  text-decoration: underline dashed;
}

.top-row {
  padding: 30px;
  text-align: center;
}

/* Title */
.site-title, .site-title a {
  font-family: "Cutive Mono", monospace;
  font-size: 55px;
  letter-spacing: 3px;
  color: #87bfa9;
  text-shadow: 1px 1px 0 #ffffff;
  text-decoration: none;
  text-transform: lowercase;
  margin-bottom: 10px;
}

/* Navigation */
.main-nav {
  width: 100%;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.main-nav li {
  text-align: center;
}

.main-nav a {
  display: inline-block;      /* instead of block */
  padding: 6px 10px;          /* give it a little side padding */
  background: transparent;
  font-family: "Cutive Mono", monospace;
  font-size: 22px;
  letter-spacing: 3px;
  color: #443859;
  text-shadow: 1px 1px 0 #ffffff;
  text-decoration: none;
  text-transform: lowercase;
  background: rgba(231,231,227,.6);
}

.main-nav a:hover {
  background: rgba(231,231,227,1);
}


/* Content */
.content {
  width: 700px;
  max-width: 90%;
  margin: 0 auto 0 auto;
}

h1, h2, h3 {
  font-family: "Cutive Mono", monospace;
  font-weight: 400;
  text-align: left;
  text-shadow: 1px 1px 0 #ffffff;
  margin-top: 40px;
}

h1 { font-size: 36px; color: #d98fa7; }
h2 { font-size: 28px; color: #aa98b3; }
h3 { font-size: 24px; color: #afb6ce; }


/* Two Column */
.two-col {
  display: flex;
  gap: 20px;
  margin: 40px 0;
}

.two-col .col, .col {
  flex: 1;
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
}

.col img {
  display: inline-block; 
  vertical-align: middle; 
  max-width: 100%;
}

/* Three Column */
.three-col {
  display: flex;
  gap: 20px;
  margin: 40px 0;
}

.three-col .col {
  flex: 1;                       /* equal width columns */
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
}

.three-col .col img {
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
}


/* Footer */
footer {
  text-align: center;
  font-family: "Cutive Mono", monospace;
  font-weight: 200;
  font-size: 18px;
  color: #4e9dbd;
  text-shadow: 1px 1px 0 #ffffff;
  margin: 60px 0;
}

footer a {
  color: #4e9dbd;
  text-decoration: none;
}

footer a:hover {
  color: #aa98b3;
  text-decoration: underline dashed #e1c280;
}


/* KIM Made Pretty
=====================================================================*/
h3.kim {
  margin: 5px !important;
}

ul.kim {
  list-style: none;
  padding: 0 !important;
  margin: 5px 0 20px 20px !important;
}

.kim-success {
  background: #e6f7e6;
  border: 1px solid #7cc47c;
  color: #2d662d;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
}

.kim-error {
  background: #fdeaea;
  border: 1px solid #e08a8a;
  color: #7a1f1f;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 4px;
}


/* Joined FLs Made Pretty
=====================================================================*/

p.center {
  text-align: left !important;
  font-size: 12px;
  padding: 0 0 0 30px !important;
}

p.center img {
  margin: 0 0;
}


/* Two Column Joined List Is Siiiiick
=====================================================================*/

ul.show_joined_list_items, ul.show_owned_list_items {
  columns: 1;
  -webkit-columns: 1;
  -moz-columns: 1;
}

@media (min-width: 600px) {
  ul.show_joined_list_items, ul.show_owned_list_items {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
  }
}


/* Affiliates 2 column
=====================================================================*/

ul.affiliates {
  columns: 1;
  -webkit-columns: 1;
  -moz-columns: 1;
  list-style: none;
}

@media (min-width: 600px) {
  ul.affiliates {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
  }
}


/* Collective Ring
=====================================================================*/

#collectives {
  width: 400px;
  margin: 0 auto;
  padding: 0;
  margin-bottom: 0;
  background-color: rgba(255, 255, 255, 0); 
  font-style: normal;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-size: 10px;
  color: #87bfa9;
}


/* Owned and Wishlist - Styled Circles woooo
=====================================================================*/

.owned-wrapper {
  max-width: 1200px;         /* adjust if needed */
  margin: 0 auto;            /* centers the whole block */
  display: flex;
  flex-wrap: wrap;           /* allows instances to wrap */
  justify-content: center;   /* centers each row of instances */
  gap: 40px;                 /* space between instances */
  padding: 20px 0;
}

.owned {
  width: 175px;              /* matches image size for clean stacking */
  text-align: center;        /* centers image + text */
}

.owned img {
  width: 175px;
  height: 175px;
  object-fit: cover;
  border-radius: 50%;        /* circle */
  display: block;
  margin: 0 auto;
  border: 0;
  opacity: 0.7;                /* default 90% */
  transition: opacity 0.25s ease;  /* smooth fade */
}

.owned img:hover {
  opacity: 1;                  /* 100% on hover */
}

.owned .subject {
  font-family: "Cutive Mono", monospace;
  font-weight: 200;
  font-size: 20px;
  color: #4e9dbd;
  text-shadow: 1px 1px 0 #ffffff;
  margin-top: 10px;
}

.owned .details {
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  font-size: 12px;
  color: #aa98b3;
  text-shadow: 1px 1px 0 #ffffff;
  margin-top: 6px;
  line-height: 1.4;
}

.wish {
  width: 150px;              /* matches image size for clean stacking */
  text-align: center;        /* centers image + text */
}

.wish img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;        /* circle */
  display: block;
  margin: 0 auto;
  border: 0;
  opacity: 0.7;                /* default 90% */
  transition: opacity 0.25s ease;  /* smooth fade */
}

.wish img:hover {
  opacity: 1;                  /* 100% on hover */
}

.wish .subject {
  font-family: "Cutive Mono", monospace;
  font-weight: 200;
  font-size: 18px;
  color: #4e9dbd;
  text-shadow: 1px 1px 0 #ffffff;
  margin-top: 10px;
}

.wish .details {
  font-family: "Montserrat", sans-serif;
  font-weight: 200;
  font-size: 12px;
  color: #aa98b3;
  text-shadow: 1px 1px 0 #ffffff;
  margin-top: 6px;
  line-height: 1.4;
}


/* Owned and Wishlist - BG behind images
=====================================================================*/


.owned a,
.wish a {
  width: 175px;          /* or 150px for wish, but JS will overwrite if needed */
  height: 175px;
  display: block;
  margin: 0 auto;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Wish size */
.wish a {
  width: 150px;
  height: 150px;
}

/* Make the image sit inside the background circle */
.owned a img,
.wish a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  transition: opacity 0.25s ease;
}

.owned a img:hover,
.wish a img:hover {
  opacity: 1;
}





/* Stats
=====================================================================*/

.statsnumber {
  font-family: "Cutive Mono", monospace;
  font-weight: 300;
  font-style: normal;
  font-weight: bold;
  font-size: 30px;
  color: #4e9dbd;
}
  
.stats {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 18px;
  margin: 0;
  padding: 0 0 10px 0;
  line-height: 45px;
  color: #afb6ce;
  text-transform: none;
}  



/* Sample Link
=====================================================================*/

.samplelink {
  border: 1px solid #ffffff !important;
  background-color: #e7e7e3;
  font: 12px; 
  font-family: "Montserrat", sans-serif;
  color: #dca5b5;
  font-weight: 300;
  font-style: normal;
  width: 400px;
  margin: 0 auto;
  text-align: center;
  padding: 10px;
}
.copy-button {
  border: 1px solid #ffffff !important;
  background-color: #e7e7e3;
  font: 14px !important;
  color: #afb6ce;
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  font-style: normal;
  width: 100px;
  margin: 5px auto 0 auto !important;
  padding: 10px !important;
  text-align: center;
  transition: background 0.2s;
}
.copy-button:hover {
  letter-spacing: 2px;
}


/* Forms
=====================================================================*/

.custom_input {
  display: flex;
  align-items: center;
  margin-bottom: 5px !important;
}
.custom_input label {
  width: 120px;
  display: inline-block;
  text-align: right;
  margin-right: 10px;
  font-style: normal;
  color: #a09ba2;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  margin-bottom: 20px;
  text-align: left;
  font-size: 16px;
}
.custom_input .input {
  width: 300px;
  outline: none;
  border-radius: 0px;
  transition: 0.3s ease;
  border: 1px solid #4e9dbd !important;
  background: #e7e7e3;
  font: 14px;  font-family: "Montserrat", sans-serif;
  color: #88a9c6;
  font-weight: 400;
  font-style: normal;
  width: 300px;
  padding: 10px;
}
.custom_input .input:focus {
  background: #e7e7e3; 
  border: 1px solid #3d2b19;
  border-radius: 0px;
}
.custom_input .input::placeholder {
  color: #3d2b19;
}
.custom_input input[type="submit"] {
  width: auto;
  padding: 10px 20px;
  background: #e7e7e3; 
  color: #3d2b19;
  border: 1px solid #4e9dbd;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.3s;
}
.custom_input input[type="submit"]:hover {
  background: #e7e7e3;

}






/* =========================================================================
   STATISTICS TABLE STYLING
   ========================================================================= */

#statsTable {
  width: 700px;
  border-collapse: collapse;
  font-size: 14px;
  color: #413e4a;
}

#statsTable th,
#statsTable td {
  padding: 8px 10px;
  border-bottom: 1px solid #ccc;
}

#statsTable th {
  cursor: pointer;
  user-select: none;
  text-align: center;
  background-color: rgba(229, 217, 200, 0.7);
  color: #413e4a;
}

#statsTable th:first-child {
  text-align: left;
}

#statsTable td.center {
  text-align: center;
}

#statsTable tr:nth-child(even) {
  background-color: rgba(229, 217, 200, 0.2);
}

#statsTable tr:hover {
  background-color: rgba(229, 217, 200, 0.5);
}

#statsTable a {
  color: #4e9dbd;
  text-decoration: none;
  font-weight: normal;
}

#statsTable a:hover {
  color: #87bfa9;
  text-decoration: underline;
}

#statsTable .sort-arrow {
  color: #413e4a;
  margin-left: 5px;
  font-size: 0.8em;
}

/* Summary Row */
#statsTable .summary-row {
  background-color: rgba(229, 217, 200, 0.7) !important;
  color: #413e4a;
  border-top: 0;
}

#statsTable .summary-row td {
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 14px;
}

#statsTable .summary-row strong {
  color: #413e4a;
}


pre {
  font-size: 16px;
  background: rgba(255,255,255,.3);
  padding: 10px;
  border-radius: 5px;
}









/* Mobile Styles - ONLY FIXED */
@media (max-width: 900px) {
  .layout-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .jar {
    position: relative;
    top: 0;
    transform: none;
    margin: 0 auto;
  }

  .left-panel {
    width: 100%;
    text-align: center;
    position: relative;
  }

  .site-title {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin: 20px auto 10px auto;
  }

  .main-nav {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    margin: 10px auto 30px auto;
  }

  .main-nav ul {
    display: block;
    padding: 0;
  }

  .main-nav li {
    width: 100%;
    margin: 10px 0;
  }

  .content {
    margin: 20px auto;
    width: 90%;
  }

  .two-col, .three-col {
    flex-direction: column;
    gap: 20px;
  }
}
