/* ------------------- GLOBAL ------------------- */

body {
  background: #ffffff;
  font-family: "Manrope", sans-serif;
  font-weight: 300;
  font-style: normal;
  color: #451830;
  font-size: 18px;
  margin: 0;
}

a {
  color: #977164;
  font-weight: 400;
  text-decoration: none;
}

a:hover {
  color: #977e64;
  text-decoration: underline dotted;
}

h1, h2, h3 {
  margin-bottom: 5px;
  font-family: "Cutive Mono", monospace;
  font-weight: 400;
  font-style: normal;
  font-optical-sizing: auto;
  text-transform: none;
  text-align: center;
}

h1 { font-size: 40px; color: #a786be; }
h2 { font-size: 26px; color: #c4aed3; }
h3 { font-size: 22px; color: #e2d6e9; }

/* ------------------- MAIN CONTAINER ------------------- */

.main {
  display: flex;
  align-items: flex-start;
  gap: 35px;
  margin-left: 35px;
  margin-top: 35px;
}

/* ------------------- LEFT SIDE ------------------- */

.left {
  flex-shrink: 0;
}

.title {
  font-family: "Cutive Mono", monospace;
  font-weight: 400;
  font-size: 50px;
  margin-bottom: 20px;
  color: #000000;
  text-align: center;
}

/* IMAGE GRID — UPDATED FOR 250×333px */

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 250px);
  grid-gap: 13px;
  position: relative;
}

.image-box {
  width: 250px;
  height: 333px;
  position: relative;
}

.image-box img {
  width: 250px;
  height: 333px;
  display: block;
}


/* ------------------- NAV OVERLAY ------------------- */

.nav-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.nav-overlay a {
  font-family: "Cutive Mono", monospace;
  font-size: 20px;
  font-weight: 400;
  color: #ffffff;
  background: #000000;
  padding: 4px 10px;
  transition: background .2s;
  text-decoration: none;
}

.nav-overlay a:hover {
  background: #404040;
  text-decoration: none;
}

/* ROTATIONS */
.nav-about     { transform: rotate(-8.7deg); }
.nav-join      { transform: rotate(8.4deg); }
.nav-linkback  { transform: rotate(-2.3deg); }
.nav-list      { transform: rotate(4.1deg); }
.nav-links     { transform: rotate(-5.7deg); }
.nav-home      { transform: rotate(3.7deg); }

/* ROTATIONS HOVER*/
.nav-about:hover     { transform: rotate(-3.7deg); }
.nav-join:hover      { transform: rotate(3.4deg); }
.nav-linkback:hover  { transform: rotate(0.3deg); }
.nav-list:hover      { transform: rotate(-2.1deg); }
.nav-links:hover     { transform: rotate(-1.7deg); }
.nav-home:hover      { transform: rotate(-1.7deg); }

/* ------------------- RIGHT SIDE ------------------- */

.right {
  width: 600px;
  max-width: 600px;
  min-width: 400px;
  margin-top: 35px;
}

/* ------------------- FOOTER ------------------- */

.footer {
  height: 100px;
  margin-top: 40px;
  font-family: "Cutive Mono", monospace;
  font-weight: 400;
  font-size: 14px;
  color: #6c3667;
}

.footer a {
  color: #401731;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline dotted;
}


/* ------------------- 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-family: "Cutive Mono", monospace;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
}

.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;
  display: block;
  padding: 10px;
  margin-bottom: 5px;
  font-size: 20px;
  background: #f2f2ef;
  color: #401731;
  border: 0 dotted #401731;
  outline: none;
  box-sizing: border-box;
  transition: 0.3s ease;
  font-family: "Manrope", sans-serif;
  font-weight: 300;
  box-shadow: #69307c 3px 3px;
}

/* Buttons */
.custom_input input[type="submit"],
form[class^="show_"] input[type="submit"],
form[class^="show_"] input[type="reset"] {
  width: auto;
  padding: 10px 20px;
  margin-top: 10px;
  background: #f2f2ef;
  color: #401731;
  border: 0 dotted #401731;
  cursor: pointer;
  transition: background 0.3s;
  font-family: "Manrope", sans-serif;
  font-weight: 300;
  box-shadow: #69307c 3px 3px;
}

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

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

form[class^="show_"] span[class$="_label"] {
  display: block;
  margin-bottom: 5px;
  font-family: "Cutive Mono", monospace;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  color: #401731;
}

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

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

/* Radio & Checkbox */
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;
}

/* Groups */
.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;
}

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

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


/* ------------------- CODES ------------------- */

.show_sort_list,
.codesort a {
  color: #5f2960;
  text-decoration: none;
}

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

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

#codes li {
  display: inline;
}

#codes p {
  text-align: center;
}

#codes p img {
  margin: 0 auto;
}

.show_sort_list {
  margin-left: 100px;
  padding: 0;
  font-family: "Manrope", sans-serif;
  font-weight: 300;
  font-size: 20px;
  list-style: none;
}

.show_sort_list li {
  margin: 5px 0;
}


.show_sort_list a:hover {
  color: #2c2c2c;
  text-decoration: underline;
}


#codes img {
  margin: 5px !important;
  padding: 0;
  background: #f2f2ef;
  border: 0 dotted #401731;
  box-shadow: #69307c 3px 3px;
}


/* ------------------- SAMPLE LINK ------------------- */

.samplelink {
  width: 500px;
  margin: 0 auto;
  padding: 10px;
  background: #f2f2ef;
  border: 0 dotted #401731;
  font-family: "Cutive Mono", monospace;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  color: #401731;
  text-align: center;
  box-shadow: #69307c 3px 3px;
}

.copy-button {
  width: 100px;
  margin: 5px auto 0 !important;
  padding: 10px !important;
  background: #f2f2ef;
  border: 0 dotted #401731;
  font-family: "Cutive Mono", monospace;
  font-weight: 400;
  font-style: normal;
  font-size: 14px;
  color: #401731;
  text-align: center;
  transition: background 0.2s;
  box-shadow: #69307c 3px 3px;
}

.copy-button:hover {
  font-weight: 600;
  letter-spacing: 2px;
}


/* ------------------- WEBRING ------------------- */

#fanlistings {
  font-family: "Cutive Mono", monospace;
  font-weight: 400;
  font-style: normal;
  font-size: 10px;
  font-style: normal;
  font-optical-sizing: auto;
  margin: 20px;
  line-height: 1em;
}


/* ------------------- RESPONSIVE ------------------- */

@media(max-width: 900px) {
  .main {
    flex-direction: column;
    margin: 20px;
    gap: 30px;
  }

  .left {
    margin: 0;
  }

  /* Only show jq1.png on mobile */
  .image-grid {
    grid-template-columns: 1fr;
  }

  .image-grid .image-box:nth-child(2),
  .image-grid .image-box:nth-child(3),
  .image-grid .image-box:nth-child(4) {
    display: none;
  }

  /* Navigation centered under jq1.png */
  .nav-overlay {
    position: static;
    margin-top: 20px;
  }

  .right {
    width: 100%;
    min-width: 0;
  }
}