body {
  background-color: #f5f5f5;
}

/* TOP BAR */

#header {
  display: flex;
  justify-items: flex-start;
  flex-wrap: wrap;
}

#episode-listing, #show-listing {
  display: flex;
  justify-items: flex-start;
  flex-wrap: wrap;
}

#episode-listing > label, #show-listing > label {
  margin: auto;
  margin-left: 1rem;
  padding-top: 0.375rem;
}

#episodes-info, #shows-info {
  color: #444444;
  margin: 0.375rem;
  margin-top: 0.625rem;
  padding-top: 0.375rem;
}

#return-button, #show-selector, #show-search, #episode-selector, #episode-search{
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.375rem;
}


/* PAGE */

#root {
  display:flex;
  justify-content: center;
  flex-wrap: wrap;
}

.episode, .show {
  background-color: white;
  color: black; 
  margin: 1rem;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.show {
  padding: 1rem 2rem 2rem 2rem;
  border-radius: 4px;
  max-width: 100vw;
}

.show > h1 {
  cursor: pointer;
}

.show-details {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.image-and-description {
  display:flex;
  justify-content: left;
}

.image-and-description > img {
  align-self: center;
  flex-shrink: 0;
}

.image-and-description > p {
  margin: 0;
  padding-left: 2rem;
  padding-right: 2rem;
}

.show-details > ul { 
  margin: 0;
  border: 1px solid lightgray;
  border-radius: 2px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  padding-top: 0.5rem;
}

.show-details > ul > li {
  list-style: none;
  padding-bottom: 2.5rem;
}

.episode {
  text-align: center;
  border-radius: 1rem;
  max-width: 400px;
}

.episode > h2 {
  
  padding: 1rem 2rem;
  border: 1px solid black;
  border-radius: 1rem;
  margin: 0;
}

.episode > img {
  padding-top: 2rem;
}

.episode > p {
  text-align: left;
  padding: 0 2rem 1rem 2rem;
}

/* FOOTER */

#footer {
  background-color: white;
  border-top: 1px solid black;
  margin-top: 3rem;
}

#footer > p {
  margin-left: 1rem;
}

/* MEDIA QUERIES */

@media screen and (min-width: 400px) {
  .episode {
    width: 400px;
  }
}

@media screen and (max-width: 750px) {
  .image-and-description {
    flex-direction: column;
    justify-content: center;
  }
  .show-details > ul {
    max-width: 70vw;
  }
}

@media screen and (max-width: 1150px) {
  .show-details {
    flex-direction: column;
    justify-content: left;
  }

  .show-details > ul {
    width: 80vw;
    margin-top: 2rem;
  }
}

@media screen and (min-width: 1150px) {
  .show-details > ul {
    width: 250px;
    flex-shrink: 0;
    padding-right: 2.5rem;
  }  
}

@media screen and (max-width: 1500px) {
  .show {
    width: 100%;
  }
}

@media screen and (min-width: 1500px) {
  .show {
    width: 1500px;
  }
}