/*
 * Styles for mixesdb2.com.
 * Based on the styles for eveningjazz.net.
 */

/* Variables */
:root {
  --font-size: 13px;
  --body-padding: 0.5em;

  /* Color */
  --text-color: #000000;
  --link-dark-blue: #00009e;
  --dark-blue: #00329d;

  /* Variables for logo styles */
  --off-white: #fffbf2;
  --border-color1: #dfdfdf;
  --border-color2: #808080;
  --window-frame: #0a0a0a;
}

.disabled {
  color: darkgray;
}

body {
  font-family: "Times New Roman", serif;
  font-size: var(--font-size);
  color: var(--text-color);
  padding: var(--body-padding);
  line-height: 1.4;
}

.turbo-progress-bar {
  visibility: hidden;
}

.alert,
.notice {
  font-family: monospace;
  font-size: 10px;
}

.alert {
  background-color: lightpink;
  border: 1px solid chocolate;
  padding: 0.3em;
  text-align: center;
  box-shadow: 2px 2px black;
}

.notice {
  background-color: lightcyan;
  border: 1px solid cadetblue;
  padding: 0.3em;
  text-align: center;
  box-shadow: 2px 2px #dddddd;
}

.fade-in {
  animation: fadeIn 0.2s;
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

h1 {
  margin-top: 0;
  margin-bottom: 0;
  font-family: Arial, sans-serif;
}

figure {
  margin: 0;
}

.relative {
  position: relative;
}

.p-2-4 {
  padding: 0.5em 1em;
}

.pt-3p {
  padding-top: 3px;
}
.pt-2 {
  padding-top: 0.5em;
}

.pt-4 {
  padding-top: 1em;
}

.py-1 {
  padding: 0.25em 0;
}

.py-2 {
  padding: 0.5em 0;
}

.py-4 {
  padding: 1em 0;
}

.p-4 {
  padding: 1em;
}

.pt-8 {
  padding-top: 2em;
}

.pb-80 {
  padding-bottom: 80px !important;
}

.mt-1 {
  margin-top: 0.25em;
}

.mt-2 {
  margin-top: 0.5em;
}

.mt-4 {
  margin-top: 1em;
}

.mb-2 {
  margin-bottom: 0.5em;
}

.mb-4 {
  margin-bottom: 1em;
}

.ml-1 {
  margin-left: 0.25em;
}

.ml-2 {
  margin-left: 0.5em;
}

.ml-4 {
  margin-left: 1em;
}

.ml-6 {
  margin-left: 1.5em;
}

.ml-8 {
  margin-left: 2em;
}

.mr-1 {
  margin-right: 0.25em;
}

.mr-2 {
  margin-right: 0.5em;
}

.mr-4 {
  margin-right: 1em;
}

.mr-6 {
  margin-right: 1.5em;
}

.align-center {
  align-self: center;
}

.text-decoration-none {
  text-decoration: none;
  color: var(--text-color);
}

.italic {
  font-style: italic;
}

.bold {
  font-weight: bold;
}

.full-width {
  width: 100%;
}

.em-1-5 {
  font-size: 1.5em;
}

.em-85 {
  font-size: 0.85em;
}

.em-65 {
  font-size: 0.65em;
}

.uppercase {
  text-transform: small-caps;
}

.monospace {
  font-family: monospace;
}

.mixes-pagination-wrapper a,
.page-link {
  border: 1px solid darkgray;
  background-color: whitesmoke;
  padding: 2px 4px;
  text-decoration: none;
}

#left_panel {
  background-color: whitesmoke;
  height: 100%;
  border: 1px solid black;
  /* border-radius: 3px; */
  padding-left: 1em;
  padding-right: 1em;
}

#right_panel {
  padding: 0 0 0 1.5em;
  max-width: 100ch;
}

#wrapper {
  display: grid;
  grid-template-columns: 225px 1fr;
  padding-bottom: 8px;
}

#landing {
  line-height: 1.4em;
  padding-right: 2em;
}

#landing p:first-child {
  margin-top: 0;
}

#landing ul > li {
  list-style-type: circle;
}

.mix-item {
  padding-left: 0.25em;
}

.mix-item:not(:last-child) {
  margin-bottom: 0.25em;
}

.mix-item.tracklist-completed {
  border-left: 3px solid green;
}

.mix-item.tracklist-in-progress {
  border-left: 3px solid gold;
}

.mix-item.tracklist-not-started {
  border-left: 3px solid red;
}

#logo_container {
  padding-bottom: 0.5em;
  margin-bottom: 0.5em;
  border-bottom: 1px solid black;
}

#title_container {
  font-size: 21px;
  font-family: serif;
  position: relative;

  -webkit-font-smoothing: none;
  font-smooth: never;
}

#title {
  line-height: 1.25em;
  padding: 0.5em 0.5em 0.25em 0;
  height: 100%;
}

.first-letter {
  float: left;
  display: block;
  font-size: 2em;
}

#left_panel nav {
  padding: 0;
  margin: 0 0 0 0;
}

#left_panel nav ul {
  padding: 0;
  margin: 0;
}

h3 {
  font-size: 1.1em;
  padding: 0;
  margin: 0.25em 0 0.25em 0;
}

#left_panel ul:not(:last-child) {
  margin-bottom: 0.5em;
  padding-bottom: 0.5em;
  border-bottom: 1px solid black;
}

#left_panel ul > li {
  list-style-type: none;
  margin: 0.3em 0;
}

@media (hover: hover) {
  a:not(#title_link, .mix-image-link):hover {
    text-decoration: none;
    color: var(--link-dark-blue);
    background-color: #cdfeaa;
    border-radius: 2px;
  }
}

#title_link {
  cursor: pointer;
}

#navigation_title {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  padding: 0.5em 0;
  font-weight: bold;
  width: 98%;
  margin-left: 2px;
  margin-top: 2px;
  cursor: default;
  background-color: #e3e3e3;
}

#mix_info {
  line-height: 1.5;
  background-color: whitesmoke;
  text-align: center;
  border: 1px solid black;
  /* border-radius: 3px; */
  margin-bottom: 1em;
}

#category_ancestors span:not(:first-child) {
  padding-left: 0.25em;
  border-left: 1px solid black; 
}

#categories_table {
  display: grid;
  grid-template-columns: 50% 50%;
}

#categories_header {
  width: 100%;
  display: flex;
  padding-bottom: 0.5em;
  margin-bottom: 0.5em;
  border-bottom: 1px solid darkgray;
}

#categories_footer {
  border-top: 1px solid darkgray;
  padding-top: 0.5em;
  margin-top: 0.5em;
  width: 100%;
  display: flex;
}

#posts_index,
#post_wrapper {
  max-width: 68ch;
  line-height: 1.5;
}

#latest_post {
  background-color: whitesmoke;
  border: 1px solid black;
  /* border-radius: 3px; */
  padding: 0.5em;
}

#latest_post h3 {
  font-family: Arial, sans-serif;
}

.sans-serif {
  margin-right: 0.25em;
  color: blue;
}

.pagination-wrapper {
  display: flex;
  flex-direction: row;
}

.mixes-pagination-wrapper,
.pagination-wrapper {
  margin: 0.5em 0;
}

.pagination-wrapper > *:last-child {
  margin-left: 0.5em;
}

#tracklist .mix-section-name:not(:first-child) {
  margin-top: 0.5em;
}

.mix-section-header {
  border-bottom: 1px solid darkgray;
  padding-bottom: 0.25em;
  margin-bottom: 0.5em;
}

.spacer-border {
  border-bottom: 1px solid darkgray;
  padding-bottom: 1em;
  margin-bottom: 1em;
}

#mix_images_container {
  width: inherit;
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.5em;
}

.mix-image {
  border: 1px solid #aaaaaa;
  box-shadow: 2px 2px #dddddd;
  margin: 0.4em;
  padding: 0.25em;
  width: 145px;
}

.mix-image:hover {
  box-shadow: 2px 2px #777777;
}

.mix-image img {
  height: 145px;
  width: 145px;
  object-fit: contain;
}

.zoom-in a {
  cursor: zoom-in;
}

.mix-image figcaption {
  font-size: 8px;
}

#left_panel nav .season-container {
  border: 1px solid black;
  background-color: white;
  padding: 0.5em;
  margin: 0.5em 0;
}

#categories_search_wrapper {
  width: inherit;
  border: 1px solid black;
  padding: 0.5em;
  margin: 0.5em 0;
  background-color: whitesmoke;
}

#mixes_search_wrapper {
  width: inherit;
  border: 1px solid black;
  padding: 0.5em;
  margin: 0.5em 0;
  background-color: whitesmoke;
}

#landing_section {
  display: grid;
  grid-template-columns: 49% 49%;
  column-gap: 2%;
}

#landing_section #mixes_search_wrapper input[type="email"] {
  width: 70%;
}

#landing_section #mixes_search_wrapper,
#landing_section #landing_notice {
  margin: 0;
  border: 1px solid black;
  background-color: whitesmoke;
  padding: 0 1em 1em 1em;
}

#landing_notice > *:last-child {
  margin-bottom: 0;
}

#categories_search_wrapper form {
  display: flex;
}

#mixes_search_wrapper form div {
  display: flex;
}

#mixes_search_wrapper form div:not(:last-child) {
  margin-bottom: 0.5em;
}

#mixes_search_wrapper form input {
  margin-right: 1em;
}

#mixes_search_wrapper form input[type="submit"] {
  margin-left: 21px;
}

#mixes_search_wrapper form > div *:not(:last-child) {
  margin-right: 0.5em;
}

#categories_search_wrapper form > *:not(:last-child) {
  margin-right: 0.5em;
}


form label {
  display: flex;
  align-self: center;
}

.disabled-link {
  pointer-events: none;
  cursor: default;
  text-decoration: none;
  color: black;
}

#post_header {
  position: relative;
  width: 100%;
  border-bottom: 1px solid darkgray;
}

.right {
  float: right;
  position: absolute;
  right: 0;
  top: 0;
  margin-top: 0.3em;
}

.post-item {
  margin: 0.5em 0;
  display: grid;
  grid-template-columns: 88px auto;
  column-gap: 0.5em;
}

.post-item > div:first-child {
  border-right: 2px solid darkgray;
  /* Matches the column-gap defined above. */
  padding-right: 0.5em;
}

.post-item > div {
  font-family: monospace;
  font-size: 11px;
}

#post_timestamp {
  font-family: Arial, sans-serif;
  color: darkgray;
  margin-bottom: 0.5em;
}

br {
  display: block;
  margin-top: 10px;
  content: " ";
}

.block {
  display: block;
}

/* Add a min-height to the tabbed mix/category lists to prevent
 * scroll jumping, as it is at the bottom of the page */
#category_tabs {
  min-height: 600px;
}

/* Entire section */
.tabs {
  display: flex;
  flex-wrap: wrap;
}

/* Style the labels (tabs) */
.tabs label {
  background-color: lightgray;
  cursor: pointer;
  display: block;
  font-weight: 600;
  margin-top: 0;
  order: 1;
  padding: 0.25rem 0.5rem;
  width: auto;
  font-size: 11px;
}

.tabs label:first-of-type {
  border-left: 1px solid black;
  border-top: 1px solid black;
}

.tabs label:last-of-type {
  border-right: 1px solid black;
  border-top: 1px solid black;
}

/* Style the content sections */
.tabs .tab-content {
  background: whitesmoke;
  display: none;
  flex-grow: 1;
  order: 99;
  padding: 1rem;
  width: 100%;
}

/* Hide the radio inputs */
.tabs input[type="radio"] {
  display: none;
}

/* Style the active tab */
.tabs input[type="radio"]:checked + label {
  background-color: whitesmoke;
  color: black;
  border-top: 1px solid black;
  border-right: 1px solid black;
  border-left: 1px solid black;
  border-bottom: 1px solid whitesmoke;
  margin-bottom: -1px;
  z-index: 99;
}

/* Display content when a tab is selected */
.tabs input[type="radio"]:checked + label + .tab-content {
  display: block;
  border: 1px solid black;
}

/* MEDIA QUERIES */
/* Always should be listed from LARGEST view to the smallest */

/* Max View: screen is wider than 650px */
@media (min-width: 650px) {
}

/* Small screen layout */
@media (max-width: 650px) {
  #wrapper {
    display: block;
  }

  #landing_section {
    display: block;
  }

  #landing_section #landing_notice {
    margin-bottom: 0.5em;
  }

  #right_panel {
    padding: 0;
  }

  #left_panel {
    display: block;
    padding: 0 0 0.5em 0;
    margin-bottom: 1em;
    line-height: 1.4;

    /* Clear border right, add border bottom */
    border: none;
    border-bottom: 1px solid black;
    border-radius: 0;
    background-color: white;
  }

  #left_panel nav {
    padding: 0;
    margin: 0;
  }

  #left_panel ul,
  #left_panel ul > li,
  #left_panel h3 {
    display: inline;
  }

  #left_panel li {
    padding-left: 0.25em;
  }

  #left_panel h3 {
    font-size: 1em;
  }

  #responsive_subnav {
    display: block;
    width: 100%;
  }

  #logo_container {
    display: flex;
    background-color: whitesmoke;
  }

  #logo_container #title_link {
    margin: auto;
  }

  #posts_index,
  #post_wrapper {
    max-width: 100%;
  }
}

@media (max-width: 450px) {
  #wrapper {
    min-width: 350px;
  }
}
