:root {
  --background-color : #322537;
  --footer-background-color : #2d2d2d;
  --header-background-color : #2d2d2d;

  --banner-background-color : #391c54;

  --default-text-color : #3e3e3e;

  --button-color: #d740a7;
  --button-hover-color: #733ba7;

  --icon-bar-background-color : #ffc748;

  /* links  */
  --link-panel-color : #e6c971;
  --link-panel-hover-color : #fbdc7d;

  /* errors  */
  --error-message-color : rgb(199, 96, 96);

  /* spinner  */
  --spinner-color : #c2c2c2;

  --disabled-color : #bebebe;

  /* episode page colors  */
  --description-background-color : #ffc748;
  --notes-background-color: #e5d2be;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

html, body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 14px;
  /* line-height: 40px; */
}

img {
  width: 100%;
  height: 100%;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 20vh;
  /* height: 10vh; */
  /* background-repeat: no-repeat;
  background: url('/static/banner_graphic.jpg'); */
}

header .nav {
  position: relative;
  width: 100%;
  padding: 6px;
  /* display: flex;
  flex-direction: row; */
  background-color: var(--header-background-color);
  color: #fff;
}

header .nav .title h1 {
  text-align: center;
}

header .nav .signout {
  cursor: pointer;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  right: 10px;
}

.home-icon-container {
  width: 40px;
  position: absolute;
  top: 0;
}

.home-icon-container,
.sign-out-icon {
  padding: 6px;
}

.home-icon-container svg,
.sign-out-icon svg{
  width: 20px;
  height: 30px;
  fill: #fff;
}

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

header .banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 160px;
  width: 100%;
  background: var(--banner-background-color);
}

header img {
  width: 485px;
  height: 160px;
}

.btn {
  border-radius: 6px;
  border: None;
  padding: 8px;
  background: var(--button-color);
  color: #fff;
  cursor: pointer;
  transition: background 1s ease-in-out;
}

.btn:hover {
  background: var(--button-hover-color);
  transition: background 1s ease-in-out;
}

.btn-group {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

a.btn {
  display: block;
  margin: 10px;
  text-decoration: none;
}

.hidden {
  display: none;
}

/* LINKS  */
.podcast-panel a.link-panel,
a.link-panel {
  display: block;
  text-decoration: none;
  color: var(--link-panel-color);
  margin: 6px 0;
}

.podcast-panel a.link-panel:hover,
a.link-panel:hover {
  color: var(--link-panel-hover-color);
}

.update-icon-container {
  width: 60px;
  height: 80px;
  margin: 10px;
}

.update-icon-container svg {
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.update-icon-link{
  fill: var(--button-color);
  transition: fill .5s ease-in-out;
}

.update-icon-link:hover{
  fill: var(--button-hover-color);
  transition: fill .5s ease-in-out;
}



/* MAIN BODY  */

.content {
  height: 100%;
  min-height: 67vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: lavenderblush;
}

.content.home {
  text-align: center;
}

.content h1,
.content h2,
.content p {
  margin: 6px;
}

/* .panel {
  min-width: 600px;
} */

/* SIGN IN SCREEN  */
.welcome-panel {
  background: rgb(2,0,36);
  background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(57,28,84,1) 100%);
  margin: 20px 60px;
  color: #fff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  max-width: 700px;
}

/* PODCAST DISPLAY AREA  */
.podcast-panel {
  background: rgb(2,0,36);
  background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(57,28,84,1) 100%);
  color: #fff;
  margin: 20px 60px;
  padding: 10px;
  border-radius: 10px;
  min-width: 800px;
}

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

.podcast-item {
  display: flex;
  flex-direction: row;
}

.podcast-item div {
  margin: 6px 6px;
}

.no-podcasts-image-container {
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.no-podcasts-image-container img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.top-icon-bar {
  display: flex;
  flex-direction: row;
  background: var(--icon-bar-background-color);
  border-radius: 10px;
}

/* EPISODES  */

.episode-item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

/* NOTES SCREEN  */

.note-item {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin: 6px;
}

.note-item  div{
  text-align: left;
  height: 40px;
  margin: 6px;
}

.note-item div:nth-child(1) {
  width: 25%;
  overflow-y: hidden;
}

.note-item div:nth-child(2) {
  width: 10%;
}

.note-item div:nth-child(3) {
  width: 10%;
}

.note-item a {
  width: 5%;
}

.note-item div:nth-child(5) {
  width: 50%;
}

.eye-icon {
  cursor: pointer;
  overflow: visible !important;
}

.eye-icon svg {
  width: 40px;
  height: 30px;
  fill: #fff;
}


/* EPISODE SCREEN  */

.episode-detail-panel {
  background: rgb(2,0,36);
  background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(57,28,84,1) 100%);
  margin: 20px 60px;
  color: #fff;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
}


.episode-detail-panel h1,
.episode-detail-panel h2,
.episode-detail-panel div {
  margin: 10px 0;
}

.episode-detail-panel div {
  text-align: left;
}

.episode-title-and-image {
  display: flex;
  flex-direction: row;
}

.episode-detail-image {
  width: 200px;
  height: 200px;
  margin: 10px;
}

.episode-title-and-image .name-and-date {
  padding: 20px;
  width: 70%;
}


.description-area-container {
  border-radius: 10px;
  background: var(--description-background-color);
}

.description-area {
  max-height: 200px;
  width: 600px;
  overflow-y: scroll;
  padding: 10px;
  background: var(--description-background-color);
  color: var(--default-text-color);
}

/* .note-taking-area {
  width: 800px;
} */


.notes-and-listened-to {
  display: flex;
  flex-direction: row;
  width: 800px;
}

.notes-options {
  display: flex;
  flex-direction: column;
  width: 50%;
  align-items: flex-start;
  padding: 10px;
}

.note-area {
  width: 400px;
  background-color: var(--notes-background-color);
  border-radius: 10px;
}

.check-box-area {
  width: 30%;
}

/* .notes-container {
  background-color: var(--notes-background-color);
} */

#notes {
  resize: none;
  width: 400px;
  height: 250px;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  border-radius: 10px;
  padding: 10px;
  background: var(--notes-background-color);
}

/* PAGINATOR  */

.paginator {
  width: 200px;
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 10px auto;
  justify-content: space-between;
}

.paginator .forward,
.paginator .back {
  font-size: 20px;
}

.paginator .forward.disabled,
.paginator .back.disabled {
  font-size: 20px;
  color : var(--disabled-color);
}




/* END OF THE PAGE AND FOOTER  */

/* .before-footer {
  height: 400px;
  background: url('/static/autistic_meditation.png') no-repeat center;
  background-size: contain;
} */

footer {
  height: 12vh;
  background-color: var(--footer-background-color);
  color: #fff;
  text-align: center;
}

footer .social-media {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  padding: 20px 0;
}

footer .social-media a {
  width: 40px;
  height: 40px;
}

footer .social-media a img {
  width: 100%;
  height: 100%;
}

 /* SEARCH  */

 .search-area {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin: 8px 0;
 }

 .search-area .search-icon-container {
  width: 30px;
  height: 20px;
 }

 .search-area .search-icon-container svg {
  width: 100%;
  height: 100%;
 }

 .search-area input {
  padding: 4px;
  height: 36px;
  border-radius: 10px;
  margin: 0 6px;
 }

/* MODAL DIALOG STYLE  */

.update-backdrop,
.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  z-index: 2000;
}

.modal {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  position: fixed;
  top: 30%;
  left: 18.5%;
  width: 60%;
  max-height: 90vh;
  background: white;
  border-radius: 5px;
  z-index: 3000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.modal.hidden {
  display: none;
}

.modal .header {
  margin: 20px;
}

.modal .body {
  margin: 10px;
  text-align: center;
}

.modal .btn-group .btn {
  min-width: 60px;
  margin: 10px;
}

/* COMPONENTS  */

/* spinner  */

.spin-container.hidden {
  display: none;
}

.spin-container {
  position: absolute;
  top: 300px;
  display: flex;
  flex-direction: row;
  background: #fff;
  border-radius: 10px;
  width: 300px;
  height: 100px;
  justify-content: space-around;
  align-items: center;
  z-index: 3000;
}

.lds-dual-ring {
  display: inline-block;
  width: 60px;
  height: 60px;
}

.lds-dual-ring::after {
  content: " ";
  display: block;
  width: 40px;
  height: 40px;
  margin: 8px;
  border-radius: 50%;
  border: 12px solid #fff;
  border-color: var(--spinner-color) transparent var(--spinner-color) transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}

@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}



/* .lds-dual-ring.hidden {
  display: none;
} */

/* MEDIA QUERIES  */

@media (max-width: 900px) {
  .episode-detail-panel {
    margin: 0;
    border-radius: 0;
  }

  .description-area {
    width: 100%;
  }

  .notes-and-listened-to {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
  }

  /* .note-taking-area {
    display: flex;
  } */

  .button-bar {
    display: flex;
    width: 100%;
  }

  .note-taking-area h2 {
    text-align: center;
  }

  .note-taking-area .btn {
    margin: auto;
  }
  /* .note-taking-area {
    width: 500px;
  }

  .note-area {
    width: 500px;
  } */

  /* .notes-options {
    width: 30%;
  } */


  .note-item div:nth-child(1) {
    width: 30%;
    overflow-y: hidden;
  }

  .note-item div:nth-child(2) {
    display: none;
  }

  .note-item div:nth-child(4) {
    display: none;
  }

  .note-item div:nth-child(5) {
    width: 50%;
  }

  .eye-icon {
    display: none;
  }
}

@media (max-width: 850px) {
  .content {
    display: block;
  }

  .description-area {
    width: 99%;
    border-radius: 10px;
}

  .home-icon-container {
    display: none;
  }

  header .nav {
    display: flex;
    flex-direction: column;
  }

  header .nav .signout {
    position: relative;
  }

  header img {
    width: 100%;
  }

  .name-and-date h1 {
    padding-top: 0;
    margin-top: 0;
  }

  .top-icon-bar {
    border-radius: 0;
    align-items: center;
    justify-content: center;
  }

  .podcast-panel {
    min-width: auto;
  }

  .episode-detail-panel {
    display: block;
  }

  .episode-item div:first-child {
    width: 70%;
    text-align: left;
  }

  .spin-container {
    width: 60%;
    left: 20%;
  }
}

@media (max-width: 750px) {

  .note-item div:nth-child(1) {
    width: 50%;
  }

  .note-item div:nth-child(5) {
    display: none;
  }
}

@media (max-width: 700px) {
  .notes-and-listened-to {
    width: 100%;
  }

  .note-area {
    width: 100%;
  }

  #notes {
    width: 100%;
  }

  .episode-title-and-image {
    flex-direction: column;
  }

  .episode-detail-image {
    display: none;
  }
}


@media (max-width: 500px) {
  /* .note-area {
    width: auto;
  } */

  .check-box-area {
    width: auto;
  } 


  /* #notes {
    width: auto;
    height: auto;
  } */

  .notes-options {
    width: auto;
  }

  .podcast-panel {
    margin: 20px 10px;
  }

  footer {
    height: auto;
    padding-bottom: 10px;
  }

  .spin-container {
    width: 80%;
    left: 10%;
  }
}