body {
  font-size: 16px;
  margin: .5em;
  margin-bottom: 22px;
  font-family: 'Nunito', sans-serif;
}

.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  margin: auto;
  z-index:9999;
}

.mainheader {
  padding: 0;
  margin-top: -0.4em;
  width: 100%;
  font-size: 3em;
  font-size: 15vw;
  text-align: center;
  font-family: 'Roboto Condensed', sans-serif;
}

main {
  padding-bottom: 1em;
}


/* -------- navigation elements -------- */
.navwrapper {
  font-size: 0.9em;
  display: inline-block;
  width: 100%;
}

.subnavwrapper {
  font-size: 2.4vw;
  display: inline-block;
  width: 100%;
  margin-top: -3px;
}

.navwords {
  display: inline-block;
  float: left;
  border-radius: 15px;
  padding: 3px;
  margin-top: 5px;
  margin-bottom: 5px;
  margin-right: 10px;
  font-weight: bold;
}

.recordnavleft {
  display: inline-block;
  float: left;
  font-weight: bold;
  border-radius: 15px;
  padding: 3px;
  margin-top: 5px;
  margin-bottom: 5px;
  margin-right: 10px;
  max-width: 50%;
}

.navgroupright, .recordnavright {
  display: inline-block;
  font-weight: bold;
  border-radius: 15px;
  padding: 3px;
  margin-top: 5px;
  margin-bottom: 5px;
  margin-right: 10px;
  float: right;
}

.navitem {
  display: inline-block;
  margin: 2px;
  border-radius: 10px;
  padding: 2px 7px 2px 7px;
}

/* -------- main menu -------- */
.mainwrapper {
  font-family: 'Roboto Condensed', sans-serif;
  width: 60%;
  margin: auto;
}

.mainlink {
  border-radius: 10px;
  padding: 3px;
  font-size: 2em;
  font-size: 6vw;
  text-align: center;
  margin-bottom: 7px;
}

/* -------- footer -------- */
footer {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 22px;
  background-color: #000;
  text-align: right;
  z-index: 98;
  float: left;
}

footer img {
  margin-top: 4px;
}

/* -------- main content for sub pages -------- */
.subwrapper {
  width: 90%;
  margin: auto;
}

.intro {
  font-size: 1.2em;
}

.biglink {
  font-size: 1.5em;
}

/* -------- basic links -------- */
a {
  text-decoration: none;
  font-weight: bold;
}

/* -------- coding page(s) -------- */
.codeblock {
  display: table;
  padding: 5px;
  width: 100%;
  text-align: left;
}

.codetitle {
  font-size: 2em;
  padding: 20px 0 0 2px;
  font-weight: bold;
}

.codesubtitle {
  font-size: 1.6em;
  padding: 20px 0 0 2px;
  font-weight: bold;
}

.codeinfo {
  padding: 5px 0 0 2px;
}

.codeimage {
  display: table-cell;
  vertical-align: middle;
  font-size: 0;
  width: 106px;
}

.codeimage img {
  padding: 2px;
  height: 100px;
  width: 100px;
}

.codelinks {
  display: table-cell;
  vertical-align: middle;
  padding-left: 10px;
}

pre {
  white-space: pre-wrap;
  margin: 0;
}

.codegraphics {
  display: inline-block;
  padding-top: 10px;
  padding-bottom: 10px;
}

.centerer {
  vertical-align: middle;
  height: 100%;
  display: inline-block;
}

.centered {
  vertical-align: middle;
  display: inline-block;
}

.codegraphicscell {
  display: inline-block;
  width: 208px;
  height: 208px;
  vertical-align: middle;
  text-align: center;
}

.codegraphics img {
  max-width:200px;
  max-height:200px;
  margin: 2px;
}

/* -------- photo gallery -------- */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 5px;
}

.thumb {
  flex: 1;
  box-sizing: border-box;
  height: 200px;
  width: 200px;
  background-color: black;
  background-repeat: no-repeat;
  background-position: center center;
  overflow: hidden;
  margin: 3px;
}

.thumb img {
  vertical-align: middle;
}

/* -------- band pages --------*/
.bandtitle {
  font-size: 1.6em;
  padding: 20px 0 0 2px;
  font-weight: bold;
}

.songtitle {
  font-size: 1.3em;
  margin: 1em 0 0.2em 0;
  font-weight: bold;
}

.song {
  margin: 0;
  padding: 0;
  border: none;
}

/* -------- rally pages -------- */
.rallyyear {
  font-size: 1.7em;
  font-weight: bold;
  width: 100%;
  padding-top: 0.8em;
}

.rallyresults {
  padding-top: 0.5em;
  padding-left: 1em;
}

.rallywrapper {
  padding-top: 0.5em;
  padding-left: 1em;
}

.rallywords {
  font-size: 1em;
}

.rallyimagewrapper {
  width: 100%;
  font-size: 0.8em;
  text-align: center;
  padding-bottom: 1em;
}

.rallyimagewrapper img {
  max-width: 80%;
}

/* -------- record pages -------- */
.title_row {
  width: 100%;
  font-size: 1.7em;
  font-weight: bold;
  margin-bottom:2px;
  padding-top:10px;
}

.record_thumb {
  width: 100px;
  height: 100px;
  opacity: 0;
  margin: 1px;
}

.record_thumb:hover {
  -webkit-filter: blur(3px) grayscale(80%);
}

.text {
  margin-top: 0.2em;
  padding-left: 1em;
  text-indent: -1em;
}

.both {
  height: 100px;
  margin-top: 0.2em;
  display: table-row;
}

.both_left {
  max-width: 102px;
  display: table-cell;
}

.both_right {
  display: table-cell;
  vertical-align: middle;
  padding-left: 0.5em;
}

.search_form, .secrets {
  width: 70%;
  margin: auto;
}

.search_menu, .search_box {
  background-color: black;
  border: 1px solid #C2C2C2;
  border-radius: 10px;
  width: 100%;
  font-size: 1.7em;
  padding: 0;
}

.search_menu {
  margin-top: 1em;
  color: #69BCDB;
}

.search_box {
  margin-top: 1em;
  margin-bottom: 1em;
  color: #393C3F;
}

.secrets, .items {
  display: none;
}

.search_again {
  font-size: 1.7em;
  font-weight: bold;
  margin-bottom:2em;
  padding-top:1em;
}

.record_container {
  width: 80%;
  margin: auto;
  text-align: center;
  margin-bottom: 1em;
}

.record_cover {
  max-width: 80%;
  box-shadow: 2px 2px 5px black;
}

.record_cover_container {
  text-align: center;
  overflow: hidden;
  width: 100%;
}

.record_artist {
  font-size: 1.8em;
  margin-top: 0.7em;
}

.record_title {
  font-size: 1.8em;
  margin-bottom: 0.4em;
}

.record_rating {
  position: relative;
  font-size: 3em;
  color: #D98100;
}

.record_rating_container {
  margin-bottom: 1em;
}

.record_links {
  margin-bottom: 1em;
}

.record_container2 {
  width: 80%;
  margin:auto;
  margin-top: 0.7em;
}

.record_review {
  margin-bottom: 1em;
}

.tracklist {
  margin-bottom: 1em;
}

.views {
  margin-bottom: 1em;
}

/* -- lazyload fade in -- */
img:not(.initial) {
  transition: opacity 0.3s;
}
.initial,
.loaded,
.error {
  opacity: 1;
}

img:not([src]) {
  visibility: hidden;
}

/* -- tooltips -- */
.record_img_link {
  display:inline-block;
  position:relative;
}

.record_img_link .top, .record_rating .top, .game_rating .top {
  min-width: 150px; 
  top: -10px;
  left: 50%;
  transform:translate(-50%, -100%);
  padding: 5px;
  font-weight: normal;
  font-size: 0.8em;
  border-radius: 8px;
  position: absolute;
  z-index: 99999999;
  box-sizing: border-box;
  box-shadow: 0 1px 8px rgba(0,0,0,0.5);
  visibility: hidden;
  opacity: 0;
  transition:opacity 0.5s;
}

.record_rating .top, .game_rating .top {
  top: 20px;
  font-size: 0.2em;
}

.record_img_link:hover .top, .record_rating:hover .top, .game_rating:hover .top {
  visibility: visible; 
  opacity: 1;
}

.record_img_link .top::after, .record_rating .top::after, .game_rating .top::after {
  content: " ";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
}

/* -------- game pages -------- */
.game_container {
  width: 80%;
  margin: auto;
  text-align: center;
  margin-bottom: 1em;
}

.game_image_container {
  text-align: center;
  overflow: hidden;
  width: 100%;
}

.game_image {
  max-width: 450px;
  max-height: 450px;
  box-shadow: 2px 2px 5px black;
}

.game_rating {
  position: relative;
  font-size: 3em;
  color: #D98100;
}

.game_review {
  margin-bottom: 1em;
}

.game_review img {
  display: block;
  margin: auto;
  max-width: 450px;
  max-height: 450px;
}

.game_title {
  font-size: 1.8em;
  margin-top: 0.7em;
}

.game_container2 {
  width: 80%;
  margin:auto;
  margin-top: 0.7em;
  padding-top: 0.7em;
}

.game_rating_container {
  margin-bottom: 1em;
}


/* -------- writing pages -------- */
.writing_title {
  font-size: 1.8em;
  margin-bottom: 0.4em;
  font-weight: bold;
}

.writing_category {
  font-size: 1.5em;
  margin-bottom: 0.7em;
}

.writing_data {
  font-style: italic;
  font-size: 0.9em;
  padding-bottom: 1em;
  width:100%;
}

.writing_content {
  width: 97%;
  margin: auto;
}

.writing_keywords {
  padding-top: 1em;
}

.writing_keywords, .writing_views {
  margin-bottom: 1em;
}

/* -------- error pages -------- */
.error {
  font-size: 2em;
  width: 100%;
  text-align: center;
  margin-top: 2em;
}

/* -------- desktop version -------- */
@media screen and (min-width: 501px) {
  body {
    font-size: 20px;
  }

  .mainpage, .subpage {
    text-align: left;
  }

  .codeimage {
    width: 206px;
  }

  .codelinks a {
    font-size: 1.2em;
  }

  .codeimage img {
    height: 200px;
    width: 200px;
  }

  .subnavwrapper {
    font-size: 0.9em;
  }

  .recordnavleft {
    max-width: 66%;
  }

  .record_title, .record_artist, .writing_title, .game_title {
    font-size: 2.2em;
  }

  .record_rating, .game_rating {
    font-size: 3.5em;
  }
}

/* -------- limit fonts on really big windows -------- */
@media screen and (min-width: 1200px) {
  .mainheader {
    font-size: 180px;
  }

  .record_container, .game_container {
    display: flex;
  }
  
  .record_cover_container, .game_image_container {
    height: 100%;
    flex: 1;
  }

  .record_data_container, .game_data_container {
    flex: 1;
  }

  .record_title, .record_artist, .writing_title, .game_title {
    font-size: 2.6em;
  }

/* -------- hidden stuff -------- */
.managetitle {
  font-size: 1.7em;
  font-weight: bold;
  width: 100%;
  padding-top: 0.5em;
}

.add_table {
  font-size: 0.8em;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.5em;
  vertical-align:top;
  border-collapse:collapse;
}

table.add_table td {
  border: 1px solid black;
  padding: 5px;
}

.manage {
  background-color: black;
  color: #69BCDB;
  border: 1px solid white;
}

.managetext {
  resize: vertical;
}

.stats_table {
  margin-top: 10px;
  width: 100%;
  border-collapse:collapse;
}

.stats_table td {
  border: 1px solid black;
  padding: 2px;
}

.stats_bottom {
  border-top: 2px solid #cccccc;
}
