/* html5player.css, Stand: 05.05.2023 */

body {
    position: relative;
    padding: 10px;
    margin: 0;
    width: 90%;
    /*background-color: blue;*/
}

.list-no-bullets {
    list-style-type: none;
}

#header {
    height: auto;
    background: none !important;
}

.header_logo {
    width: auto;
}

.header_logo img {
    width: 50%;
    height: auto;
}

#navigation {
    float: left;
    width: 14.5em;
}

#content {
    position: relative;
    float: left;
    width: 100%;
    font-size: 0.75em;
}

#mainHead {
    color: #576072;
    font-family: "Times New Roman", Times, serif;
    font-size: 1.5em;
    font-weight: normal;
    letter-spacing: 3px;
    text-transform: uppercase;
}

#mediaSelection, #trackSelection, #trackControls {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

#mediaSelectElement:focus {
    border: 2px solid #1E90FF;
}

#uncompressedPlay, #compressedPlay {
    text-align: right;
    font-size: smaller;
}

#content fieldset {
    padding: 8px;
    width: auto;
}

#content fieldset select {
    width: 100%;
    border: 0;
    outline: 0;
}

#content fieldset option {
    /*background-color: lightBlue;*/
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    text-overflow: ellipsis;
}

input.off {
    /* opacity-Wert getauscht mit input.on */
    opacity: 0.5; /*0.3*/
}

input.on, input.on1 {
    /* opacity-Wert getauscht mit input.off */
    opacity: 1.0;  
}

tr.selected td:nth-of-type(4) input.on {
    /*background-color: lightBlue;*/
    font-weight: bolder;
}

input[type="range"] {
   /* -webkit- (Chrome, Opera, Safari, Edge) to override default look*/
   /* -moz- (Firefox) to override default look */
   -webkit-appearance: none;  /* Überschreibe default CSS Styles */
   -moz-appearance: none;
   appearance: none;
   background: #d3d3d3;
   height: 12px;
   width: 95%;
   outline: none;
   opacity: 1;
   -webkit-transition: .2s; /* 0.2 sec transition on hover */
   transition: opacity .2s; 
}

/* Zum Slider siehe auch https://www.w3schools.com/howto/howto_js_rangeslider.asp */

input[type="range"]:hover {
  opacity: 0.8; /* set transparency (for mouse-over effects on hover) */
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
   /* -webkit- (Chrome, Opera, Safari, Edge) to override default look*/
   /* -moz- (Firefox) to override default look */
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  background: #1E90FF;
  border-radius: 10px;
  cursor: none;
}

#currentVolumeRange::-webkit-slider-thumb, #currentVolumeRange::-moz-range-thumb {
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
   /* -webkit- (Chrome, Opera, Safari, Edge) to override default look*/
   /* -moz- (Firefox) to override default look */
  -moz-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  background: #1E90FF;
  border-radius: 10px;
}

.bubble {
  /* -webkit- (Chrome, Opera, Safari, Edge) */
  /* -moz- (Firefox) */
  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
  transform: translateX(-50%); 
  background: #1E90FF;
  color: white;
  /*padding: 4px 12px;*/
  padding: 1px;
  position: absolute;
  border-radius: 4px;
  /*left: 50%;*/
  z-index: 1;
  /*background: red;*/
}

.bubble:hover {
  cursor: none;
}

/*
.bubble::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 2px;
  background: red;
  top: -1px;
  left: 50%;
}
*/

input[type=button] {
    /*background-color: yellow;*/
    cursor: pointer;
    width: 3.2em; /*2.5em*/
    height: 3.2em; /*2.5em*/
    font-size: 1em;
    text-align: center;
    padding: 0; 
}

#messageImage {
    text-align: center;
    padding-top: 5px;
}

.messageInfo {
    color: green;
}

.messageError {
    color: red;
}

.flex-container-form-undisplayed {
    display: none;
}

.flex-container-form-displayed {
    -ms-box-orient: horizontal;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -moz-flex;
    display: -webkit-flex;
    display: flex;
    overflow: auto;
    flex-direction: column;
    /*background-color: lightgreen;*/
}

.flex-container-row {
    display: flex;
    flex-direction: row;
}

.flex-container-col {
    display: flex;
    flex-direction: column;
}

#flex-item-player {
    order: 1;
    max-width: 50em; 
    /*background-color: burlyWood;*/
}

#flex-item-head {
    order: 1;
    flex: 0;
    margin: 1em;
    /*background-color: cyan;*/
}

#flex-item-trackControls {
    order: 1;
    flex: 2;
    margin: 0 1em 0 1em;
    /*background-color: lightPink;*/
}

#flex-container-trackControls {
    /* Wichtig: Nicht löschen, sonst klappt class="wrap" nicht! */
    /*background-color: lightBlue;*/
}

#flex-container-runningTime {
    flex: 70%;
    /*background-color: orangeRed;*/
}

#flex-container-time {
    display: flex; /* Ist dringend notwendig! */
    /*background-color: yellow;*/
}

#flex-item-track-label {
    flex: 1 0 auto;
    /*background-color: lightBlue;*/
}

#flex-item-timePlayed {
    flex: 1 0 auto;
    text-align: left;
    /*background-color: lightGreen;*/
}

#flex-item-timePlayed-trackDuration-delimiter {}

#flex-item-trackDuration {
    flex: 1 0 auto;
    text-align: right;
    /*background-color: lightBlue;*/
}

#flex-item-totalDuration {
    flex: 4 1 auto;
    margin-left: 1.5em;
    /*background-color: lightPink;*/
}

#flex-container-volumeControls {
    flex: 30%;
    /*background-color: silver;*/
}

#flex-item-volumeControls-left {
    order: 1;
    flex: 0 3em;
    /*background-color: orange;*/
}

#flex-item-volumeControls-right {
    order: 2;
    flex: 2;
    /*background-color: peru;*/
}

#volume-label {
    text-align: center;
}
 
#flex-container-player-top {
    /*background-color: gold;*/
}

#flex-container-player-bottom {
    /*background-color: lightPink;*/
}

#flex-container-buttons {
    flex-wrap: nowrap;
    height: 3.3em; /*2.5em*/
    /*background-color: orange;*/
}

#flex-item-buttonPrevious, #flex-item-buttonPlay, #flex-item-buttonNext, 
#flex-item-buttonLoop, #flex-item-buttonRewind, #flex-item-buttonFastForward,
#flex-item-buttonShuffle {
    height: 100%; /*2.5em*/
    width: 100%; /*2.5em*/
    /*background-color: green;*/
}

#flex-item-buttonPrevious {
    order: 1; 
    margin-right: 1px;
    /*background-color: lightGreen;*/
}

#flex-item-buttonRewind {
    order: 2; 
    margin-right: 1px;
    /*background-color: lightGreen;*/
}

#flex-item-buttonPlay {
    order: 3;
    margin-right: 1px;
    /*background-color: burlyWood;*/
}

#flex-item-buttonFastForward {
    order: 4; 
    margin-right: 1px;
    /*background-color: lightGreen;*/
}

#flex-item-buttonNext {
    order: 5;
    margin-right: 1px;
    /*background-color: lightGreen;*/
}

#flex-item-buttonLoop {
    order: 6;
    margin-right: 1px;
    /*background-color: burlyWood;*/
}

#flex-item-buttonShuffle {
    order: 7;
    margin-right: 1px;
    /*background-color: lightGreen;*/
}

#flex-item-buttonDummy {
    order: 8;
    opacity: 0;
}

#flex-item-mediaSelection {
    order: 2;
    flex: 2;
    margin: 0 1em 0 1em;
    /*background-color: lightGreen;*/
}

#flex-item-tracks {
    order: 3;
    flex: 2;
    margin: 0 1em 0 1em;
    /*background-color: lightBlue;*/
}

table {
    width: 100%;
    border-collapse: collapse;
    border: 10px solid red;
    /*border: 1px solid #ffffff;*/ /* Für IE <= 7; Farbe entspricht Hintergrundfarbe */
    border-style: hidden;
}

tr.selected td {
    color: white;
    background-color: #1E90FF;
    /*
    background-color: #333;
    background-color: #9EADD6;
    */
}

tr td:nth-of-type(1):after {
    content: ".";
}

th, td {
    text-align: left;
    padding-top: 0;
    padding-left: 2px;
    padding-right: 2px;
    /*border: 1px solid #9EADD6;*/
    border-style: hidden;
}

td:nth-of-type(1) {
    padding-left: 5px;
    /*background-color: yellow;*/
}

td:nth-of-type(3) {
    text-align: center;
    padding-left: 10px;
    padding-right: 5px;
    /*background-color: yellow;*/
}

th {
    color:#5A74A9;
    background-color: #f5f5f5;
}

td {
    /*font-size: 16px;*/
    background-color: #fff;
}

thead.fixedHeader {
    width: 100%;
    display: table;
}

tbody.scrollContent {
    display: block;
    overflow: auto;
    width: 100%;
    height: 20.9em; /*20.5em*/
}

.wrap    {
    /* siehe auch https://css-tricks.com/almanac/properties/f/flex-wrap/ */
    /* -webkit- (Chrome, Opera, Safari, Edge) to override default look */
    /* -moz- (Firefox) to override default look */
    -webkit-flex-wrap: wrap;
    -moz-flex-wrap: wrap;
    flex-wrap: wrap;
}

.nowrap  { 
    /* -webkit- (Chrome, Opera, Safari, Edge) to override default look*/
    /* -moz- (Firefox) to override default look */
    -webkit-flex-wrap: nowrap;
    -moz-flex-wrap: nowrap;
    flex-wrap: nowrap;
}

figure {
    margin: 0;
    padding: 0;
}

figcaption {
    font-style: italic;
    font-size: 1em;
    padding: 0;
    margin: 0;
    text-align: left;
    /*
    background-color: grey;
    color: white;
    */
}

#coverImage {
    text-align: center;
    width: 100%;
    margin-bottom: 5px;
    /*background-color: orchid;*/
}

#coverImage img {
   width: 10em; 
   height: auto;
   border-radius: 5%;
   max-width: 40em;
   max-height: 40em;
}

.flex-container-col {
    -ms-box-orient: horizontal;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -moz-flex;
    display: -webkit-flex;
    display: flex;
    flex-direction: column;
    /*background-color: pink;*/
}

#grid-container-content1 {
    display: inline-grid;
    grid-gap: 0;
    /*
    grid-template-rows: auto auto auto;
    grid-template-columns: minmax(min-content, 50em);
    */
    grid-template-areas:
        "cover"
        "message"
        "form"
        "footer"
    ;
    border: 2px solid #1E90FF;
    border-top-left-radius: 10px;
    -moz-border-radius-topleft: 10px;
    -webkit-border-top-left-radius: 10px;
    
    border-top-right-radius: 10px;
    -moz-border-radius-topright: 10px;
    -webkit-border-top-right-radius: 10px;
    
    border-bottom-left-radius: 10px;
    -moz-border-radius-bottomleft: 10px;
    -webkit-border-bottom-left-radius: 10px;
    
    border-bottom-right-radius: 10px;
    -moz-border-radius-bottomright: 10px;
    -webkit-border-bottom-right-radius: 10px;
    /*
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    border-radius: 10px;
    */
    margin-bottom: 10px;
    background-color: #f5f5f5;
    /*background-color: orange;*/
}

#cover {
    grid-area: cover;
    word-wrap: break-word;
    overflow: auto;      
    margin: 10px 10px 0 10px;  
    /*background-color: lightgreen;*/
}

#message {
    grid-area: message;
    margin: 10px 10px 0 10px;
    /*background-color: cyan;*/
}

#form {
    grid-area: form;   
    /*background-color: #f5f5f5;*/
    /*background-color: lime;*/
}

#footer {
    grid-area: footer; 
    font-size: 8pt;
    border: 0;
    padding: 0;
    margin: 0 10px 5px 10px;
    color: #919191;
    /*background-color: yellow;*/
}

#grid-container-content2 {
    display: inline-grid;
    grid-gap: 0;
    grid-template-areas:
        "actions"
        "permalink"
        "info"
    ;
    margin-bottom: 10px;
    max-width: 50em;
    /*background-color: lime;*/
}

#actions {
    grid-area: actions;
    padding-right: 20px;
    /*background-color: silver;*/
}

#permalink {
    grid-area: permalink;
    word-wrap: break-word;
    overflow: hidden; 
    padding-right: 20px;
    /*background-color: mediumAquaMarine;*/
}

#info {
    grid-area: info;
    padding-right: 20px;
    margin-bottom: 0;
    /*background-color: tomato;*/
}
  
@media screen and (min-width: 800px) {

    .flex-container-form-displayed {
        flex-direction: row;
    }
    
    #flex-container-player-top {
        /*background-color: khaki;*/
    }
    
    #cover {
        min-width: 15em;
        max-width: 45em;
        max-height: 45em;
        margin: 10px 10px 0 0;  
        /*background-color: lightSteelBlue;*/
    }
    
    #coverImage img {
        /* Die Bilder passen sich den Größen ihrer Boxen an, 
        wenn das Layout kleiner oder größer aufgezogen wird */
        width: 100%;
        height: auto;
    }
    
    .header_logo img {
        width: 80%;
        height: auto;
    }
    
     #grid-container-content1 {
        /*display: inline-grid;
        grid-template-rows: auto auto auto auto;
        grid-template-rows: auto auto;
        grid-template-columns:minmax(min-content, 50em) 1fr;*/
        grid-template-columns:minmax(min-content, 50em) 1fr;
        grid-template-areas:
            "message cover"
            "form cover"
            "footer footer"
        ;  
    }
    
    #grid-container-content2 {
        grid-template-areas:
            "permalink actions"
            "info actions"
        ;
        max-width: 90em;
        /*background-color: yellow;*/
    }
}

/* große Viewports */
@media all and (min-width: 40em) {
    #content {
        margin-left: 3.5em;
    }
}
