/* VARIABLE DEFINITIONS */
:root {
  --SleepApp-Color1: #9bd6c6;
  --SleepApp-Color2: #f17a39;
  --SleepApp-Color3: #d7bf47;

  --defaultColor: #9bd6c6;
  --highlightBlue: #66d7b4;
  --fav-color: #ecc6cb; /*light pink*/
  --navButtonColor: var(--highlightBlue);

  --buffered-width: 10;
}

html, body {
  width: 100%;
  height: 100%;
  margin: 0;

  /*font-family: "Times New Roman", serif;*/
  /*font-family: "Arial", serif;*/
}

.sleepApp-PageHeader{
  display: flex;
  flex-direction: column;
  margin-bottom: 1em;
  align-items: center;
}
h1.page-title {
  text-align: center;
  margin-bottom: .5em;
  padding: 0.2em;
  display: flex;
  flex-direction: column;
}
.h2-ThemeTitle {
  text-align: left;
  width: 100%;
}
.main-title {
  text-align: center;
  margin-top: 2em;
  margin-bottom: .5em;
}

.img-container {
  width: auto;

  border-radius: 10px;
  border-style: none;
  border-color: gray;
  border-width: 2px;
  padding: 2px;
}
.img {
  object-fit: contain;
  width: auto;
}
.page-container {
  display: flex;
  flex-direction: column;
  padding: .5em;
  align-items: center;
}
.page-top-row{
  display: flex;
  padding-bottom: 4px;
  justify-content: space-between;

  width: 100%;
  max-width: 600px; /*Avoid having it too far from the content*/
}

.page-content {
  display: flex;
  flex-direction: column;
  align-items: center;

  width: 80%;
  max-width: 560px;
  margin: 0 4em 0 4em;
}

.sleepApp-navigation-btn {
  font-size: 18px;
  color: var(--navButtonColor);
  background-color: transparent;
  border-style: none;
  border-radius: 10px;
  border-color: gray;
  padding: 6px;
}
.sleepApp-navigation-btn:hover{
  cursor: pointer;
  border-style: solid;
  padding: 4px;
}
.sleepApp-next-button-row{
  align-self: end;
}

a.link_button_Style1 {
  font: normal 18px Arial;
  text-decoration: none;
  color: #333333;
  text-align: center;
  text-overflow: clip;
  overflow: hidden;

  border-radius: 20px;
  border-style: solid;
  border-color: gray;
  border-width: 2px;
  padding: .8em 3em .8em 3em;

  margin: .5em;
  box-sizing: border-box;
  cursor: pointer;
  width: 80%;
  min-width: 310px;
}

a.link_button_Style3{
  font: normal 16px Arial;
  text-decoration: none;
  color: black;

  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: center;
  text-overflow: clip;
  overflow: hidden;

  border-radius: 20px;
  border-style: none;
  border-color: gray;
  border-width: 2px;
  padding: .8em 3em .8em 3em;

  margin: 4px;
  box-sizing: border-box;
  cursor: pointer;
  width: 60%;
  min-width: 310px;
  min-height: 75px;
  height: 75px;
}
.link_button_Style3:hover {
  /*font-size: 16px;*/
  border-style: solid;
}
.page-content >.small-vertical-spacing{
  margin-top: .5em !important;
}
.page-content >.medium-vertical-spacing{
  margin-top: 2em !important;
}
.page-content >.large-vertical-spacing{
  margin-top: 4em !important;
}
.page-content >.sleepApp-button-top-spacing{
  /*margin-top: 2em !important;*/
  margin-top: 2em;
}
.sleepApp-ButtonColor1{
  background-color: var(--SleepApp-Color1);
}
.sleepApp-ButtonColor2{
  background-color: var(--SleepApp-Color2);
}
.sleepApp-ButtonColor3{
  background-color: var(--SleepApp-Color3);
}
.sleepApp-ButtonColor4{
  background-color: var(--fav-color);
}

.sleepApp-playbutton_row{
  justify-content: start;

  font-size: 1.3rem;
  display: flex;
  flex-direction: row;
  width: 100%;
}
.sleepApp-playbutton_label{
  align-items: center;
  display: flex;
  margin-left: .5em;
  cursor: pointer;
}
.sleepApp-playButton{
  border-style: solid;
  border-radius: 90px;
  font-size: 1.8em;
  padding-left: .4em;
  width: 1.8em;
  height: 1.8em;
}
.sleepApp-playButton:hover{
  padding: 6px 6px 6px .4em;
  border-color: var(--defaultColor);
}
.sleepApp-label{
  margin-bottom: .5em;
  font-size: 1.3em;
  font-weight: bold;
  width: 100%;
}
.summary-section{
  display: flex;
  flex-direction: column;
  width: 100%;
}
.summary_text{
  border-style: none;
  color: black;
  margin: 1% 0 5% 0;
  min-height: 12em;
  overflow: auto;
  text-align: justify;
}

.app_store_button_row{
  display: flex;
  flex-wrap: wrap;
}

.small-resource-button{
  border-style: none;
  border-radius: 10px;
  padding: 10px 14px 10px 14px;
  cursor: pointer;
  margin: 2px .5em 0 .5em;
}
.sleepApp-flex-button-row{
  display:flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.sleepApp-generic-button{
  /*font-size: 1.8em;*/

  border-style: solid;
  border-radius: 20px;
  border-color: gray;
  border-width: 2px;
  padding: .8em 3em .8em 3em;

  /*cursor: pointer;*/
}

/*----------------------------*/
.favorite-row{
  width: 100%;
  margin-top: 4%;
  text-align: center;
}
.favoris-icon{
  margin-left: 4%;
  transition: .5s;
  cursor: pointer;
}
.favoris-icon[selected]{
  cursor: pointer;
  font-weight: bold;
  color: var(--fav-color);
}

a.fav-link-item{
  text-decoration: none;
}
/* unvisited link */
a.fav-link-item:link{
  color: black;
}
a.fav-link-item:visited{
  color: black;
}
a.fav-link-item:hover {
  text-decoration: underline;
}

/*-------------------*/

ul > li {
  margin-bottom: .5em;
}
ul.level1 > li {
  font-weight: bold;
}
ul.dashed {
  margin: .8em 0 .8em 0;
  list-style-type: '- ';
  font-weight: normal;
}
ul.dashed > li {
  /*text-indent: 2px;*/
  margin: .4em 0 .4em 0;
}
ul.no-marker {
  list-style-type: '  ';
  font-weight: normal;
}
.btn-small{
  border-color: var(--SleepApp-Color2);
  border-style: dotted;
  display:flex;
}
/*-------------------*/
.audio-section{
  font-size: 1.5em;
  display: flex;
  flex-direction: column;
}
.audio-section img{
  display: none;
}
.audio-player-container{
  justify-content: center;
  align-self: center;
  display: flex;
  flex-direction: column;
}
.track-controls-container{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: baseline;
  width: 100%;
}
.audio-player-container button{
  border-style: none;
  border-radius: 60px;
  border-width: 1px;
  width: 60px;
  height: 60px;
  margin: 0 .5em 0 .5em;
  background-color: transparent;
  color: #7bd1c6;
  border-color: black;
}
.audio-player-container button.audioPlayer-playBtn{
  border-style: solid;
  border-radius: 60px;
  width: 70px;
  height: 70px;
}
.audio-player-container button:disabled{
  color: lightgray;
}
.audio-player-container button:hover:enabled{
  border-style: solid;
}
.audio-player-container input[type="range"]{
  margin-left: 1em;
  margin-right: 1em;
}
.audioTime-container{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: baseline;
  width: 100%;
  margin-top: .5em;
}
.audioTime-container .time{
  min-width: 5ch;
  text-align: right;
}
/*-------------------*/

@media only screen and (max-height: 900px) {
  /* For mobile phones: */
  h1.page-title {
    margin-top: 0;
    font-size: 1.6em;
  }
  .page-content {
    width: 90%;
    margin: 0 1em 0 1em;
  }
  a.link_button_Style3{
    min-height: 4em;
    height: 4em;
    font-size: 14px;
  }
  .audio-player-container button.audioPlayer-previous:hover:enabled, button.audioPlayer-next:hover:enabled {
    border-style: none;
  }
}
