/*
Theme Name: MHFR Theme
Description: The offical theme for MHFR
Author: Bee.eLL.luv (Anders Moberg)
mrSimon was here <3

Restored for the Dead Pixel Records archive. Values are the 2013 theme's;
the bits the old WordPress markup did inline are at the bottom.
*/
* { margin: 0; padding: 0; }
a { color: #fff; }
a:visited { color: #fff; }
body {
  font-family: 'Open Sans Condensed', sans-serif;
  background-color: #87A587;
  color: white;
  margin: 0;
  padding-bottom: 30px;
}
ul { margin: 0; list-style-type: none; }

/* ---- the button in the top left: switches between the DPR look and the 2012 MHFR look ----
   images/switch-dpr.svg shows in the DPR look, switch-mhfr.svg in the MHFR look, both in black
   (the SVGs are used as a mask, so the colour comes from here) */
#lookswitch {
  position: fixed; left: 6px; top: 6px; z-index: 999;
  width: 51px; height: 51px; padding: 0; border: 0; background: none; cursor: pointer;
  filter: drop-shadow(1px 1px 2px rgba(0,0,0,.25));
  transition: transform .15s ease-out;
}
#lookswitch:hover { transform: scale(1.08); }
#lookswitch:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 50%; }
#lookswitch .ico {
  display: block; width: 100%; height: 100%; background-color: #fff;   /* white in the DPR look; black in the MHFR look (below) */
  -webkit-mask: url(../images/switch-dpr.svg) center / contain no-repeat;
          mask: url(../images/switch-dpr.svg) center / contain no-repeat;
}
#lookswitch .ico.mhfr-only {
  background-color: #000;
  -webkit-mask-image: url(../images/switch-mhfr.svg);
          mask-image: url(../images/switch-mhfr.svg);
}

/* ---- header ---- */
#header {
  position: relative;
  width: 962px;
  margin: 0 auto;
}
#header .logo { display: block; border: 0; max-width: 100%; }
.mhfr-only { display: none !important; }
html.mhfr .dpr-only { display: none !important; }
html.mhfr .mhfr-only { display: block !important; }
#header .menubar { margin: 0 auto; background-color: #af3030; }
#header .menu-main-menu-container {
  text-align: center;
  font-size: 30px;
}
#header .menu-main-menu-container ul {
  box-shadow: 3px 3px 25px 1px black;
  text-align: center;
  margin: 0;
  display: inline;
  padding: 0;
}
#header .menu-main-menu-container li {
  display: inline;
  padding-left: 43px;
  padding-right: 43px;
}
#header .menu-main-menu-container li a {
  color: white;
  opacity: 1;
  transition: opacity 1.0s ease-out;
}
#header .menu-main-menu-container li a:hover { opacity: 0.6; }

/* ---- page body ---- */
.container {
  position: relative;
  width: 975px;
  margin: 0 auto;
  padding-bottom: 10px;
  background-color: #566A56;
  box-shadow: 0px 3px 25px 0px black;
}

/* ---- artists ---- */
ul#artistlist {
  margin: 0 auto;
  padding: 0;
  position: relative;
  left: 1px;
}
ul#artistlist li {
  display: inline-block;
  vertical-align: top;
  width: 137px;
  height: 160px;
  padding: 1px;
}
ul#artistlist a { text-decoration: none; }
ul#artistlist img {
  width: 137px;
  height: 137px;
  position: relative;
  z-index: 2;
  box-shadow: 1px 1px 5px 0px black;
}
#artistlist li:hover { background-color: #af3030; }

/* ---- release tiles (home + releases) ---- */
ul#releaselist {
  padding: 0 0 10px 0;
  margin: 0;
}
ul#releaselist li.release {
  height: 233px;
  width: 233px;
  margin: 8px 5px 0 5px;
  display: inline-block;
  vertical-align: top;
  position: relative;
  overflow: hidden;
  box-shadow: 2px 2px 5px 1px black;
}
ul#releaselist:hover li.release:hover { z-index: 2; }
ul#releaselist li.release img {
  display: block;
  height: 233px;
  width: 233px;
}
ul#releaselist li.release .text {
  position: absolute;
  display: block;
  top: 100%;
  width: 233px;
  height: 50px;
  margin-top: 0px;
  transition: margin-top 0.1s ease-out;
}
ul#releaselist li.release:hover .text { margin-top: -50px; }
ul#releaselist li.release .text .bg {
  display: block;
  width: 100%;
  height: 100%;
  background-color: #af3030;
  opacity: 0.9;
  position: absolute;
}
ul#releaselist li.release .text .pbox {
  position: absolute;
  padding: 3px 10px;
  margin: 0;
  width: 213px;
  text-align: center;
  color: #FFF;
}
/* releases page: every release on one page, five to a row; the home page uses the same spacing, four to a row */
ul#releaselist.five, ul#releaselist.four { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; padding: 8px 14px 20px; }
ul#releaselist.five li.release, ul#releaselist.four li.release { width: auto; height: auto; aspect-ratio: 1; margin: 0; }
ul#releaselist.five li.release img, ul#releaselist.four li.release img { width: 100%; height: 100%; object-fit: cover; }
ul#releaselist.five li.release .text, ul#releaselist.four li.release .text { width: 100%; height: 56px; }
ul#releaselist.five li.release:hover .text, ul#releaselist.four li.release:hover .text { margin-top: -56px; }
ul#releaselist.five li.release .text .pbox, ul#releaselist.four li.release .text .pbox { width: 100%; box-sizing: border-box; padding: 4px 8px; font-size: 13px; line-height: 1.25; }
ul#releaselist.four { grid-template-columns: repeat(4, 1fr); }
ul#releaselist li.release a.full {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* ---- footer ---- */
#footer {
  width: 985px;
  margin: 0 auto;
  height: 88px;
  position: relative;
  background-color: #566A56;
  box-shadow: 3px 3px 25px 1px black;
}
#social { position: absolute; left: 0px; }
#affirmatives { position: absolute; right: 0px; }
#footer ul { display: inline; }
#footer li {
  float: left;
  display: block;
  width: 50px;
  height: 50px;
  padding: 5px;
}
#footer li img { width: 50px; height: 50px; border: 0; }
#footer li:hover { background-color: #af3030; }
#smalllinks li {
  display: inline-block;
  float: none;
  padding: 0px 5px;
  width: auto;
  height: auto;
}
#smalllinks li:hover { background-color: transparent; }

/* ---- home: sidebar + blog list ---- */
#postContainer {
  width: 715px;
  padding: 5px 0 5px 8px;
}
#sideBar {
  position: absolute;
  right: 0px;
  width: 243px;
  padding: 5px 0 10px 25px;
}
#sideBar ul {
  width: 250px;
  padding-top: 6px;
  margin: 0;
}
#sideBarTitle { font-size: 20px; font-weight: bold; }
.post {
  border-top-style: solid;
  border-color: #af3030;
  margin: 5px 0;
}
.postheader {
  margin-top: 10px;
  overflow: hidden;
  height: 60px;
  position: relative;
}
.postheader img { height: 60px; width: 60px; }
.postheadertext {
  padding-left: 5px;
  display: inline-block;
  position: absolute;
  top: -5px;
}
.postheadertext b { font-size: 30px; }

/* ---- videos (these lived in a <style> block on the videos page) ---- */
#vidframe {
  margin: 0px auto;
  height: 450px;
  width: 800px;
  background-color: #87A587;
  box-shadow: 3px 3px 25px 1px black;
}
#vidframe iframe { display: block; height: 450px; width: 800px; border: 0; }
#vidlist { padding: 10px 0px; margin: 0px; text-align: center; }
#vidlist ul {
  width: 915px;
  margin: 0 auto;
  padding: 0 30px;
}
#vidlist li {
  padding: 5px;
  background-color: #87A587;
  width: 295px;
  height: 70px;
  display: inline-block;
  vertical-align: top;
  text-align: center;
  box-shadow: 1px 1px 2px 1px black;
}
#vidlist li:hover { background-color: #af3030; }
#vidlist a { text-decoration: none; display: block; height: 100%; }
#vidlist b { font-size: 30px; }

/* ---- what the old markup did with inline styles / <center> / <font> ---- */
.bigtitle {
  text-align: center;
  font-size: 60px;
  padding: 4px 0;
  margin: 0;
}
.banners { line-height: 0; }
.banners img { border: 0; }
.announce {
  text-align: center;
  font-size: 24px;          /* <font size="5"> */
  margin: 0;
  padding: 0;
}
.rule {                     /* the rows of underscores */
  border-bottom: 2px solid #fff;
  margin: 2px 8px 6px;
  height: 6px;
}
.rule.short { margin: 6px 0; width: 230px; }
.follow { font-size: 18px; padding: 2px 0; }
.blogs { font-size: 24px; }
.artistname { height: 40px; text-align: center; }
#releaselist.centered { text-align: center; }
.previous {
  text-align: center;
  font-size: 30px;
  padding: 10px 0;
  margin: 0;
}
.next {
  text-align: center;
  font-size: 20px;
  margin: 0;
}
#header .menu-main-menu-container li.current a { text-decoration: none; }
#footer .footerbar {
  background-color: #af3030;
  text-align: center;
  font-size: 17px;
  height: 23px;
}
#footer .copy { float: right; padding-right: 17px; }
#footer #smalllinks { float: left; }
.more { text-align: right; padding: 0 12px 6px; font-size: 18px; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 0 20px; font-size: 20px; }
.pager .small { font-size: 14px; opacity: .8; }
#sideBar li img { width: 65px; height: 65px; float: left; box-shadow: 1px 1px 5px 0px black; }
#sideBar li { margin: 0; padding: 2px 4px; position: relative; background-color: #566A56; width: 227px; height: 65px; }
#sideBar li:hover { background-color: #af3030; }
.sidebarArtist { display: inline-block; padding-left: 4px; font-weight: bold; }
.sidebarRelease { display: inline-block; padding-left: 4px; }
/* Artists page: compilation-only artists, a plain text list under the picture grid */
.complist { text-align: center; padding: 10px 0 6px; }
.complist h2 { font-size: 30px; font-weight: bold; margin: 0; }
.complist h2 .small { font-size: 18px; font-weight: normal; opacity: .8; }
.complist ul { columns: 4; column-gap: 20px; width: 900px; margin: 10px auto 0; padding: 0; text-align: left; font-size: 18px; }
.complist li { padding: 2px 6px; break-inside: avoid; }
.complist li:hover { background-color: #af3030; }
/* footer is just the red bar now (the social / friend-label icons were taken off) */
#footer { height: auto; }
#footer .footerbar { overflow: hidden; }
/* four menu items now (Blogs and Live were taken off): spread them across the whole red bar */
#header .menu-main-menu-container ul { display: flex; justify-content: space-around; box-shadow: none; }
#header .menu-main-menu-container li { padding-left: 0; padding-right: 0; }

/* ---- the 2012 MrHappyFace Records look (mhfrecords.com, May 2012): switched on by the red-face button ---- */
html.mhfr body { background-color: #F9E3B8; color: #000; }
html.mhfr a, html.mhfr a:visited { color: #000; }
html.mhfr .container, html.mhfr #footer { background-color: #F3C66F; }
html.mhfr #header .menubar, html.mhfr #footer .footerbar { background-color: #B69453; }
html.mhfr #header .menu-main-menu-container li a, html.mhfr #footer .footerbar, html.mhfr #footer .footerbar a { color: #000; }
html.mhfr ul#releaselist li.release .text .bg { background-color: #B69453; }
html.mhfr ul#releaselist li.release .text .pbox { color: #000; }
html.mhfr #artistlist li:hover, html.mhfr .complist li:hover, html.mhfr #vidlist li:hover, html.mhfr #sideBar li:hover { background-color: #886F3E; }
html.mhfr #vidlist li, html.mhfr #vidframe { background-color: #F9E3B8; }
html.mhfr .rule { border-bottom-color: #000; }
html.mhfr .post { border-color: #B69453; }
html.mhfr .container, html.mhfr #artisthub, html.mhfr #footer, html.mhfr #header .menu-main-menu-container ul { box-shadow: 0 3px 18px 0 rgba(121, 99, 56, .55); }
/* Artists page: six to a row, spaced like the release tiles on the Releases page, room under each name */
ul#artistlist { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; padding: 8px 14px 20px; left: 0; }
ul#artistlist li { width: auto; height: auto; padding: 0; }
ul#artistlist img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
ul#artistlist .artistname { height: auto; padding: 6px 4px 12px; line-height: 1.2; }

/* home page: "About the Archive" box under the tiles, lined up with them; box colours like the artist / release squares */
.aboutbox { margin: 4px 14px 14px; padding: 14px 20px 6px; background-color: #87A587; color: #fff; box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, .55); font-size: 17px; line-height: 1.45; }
.aboutbox h2 { margin: 0 0 8px; font-size: 26px; }
.aboutbox p { margin: 0 0 12px; }
.aboutbox a, .aboutbox a:visited { color: inherit; text-decoration: underline; }
html.mhfr .aboutbox { background-color: #F9E3B8; color: #000; box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, .35); }

/* releases page search: magnifying glass after RELEASES, opens a row under the menu bar that filters the covers */
#searchbtn { background: none; border: 0; padding: 0 2px; margin-left: 12px; cursor: pointer; color: #fff; vertical-align: -1px; line-height: 0; transition: opacity .2s, transform .15s; }
#searchbtn svg { display: inline-block; }
#searchbtn:hover { opacity: .6; }
#searchbtn.on { transform: scale(1.12); }
#searchbtn:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
#searchbar { display: flex; align-items: center; gap: 14px; padding: 8px 14px 10px; }
#searchbar[hidden], #releaselist li.release[hidden], #nomatch[hidden] { display: none !important; }
#searchbar input { flex: 1; min-width: 0; box-sizing: border-box; font: 20px 'Open Sans Condensed', sans-serif; font-weight: bold; padding: 6px 12px; border: 0; border-radius: 2px; background: #fff; color: #000; box-shadow: inset 1px 1px 4px rgba(0, 0, 0, .35); }
#searchbar input:focus { outline: 2px solid rgba(255, 255, 255, .7); outline-offset: 1px; }
#searchcount { color: #fff; font-size: 20px; white-space: nowrap; }
#nomatch { text-align: center; font-size: 22px; padding: 10px 14px 30px; margin: 0; }
html.mhfr #searchbtn, html.mhfr #searchcount { color: #000; }
html.mhfr #searchbar input { background: #F9E3B8; }
html.mhfr #searchbar input:focus { outline-color: rgba(0, 0, 0, .5); }
/* the glass hangs just right of RELEASES without taking up room, so the menu items sit in the same places on every page */
#header .menu-main-menu-container li { position: relative; }
#searchbtn { position: absolute; left: 100%; top: 50%; margin: 0 0 0 10px; transform: translateY(-50%); }
#searchbtn.on { transform: translateY(-50%) scale(1.12); }
#searchbtn svg { width: 18px; height: 18px; }
