@import url("jnflex-grid.css");

:root {
  --body-bg-image: url('/layout/imgs/mainsite/bg.png');
  --body-bg-colour: #ececec;

  --layout-desktop-max-width: 75em;

  --dept-bar-bg-colour: #ffffff;
  --dept-bar-link-text-colour: #000000;
  --dept-bar-link-text-hover-colour: #000000;
  --dept-bar-link-bg-hover-colour: #ffffff;

  --header-row-bg-colour: rgba(252, 167, 39, 0.5);
  --header-bg-img: url('/layout/imgs/mainsite/header_bg.png');
  --header-logo-plate-img: url('/layout/imgs/mainsite/plate_icon.png');
  --header-logo-name-img: url('/layout/imgs/mainsite/logo.png');
  --header-logo-name-img-white: url('/layout/imgs/mainsite/logo_white.png');
  --header-logo-name-img-mobile: url('/layout/imgs/mainsite/logo_mobile.png');

  --nav-bar-wrapper-bg-colour: #FB792C;
  --nav-bar-text-colour: #ffffff;
  --nav-bar-bg-colour: #E35023;
  --nav-bar-open-menu-bg-colour: #FDA636;
  --nav-bar-hover-bg-colour: #F6821A;

  --content-wrapper-bg-colour: #ffffff;

  --text-body-colour: #222222;
  --text-header-colour: #353535;

  --btn-colour: #F1542B;
  --btn-font-colour: #ffffff;
  --btn-hover-colour: #FF9D2E;

  --pagination-font-colour: #424242;
  --pagination-hover-font-colour: #424242;
  --pagination-hover-bg-colour: #e6e6e6;
  --pagination-disabled-font-colour: #6a6a6a;

  --breadcrumbs-bg-colour: #f6f6f6;
  --breadcrumbs-border-colour: #dcdcdc;
  --breadcrumbs-link-colour: #F1542B;
  --breadcrumbs-current-link-colour: #333333;

  --subnav-font-colour: #424242;
  --subnav-hover-font-colour: #424242;
  --subnav-hover-bg-colour: #e6e6e6;
  --subnav-active-font-colour: #ffffff;
  --subnav-active-bg-colour: #C31127;

  --jnheader-bg-colour: #f6f6f6;
  --jnheader-border-colour: #dcdcdc;
  --jnheader-text-colour: #444;
  --jnheader-icon-bg-colour: #444;
  --jnheader-icon-bg-position: 0px 50%;

  --alert-box-accent-border-colour: #F1542B;
  --alert-box-bg-colour: #f5f5f5;
  --alert-box-bg-image: url('/layout/imgs/mainsite/mascot_250.png');
  --alert-box-bg-size: 150px 150px;
  --alert-box-bg-position: -86px -38px;
  --alert-box-mascot-padding: 75px;
  --alert-box-text-colour: #222222;
  --alert-box-text-link-colour: var(--text-link-colour);
  --alert-box-text-link-hover-colour: var(--text-link-hover-colour);

  --blockquote-border-colour: #666666;

  --read-more-bg-colour: #cccccc;
  --read-more-font-colour: #222222;

  --page-icon-hover-bg-colour: #727272;

  --content-box-border-colour: #ef9815;
  --content-box-text-colour: #ffffff;

  --form-label-text-colour: #484848;
  --form-field-bg-colour: #ffffff;
  --form-field-border-colour: #cccccc;
  --form-field-inset-shadow-colour: rgba(0,0,0,0.1);
  --form-field-focus-bg-colour: #fafafa;
  --form-field-focus-border-colour: #999999;
  --form-field-focus-outer-shadow-colour: #999999;
  --form-help-text-colour: #666666;
  --form-addons-bg-colour: #f2f2f2;
  --form-addons-border-colour: #d9d9d9;
  --form-addons-text-colour: var(--text-body-colour);

  --modal-close-x-text-colour: #aaaaaa;

  --f-dropdown-border-colour: var(--form-addons-border-colour);
  --f-dropdown-section-bg-colour: #eeeeee;
  --f-dropdown-link-hover-colour: var(--form-field-focus-bg-colour);

  --panel-border-colour: #d9d9d9;
  --panel-bg-colour: #f2f2f2;

  --entry-header-border-colour: #D2D2D2;

  --tab-section-border-colour: var(--panel-border-colour);
  --tab-section-tab-bg-colour: #efefef;
  --tab-section-tab-hover-bg-colour: #e2e2e2;

  --table-text-colour: var(--text-body-colour);
  --table-bg-colour: var(--content-wrapper-bg-colour);
  --table-border-colour: var(--panel-border-colour);
  --table-header-bg-colour: #f5f5f5;
  --table-alt-row-bg-colour: #f9f9f9;

  --news-post-border-color: #B0B0B0;
  --news-comment-bg-image: linear-gradient(to bottom, rgb(247, 247, 247), var(--content-wrapper-bg-colour));
  --news-comment-staff-bg-image: linear-gradient(to bottom, rgb(255, 235, 218), var(--content-wrapper-bg-colour));
}

/* Styling to prevent usage */

p[align="center"], center, font {
  text-align:left !important;
  border:5px solid red !important;
  background-color:red !important;
}

/* Global Styling/Foundation Overrides */

body {
  color: var(--text-body-colour);
  background-color: var(--body-bg-colour);
  background-image: var(--body-bg-image);
}

.hide { display:none; }

.display-inline {
  display: inline !important;
}

hr {
  margin: 0 0 1em;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-header-colour);
  font-weight: bold;
}

h1 { font-size:2.00em; }
h2 { font-size:1.75em; }
h3 { font-size:1.50em; }
h4 { font-size:1.25em; }
h5 { font-size:1.10em; }

.button {
  font-weight: bold;
  background-color: var(--btn-colour);
  color: var(--btn-font-colour);
}

.button:hover, .button:focus {
  background-color: var(--btn-hover-colour);
}

button.small, .button.small {
  padding: 0.625em 1.125em 0.5625em 1.125em;
  font-size: 0.8125em;
}

.no-margin {
  margin:0 !important;
}

table.text-center th,
table.text-center td,
tr.text-center > th,
tr.text-center > td {
  text-align: center !important;
}

.tooltip {
  max-width: 40vw;
}

/* Text Sizing Utilities */

.text-small-90 { font-size: 90%; }
.text-small-80 { font-size: 80%; }
.text-small, .text-small-75, small { font-size:75%; }
.text-smaller, .text-small-60 { font-size:60%; }
.text-smallest, .text-small-50 { font-size:50%; }

.text-big { font-size:110%; }
.text-bigger { font-size:125%; }
.text-biggest { font-size:135%; }

@media only screen and (max-width: 768px) {
  .text-center-small {
    text-align:center;
  }
}

.text-nowrap {
  white-space: nowrap;
}

.text-family-arial { font-family: Arial; }
.text-family-georgia { font-family: Georgia; }
.text-family-tahoma { font-family: Tahoma; }
.text-family-verdana { font-family: Verdana; }

/* Links */

a,
.side-nav li a:not(.button) {
  color: var(--text-link-colour);
  transition: text-decoration 0.2s, color 0.2s;
}

.content-wrapper a:not(.button) {
  text-decoration: underline;
  text-decoration-color: var(--text-link-underline-colour);
}

.content-wrapper a:not(.button):focus,
.content-wrapper a:not(.button):hover {
  text-decoration-color: var(--text-link-underline-hover-colour);
}

.side-nav li a,
.breadcrumbs a,
.section-container.auto > section > .title a,
.f-dropdown ul li a,
a.chosen-single {
  text-decoration: none !important;
}

a:focus,
a:hover,
.side-nav li a:focus,
.side-nav li a:hover {
  color: var(--text-link-hover-colour);
}

a:active,
.side-nav li a:active {
  color: var(--text-link-active-colour);
}

/* Department <a> Link Styling -- Which was Rosie's idea from the ~start~ */

a[href*='battlepedia.jellyneo.net']:not(.button):not(.no-link-icon),
a[href*='items.jellyneo.net']:not(.button):not(.no-link-icon),
a[href*='bookofages.jellyneo.net']:not(.button):not(.no-link-icon),
a[href*='wardrobe.jellyneo.net']:not(.button):not(.no-link-icon),
a[href*='merch.jellyneo.net']:not(.button):not(.no-link-icon),
a[href*='www.jellyneo.net']:not(.button):not(.no-link-icon),
a[href*='drsloth.com']:not(.button):not(.no-link-icon),
a[href*='neopets.com']:not(.button):not(.no-link-icon) {
  padding-right: 1.2em;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 0.9em 0.9em;
}

a[href*='battlepedia.jellyneo.net']:not(.button):not(.no-link-icon) {
  background-image: url('/layout/imgs/battlepedia/link_icon.png');
}

a[href*='items.jellyneo.net']:not(.button):not(.no-link-icon) {
  background-image: url('/layout/imgs/itemdb/link_icon.png');
}

a[href*='bookofages.jellyneo.net']:not(.button):not(.no-link-icon) {
  background-image: url('/layout/imgs/boa/link_icon.png');
}

a[href*='wardrobe.jellyneo.net']:not(.button):not(.no-link-icon) {
  background-image: url('/layout/imgs/wardrobe/link_icon.png');
}

a[href*='merch.jellyneo.net']:not(.button):not(.no-link-icon) {
  background-image: url('/layout/imgs/merchdb/link_icon.png');
}

a[href*='www.jellyneo.net']:not(.button):not(.no-link-icon) {
  background-image: url('/layout/imgs/mainsite/link_icon.png');
}

a[href*='drsloth.com']:not(.button):not(.no-link-icon) {
  background-image: url('/layout/imgs/drsloth/link_icon.png');
}

a[href*='neopets.com']:not(.button):not(.no-link-icon) {
  background-image: url('/layout/imgs/icon_link_neopets.png');
}

.button.find-more, #layout-footer-legal a, .clearing-thumbs a {
  background-image: none;
  padding-right: 0;
}

.button.no-margin {
  margin:0 !important;
}

p > .button {
  margin-bottom: 0px;
}

/* Sidebar Styling */

.dept-search-bar {
  margin: 0 -0.9375em 2em -0.9375em;
  padding: 0.5em 0.9375em 0.7em 0.9375em;
  border-bottom-left-radius: 20px;
  background-color: var(--dept-search-bar-bg-colour);
}

.dept-search-bar label,
.dept-search-bar input,
.goodie-tool-bar label,
.goodie-tool-bar input,
.goodie-tool-bar select,
.goodie-tool-bar .prefix,
.goodie-tool-bar .middlefix,
.goodie-tool-bar .postfix {
  font-size: 0.7rem;
}

.dept-search-bar input, .goodie-tool-bar input
.dept-search-bar select, .goodie-tool-bar select
.dept-search-bar textarea, .goodie-tool-bar textarea {
  padding :0.4rem;
}

.dept-search-bar-subsection {
  background-color: rgba(0,0,0,0.05);
  border-radius: 15px;
  margin-bottom: 1em;
  padding: 0.7em 0.7em;
}

/* Goodie Tool Bars */

.goodie-tool-bar {
  padding: 0.9em 1em 0.25em 1em;
  border-radius: 20px;
  margin-bottom: 1em;
  background-color: var(--goodie-tool-bar-bg-colour);
}

.goodie-tool-bar .button {
  padding: 7.1px 1.5em;
}

.goodie-tool-bar .button.expand {
  padding: 7.1px 0;
}

.goodie-tool-bar-tabs {
  padding-left: 20px;
}

.goodie-tool-bar-tabs > a.goodie-tool-bar-tab-link {
  text-decoration: none;
  border-top-left-radius: 7px;
  border-top-right-radius: 7px;
  font-size: 0.85em;
  padding: 0.5em 0.8em;
  display: inline-block;
  border-width: 2px;
  border-style: solid;
  border-bottom: none;
  background-color: var(--goodie-tool-bar-tab-link-bg-colour);
  border-color: var(--goodie-tool-bar-tab-link-border-colour);
}

a.goodie-tool-bar-tab-link.active {
  font-weight: bold;
}

a.goodie-tool-bar-tab-link.active,
a.goodie-tool-bar-tab-link:hover {
  border-color:  var(--goodie-tool-bar-tab-active-link-border-colour);
}

/* Alert Styling */

.alert-box {
  background-color: var(--alert-box-bg-colour);
  background-image: var(--alert-box-bg-image);
  background-repeat: no-repeat;
  background-size: var(--alert-box-bg-size);
  background-position: var(--alert-box-bg-position);
  padding-left: var(--alert-box-mascot-padding);
  border: none;
  border-left: 5px solid var(--alert-box-accent-border-colour);
  color: var(--alert-box-text-colour);
  font-weight: normal;
  line-height: 1.6;
}

.alert-box a:not(.button) {
  color: var(--alert-box-text-link-colour);
  text-decoration-color: var(--alert-box-text-link-colour);
}

.alert-box a:not(.button):hover {
  color: var(--alert-box-text-link-hover-colour);
  text-decoration-color: var(--alert-box-text-link-hover-colour);
}

.alert-box.alert {
  --alert-box-accent-border-colour: #970b0e;
  --alert-box-bg-colour: #ffb3b5;
  --alert-box-bg-image: url('/layout/imgs/alert_error.png');
  --alert-box-bg-size: 78px 83px;
  --alert-box-bg-position: -15px -10px;
  --alert-box-mascot-padding: 75px;
  --alert-box-text-link-colour: #a40c1e;
  --alert-box-text-link-hover-colour: #711621;
  /* Need these definitions below since Foundation would override them... */
  border-color: var(--alert-box-accent-border-colour);
  background-color: var(--alert-box-bg-colour);
  color: var(--alert-box-text-colour);
}

.alert-box.success {
  --alert-box-accent-border-colour: #457a1a;
  --alert-box-bg-colour: #d2f1ba;
  --alert-box-bg-image: url('/layout/imgs/alert_success.png');
  --alert-box-bg-size: 80px 67px;
  --alert-box-bg-position: -20px -5px;
  --alert-box-mascot-padding: 75px;
  --alert-box-text-link-colour: #3a6815;
  --alert-box-text-link-hover-colour: #265104;
  /* Need these definitions below since Foundation would override them... */
  border-color: var(--alert-box-accent-border-colour);
  background-color: var(--alert-box-bg-colour);
  color: var(--alert-box-text-colour);
}

.alert-box.inflated {
  --alert-box-accent-border-colour: #970b0e;
  --alert-box-bg-colour: #ffb3b5;
  --alert-box-bg-image: url('/layout/imgs/itemdb/inflation_alert.png');
  --alert-box-bg-size: 122px 96px;
  --alert-box-bg-position: 0 0;
  --alert-box-mascot-padding: 115px;
  --alert-box-text-link-colour: #a40c1e;
  --alert-box-text-link-hover-colour: #711621;
}

.alert-box .button {
  margin-bottom: 0;
}

/* Form Fields */

label {
  font-weight: 500;
  color: var(--form-label-text-colour);
}

label small { /* see also .help-block */
  color: var(--form-help-text-colour);
}

.form-control {
  display: block;
  width: 100%;
  height: 2.5em;
  padding: 0.5em;
  margin: 0 0 1em 0;
  font-size: 0.875em;
  line-height: 1.42857143;
  background-image: none;
  border-style: solid;
  border-width: 1px;
  box-sizing: border-box;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea,
.form-control {
  background-color: var(--form-field-bg-colour);
  border-color: var(--form-field-border-colour);
  color: var(--text-body-colour);
  box-shadow: inset 0 1px 2px var(--form-field-inset-shadow-colour);
  transition: background-color 0.45s, box-shadow 0.45s, border-color 0.45s ease-in-out;
}

.error input[type="text"],
.error input[type="password"],
.error input[type="date"],
.error input[type="number"],
.error select,
.error textarea {
  --form-field-focus-border-colour: #c60f13;
  --form-field-focus-bg-colour: rgba(198,15,19,0.1)
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus,
.form-control:focus,
.error input:focus,
.error select:focus,
.error textarea:focus {
  background-color: var(--form-field-focus-bg-colour);
  border-color: var(--form-field-focus-border-colour);
  box-shadow: 0 0 5px var(--form-field-focus-outer-shadow-colour);
}

.form-control.width-auto, input.form-control.width-auto, select.form-control.width-auto {
  width: auto; /* for natural sized inputs */
}

.form-control:focus {
  outline: none;
}

.form-control[disabled],
fieldset[disabled] .form-control {
  cursor: not-allowed;
  background-color: #eee;
  opacity: 1;
}

.form-control.inline-block {
  display: inline-block;
  width: auto;
}

.form-group, .row.form-group {
  margin-bottom: 1em;
}

.multiple-select-expand-toggle {
  margin-bottom:0;
}

select.expanded {
  height:100px;
}

.help-block {
  font-size: 0.8em;
  color: var(--form-help-text-colour);
  line-height: 1.5;
  margin-top: -0.8em;
  margin-bottom: 1em;
}

.prefix,
span.prefix,
.postfix,
span.postfix,
span.middlefix,
label.middlefix {
  background-color: var(--form-addons-bg-colour);
  border-color: var(--form-addons-border-colour);
  color: var(--form-addons-text-colour);
}

span.middlefix,
label.middlefix {
  border-right: none;
  border-left: none;
}

.disabled-field {
  opacity: 0.5;
}

.error-field,
.error-field label {
  color:#bf2222;
}

.error-field input,
.error-field textarea,
.error-field select {
  color:#bf2222;
  border-color:#bf2222;
}

/* Panels */

.panel {
  border-color: var(--panel-border-colour);
  background: var(--panel-bg-colour);
}

.panel h1, .panel h2, .panel h3, .panel h4, .panel h5, .panel h6, .panel p {
  color: var(--text-body-colour);
}

/* Chosen Dropdown Customization */

.chosen-container {
  margin-bottom:1em;
}

.chosen-container-multi .chosen-choices {
  border-color: var(--form-addons-border-colour) !important;
}

.chosen-container-multi .chosen-choices {
  background-image: url('/layout/imgs/chosen/multi-select-arrow@2x.png') !important;
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 15px 15px;
}

.text-red { color: #bf2222; }
.text-yellow { color: #ddd009; }
.text-blue { color: #005fe3; }
.text-green { color: #239b56; }
.text-orange { color: #f39c12; }
.text-purple { color: #8e44ad; }
.text-pink { color: #ee34e2; }
.text-brown { color: #6D391A; }
.text-grey { color: #666666; }
.text-dark-grey { color: #444444; }
.text-light-grey { color: #aaaaaa; }
.text-white { color: #ffffff; }
.text-gold { color: goldenrod; }
.text-silver { color: rgb(145, 143, 143); }
.text-bronze { color: rgb(196, 102, 14); }
.text-rainbow {
  background-image: linear-gradient(to left, violet, indigo, blue, green, #e1e112, orange, red);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Rarity Labels */
.rarity-label-uncommon,
.rarity-label-rare,
.rarity-label-veryrare,
.rarity-label-ultrarare,
.rarity-label-superrare {
  color: green;
}

.rarity-label-special {
  color: #aa4455;
}

.rarity-label-megarare {
  color: orange;
}

.rarity-label-rarity,
.rarity-label-artifact {
  color: red;
}

.rarity-label-retired {
  color: #666666;
}

.rarity-label-ncmall {
  color: #AB27BE;
}

.bg-red { background-color: #bf2222 !important; }
.bg-yellow { background-color: #ddd009 !important; }
.bg-blue { background-color: #005fe3 !important; }
.bg-green { background-color: #239b56 !important; }
.bg-orange { background-color: #f39c12 !important; }
.bg-purple { background-color: #8e44ad !important; }
.bg-brown { background-color: #6D391A !important; }
.bg-grey { background-color: #666666 !important; }
.bg-dark-grey { background-color: #444444 !important; }
.bg-light-grey { background-color: #aaaaaa !important; }
.bg-gold { background-color: goldenrod !important; }
.bg-silver { background-color: rgb(145, 143, 143) !important; }
.bg-bronze { background-color: rgb(196, 102, 14) !important; }

.bg-trophy-gold { background-color: #fff4b9 !important; }
.bg-trophy-silver { background-color: #e4e4e4 !important; }
.bg-trophy-bronze { background-color: #ffd3af !important; }
.bg-trophy-runnerup { background-color: #e1f2ff !important; }
.bg-trophy-staff { background-color: #deffcf !important; }

@media (prefers-color-scheme: dark) {
  .bg-trophy-gold { background-color: #c8bf8f !important; }
  .bg-trophy-silver { background-color: #acacac !important; }
  .bg-trophy-bronze { background-color: #caa282 !important; }
  .bg-trophy-runnerup { background-color: #9bb5c8 !important; }
  .bg-trophy-staff { background-color: #91b97f !important; }
}

/* Modal Fixes */

.reveal-modal {
  z-index: 99000;
  background-color: var(--content-wrapper-bg-colour);
}

.reveal-modal-bg {
  z-index: 98000;
}

.reveal-modal .close-reveal-modal {
  color: var(--modal-close-x-text-colour);
}

/* Dept Nav Styling */

#layout-dept-wrapper {
  background-color: var(--dept-bar-bg-colour);
  padding-top: 5px;
  padding-bottom: 8px;
}

#layout-dept-links {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  column-gap: 5px;
  max-width: var(--layout-desktop-max-width);
  margin: 0 auto;
  padding-left: 0.9375em;
  padding-right: 0.9375em;
}

#layout-dept-links a {
  display: inline-block;
  padding: 3px 8px;
  color: var(--dept-bar-link-text-colour);
  font-size: 0.8em;
  font-weight: bold;
  border-radius: 10px;
  background-image: none;
  transition: all 250ms;
}

#layout-dept-links a:hover,
#layout-dept-links a.current {
  color: var(--dept-bar-link-text-hover-colour);
  background-color: var(--dept-bar-link-bg-hover-colour);
}

#layout-dept-links a:active {
  position: relative;
  top: 2px;
}

/* Header Styling */

#layout-logo-row-wrapper {
  background-color: var(--header-row-bg-colour);
}

#layout-logo-row {
  height: 120px;
  background-image: var(--header-bg-img);
}

#layout-logo-plate {
  width: 120px;
  height: 120px;
  background-image: var(--header-logo-plate-img);
  background-repeat: no-repeat;
  display: inline-block;
}

#layout-logo-plate img {
  height:120px;
  width:120px;
}

#layout-logo {
  height: 120px;
  width: 400px;
  background-repeat: no-repeat;
  background-image: var(--header-logo-name-img);
  background-position: left center;
  background-size: contain;
  display: inline-block;
}

#layout-logo.white {
  background-image: var(--header-logo-name-img-white);
}

#layout-logo img {
  height: 120px;
  width: 400px;
}

.contain-to-grid .top-bar {
  max-width: var(--layout-desktop-max-width);
}

#layout-nav-menu-wrapper {
  background-color: var(--nav-bar-wrapper-bg-colour);
}

.top-bar,
.top-bar-section li a:not(.button),
.contain-to-grid,
.top-bar-section .dropdown {
  background-color: var(--nav-bar-bg-colour);
  color: var(--nav-bar-text-colour);
}

.top-bar-section li a:not(.button):hover { /* This is the bg colour of the top level dropdown toggle when open */
  background-color: var(--nav-bar-open-menu-bg-colour);
  color: var(--nav-bar-text-colour);
}

.top-bar-section ul li:hover > a,
.top-bar.expanded .title-area { /* This is the bg colour of the links and top level dropdown toggles when directly hovered over */
  background-color: var(--nav-bar-hover-bg-colour);
  color: var(--nav-bar-text-colour);
}

.top-bar.expanded .toggle-topbar a span { /* Menu hamburger .expanded color */
  box-shadow: 0 10px 0 1px var(--nav-bar-text-colour), 0 16px 0 1px var(--nav-bar-text-colour), 0 22px 0 1px var(--nav-bar-text-colour);
  color: var(--nav-bar-text-colour);
}

.top-bar.expanded .toggle-topbar a { /* Menu hamburger text .expanded color */
  color: var(--nav-bar-text-colour);
}

@media only screen and (max-width: 768px) { /* Mobile Header Title */
  .top-bar, .top-bar.expanded .title-area {
    background-image: var(--header-logo-name-img-mobile);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: auto 30px;
  }

  .top-bar .title-area .name { /* Make the mobile logo clickable to home */
    display: flex;
    align-items: stretch;
  }
  .top-bar .title-area .name > a {
    width: 40%;
  }
}

/* jnAccount Bar */

#layout-jnacc-bar { /* Also contains the search box */
  display: flex;
  flex-direction: column;
  justify-content: center;
  row-gap: 0.75rem;
  height: 100%;
}

#jnacc-dropdown {
  text-align: left;
  margin-bottom: 0;
}

#jnacc-drop {
  max-width:270px;
}

#jnacc-login-form {
  padding:10px;
}

#jnacc-login-aisha {
  width:80px;
  height:80px;
  display:block;
  margin:auto;
}

/* JN Search Bar */

#jn-search-bar .gsc-input-box {
  border: none !important;
}

#jn-search-bar form {
  margin-bottom: 0px !important
}

#jn-search-bar table {
  border: none !important;
  background: transparent !important;
  margin-bottom: 0 !important;
}

#jn-search-bar td {
  padding: 0 !important;
}

#jn-search-bar input[type="text"] {
  border-radius: 0 !important;
  background: #fff !important;
  font-family: inherit;
  border: 1px solid #ccc !important;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.1) !important;
  color: rgba(0,0,0,0.75) !important;
  display: block;
  font-size: 0.875em !important;
  margin: 0 !important;
  padding: 0.5em !important;
  height: 2.3125em !important;
  width: 100% !important;
  box-sizing: border-box !important;
  transition: box-shadow 0.45s,border-color 0.45s ease-in-out !important;
}

#jn-search-bar input[type="text"]:focus {
  background: #fafafa !important;
  border-color: #999 !important;
  outline: none !important;
  box-shadow: 0 0 5px #999 !important;
}

#jn-search-bar .gsib_b {
  display: none !important;
}

#jn-search-bar button {
  padding: 7px 15px !important;
  border-color: var(--btn-colour) !important;
  background: var(--btn-colour) !important;
  box-shadow: none !important;
  border-radius: 3px 100px 100px 3px !important;
  margin: 0px !important;
}

#jn-search-bar button:hover, #jn-search-bar button:focus {
  border-color: var(--btn-hover-colour) !important;
  background-color: var(--btn-hover-colour) !important;
}

/* Content Wrapping */

#layout-content-row-wrapper {
  max-width: var(--layout-desktop-max-width);
  margin: 0 auto;
  background-color: var(--content-wrapper-bg-colour);
}

/* Footer */

#layout-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: var(--footer-bg-color);
  padding: 0.9375em 0;
}

#layout-footer-grid {
  max-width: var(--layout-desktop-max-width);
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  column-gap: 20px;
  row-gap: 1.5rem;
  padding: 0 0.9375em;
}

#layout-footer-left {
  width: 100%;

  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  column-gap: 20px;
  row-gap: 1.5rem;
}

#layout-footer-right {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.layout-footer-link-group {
  width: calc(50% - 15px);
  display: flex;
  flex-direction: column;
  row-gap: 0.4em;
}

.layout-footer-link-title {
  color: var(--footer-header-color);
  font-size: 1rem;
  display: block;
  margin-bottom: 0.25rem;
}

@media only screen and (min-width: 768px) {
  #layout-footer-left {
    width: 65%;
  }

  #layout-footer-right {
    width: calc(35% - 20px);
  }

  .layout-footer-link-group {
    width: calc(25% - 15px);
  }
}

.layout-footer-link-group > a {
  background-image: none !important;

  display: inline-block;
  font-size: 0.75rem;
  color: var(--footer-text-color);
  padding: 5px 12px;
  border-radius: 15px;
}

.layout-footer-link-group > a:hover,
.layout-footer-link-group > a:active,
.layout-footer-link-group > a:focus {
  color: var(--footer-link-hover-text-color);
  background-color: var(--footer-link-hover-bg-color);
}

#layout-footer-link-group-affiliates {
  width: 100%;
  row-gap: 0.6em;
}

#layout-footer-affiliate-button-list {
  display: flex;
  column-gap: 10px;
  row-gap: 10px;
  flex-wrap: wrap;
}

#layout-footer-affiliate-social-tag {
  font-size: 0.8rem;
  color: var(--footer-text-color);
  margin-bottom: 0;
}

#layout-footer-affiliate-social-tag a {
  color: var(--footer-text-color);
}

#layout-footer-theme-picker {
  width: 100%;
  row-gap: 0.6em;
}

#layout-footer-theme-picker label,
#layout-footer-theme-picker select {
  margin-bottom: 0;
}

#layout-footer-theme-picker em {
  color: white;
  font-size: 0.8em;
}

#layout-footer-mascot {
  width: 300px;
  height: 200px;
  align-self: center;
  position: relative;
  bottom: -0.9375em;
  background-repeat: no-repeat;
  background-position: bottom center;
  background-image: var(--footer-mascot-img);
}

#layout-footer-legal {
  padding: 10px 0;
  background-color: var(--footer-legal-bg-color);
  color: var(--footer-legal-text-color);
}

#layout-footer-legal .row {
  background: none;
}

#layout-legal-text {
  font-size: 0.75em;
  line-height: 1.5;
}

#layout-footer-legal a {
  color: var(--footer-legal-text-color);
  text-decoration: underline;
}

.money_img {
  height:32px;
  background-image:url('/layout/imgs/affiliates.png');
}

.money-donate {
  width:129px;
  background-position:0 0;
}

.money-hosting {
  width:155px;
  background-position:-129px 0;
}

#money-makers-small {
  margin-top:1.25em;
}

/* Affiliates */

.aff_img {
  width: 88px;
  height: 31px;
  background-image: url('/layout/imgs/affiliates.png');
}

.aff_img.small {
  height:15px;
}

#aff-neopets { background-position: -284px 0; }
#aff-lostandpound { background-position: -460px 0; }
#aff-neomerch { background-position: -548px 0; }
#aff-metaneo { background-position: -636px 0; }

/* Global Content Styling */

.row.results .columns {
  margin-bottom:20px;
}

.row.results .columns img {
  margin-bottom:5px;
}

.row.content-row {
  line-height: 1.6;
}

.row.content-row > .columns {
  margin-bottom: 1.25em;
}

.button {
  border:none;
  box-shadow:none;
  border-radius:1000px;
}

.breadcrumbs {
  margin-top: 0.5em;
  border-radius:20px;
  background-color: var(--breadcrumbs-bg-colour);
  border-color: var(--breadcrumbs-border-colour);
}

.breadcrumbs a {
  color: var(--breadcrumbs-link-colour);
}

.breadcrumbs > .current a {
  color: var(--breadcrumbs-current-link-colour);
}

ul.indented-list,
.content-wrapper ul:not(.breadcrumbs):not(.item-block-grid):not(.no-padding):not(.chosen-results):not(.clearing-thumbs):not(.f-dropdown ul) {
  margin-left:1.25em;
}

div.custom.dropdown > ul { /* Custom Foundation select fields */
  margin-left: 0em !important;
}

ol.indented-list, .content-wrapper ol {
  margin-left:2em;
}

.indented-list li,
.content-wrapper ul:not(.breadcrumbs):not(.item-block-grid):not(.no-padding):not(.chosen-results):not(.f-dropdown ul) > li,
.content-wrapper ol > li {
  margin-bottom: 0.2em;
}

.jnheader {
  border-radius:20px;
  background-color: var(--jnheader-bg-colour);
  border-color: var(--jnheader-border-colour);
  border-style: solid;
  border-width: 1px;
  margin-top:0.5em;
  padding: 6px 10px;
  color: var(--jnheader-text-colour);
}

h3.jnheader {
  background-position: left center;
  background-repeat: no-repeat;
  font-size: 1em;
  margin-left: -0.3em;
  margin-right: -0.3em;
}

h4.jnheader {
  font-size: 0.8em;
}

@media only screen and (min-width: 768px) { /* Ditch fance headers on mobile */
  h3.jnheader {
    position: relative;
    padding-left: 44px;
  }

  h3.jnheader:before {
    content: "";
    border-radius: 20px 0px 0px 20px;
    position: absolute;
    top: 0;
    left: 0;
    width: 36px;
    height: 100%;
    background-color: var(--jnheader-icon-bg-colour);
  }

  h3.jnheader:after {
    content: "";
    background-image: url('/layout/imgs/icons_20.png');
    background-repeat: no-repeat;
    background-position: var(--jnheader-icon-bg-position);
    position: absolute;
    top: 0;
    left: 0;

    margin: 0 9px;
    width: 20px;
    height: 100%;
  }
}

.round {
  border-radius:5px;
}

textarea.tall {
  min-height:100px;
}

.tool-source-code {
  font-size:0.75em;
  height:15em;
}

/* Dropdowns */

.f-dropdown {
  background-color: var(--content-wrapper-bg-colour);
  color: var(--text-body-colour);
  border-color: var(--f-dropdown-border-colour);
}

.f-dropdown li a {
  color: var(--text-body-colour);
}

.f-dropdown li:hover, .f-dropdown li:focus {
  background: var(--f-dropdown-link-hover-colour);
}

.f-dropdown-section {
  border-top: solid 1px var(--f-dropdown-border-colour);
  border-bottom: solid 1px var(--f-dropdown-border-colour);
  font-weight: bold;
  text-align: center;
  background-color: var(--f-dropdown-section-bg-colour);
  font-size: 0.9em;
  padding: 0.25em;
}

div.f-dropdown ul {
  list-style:none;
  margin-bottom:0;
}

.f-dropdown a {
  padding-right:0;
  background-image:none;
}

/* Tab Sections */

.section-container.auto > section > .content,
.section-container.auto > .section > .content {
  background-color: var(--content-wrapper-bg-colour);
  border: solid 1px var(--tab-section-border-colour);
}

.section-container.auto>section.active>.title,
.section-container.auto>.section.active>.title {
  background: var(--content-wrapper-bg-colour);
}

.section-container.auto>section>.title,
.section-container.auto>.section>.title {
  background-color: var(--tab-section-tab-bg-colour);
  border: solid 1px var(--tab-section-border-colour);
}

.section-container.auto>section>.title:hover,
.section-container.auto>.section>.title:hover {
  background-color: var(--tab-section-tab-hover-bg-colour);
}

.section-container.auto > section > .title a,
.section-container.auto > .section > .title a,
.section-container.auto > section.active > .title a,
.section-container.auto > .section.active > .title a {
  color: var(--text-body-colour);
}

/* Faux-Tables */

.table {
  border:1px solid #ddd;
  margin-bottom:1.5em;
  padding:2px;
}

.row.table-header {
  font-weight: bold;
  background-color: #f5f5f5;
}

.table .row {
  margin-left:auto;
  margin-right:auto;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
}

.table-row:nth-of-type(odd) {
  background-color:#eee;
}

/* Real Tables */

table {
  width: 100%;
  background: var(--table-bg-colour);
  border: solid 1px var(--table-border-colour);
}

table thead,
table tfoot {
  background: var(--table-header-bg-colour);
}

table thead tr th,
table thead tr td,
table tfoot tr th,
table tfoot tr td,
table tr th,
table tr td {
  color: var(--table-text-colour);
}

table tr.even,
table tr.alt,
table tr:nth-of-type(even) {
  background: var(--table-alt-row-bg-colour);
}

table.half-width {
  width: 50%;
  margin: 0 auto 1.25em;
}

@media only screen and (max-width: 768px) {
  .responsive-table {
    width: 100%;
    overflow-x: auto;
  }

  table.small-full-width {
    width: 100%;
  }
}

table.two-per-row td {
  width: 50%;
}

table.three-per-row td {
  width: 33.3%;
}

table.four-per-row td {
  width: 25%;
}

table.five-per-row td {
  width: 20%;
}

/* Sidebar Lists */

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  border-bottom: 1px solid #ccc;
}

.sidebar-list li a {
  display: block;
  padding: 0.5em;
}

/* Utilities */

.make-invisible {
  visibility: hidden;
}

.word-wrap-break-word {
  word-wrap:break-word;
}

.no-list-style {
  list-style: none;
  margin-left: 0 !important;
}

.mt-0, .my-0 { margin-top: 0 !important; }
.mb-0, .my-0 { margin-bottom: 0 !important; }
.ml-0, .mx-0 { margin-left: 0 !important; }
.mr-0, .mx-0 { margin-right: 0 !important; }

/* Sidebar Search */

.hiddenSearchFieldsToggle.closed {
  display:none;
}

.hiddenSearchFields.closed {
  display:none;
}

label.inline-block {
  display: inline-block;
  padding-right: 10px;
}

/* Top Nav search for mobile */
.top-bar .search-toggle {
  position:absolute;
  right: 95px;
  top: 50%;
  margin-top: -23px;
  width: 45px;
  height: 45px;
  cursor:pointer;
  background-image: url('/layout/imgs/icon_search_bar.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 30px 30px;
}

.top-bar .nav-alerts-toggle {
  position: absolute;
  right: 140px;
  top: 50%;
  margin-top: -23px;
  width: 45px;
  height: 45px;
  cursor: pointer;
}

.top-bar .nav-alerts-toggle > a {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media only screen and (min-width: 58.75em) {
  .top-bar .search-toggle, .top-bar .nav-alerts-toggle {
    display: none;
  }
}

@media only screen and (max-width: 768px) { /* Mobile only */
  body.search-open {
    overflow: hidden;
    height: 100%; /* To help with iOS */
    width: 100%;
    position: fixed;
  }

  .dept-search-bar {
    display:none;
    position: fixed;
    top: 45px;
    width: 100%;
    height: calc(100% - 45px);
    overflow-y: auto;
    z-index: 1000;
    border-bottom-left-radius: 0 !important;
  }
}

/* Icons */

.icon-20 {
  background-image:url('/layout/imgs/icons_20.png');
  background-repeat:no-repeat;
  width:20px;
  height:20px;
  display:inline-block;
  vertical-align:middle;
}

.icon-20.jn { background-position:0 0; }
.icon-20.boa { background-position:-20px 0; }
.icon-20.wardrobe { background-position:-40px 0; }
.icon-20.idbp { background-position:-60px 0; }
.icon-20.drsloth { background-position:-80px 0; }
.icon-20.items { background-position:-100px 0; }
.icon-20.forums { background-position:-120px 0; }
.icon-20.jnacc { background-position:-140px 0; }
.icon-20.twitter { background-position:-160px 0; }
.icon-20.youtube { background-position:-180px 0; }

.page-icon {
  display:block;
  border-radius:150px;
  margin:5px auto;
  background-color:#f6f6f6;
  border: 2px solid transparent;
  transition: border-color 300ms ease-out, background-color 300ms ease-out;
}

.page-icon:hover {
  background-color: var(--page-icon-hover-bg-colour);
}

.page-icon.small {
  width:50px;
}

.page-icon.medium {
  width:80px;
  height:80px;
}

.page-icon.large {
  width:100px;
  height:100px;
}

.page-icon.xlarge {
  width:150px;
  height:150px;
}

.svg-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  background-size: 100% auto;
  background-repeat: no-repeat;
  position: relative;
  top: 2px;
  opacity: 0.7;
}

.svg-icon.icon-question-circle { background-image: url('/layout/imgs/icon-question-circle.svg'); }
.svg-icon.icon-red-x { background-image: url('/layout/imgs/icon-red-x.svg'); }

/* Lightbox Thumbs */

.clearing-blackout {
  background: rgba(0,0,0,0.8);
}

.clearing-caption {
  background: rgba(17, 17, 17, 0.4);
}

.clearing-assembled .clearing-container .visible-img {
  background:none;
}

.clearing-thumbs img {
  border-radius:5px;
  margin-bottom:10px;
}

.clearing-blackout .clearing-thumbs img {
  border-radius:0;
  margin-bottom:0;
}

/* JN Pagination */

.jn-pagination {
  margin-bottom: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
  column-gap: 0.25em;
  row-gap: 0.5em;
  font-size: 0.875em;
}

.jn-pagination > a,
.jn-pagination > span.skip-ellipsis {
  text-decoration: none !important;
  color: var(--pagination-font-colour);
  padding: 0.4em 0.5em;
  border-radius: 5px;
}

.jn-pagination > a:focus,
.jn-pagination > a:active,
.jn-pagination > a:hover {
  background-color: var(--pagination-hover-bg-colour);
  text-decoration: none !important;
  color: var(--pagination-hover-font-colour);
}

.jn-pagination > a.current {
  background-color: var(--pagination-current-bg-colour);
  color: var(--pagination-current-font-colour);
  font-weight: bold;
}

.jn-pagination > a.disabled {
  cursor: not-allowed;
  color: var(--pagination-disabled-font-colour);
}

.jn-pagination > a.disabled:focus,
.jn-pagination > a.disabled:hover {
  background-color: transparent;
}

.jn-pagination > a.pagination-arrow {
  padding: 0.2em 0.5em;
  line-height: 0;
  display: flex;
  align-items: center;
}

.jn-pagination > a.pagination-arrow > svg {
  width: 1.25em;
  height: 1.25em;
}

@media only screen and (max-width: 768px) {
  .jn-pagination > a,
  .jn-pagination > span.skip-ellipsis {
    padding: 0.5em 0.6em;
  }
}

/* Read More Navigation */

.read-more {
  margin-bottom: 1.25em;
  border-radius: 1000px;
  background-color: var(--read-more-bg-colour);
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}

.read-more .button {
  margin-bottom: 0;
}

.read-more-back,
.read-more-forward {
  display: flex;
  align-items: stretch;
}

.read-more-back > a,
.read-more-forward > a {
  display: flex;
  align-items: center;
  column-gap: 0.5em;
}

.read-more-back > a {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.read-more-forward > a {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.read-more-center {
  text-align: center;
  padding-top: 0.4em;
  color: var(--read-more-font-colour);
}

.read-more-center-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 1em;
  row-gap: 0.5em;
  color: var(--read-more-font-colour);
}

/* Item Tables & Nice Boxed Tables */

.item-grid, aside {
  border-radius: 10px;
  margin: 0 0em 1.25em 0em;
}

.item-grid.with-border, aside {
  border: 3px solid var(--content-box-border-colour);
}

aside {
  padding-left: 0.5em;
  padding-right: 0.5em;
}

aside > .row {
  margin-left:-0.5em !important;
  margin-right:-0.5em !important;
}

.item-grid-title, aside > .title {
  background-color: var(--content-box-border-colour);
  color: var(--content-box-text-colour);
  padding: 0.3em;
  padding-bottom: 0.4em;
  margin-bottom:0.5em;
  font-weight: bold;
}

aside > .title {
  padding-left: 0.5em;
  padding-right: 0.5em;
  margin-left: -0.5em;
  margin-right: -0.5em;
}

.item-grid ul {
  padding: 0;
}

.item-grid.with-border ul {
  padding: 0.5em 0.5em 0 0.5em;
}

.alert-box > .item-grid:last-child {
  margin-bottom: 0em;
}

.item-result-image, .item-grid img,
.news-post-content a[href^="https://items.jellyneo.net/item/"] > img,
.news-post-content a[href^="https://wardrobe.jellyneo.net/preview/?id="] > img {
  border: 2px solid #EAEAEA;
  padding: 4px;
  background-color:#fff;
  max-width: 92px;
  max-height: 92px;
  aspect-ratio: 1 / 1;
}

.news-post-content a[href^="https://items.jellyneo.net/item/"] > img,
.news-post-content a[href^="https://wardrobe.jellyneo.net/preview/?id="] > img {
  margin: 0 0.2em 0.2em 0.2em;
}

.item-result-image.nc, .item-grid img.nc,
.news-post-content a[href^="https://items.jellyneo.net/item/"] > img.nc,
.news-post-content a[href^="https://wardrobe.jellyneo.net/preview/?id="] > img.nc {
  border-color:#D9C2F3;
}

.item-result-image.small, .item-grid img.small {
  max-width: 50px;
  max-height: 50px;
}

.wearable-text, .wearable {
  font-size: 0.75em;
  font-weight: bold;
  color: #2367B5;
}

.nc-price-text {
  color: #fff;
  background: #8A68AD;
  border-radius: 50px;
  font-weight: bold;
  padding: 0.05em 0.5em;
  display: inline-block;
  line-height: 1.6;
}

.nc-text { color: #663399; }
.pb-text { color: blue; }

/* Text Labels/Badges */

.label.jn {
  background-color: #e3781e;
}

.label.neocash-item {
  color: #fff;
  background: #8A68AD;
}

.label.wearable-item {
  color: #fff;
  background: #2367B5;
}

.label.album-item {
  color: #fff;
  background: #6a3404;
}

.label.gourmet-item {
  color: #fff;
  background: #57a129;
}

.label.readable-item {
  color: #fff;
  background: #d35200;
}

.label.equippable-item {
  color: #fff;
  background: #4309c4;
}

.label.hidden-tower-item {
  color: #fff;
  background: #e752e8;
}

.label.grey-outline {
  color: #0f0f0f;
  background: #EAEAEA;
  border: 1px solid #dcdcdc;
  font-weight: normal;
}

.centered-grid li {
  text-align:center;
}

/* Entry Profile Headers */

h3.entry-profile-header {
  padding: 1% 3%;
  border-top: solid 3px var(--entry-header-border-colour);
  border-radius: 20px 0 0 20px;
  margin-left: -3%;
}

@media only screen and (max-width: 768px) {
  h3.entry-profile-header {
    margin-left: -2.5%;
  }
}

.entry-profile-sub-nav {
  padding-left: calc(1.5% + 0.5625em);
  padding-bottom: 0.625em;
  border-bottom: solid 3px var(--entry-header-border-colour);
  border-radius: 20px 0 0 20px;
  margin: 0.25em 0px 1.125em -3%;
}

/* Avatar Solution Boxes */

.avatar-solution-img {
  padding-top: 0.7em;
}

/* Blockquotes */

blockquote {
  padding: 5px 10px 5px 32px;
  border-left: 5px solid var(--blockquote-border-colour);
  position: relative;
}

blockquote, blockquote p {
  color: var(--text-body-colour);
}

blockquote::before {
  content: "\201C";
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: bold;
  color: #999;
  position: absolute;
  left: 0.3em;
  top: -0.3em;
}

blockquote::after {
  content: "";
}

blockquote .quote-source {
  margin-bottom: 0em;
  font-size: 80%;
  font-style: italic;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* Audio Controls */

.audio-toggle {
  width: 25px;
  height: 25px;
  cursor: pointer;
  display: inline-block;
  position: relative;
  top: 0.4em;
  background-image: url(/assets/imgs/audio_play_pause.png);
  background-repeat: no-repeat;
  background-size: 50px 25px;
}

.audio-toggle.on {
  background-position:-25px 0;
}

/* Side Navigations */

.side-nav {
  border-right: 1px solid #ddd;
  margin: 0 0 1.5em;
  padding: 0 0.5em 0 0;

}

.side-nav .heading {
  font-weight: bold;
  font-size: 1.1em;
}

.side-nav .heading:not(:first-of-type) { /* Give subsequent headings a little more space up top */
  margin-top: 1.25em;
}

.side-nav li a.button, .side-nav li a.button:hover, .side-nav li a.button:focus {
  color: #fff;
}

@media only screen and (max-width: 768px) {
  .side-nav {
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 0.5rem 0.5rem;
    background-color: #eee;
  }

  .side-nav li {
    padding: 0.1rem 0.6rem;
    border-radius: 15px;
  }

  .side-nav li:last-child {
    margin-bottom: 0;
  }

  .side-nav li.active {
    background-color: #fff;
  }
}

/* Sub-Nav Tweaks */

.sub-nav-label {
  display: inline-block;
  background-color: #9e9d9f;
  color: #fff;
  font-size: 0.7em;
  padding: 0.3em 0.55em;
  border-radius: 100px;
  position: relative;
  top: -0.1em;
}

/* JN Sub Nav Widget */

.jn-sub-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: baseline;
  column-gap: 0.1em;
  row-gap: 0.25em;
  margin-bottom: 1.125rem;
  font-size: 0.875em;
}

.jn-sub-nav-label {
  padding-right: 0.5em;
}

.jn-sub-nav > a {
  color: var(--subnav-font-colour);
  text-decoration: none !important;
  border-radius: 1000px;
  padding: 0.25em 0.6em 0.3em;
  transition: all 150ms;
}

.jn-sub-nav > a:hover {
  color: var(--subnav-hover-font-colour);
  background-color: var(--subnav-hover-bg-colour);
}

.jn-sub-nav > a.active {
  font-weight: bold;
  background-color: var(--subnav-active-bg-colour);
  color: var(--subnav-active-font-colour);
}

/* Images */

.img-screenshot {
  border: 2px solid #fff;
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
  margin-bottom: 0.5em;
}

.img-xs, .small-img-xs { max-width: 19%; }
.img-sm, .small-img-sm { max-width: 24%; }
.img-md, .small-img-md { max-width: 49%; }
.img-lg, .small-img-lg { max-width: 74%; }
.img-xl, .small-img-xl { max-width: 95%; }

@media only screen and (min-width: 768px) {
  .large-img-xs { max-width: 19%; }
  .large-img-sm { max-width: 24%; }
  .large-img-md { max-width: 49%; }
  .large-img-lg { max-width: 74%; }
  .large-img-xl { max-width: 95%; }
}

/* Transparency */

.opacity-75 { opacity: 0.75; }
.opacity-50 { opacity: 0.50; }
.opacity-40 { opacity: 0.40; }
.opacity-30 { opacity: 0.30; }
.opacity-25 { opacity: 0.25; }
.opacity-20 { opacity: 0.20; }

/* Videos */

.video-wrapper {
  text-align: center;
}

.video-wrapper > iframe {
  margin-bottom: 1.25em;
  max-width: 100%;
  border: none;
  box-shadow: 0 0 15px rgba(0,0,0,0.15);
}

video.framed-video {
  margin-bottom: 1.25em;
  box-shadow: 0 0 15px rgba(0,0,0,0.15);
}

video.with-border {
  border: 2px solid white;
  border-radius: 4px;
}

video.full-width, video.small-full-width {
  max-width: 100%;
}

video.half-width, video.small-half-width {
  max-width: 50%;
}

video.quarter-width, video.small-quarter-width {
  max-width: 25%;
}

@media only screen and (min-width: 768px) {
  video.large-full-width {
    max-width: 100%;
  }
  video.large-half-width {
    max-width: 50%;
  }
  video.large-quarter-width {
    max-width: 25%;
  }
}

/* News Posts */

.news-post-wrapper {
  padding: 0;
  border-style: solid;
  border-width: 3px;
  border-color: var(--news-post-border-color);
  border-radius: 20px;
  margin-bottom: 3.5em;
}

.news-post-title-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  column-gap: 20px;
  margin-bottom: 1.25em;
  padding: 10px 20px;
  border-radius: 16px 16px 0 0;
  background-image: var(--news-post-title-background-image);
}

.news-post-avatar {
  width: 2.7em;
  border-radius: 200px;
  box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.news-post-title {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 1.5em;
}

.news-post-title a {
  color: var(--text-header-colour);
  text-decoration: none !important;
}

.news-post-by-line {
  font-size: 0.7em;
  margin-bottom: 0;
}

.news-post-content {
  padding: 0 20px;
  font-family: inherit;
  font-weight: normal;
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 1.25em;
  text-rendering: optimizeLegibility;
}

.news-post-content hr {
  margin-bottom: 0;
}

.news-post-footer {
  padding: 10px 20px;
}

.news-post-footer > .news-post-comment-button {
  margin-bottom: 0;
}

.news-emoticon {
  max-height: 1.3em;
  max-width: 1.3em;
}

.emoticon-list {
  margin-bottom: 0.5em;
}

.news-comment-form-wrapper {
  border-top: solid 3px var(--news-post-border-color);
  border-radius: 20px 0 0 20px;
  padding: 8px 15px 0;
}

.news-comment-wrapper {
  border-top: solid 3px var(--news-post-border-color);
  border-radius: 20px 0 0 0px;
  padding: 8px 15px 0;
  margin-bottom: 2rem;
  line-height: 1.6;

  background-image: var(--news-comment-bg-image);
  background-repeat: no-repeat;

  display: flex;
  align-items: stretch;
  column-gap: 1.5rem;
}

.news-comment-wrapper.staffer {
  background-image: var(--news-comment-staff-bg-image);
  background-repeat: no-repeat;
  border-top-color: #ffc18c;
}

.news-comment-content-box {
  flex: 1;
}

.news-comment-content {
  font-size: 95%;
  margin-bottom: 0.5rem;
  word-break: break-word;
}

.news-comment-author {
  font-size: 80%;
}

.news-comment-av {
  width: 3rem;
  height: 3rem;
  border-radius: 100px;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.15);

  display: flex;
  align-items: center;
  justify-content: center;
}

.news-comment-av.preview {
  margin: 0 auto 0.25rem;
  width: 4rem;
  height: 4rem;
}

.news-comment-av > img {
  width: 75%;
  height: 75%;
  filter: drop-shadow(0px 0px 1px rgba(0,0,0,0.4));
  opacity: 0.85;
}

.news-comment-av.red {
  background: linear-gradient(135deg, #b31217, #e52d27);
}

.news-comment-av.orange {
  background: linear-gradient(135deg, rgb(230, 133, 8) 0%, rgb(251, 196, 111) 100%);
}

.news-comment-av.yellow {
  background: linear-gradient(135deg, rgba(237,231,68,1) 0%, rgba(212,173,11,1) 100%);
}

.news-comment-av.green {
  background: linear-gradient(135deg, rgba(7,149,26,1) 0%, rgba(113,230,129,1) 100%);
}

.news-comment-av.light-blue {
  background: linear-gradient(135deg, rgb(0, 103, 154) 0.00%, rgb(0, 173, 239) 100.00%);
}

.news-comment-av.blue-purple {
  background: linear-gradient(135deg, rgba(144,90,255,1) 0%, rgba(36,6,154,1) 100%);
}

.news-comment-av.purple {
  background: linear-gradient(135deg, #E100FF, #7F00FF);
}

.news-comment-av.pink {
  background: linear-gradient(135deg, rgba(242,164,203,1) 0%, rgba(231,50,139,1) 100%);
}

.news-comment-av.grey {
  background: linear-gradient(135deg, rgba(187,187,187,1) 0%, rgba(79,79,79,1) 100%);
}

.news-comment-av.mint {
  background: linear-gradient(135deg, rgba(16,230,170,1) 0%, rgba(12,152,113,1) 100%);
}

.news-comment-av.black {
  background: linear-gradient(135deg, rgba(91,91,91,1) 0%, rgba(0,0,0,1) 100%);
}

.news-comment-av.shape-1 { border-radius: 100px; } /* circle */
.news-comment-av.shape-2 { border-radius: 4px; } /* rounded square */
.news-comment-av.shape-3 { /* diamond */
  border-radius: 10px 10px 10px 10px;
  transform: rotate(-45deg);
  position: relative;
  top: 5px;
}
.news-comment-av.shape-3 > img { transform: rotate(45deg); }
.news-comment-av.shape-3.preview { top: -5px; }


/*
.news-comment-av.shape-2 { border-radius: 3px 30px 3px 30px; } /* left-to-right leaf
.news-comment-av.shape-3 { border-radius: 30px 3px 30px 3px; } /* right-to-left leaf
.news-comment-av.shape-5 { border-radius: 3px 3px 25px 3px; }
.news-comment-av.shape-6 { border-radius: 3px 3px 100px 100px; }
.news-comment-av.shape-7 { border-radius: 3px 70px 70px 3px; }
.news-comment-av.shape-9 {
  border-radius: 25px 3px 25px 25px;
  transform: rotate(-45deg);
  position: relative;
  top: 12px;
}
.news-comment-av.shape-9 > img { transform: rotate(45deg); }
*/

/* Column'ed Lists */

ul.list-small-1,
ol.list-small-1 {
  column-count: 1;
}

ul.list-small-2,
ol.list-small-2 {
  column-count: 2;
}

ul.list-small-3,
ol.list-small-3 {
  column-count: 3;
}

ul.list-small-4,
ol.list-small-4 {
  column-count: 4;
}

@media only screen and (min-width: 768px) {
  ul.list-large-1,
  ol.list-large-1 {
    column-count: 1;
  }
  
  ul.list-large-2,
  ol.list-large-2 {
    column-count: 2;
  }
  
  ul.list-large-3,
  ol.list-large-3 {
    column-count: 3;
  }
  
  ul.list-large-4,
  ol.list-large-4 {
    column-count: 4;
  }
}

/* Loader Utility */

#loading-blocker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
}

#loading-blocker.on-element {
  position: absolute;
}

@keyframes three-quarters-loader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* :not(:required) hides this rule from IE9 and below */
.spinner:not(:required) {
  animation: three-quarters-loader 1250ms infinite linear;
  border: 8px solid #fff;
  border-right-color: transparent;
  border-radius: 16px;
  box-sizing: border-box;
  display: inline-block;
  overflow: hidden;
  text-indent: -9999px;
  width: 32px;
  height: 32px;
}

/* Neo Alerts Page Styling */

#alert-date-selector {
  width: 275px;
}

.neo-alerts-clock {
  width: 1.5em;
  height: 1.5em;
  vertical-align: middle;
}

.neo-alert-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  column-gap: 1em;
  margin-bottom: 1.25em;
  transition: opacity 250ms;
}

.neo-alert-row.complete {
  font-style: italic;
}

.neo-alert-row.complete {
  opacity: 0.5;
}

.neo-alert-row.active {
  position: relative;
  border: 2px solid #dfdfdf;
  box-shadow: 0 0 8px rgba(223, 186, 42, 0.5);
  border-radius: 10px;
  padding: 0.5em 0.75em;
  margin: 0 -0.85em 1.25em;
  animation: 500ms infinite activeAlertRow;
}

.neo-alert-row.active:after {
  content: 'Now!';
  position: absolute;
  bottom: -8px;
  right: 8px;
  background-color: green;
  color: #fff;
  font-weight: bold;
  font-size: 0.8em;
  padding: 0.4em 1em;
  border-radius: 4px;
}

@keyframes activeAlertRow {
  0% {
    box-shadow: 0 0 8px rgba(223, 186, 42, 0.5);
  }

  50% {
    box-shadow: 0 0 15px rgba(223, 186, 42, 0.75);
  }

  100% {
    box-shadow: 0 0 8px rgba(223, 186, 42, 0.5);
  }
}

.neo-alert-row-img {
  width: 80px;
  height: 80px;
  border: 4px solid var(--btn-colour);
  border-radius: 1000px;
  align-self: flex-start;
  transition: all 250ms;
}

.neo-alert-row-img:hover {
  border-color: var(--btn-hover-colour);
}

.neo-alert-row.complete:hover {
  opacity: 1;
}

.neo-alert-row-img img {
  width: 100%;
  height: 100%;
  border-radius: 1000px;
}

.neo-alert-row-content {
  line-height: 1.6;
  width: calc(100% - 80px - 1em);
}

.neo-alert-row-title {
  font-size: 1.1em;
}

.neo-alert-row-desc {
  font-size: 0.8em;
}

.neo-alert-row-timestr {
  font-size: 0.8em;
}

.neo-completed-alerts-container {
  display: none;
}

.neo-completed-alerts-container.show {
  display: block;
}

/* Neo Alerts Modal Styling */

#neo-alerts-modal.reveal-modal {
  width: 100%;
  left: 40%;
}

@media only screen and (min-width: 768px) {
  /* Reset these to Foundation defaults for >small screens */
  #neo-alerts-modal.reveal-modal {
    width: 40%;
    left: 50%;
  }
}

.neo-alerts-modal-section-title {
  font-size: 1.2em;
}

.neo-alert-row.in-modal .neo-alert-row-img {
  width: 45px;
  height: 45px;
  border-width: 3px;
}

.neo-alert-row.in-modal .neo-alert-row-content {
  flex: 1;
  line-height: 1.3;
}

.neo-alert-row.in-modal .neo-alert-row-title {
  font-size: 0.9em;
}

.neo-alert-row.in-modal .neo-alert-row-desc {
  font-size: 0.7em;
}

.neo-alert-row.in-modal .neo-alert-row-timestr {
  font-size: 0.7em;
}

.neo-alert-row.in-modal .neo-alert-row-jn-link {
  align-self: flex-start;
  white-space: nowrap;
}

/* Neo Alerts in the Navigation */

#neo-alerts-nav-link {
  display: flex;
  align-items: center;
  height: 45px;
}

.neo-alerts-icon {
  width: 24px;
  height: 24px;
  background-image: url('/layout/imgs/neo-alerts/bell-icon.svg');
  background-repeat: no-repeat;
  background-size: 24px 24px;
  transform: rotate(25deg);
}

.neo-alerts-icon.unread {
  background-image: url('/layout/imgs/neo-alerts/bell-icon-dot.svg');
  animation: unreadBellIcon 5s 2; /* Only ring twice */
}

@media (prefers-reduced-motion) {
  .neo-alerts-icon.unread {
    animation: none;
  }
}

.neo-alerts-icon.white {
  background-image: url('/layout/imgs/neo-alerts/bell-icon-white.svg');
}

.neo-alerts-icon.white.unread {
  background-image: url('/layout/imgs/neo-alerts/bell-icon-white-dot.svg');
}

@keyframes unreadBellIcon {
  0% { transform:rotate(25deg) scale(1); }
  2.5% { transform:rotate(35deg) scale(1.25); }
  5% { transform:rotate(-35deg) scale(1.5); }
  7.5% { transform:rotate(35deg) scale(1.25); }
  10% { transform:rotate(25deg) scale(1); }
  12.5% { transform:rotate(35deg) scale(1.25); }
  15% { transform:rotate(-35deg) scale(1.5); }
  17.5% { transform:rotate(35deg) scale(1.25); }
  20% { transform:rotate(25deg) scale(1); }
  100% { transform:rotate(25deg); }
}
