/* =========================================================================
   Global Reset
   ========================================================================= */
* {
  margin: 0;
  padding: 0;
}

/* =========================================================================
   Body & Wrapper
   ========================================================================= */
body {
  background-color: #0f0f0f;
  background-image: url("erasure.png");
  background-repeat: no-repeat;       /* don’t tile the image */
  background-position: right bottom;  /* lower-right corner */
  background-attachment: fixed;       /* image doesn’t scroll */
  margin: 0;                          /* remove default body margins */
}

#wrapper {
  margin: 0 auto;
  width: 700px;
}

/* =========================================================================
   Layout Sections
   ========================================================================= */
#header {
  width: 700px;
  height: 120px;
  float: left;
  margin: 10px 0 0 0;
  padding: 0;
  color: #333;
}

#navigation {
  width: 700px;
  float: left;
  margin: 0;
  padding: 0;
  color: #333;
}

#body {
  width: 700px;
  float: left;
  display: inline;
  margin: 0;
  padding: 0;
  color: #84766e;
}

#footer {
  width: 700px;
  clear: both;
  margin: 0 auto;
  padding: 40px 0 0 0;
  color: #808082;
}

#footer p {
  font-size: 14px !important;
  text-align: center;
}

/* =========================================================================
   Navigation
   ========================================================================= */
.nav {
  display: flex;
  justify-content: space-evenly; /* equal spacing across width */
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  background-color: rgba(15, 15, 15, 0.2);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-optical-sizing: auto;
}

.nav li {
  flex: 1;              /* equal width for each item */
  text-align: center;
}

.nav li a {
  display: block;
  padding: 12px 0;
  color: #6e7c84;
  text-decoration: none;
}

.nav li a:hover {
  background: #1c1c1c;
  color: #846e72;
}

/* =========================================================================
   Sample Link & Copy Button
   ========================================================================= */
.samplelink {
  width: 400px;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid #000;
  background-color: #1c1c1c;
  color: #808082;
  font-family: "Montserrat", sans-serif;
  font-size: 12px;
  font-weight: 400;
  font-optical-sizing: auto;
}

.copy-button {
  width: 100px;
  margin: 5px auto 0 auto !important;
  padding: 10px !important;
  border: 1px solid #000;
  background-color: #1c1c1c;
  color: #808082;
  font-family: "Montserrat", sans-serif;
  font-size: 16px !important;
  font-weight: 400;
  font-optical-sizing: auto;
  text-align: center;
  transition: background 0.2s;
}

.copy-button:hover {
  background-color: #313131;
}

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

/* 1. Legacy Custom Input */
.custom_input {
  display: flex;
  align-items: center;
  margin-bottom: 5px !important;
}

.custom_input label {
  width: 120px;
  margin-right: 10px;
  display: inline-block;
  text-align: right;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-optical-sizing: auto;
}

.custom_input .input,
form[class^="show_"] input[type="text"],
form[class^="show_"] input[type="email"],
form[class^="show_"] input[type="password"],
form[class^="show_"] input[type="url"],
form[class^="show_"] select,
form[class^="show_"] textarea {
  width: 300px;
  margin-bottom: 5px;
  padding: 10px;
  font-size: 20px;
  color: #c8b2a6;
  background-color: #2f2f2f;
  border: 1px solid #000;
  border-radius: 0;
  outline: none;
  transition: 0.3s ease;
  box-sizing: border-box;
}

.custom_input .input:focus,
form[class^="show_"] input:focus,
form[class^="show_"] select:focus,
form[class^="show_"] textarea:focus {
  background-color: #1f1f1f;
}

/* Placeholder */
.custom_input .input::placeholder,
form[class^="show_"] ::placeholder {
  color: #2f2f2f;
}

/* Buttons */
.custom_input input[type="submit"],
form[class^="show_"] input[type="submit"],
form[class^="show_"] input[type="reset"] {
  width: auto;
  margin-top: 10px;
  padding: 10px 20px;
  color: #c8b2a6;
  background-color: #2f2f2f;
  border: 1px solid #000;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.3s;
}

.custom_input input[type="submit"]:hover,
form[class^="show_"] input[type="submit"]:hover,
form[class^="show_"] input[type="reset"]:hover {
  background-color: #f0f0f0;
}

/* 2. Unified Form Fields */
form[class^="show_"] p {
  margin-bottom: 15px;
}

form[class^="show_"] span[class$="_label"] {
  display: block;
  margin-bottom: 5px;
  color: #af8e7a;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-optical-sizing: auto;
}

form[class^="show_"] textarea {
  min-height: 60px;
  resize: vertical;
}

form[class^="show_"] select {
  margin-bottom: 5px;
}

/* 3. Radios & Checkboxes */
form[class^="show_"] input[type="radio"],
form[class^="show_"] input[type="checkbox"] {
  margin-right: 5px;
  vertical-align: middle;
}

form[class^="show_"] span[class*="_field_label"] {
  display: inline;
  margin-left: 5px;
  font-weight: normal;
}

/* Group containers */
.show_join_email_settings_yes,
.show_join_email_settings_no,
.show_update_email_settings_leave,
.show_update_email_settings_yes,
.show_update_email_settings_no,
.show_join_send_account_info_yes {
  display: block !important;
  margin: 3px 0;
}

/* 4. Double Password Fields */
.show_join_password_field,
.show_update_password_field,
.show_join_password_field2,
.show_update_password_field2 {
  display: block;
  width: 300px;
}

.show_join_password_field2,
.show_update_password_field2 {
  margin-top: 5px;
}

/* =========================================================================
   Typography
   ========================================================================= */
p,
.stats,
.show_sort_list {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: 20px;
}

p {
  margin: 30px 20px;
}

p a {
  color: #6e7c84;
}

p a:hover {
  color: #846e72;
}

h1,
h2,
h3 {
  font-family: "Impact", sans-serif;
  color: #aca79b;
  text-transform: lowercase;
  margin: 20px 0;
  letter-spacing: 2px;
}

h1 {
  font-size: 30px;
  font-weight: bold;
}

h2 {
  font-size: 24px;
  font-weight: 600;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 20px;
}

h1.title {
  font-size: 50px;
  color: #c8c2ae;
  letter-spacing: 2px;
  position: relative;
}

h2.subtitle {
  font-size: 24px;
  color: #c8b2a6;
  margin-left: 50px;
  margin-bottom: -30px;
  letter-spacing: 8px;
  position: relative;
  top: -25px;
}

/* =========================================================================
   Stats & Links
   ========================================================================= */
.stats {
  margin: 30px 20px;
}

.stats a {
  color: #6e7c84;
}

.stats a:hover {
  color: #846e72;
}

.show_sort_list {
  margin-left: 100px; /* indent list */
  list-style: none;
  padding: 0;
}

.show_sort_list li {
  margin: 5px 0;
}

.show_sort_list a {
  color: #6e7c84;
  text-decoration: none;
}

.show_sort_list a:hover {
  color: #846e72;
  text-decoration: underline;
}

/* =========================================================================
   Codes Section
   ========================================================================= */
#codes ul {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin: 0;
  padding: 0;
  list-style: none;
}

#codes li {
  display: inline;
}

#codes p {
  text-align: center;
}

#codes p img {
  margin: 0 auto;
}

#codes img {
  margin: 1px;
  padding: 4px;
  background-color: rgba(255, 255, 255, 0.2);
  border: 0 solid #3c3c3f;
}

.show_sort_list,
.codesort a {
  color: #8f6464;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: 20px;
}

.show_sort_list:hover,
.codesort a:hover {
  color: #d67171;
}


/* =========================================================================
   WEBRINGS
   ========================================================================= */
#fanlistings {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-optical-sizing: auto;
  font-size: 10px;
}



/* ======================================================
   HIDE EMPTY OPTIONAL FIELDS
====================================================== */
/* usage:
<span class="opt">
Favorite Song(s): <span class="value">$$fan_favorite_song$$</span>
</span>
*/

.opt:has(.value:empty) {
  display: none;
}

.value:empty {
  display: none;
}

.opt {
  display: block;
}