/* melon_metal = outer, melon_panel = middle, melon_card = inner */

/* Basics */
.melon_metal {
  margin: 0 auto;
}

.melon_metal,
.melon_metal .smalltext label {
  font-family: Verdana, Helvetica, sans-serif;
}

.melon_metal a {
  background: none !important;
  color: #ff00cb;
}
.melon_metal hr {
  color: transparent;
  background: none;
  border-bottom: 1px dashed #005471;
}

.melon_metal p {
  margin: 5px;
}

/* Textures */
.metal {
  background-color: #0b3550;
  background-image: url("3D/icons/SC005.JPG");
  background-size: 100%;
  border: 1px solid #04202f;
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 2px 4px rgba(40, 25, 8, 0.35);
  color: #ffffff;
  text-shadow: 0 1px 2px #000;
}
.metal .mod_card {
	border-color: #4d4d4d !important;
}

.wood {
  background-color: rgb(209, 162, 94);
  background-image: url("3D/icons/hout-active.png");
  background-size: auto;
  border: 1px solid #7b542a;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 2px rgba(40, 25, 8, 0.3);
  color: #fdfaf4;
  text-shadow: 0 1px 0 rgb(100, 56, 3);
}
.melon_metal .wood .mod_card {
	border-color: #d79b61 !important;
}

/* Panels */
.melon_metal .mod_panel {
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 15px;
  display: flex;
  flex-flow: column-reverse;
}

.melon_metal .mod_panel > .mod_card {
  margin-bottom: 0;
}

.melon_metal .mod_panel > .mod_card + .mod_card {
  margin-top: 8px;
}

/* Panel Heading */

.melon_metal .mod_bar {
  padding: 2px 10px;
  /* Reverse margin for inverse panels */
  /* margin: 0 0 6px 0; */
  margin: 6px 0 0 0;
}

.melon_metal .mod_bar h4 {
  color: inherit;
  background: none !important;
  margin: 0;
  text-align: right;
  font-size: 16px;
  font-family: 'pixel basiic';
}

/* Cards */

.melon_metal .mod_card {
  background-color: #abe9ff;
  background-image: url("images/metal/piy50005.jpg");
  background-blend-mode: multiply;
  border-radius: 6px;
  border: 1px solid;
  box-shadow: inset 0 1px 10px rgb(3, 20, 33);
  padding: 12px 16px;
  margin-bottom: 10px;
  color: black;
  text-shadow: 0 1px 0 rgba(166, 255, 163, 0.7);
  /* font-family: 'baby doll';
  font-size: 1.1em; */
}

.melon_metal .wood_card {
  background-color: #f5e8c8 !important;
  background-image: url("images/metal/backarea.png") !important;
  background-blend-mode: normal;
  box-shadow: inset 0 2px 6px rgb(125, 72, 12);
  font-family: 'pixel basiic';
}

/* Headings */
.melon_metal .mod_title {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 14px auto;
  padding: 6px 22px;
  text-align: center;
  font-size: 26px;
  font-family: 'trash hand';
}

.melon_metal .mod_card h3,
.melon_metal .mod_card h4,
.melon_metal .mod_card h5 {
	margin: 10px 0px;
	padding: 1px 5px;
}

.melon_metal .mod_card h5 {
  margin: 2px 0px;
}

.melon_metal .mod_card h3 {
  font-size: 13px;
}

/* Buttons */

a.mod_button,
input.mod_button,
button.mod_button {
  display: inline-block;
  background: linear-gradient(#ebf9ff, #c0ecff 47%, #b6ecff 50%, #9ce5ff) !important;
  color: #06405c !important;
  outline: 1px solid #4a90a8;
  border: 1px solid #ffffffd4;
  border-radius: 14px;
  padding: 3px 10px;
  font-family: 'Cherrybomb', sans-serif;
  font-size: 12px;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 1);
  cursor: pointer;
}

a.mod_button:hover,
input.mod_button:hover,
button.mod_button:hover {
  filter: brightness(1.5);
}

/* Button Colours */
a.mod_button.blue_highlight,
input.mod_button.blue_highlight,
button.mod_button.blue_highlight {
  background: linear-gradient(#b1e4ff, #22a5df 47%, #0b8ad5 50%, #0a6eaa) !important;
  color: #f0faff !important;
  outline-color: #0a6eaa;
  text-shadow: 0 1px 1px rgba(15, 0, 62, 0.66);
}

a.mod_button.red,
input.mod_button.red,
button.mod_button.red {
  background: linear-gradient(#fbcad3, #d95d5d 47%, #d4583b 50%, #d0663c) !important;
  color: #fffbfb !important;
  outline-color: #d03c58;
  text-shadow: 0 1px 1px rgba(159, 0, 0, 0.6);
}

a.mod_button.green,
input.mod_button.green,
button.mod_button.green {
  background: linear-gradient(#b4ffd5, #31ff89 47%, #0ff473 50%, #00a246) !important;
  color: #183325 !important;
  outline-color: #00a246;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.61);
}

a.mod_button.silver,
input.mod_button.silver,
button.mod_button.silver {
  background: linear-gradient(#f9fdff, #b6daec 47%, #baddee 50%, #748c97) !important;
  color: #212b4f !important;
  outline-color: #748c97;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.35);
}

.melon_metal a.mod_icon,
.melon_metal button.mod_icon {
  text-decoration: none;
  padding: 0 2px;
}

.melon_metal button.mod_icon {
  background: none;
  border: none;
  outline: none;
  font: inherit;
  cursor: pointer;
}

.melon_metal a.mod_icon img,
.melon_metal button.mod_icon img {
  vertical-align: middle;
}

/* Tables */

.melon_metal table.mod_table {
  width: 100%;
  border-collapse: collapse;
}

.melon_metal table th,
.melon_metal table td {
  text-align: left;
  vertical-align: top;
  padding: 2px 0;
}

.melon_metal table th {
  font-weight: bold;
  white-space: nowrap;
  padding-right: 12px;
}

/* Forms */

.melon_metal dl.mod_fields dt {
  font-weight: bold;
  margin-top: 8px;
  width: auto;
  display: block;
}

.melon_metal dl.mod_fields dd {
  margin-left: 0;
  padding-left: 1em;
  width: auto;
  display: block;
}

.melon_metal input,
.melon_metal select {
  margin-bottom: 5px;
}

.melon_metal input[type="number"] {
  width: 60px;
}

.melon_metal input[type="color"] {
  vertical-align: middle;
  width: 36px;
  height: 22px;
  padding: 0 2px;
}

/* Extras */
.melon_metal .mod_actions {
  text-align: center;
  padding: 5px 0;
  margin-bottom: 5px;
}

.melon_metal .mod_notice {
  background: #041826;
  color: #d7f3ff;
  border: 2px dotted #66d9ff;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 10px;
  text-shadow: none;
}

/* ++++ Artifact Pages ++++ */

/* Header bar */
#artifact_menubar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

#artifact_menubar > a img {
  height: 28px;
}

@media (max-width: 768px) {
  #artifact_menubar {
    flex-flow: column;
    align-items: center;
  }

  #artifact_menubar > a {
    margin-bottom: 10px;
  }
}

/* +++ Artifact Hub +++ */

#artifact_hub {
  background-color: #b88641;
  background-image: url("images/metal/hout-active.png");
  border-radius: 8px;
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.4), 0 6px 12px rgba(0, 0, 0, 0.3);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.51);
  padding: 10px;
}

/* Remove defaults */
#artifact_hub a,
#artifact_hub .cat_bar,
#artifact_hub .catbg,
#artifact_hub .title_bar,
#artifact_hub .titlebg,
#artifact_hub .windowbg,
#artifact_hub .windowbg2 {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

#artifact_hub .topslice,
#artifact_hub .botslice {
  display: none;
}

#artifact_hub a {
  color: #269ae0;
}

#artifact_hub .cat_bar,
#artifact_hub .title_bar,
#artifact_hub .windowbg2 {
  background-color: #d2a867 !important;
  background-image: url("images/metal/hout-hover.png") !important;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4) !important;
}

#artifact_hub .cat_bar {
  border-radius: 8px;
  margin-bottom: 10px;
  text-align: center;
  font-size: 20px;
}

#artifact_hub .title_bar {
  border-radius: 8px 8px 0 0;
}

#artifact_hub .windowbg2 {
  border-radius: 0 0 10px 10px;
  padding: 0 6px 6px;
  margin-bottom: 10px;
}

#artifact_hub .clear + .title_bar {
  margin-top: 12px;
}

#artifact_hub .cat_bar h3,
#artifact_hub .titlebg {
  color: #fdf5e6 !important;
  background: none !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

#artifact_hub .cat_bar h3,
#artifact_hub .title_bar h4 {
  font-family: 'pixel basiic';
}

#artifact_hub .title_bar h4 {
  color: #fffdfa;
  background: none !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.3);
  margin: 0 20px;
}

#artifact_hub .catbg img {
  float: none;
  vertical-align: middle;
  margin: 0 !important;
}

#artifact_hub .content {
  background-color: #f5e8c8 !important;
  background-image: url("images/metal/backarea.png") !important;
  border: none !important;
  border-radius: 6px;
  box-shadow: inset 0 2px 6px rgb(125, 72, 12);
  padding: 10px 14px;
  color: #2b1d15;
}

#keeper {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: -40px 0 20px 0;
}

#keeper > img,
#keeper > a {
  align-self: flex-end;
}

#keeper_greeting {
  background-color: #2b251f;
  border: 3px double white;
  padding: 20px;
  margin-top: 50px;
  height: fit-content;
  color: #fffcf1;
  text-shadow: none;
  transform: rotate(1deg);
}

#keeper_greeting p {
  padding: 0;
  margin: 0;
}

#keeper_greeting ul {
  margin: 5px;
}

#keeper_credits {
  color: white;
}

#wheel {
  text-align: center;
  margin-bottom: 20px;
}

/* Records */
#artifact_hub .flow_hidden > div {
  float: left;
  box-sizing: border-box;
}

#artifact_hub .flow_hidden > div:first-child {
  width: 70%;
  padding-right: 8px;
}

#artifact_hub .flow_hidden > div + div {
  width: 30%;
  padding-left: 8px;
}

#artifact_hub .stats dt,
#artifact_hub .stats dd {
  display: block;
  width: auto;
  color: #2b1d15;
}

#artifact_hub .stats dt {
  font-weight: bold;
  margin-top: 8px;
}

#artifact_hub .stats dd {
  margin-left: 0;
  padding-left: 1em;
}

#artifact_hub .stats img {
  vertical-align: middle;
  margin-right: 4px;
  image-rendering: pixelated;
}

/* Most swapped */
#artifact_hub .table_grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4);
  color: #2b1d15;
}

#artifact_hub .table_grid thead,
#artifact_hub .table_grid th {
  background: none !important;
}

#artifact_hub .table_grid th {
  border: none;
  border-bottom: 2px solid #9d633c !important;
  color: #2b1d15;
  font-weight: bold;
  text-align: left;
  text-shadow: 0 1px 0 rgba(64, 36, 0, 0.47);
}

#artifact_hub .table_grid td {
  border: none;
  border-bottom: 1px dashed #c8a077 !important;
  padding: 10px;
  color: #2b1d15;
}

#artifact_hub .table_grid th:first-child {
  width: 5%;
}

#artifact_hub .table_grid th:nth-child(n + 6) {
  width: 8%;
}

#artifact_hub .table_grid th:first-child,
#artifact_hub .table_grid td:first-child,
#artifact_hub .table_grid th:nth-child(n + 6),
#artifact_hub .table_grid td:nth-child(n + 6) {
  text-align: center;
}

#artifact_hub .table_grid tr:last-child td:first-child {
  border-bottom-left-radius: 10px;
}

#artifact_hub .table_grid tr:last-child td:last-child {
  border-bottom-right-radius: 10px;
}

#artifact_hub .table_grid img {
  image-rendering: pixelated;
}

/* +++ Artifact Info/View Page +++ */

#artifact_info {
  max-width: 640px;
}

#artifact_info .portrait {
  text-align: center;
  padding: 80px 0;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 40px #ffffff85);
}

#artifact_info .portrait img {
  width: 128px;
  height: auto;
  image-rendering: pixelated;
}

#artifact_info .portrait .shiny {
  animation: artifact-shine 2.5s ease-in-out infinite;
}

@keyframes artifact-shine {
  0%, 100% { filter: drop-shadow(0 0 2px #fff6ac); }
  50%      { filter: drop-shadow(0 0 14px #fff6ac) brightness(1.25); }
}

#artifact_info #embeds h5 {
	padding: 2px 10px;
}

#artifact_info .embed_sample {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

#artifact_info .embed_code {
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  font: 12px monospace;
  overflow: hidden;
}

/* +++ Create Page +++ */

#artifact_create {
  max-width: 560px;
}

#artifact_create form {
  overflow: hidden;
  padding-bottom: 10px;
}
