/* TODO: Move footer/ads CSS to a new file. */
#footer {
  background-color: white;
  color: #000;
  clear:both;
  margin-top: 12px;
  line-height: 1.5;
}
#footer_menu {
  background-color: #f3f3f3;
  padding: 20px 0;
  margin: 0 auto;
  width: 100%;
}
#footer_country_flag {
  position:relative;
  top:2px;
  padding-left:4px;
}

#footer .footer-column h6 {
  font-size: 11px;
  color: #777;
  font-weight: bold;
}
#footer .footer-column .icon {
  vertical-align:middle;
}
#footer .footer-column a {
  color: #888;
  padding-top: 2px;
  font-size: 11px;
}
#footer .footer-column a:hover {
  color: #DF6300;
  text-decoration: none;
}

#footer .footer-language .selected {
  color: #DF6300;
  text-decoration: none;
}


/**** MODERATOR PANEL STUFF ****/
.botbar-mod-panel a {
  color: #777;
  display:inline;
  padding:4px;
  width:180px;
  float:left;
  text-decoration:none;
}
.botbar-mod-panel a:hover {
  background-color:#333;
  color:#fff;
  text-decoration:none;
}
.botbar-mod-panel h3 {
  margin:0;
  padding:4px 0px 4px 10px;
  background-color:#fad7d6;
  color:#900;
  font-size:14px;
}
.botbar-mod-panel {
  padding-bottom:6px;
  padding-top:0px;
  background-color:white;
}
.botbar-mod-panel {
  font-size:12px;
}
.botbar-mod-links {
  margin:4px 0px 4px 0px;
  padding:0;
  display:block;
  font-size:12px;
}
.botbar-mod-links li {
  list-style-type:none;
  display:inline;
  padding:0px 0px 0px 8px;
}



/* SPECIFIC ELEMENTS
---------------------------------------- */
/* Container
-------------------- */

#template_container.template-container {
  padding: 10px;
  background: #f2f2f2;
  width:960px;
}
#template_scroller {
  padding-top: 10px;
}
#template_skin_leaderboard {
  margin: 0 auto 10px;
  width: 960px;
  line-height: 0;
  position: relative;
  z-index: 9;
}
#template_skin_leaderboard img {
  border: none;
}
#template_container.template-container.no-adskin {
  padding-top: 0px;
}


/* Temp ad
------------------ */
#temp_ad {
  width: 180px;
  height: 290px;
  opacity: 0.8;
  zoom: 1;
  filter: alpha(opacity=80);
  position: fixed;
  z-index: 1000000000;
  bottom: -140px;
}
#temp_ad a {
  display: block;
  width: 180px;
  height: 290px;

  /* image for the ad */
  background: url('/i/nisemono.png') no-repeat;
}
#temp_ad a:hover {
  cursor: pointer;
}
#temp_ad .close {
  width: 49px;
  height: 14px;
  background: url('/i/close_temp_ad.png') no-repeat;
  position: absolute;
  right: 20px;
  top: 10px;
  display: none;
}
#temp_ad .close:hover {
  cursor: pointer;
}

#notifications-mobile {
  right: 3px;
}



#template_ad_leaderboard {
  width: 960px;
  margin: 0 auto 8px;
  border-bottom: 1px solid #ccc;
  text-align: center;
}
#remove_leaderboard_ad_link {
  color: #808080;
  font-size: 11px;
  float: right;
  margin: -2px 116px 8px 0;
}


/* Header */


.site-header {
  position: relative;

  font-family: "Helvetica Neue", Arial, sans-serif;

  background: rgb(255, 255, 255);

  box-shadow: 0 0 0.5rem rgba(83, 78, 76, 0.5);
}

.site-header .content {
  margin: 0 auto;
  padding: 0;
}

.site-header > .content {
  display: -webkit-box;  /* OLD - iOS 6-, Safari 3.1-6, BB7 */
  display: -ms-flexbox;  /* TWEENER - IE 10 */
  display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
  display: flex;         /* NEW, Spec - Firefox, Chrome, Opera */

  -webkit-flex-wrap: wrap;
      -ms-flex-wrap: wrap;
          flex-wrap: wrap;

  width: 100%;
  max-width: 62rem;
}

.site-header.type-simple {
  position: relative;
  z-index: 9;

  padding: 1rem;

  box-shadow: none;
}


/* Home */
.site-header .home {
  display: -webkit-box;  /* OLD - iOS 6-, Safari 3.1-6, BB7 */
  display: -ms-flexbox;  /* TWEENER - IE 10 */
  display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
  display: flex;         /* NEW, Spec - Firefox, Chrome, Opera */

  -webkit-box-align: center;
  -webkit-align-items: center;
  -ms-flex-align: center;
  align-items: center;
}

.header-logo {
  height: 1.5rem;
  margin: 0;
  width: 6.6875rem;

  -webkit-box-ordinal-group: 2;
  -webkit-order: 1;
  -ms-flex-order: 1;
  order: 1;

  line-height: 1;
}

/* Keep the logo large for the simple header */
.site-header.type-simple .header-logo {
  height: 1.6875rem;
  margin-top: 0.25rem;
  width: 8.125rem;
}


/* User Panel */


.header-userpanel > ul {
  display: inline-block;
  padding: 0.85rem 0 0.65rem 0;
  vertical-align: middle;
}

.header-userpanel .userpanel-item {
  position: relative;

  display: inline-block;
  padding: 0 0.3rem;
  vertical-align: top;

  line-height: 0.7rem;
}

/* Remove the last bit of padding on the search icon (the last one) to make it flush against the edge. */
.header-userpanel .userpanel-item:last-child {
  padding-right: 0;
}

html[dir='rtl'] .header-userpanel .userpanel-item:last-child {
  padding-left: 0;
  padding-right: 0.3rem;
}

.header-userpanel .queue,
.header-userpanel .random {
  display: none;
}

.header-userpanel .header-icon {
  display: inline-block;
  margin: 0 auto;
  overflow: visible; /* IE10 fix */
  padding: 0;
  border: 0;

  font-family: Arial, sans-serif;
  font-size: 0.625rem;
  line-height: inherit;
  text-align: center;

  background: transparent;
  color: rgba(160, 152, 149, 0.75);
  fill: rgba(160, 152, 149, 0.75);

  cursor: pointer;

  -webkit-transition: color 0.2s ease-out;
          transition: color 0.2s ease-out;
}

.header-userpanel .header-icon .icon-container {
  position: relative;

  display: inline-block;
}

.header-userpanel .header-icon svg {
  width: 1.5rem;
  height: 1.5rem;

  -webkit-transition: fill 0.2s ease-out;
          transition: fill 0.2s ease-out;
}

.header-userpanel .userpanel-item.state-selected .header-icon,
.header-userpanel .header-icon:hover {
  color: rgb(247, 140, 37);
  fill: rgb(247, 140, 37);
}

.user-notification-badge,
.cart-badge {
  position: absolute;
  top: -0.125rem;

  padding: 0.0625rem 0.1875rem;

  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.5625rem;
  line-height: 1;

  background: #f78c25;
  color: #fff;

  border-radius: 0.125rem;
}

.user-notification-badge {
  left: 1rem;
}

.cart-badge {
  right: 0.75rem;
}


/* User Dropdown Menu */
.tooltip-desc {
  position: relative;
  z-index: 9999999;

  padding: 0 0.625rem;

  line-height: normal;
  white-space: nowrap;

  background: #2f2f2f;

  box-shadow: 0 0.1875rem 0.375rem 0 rgba(0,0,0,0.5);
  height: 1.375rem;

  line-height: 1.4375rem;
}

.tooltip-top {
  height: 0.375rem;

  background: url('/i/beta/header/tooltip_arrow.png') center top no-repeat;

  opacity: 0.98;
}

.header-userpanel .dropdown-menu {
  position: absolute;
  right: -1.2rem;
  top: 110%;
}

.header-userpanel .dropdown-menu a {
  width: 9.375rem;
}

html[dir='rtl'] .header-userpanel .dropdown-menu {
  left: -1.2rem;
  right: auto;
}

.header-userpanel .username a {
  overflow: hidden;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.has-num span.right {
  color: #f78c25;
}


/* Search Bar */


.header-search-form {
  display: -webkit-box;  /* OLD - iOS 6-, Safari 3.1-6, BB7 */
  display: -ms-flexbox;  /* TWEENER - IE 10 */
  display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
  display: flex;         /* NEW, Spec - Firefox, Chrome, Opera */

  height: 0;
  overflow: hidden;
  padding: 0;

  -webkit-flex: 1 1 auto;
  -ms-flex: 1 1 auto;
  -webkit-box-flex: 1;
  flex: 1 1 auto;

  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;

  background: rgb(244, 242, 242);

  -webkit-transition: padding 0.1s ease-in-out;
          transition: padding 0.1s ease-in-out;
}

.header-search-form.state-active {
  height: auto;
  overflow: visible;
  padding: 0.75rem;
}

.header-search-form > .content {
  position: relative;

  display: -webkit-box;  /* OLD - iOS 6-, Safari 3.1-6, BB7 */
  display: -ms-flexbox;  /* TWEENER - IE 10 */
  display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
  display: flex;         /* NEW, Spec - Firefox, Chrome, Opera */

  -webkit-box-pack: center;
  -webkit-justify-content: center;
  -ms-flex-pack: center;
  justify-content: center;

  margin: 0;
}

.header-searchbox,
.header-searchbox-submit {
  margin: 0 0.125rem;

  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.8125rem;
}

.header-searchbox {
  border: 0.0625rem solid rgb(206, 202, 202);
  border-radius: 0.1875rem;
  padding: 0.5em 1em;

  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  appearance: textfield;
}

.header-searchbox::-webkit-search-decoration {
  -webkit-appearance: none;
}

.header-searchbox-submit {
  border: 0;

  /* Explicitly set the default because IE10 uses the wrong default. */
  -webkit-flex: 0 1 auto;
  -ms-flex: 0 1 auto;
  -webkit-box-flex: 0;
  flex: 0 1 auto;

  padding: 0.46153846em 1em;

  background: rgb(247, 140, 37);
  color: rgb(255, 255, 255);

  border-radius: 0.1875rem;
  cursor: pointer;
}

.header-searchbox-submit > svg {
  display: none;
}


/* Header Navigation */


.header-navigation {
  display: -webkit-box;  /* OLD - iOS 6-, Safari 3.1-6, BB7 */
  display: -ms-flexbox;  /* TWEENER - IE 10 */
  display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
  display: flex;         /* NEW, Spec - Firefox, Chrome, Opera */

  -webkit-box-flex: 1;
  -webkit-flex: 1 1 100%;
  -ms-flex: 1 1 100%;
  flex: 1 1 100%;

  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;

  padding: 0 0.625rem;
}


/* Menu Bar (List of Links) */


.header-menubar {
  left: -10.4375rem;
  position: absolute;
  top: 3.75rem;
  z-index: 100;

  width: 10.4375rem;

  -webkit-transition: -webkit-transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
          transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

html[dir='rtl'] .header-menubar {
  left: auto;
  right: -10.4375rem;
}

.header-menubar.state-active {
  -webkit-transform: translateX(100%);
      -ms-transform: translateX(100%);
          transform: translateX(100%);

  box-shadow: 0.0875rem 0.1875rem 0.25rem rgba(83, 78, 76, 0.5);
}

html[dir='rtl'] .header-menubar.state-active {
  -webkit-transform: translateX(-100%);
      -ms-transform: translateX(-100%);
          transform: translateX(-100%);

  box-shadow: -0.0875rem 0.1875rem 0.25rem rgba(83, 78, 76, 0.5);
}

.header-menubar ul {
  background-color: rgb(255, 255, 255);
}

.header-menubar li a {
  display: block;
  padding: 1.1em 1.2em;

  font-size: 0.8125rem;
  font-weight: bold;
  line-height: 1;

  color: rgb(54, 50, 49);

  -webkit-transition: color 0.2s ease-out;
          transition: color 0.2s ease-out;
}

.header-menubar li.state-selected a,
.header-menubar li a:hover {
  color: #f78c25;
}

.header-menubar .premium-link-text {
  position: relative;
}

.header-menubar .freetrial-note {
  left: 70%;
  position: absolute;
  top: -0.4rem;

  font-family: Arial, sans-serif;
  font-size: 0.609375rem;
  font-weight: normal;
  text-transform: uppercase;
  white-space: nowrap;

  color: rgb(247, 140, 37);
}

html[dir='rtl'] .header-menubar .freetrial-note {
  left: auto;
  right: 70%;
}


/* Mini Menu Button */


.site-header .mini-menu-button {
  border: 0;
  height: 1.5rem;
  margin-right: 0.65rem;
  margin-bottom: 0.1rem;
  padding: 0;
  width: 1.5rem;

  -webkit-box-ordinal-group: 1;
  -webkit-order: 0;
  -ms-flex-order: 0;
  order: 0;

  background: transparent;
  fill: rgba(160, 152, 149, 0.75);

  cursor: pointer;
}

html[dir='rtl'] .site-header .mini-menu-button {
  margin-left: 0.65rem;
  margin-right: 0;
}

.site-header .mini-menu-button .close-icon {
  display: none;
}

.site-header .mini-menu-button.state-close .open-icon {
  display: none;
}

.site-header .mini-menu-button.state-close .close-icon {
  display: block;
}


/* Search Autocomplete */


.header-search-autocomplete {
  position: absolute;
  left: 0.125rem;
  right: 0.125rem;
  top: 114%; /* Opera Mobile fallback */
  top: calc(100% + 2 * 0.125rem);

  display: none;
  border: 0.0625rem solid #ccc;
  margin: 0;
  padding: 0;
  z-index: 9999;

  line-height: normal;
  list-style: none;

  background: rgb(255, 255, 255);

  border-radius: 0.1875rem;
}

.header-search-autocomplete a {
  border-bottom: 0.0625rem solid #eee;
  border-right: 0.0625rem solid #eee;
  clear: both;
  display: block;
  margin: 0;
  padding: 0.3125rem;

  font-weight: normal;
  text-decoration: none;

  cursor: pointer;
}

html[dir='rtl'] .header-search-autocomplete a {
  border-left: 0.0625rem solid #eee;
  border-right: 0;
}

.header-search-autocomplete a:hover,
.header-search-autocomplete a:focus,
.header_search_autocomplete_item_focused {
  background-color: #eee;
  outline: 0 none;
}

.header_search_result_mug {
  display: block;
  float: left;
  height: auto !important;
  margin-right: 0.3125rem;
  max-height: 5rem;
  width: 2.5rem;
  vertical-align: middle;
}

html[dir='rtl'] .header_search_result_mug {
  float: right;
  margin-left: 0.3125rem;
  margin-right: 0;
}

.header_search_result_details {
  display: inline;
  float: left;
  overflow: hidden;
  width: 7.5rem;
}

.header_search_result_name {
  font-size: 0.6875rem;
  font-weight: bold;

  color: #333;
}

.header_search_result_type {
  font-size: 0.625rem;
  font-style:italic;

  color: #555;
}


/* Extra Small: Phone */
@media screen and (min-width: 20rem) {
  /* User Panel */

  .header-userpanel .queue {
    display: inline-block;
  }

  /*
    Cart takes up too much space on small screens,
    so toggle user panel buttons based on the presence of cart
  */
  .header-userpanel .cart ~ .queue {
    display: none;
  }
}


/* Small: Phone/Tablet */
@media screen and (min-width: 35.5rem) {
  /* User Panel */

  .header-userpanel .random {
    display: inline-block;
  }

  /*
    Cart takes up too much space on small screens,
    so toggle user panel buttons based on the presence of cart
  */
  .header-userpanel .cart ~ .random {
    display: none;
  }

  .header-userpanel .cart ~ .queue {
    display: inline-block;
  }
}


/* Medium: Tablet/Desktop */
@media screen and (min-width: 48rem) {
  /* Mini Menu Button */

  .site-header .mini-menu-button {
    display: none;
  }


  /* Home/Logo */


  .header-logo {
    margin-top: 0.15rem;
  }


  /* Menu Bar */


  .header-menubar {
    left: auto;
    position: relative;
    top: auto;
    z-index: 1;

    display: block;

    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;

    margin: 0 0 0 1.7rem;

    -webkit-transform: none;
        -ms-transform: none;
            transform: none;

    -webkit-transition: -webkit-transform 0s;
            transition: transform 0s;
  }

  html[dir='rtl'] .header-menubar {
    right: auto;

    margin-left: 0;
    margin-right: 1.7rem;
  }

  .header-menubar.state-active {
    -webkit-transform: none;
    -ms-transform: none;
    transform: none;

    box-shadow: none;
  }

  .header-menubar ul {
    padding: 1rem 0 0.75rem 0;

    background-color: transparent;

    box-shadow: none;
  }

  .header-menubar li {
    display: inline-block;

    font-weight: bold;
    line-height: 1;
  }

  .header-menubar li a {
    padding: 0.64285714em;

    line-height: inherit;
  }

  .header-menubar li a:hover {
    color: #f78c25;
  }

  .header-menubar li a:active {
    color: #333333;
  }

  .header-menubar .freetrial-note {
    left: 47%;

    font-size: 0.5625rem;
  }

  html[dir='rtl'] .header-menubar .freetrial-note {
    left: auto;
    right: 47%;
  }
}


/* Large: Desktop */
@media screen and (min-width: 62rem) {
  /* Header */

  .site-header > .content {
    -webkit-flex-flow: row;
    -ms-flex-flow: row;
    flex-flow: row;

    box-sizing: border-box;
    margin: 0 auto;
    max-width: 61.25rem;
    padding: 0 0.625rem;
  }

  .header-navigation {
    padding: 0;
  }


  /* Home/Logo */


  .header-logo {
    height: 1.6875rem;
    margin-top: 0.25rem;
    width: 8.125rem;
  }


  /* Menu Bar */


  .header-menubar li a {
    font-size: 0.875rem;
  }


  /* User Panel */


  .header-userpanel .search {
    display: none;
  }

  /*
    Cart takes up too much space on small screens,
    so toggle user panel buttons based on the presence of cart
  */
  .header-userpanel .cart ~ .random {
    display: inline-block;
  }


  /* Search */


  .header-search-form {
    -webkit-box-align: stretch;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;

    -webkit-align-self: center;
    -ms-flex-item-align: center;
    align-self: center;

    -webkit-box-flex: 1;
    -webkit-flex: 1 0 auto;
        -ms-flex: 1 0 auto;
            flex: 1 0 auto;

    border: 0.0625rem solid rgb(206, 202, 202);

    height: 2.0625rem;
    margin: 0 0 0 1.1rem;
    overflow: visible;
    padding: 0;

    line-height: normal;

    background: transparent;

    border-radius: 0.1875rem;
  }

  html[dir='rtl'] .header-search-form {
    margin: 0 1.1rem 0 0;
  }

  /* Override active styles (defined in mobile size for transitions). */
  .header-search-form.state-active {
    height: 2.0625rem;
    padding: 0;

    -webkit-transition: padding 0s;
            transition: padding 0s;
  }

  .header-search-form .header-searchbox {
    border: none;
    padding: 0 0 0 0.5rem;
    width: 9rem;

    font-size: 0.8125rem;
    font-weight: normal;

    border-radius: 0;
  }

  html[dir='rtl'] .header-search-form .header-searchbox {
    padding: 0 0.5rem 0 0;
  }

  .header-search-form:hover .header-searchbox-submit > svg,
  .header-searchbox:focus ~ .header-searchbox-submit > svg {
    fill: rgb(247, 140, 37);
  }

  .header-searchbox,
  .header-searchbox-submit {
    margin: 0;
  }

  .header-searchbox-submit {
    border: 0;

    vertical-align: middle;
    -webkit-flex: 0 1 2.1rem;
    -ms-flex: 0 1 2.1rem;
    -webkit-box-flex: 0;
    flex: 0 1 2.1rem;

    padding: 0.3rem;

    background: transparent;
  }

  .header-searchbox-submit > svg {
    display: inline-block;
    height: 1.5rem;
    width: 1.5rem;

    fill: rgba(160, 152, 149, 0.75);

    -webkit-transition: fill 0.2s ease-out;
            transition: fill 0.2s ease-out;
  }

  .header-searchbox-submit .button-label {
    display: none;
  }


  /* Search Autocomplete */


  .header-search-autocomplete {
    left: auto;
    right: -0.0625rem;
    top: 96%;

    width: 13.75rem;

    border-radius: 0.1875rem 0 0.1875rem 0.1875rem;
  }

  html[dir='rtl'] .header-search-autocomplete {
    left: -0.0625rem;
    right: auto;
  }
}


/* Extra Large: Desktop */
@media screen and (min-width: 80rem) {
}