html {
    height: 100%;
    width: 100%;
    color: white;
    background-color: #000;
}

* {
    font-family: Arial, Helvetica, sans-serif;
}

body {
    width: 100%;
    margin: 0;
    padding: 0;
}

header {
    width: 100%;
    height: 40px;
    margin: 0;
    padding: 0;
    background: #800;
    color: white;
}

header h1 {
    margin: 0;
    padding: 5px;
    font-size: 20px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    text-align: center;
}

h2 {
    max-width: 90vw;
}

br {
    clear: both;
}

.center {
    margin: 0 auto;
    width: 500px;
    width: fit-content;
}

.bigo {
     color: orange;
}

.ni p {
    text-indent: 0;
}

#top {
    position: fixed;
    width: 100%;
    z-index: 10;
    top: 0;
}

nav {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    background-image: linear-gradient(#800, #0008);
}

nav ul {
    margin: 0 auto;
    padding: 0;
    list-style: none;
    position: relative;
    top: 20px;
}

nav ul li {
    display: inline-block;
    vertical-align: middle;
    margin-right: 16px;
    padding: 10px;
    border-radius: 10px;
    background-color: #800;
    margin-bottom: 16px;
}

#page {
    z-index: 1;
    position: relative;
    top: 120px;
}

:target::before {
  content: "";
  display: block;
  height: 120px; /* fixed header height*/
  margin: 0 0 0; /* negative fixed header height */
}

.fixed {
    position: absolute;
    left: -100px;
    rotate: 270deg;
    font-weight: bold;
    font-size: larger;
}

#fixed {
    position: fixed;
    right: 10%;
    bottom: 200px;
    font-weight: bold;
    z-index: 999;
}

#content {
    position: relative;
    left: 80px;
    margin: 0 auto;
    width: 100%;
    max-width: 1000px;
    min-height: 500px;
    padding: 0;
}

#success {
    margin: 0 auto;
    width: 350px;
    width: fit-content;
    font-style: italic;
    font-weight: bold;
    color: red;
}

#note1 {
  width: 80vw;
  max-width:800px;
  color:orange;
  font-family: Verdana, Geneva, sans-serif;
  margin:0 auto;
}

#begin {
    clear: none;
}

.selected {
    border: #800 1px solid;
    border-radius: 10px;
    background-color: #000;
}

a {
    color: #fff;
    text-decoration: none;
}

a:link {

}

a:visited {
    color: silver;
}

a:hover {
    font-weight: bold;
    text-shadow:0px 0px 10px #888;
}

a:visited:hover {
    font-weight: bold;
    text-shadow:0px 0px 10px #888;
}

p {
    text-indent: 15px;
    margin-left: 15px;
}

figure {
    float: right;
    clear: both;
    margin:0 10px 10px;
}

figcaption {
    font-style: oblique;
    font-weight: bold;
    font-size: small;
    margin: 0 auto;
    text-align: center;
}

.ha, .hh, .hk, .hr, .hs {
	padding:3px;
	font-family:Arial, sans-serif;
	text-align:left;
	white-space:nowrap;
    color:black;
}
.hh
	{background:red;}
.hk
	{background:orange;}
.ha
	{background:yellow;}
.hr
	{background:limegreen;}
.hs
	{background:dodgerblue;}

.left {
    border-left:1px solid #000;
}
.right {
    border-right:1px solid #000;
}
.top {
    border-top:2px solid #000;
}
.bottom {
    border-bottom:1px solid #000;
}

.mid {
    font-weight:bold;
}



hr {
    width: 950px;
	margin: 0;
	border-width: 0;
	color: #9ee;
	background-color: #9ee;
	height: 1px;
}



#cover {
    float: right;
    width: 230px;
    position: relative;
    right: 25px;
}

#cover label {
    float: left;
}

#upload {
    position:relative;
    top: 5px;
}

#coverpic > img {
    width: 200px;
    object-fit: contain;
    border: solid 1px dimgrey;
    position: relative;
    top: -70px;
}

#note label, .tnote label {
    float: left;
}



/* Search CSS */

#datenote, #basiclyricssearch, #advlyricssearch, #search1, #search2 {
    max-width: 550px;
    margin: 0 auto;
    text-align: center;
    overflow: auto;
}

form#advsearch > div, form#advmdbsearch > div {
    float: left;
    padding: 5px;
}

form#advsearch > div > label, form#advmdbsearch > div > label {
    text-align: left;
    float: left;
}

#adv-submit {
    float: left;
    margin-top: 5px;
}

#refineartist div {
    margin: 0 auto;
    width: 600px;
    width: fit-content;
}

#huHlist {
  display: table;
}

#pcdlist {
  margin: 0 auto;
}

.pcdlist {
  display: none;
  margin: 10px auto;
  text-align: left;
  float: left;
}

.pcdlist td, .pcdlist th {
  padding: 0 10px;
}

#huHlist th, #huHlist td{
  text-align: left;
  padding: 0 5px;
}


#albumresults {
  display: inline-block;
}

.result-item, .result-item .res-album {
  clear: both
}

.result-item {
    position: relative;
    left: 40px;
  width: 100%;
  display: table;
  margin: 10px auto;
  cursor: pointer;
}

.result-item:hover {
  background-color: #888;
}

.result-item div {
  float: left;
}

.res-details {
    padding: 10px 0;
}

.res-details > div {
    padding: 5px 0;
}

#albumwrapper {
  width: 75%;
  margin: 0 auto;
}

.res-track, #tlheader, .discheader, .res-album .albumname {
  clear: both;
  overflow: auto;
}

#albumdetails {
  float: left;
  max-width: 40%;
}

.discheader, .tracklist {
    min-width: 50%;
    max-width: 90%;
    width: fit-content;
    margin: 0 auto;
    overflow: auto;
}

.tracklist {
  border: 1px solid black;
}

.col1 {
    clear: left;
}

.num {
  text-align: right;
  width: 36px;
}

.trknfo {
  text-align:left;
  width: 300px;
}

.num, .trknfo, .time, .sgenre, .tnote {
  float: left;
  margin: 0 5px;
}

.time {
  min-width: 45px;
  text-align: right;
  margin-right: 7px;
}

.sgenre {
  min-width: 80px;
  margin-right: 7px;
}

.tnote {
  min-width: 100px;
  max-width: 50vw;
}


/*COVER IMAGE*/

.res-cover {
  padding: 5px;
}

.res-cover img {
  width: 75px;
  object-fit: contain;
  border: solid 1px dimgrey;
}

#albumcoverfull {
  float: right;
  width: 30vw;
  justify-content: center;
}

#flex {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#flex:hover, #imago:hover {
  cursor: pointer;
}

#albumcoverfull img {
  margin: 0 auto;
  max-height: 500px;
  max-width: 30vw;
  object-fit: contain;
}

#imago {
  background-color: rgba(0,0,0,0.5);
  width: 100%;
  height: 100%;
  z-index: 9999;
  position: fixed;
  top: 0;
  left: 0;
  margin: 0;
}

#imago img {
  margin: 0 auto;
  position: relative;
  top: 5vh;
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}



/* Actions */

.actions {
    margin-bottom: 1em;
}


/* Lists */

table {
    border-collapse: collapse;
    vertical-align: top;
}

table.list {
    width: 100%;
}

table.list tr td {
    border: 1px solid #999999;
}

table.list tr th {
    border: 1px solid #0055DD;
    background: #0055DD;
    color: white;
    text-align: left;
}

/* Forms */

dl {
    clear: both;
    overflow: hidden;
    margin: 0.5em 0;
}

dt {
    float: left;
    font-weight: bold;
    width: 125px;
}

dd {
    float: left;
    margin-left: 1em;
}

#operations {
    clear: both;
    margin: 1em 0 1em 75px;
}

/* Errors */

.errors {
    display: inline-block;
    border: 2px solid red;
    color: red;
    padding: 1em;
    margin-bottom: 1em;
}

.errors ul {
    margin-bottom: 0;
    padding-left: 1em;
}

/* Session Messages */

#message {
    color: #0055DD;
    background: white;
    border: 2px solid #0055DD;
    padding: 1em 15px;
    margin: 1em auto;
    width: 80%;
    width: fit-content;
}

#fadebottom {
    z-index: 10;
     height:80px;
     width: 100%;
     background-image: linear-gradient(#0008, #800);
     position: fixed;
     bottom: 18px;
}

footer {
    width: 100%;
    background: #800;
    color: white;
	display: block;
	position: fixed;
	bottom: 0;
	right: 0;
    z-index: 9999;
}

div#cc {
	-moz-transform: scale(-1, 1);
	-webkit-transform: scale(-1, 1);
	-o-transform: scale(-1, 1);
	-ms-transform: scale(-1, 1);
	transform: scale(-1, 1);
	float: left;
}

#foot div {
    display: inline-block;
}

@media only screen and (max-width: 1000px) {
    /* { font-size: 22pt!important; }*/

    #page {
        top: 270px;
    }

    nav ul li {
        margin-right: 5px;
        margin-bottom: 5px;
        display: block;
    }

    hr, #album-form, #track-form, #trackdata, .formdata {
        max-width: 95vw;
    }

    nav ul {
        width: 85vw;
    }

    figure {
        float: none;
        text-align: center;
    }

    #begin {
        clear: both;
    }

    form#advsearch > div, form#advmdbsearch > div {
        float: none;
        overflow: hidden;
        width: 350px;
        width: fit-content;
        margin: 0 auto;
    }

    #adv-submit {
        float: none;
    }

    #albumwrapper {
        width: 90vw;
        text-align: center;
    }

    #albumdetails {
      text-align: left;
      width: 50%;
    }

    #albumdetails, #albumcoverfull {
        float: none;
        margin: 0 auto;
        height: unset;
        max-width: unset;
    }

    #albumcoverfull img {
      max-width: 70vw;
    }

    .tracklist {
        width: auto;
    }

    .time {
        min-width: 40px;
    }

    .sgenre {
        min-width: 80px;
    }

    .tnote {
      min-width: 60px;
      max-width: 200px;
    }

    div.col1, div.col1 *, div.col2, div.col2 * {
        /*font-size: 22pt!important;*/
    }

    #musicresults {
        width: 90%;
    }

    .res-details {
        line-height: unset;
        width: 75vw;
    }

    .result-item {
        overflow: auto;
        width: 90vw;
    }

    .res-track > div, .res-album > div {

    }

    .res-cover img {
        width: 75px;
        object-fit: contain;
        border: solid 1px dimgrey;
    }

}

@media only screen and (max-width: 800px) {
  .res-cover img {
    width: 20vw;
    object-fit: contain;
    border: solid 1px dimgrey;
  }

  .res-details {
      width: 65vw;
      padding: 0;
  }

  .tnote {
    max-width: 100px;
  }

  #huHlist {
    display: none;
  }

  #pcdlist {
    width: 580px;
  }

  .pcdlist {
    display: table;
  }

  #albumdetails {
    width: 70vw;
  }

  #albumcoverfull img {
      width: 90vw;
      object-fit: contain;
  }
}

@media only screen and (max-width: 700px) {
  .tnote {
    display: none;
  }
}

@media only screen and (max-width: 600px) {
  #pcdlist {
    width: unset;
    width: fit-content;
  }

  .pcdlist {
    float: : none;
    clear: both;
  }
}

@media only screen and (max-width: 420px) {
    .res-details > div {
        padding: 0;
    }
}

@media only screen and (max-width: 320px) {
    .result-item {
        width: 100%;
    }
}
