/* For mobile */
[class = sermons-table] {width: 100%;}
[class = year] {width: 100%;}
[class = sermons-topic] {min-width: 100%;}
[class = player-pdf] {width: 100%;}
[class = player] {width: 100%;}
[class = video] {width: 100%;}
[class = video-pdf] {width: 100%;}

/* For desktop */
@media  only screen and (min-width: 768px) {
  .sermons-table {width: 80%;}
  .year {width: 80%;}
  .sermons-topic {min-width: 78%;}
  .player, .video {width: 70%;}
  .player-pdf, .video-pdf {width: 50%;}
  .download {width: 25%;}
  .pdf {width: 15%;}
}

.year {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.year button {
  justify-content: flex-start;
  color: #FFFFFF;
  background-color: #303841;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 14px;
  margin: 0px -2px;
  transition: 0.3s;
  flex: 1;
}

.year button:hover {
  background-color: #3E5059;
}

.year button.active {
  color: #F2910A;
  border: 1px solid #3E5059;
}

.sermons {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.sermons-table {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.sermons-table-header {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-weight: bold;
  padding: 10px 0px;
}

.sermons-table-row {
  display: flex;
  align-items: center;
  border-top: 1px solid;
  padding: 10px 0px;
}

.sermons-table-row:hover {
  color: #fff;
  background-color: #3E5059;
  border: none;
  cursor: pointer;
}

.sermons-table-row.active {
  color: #F2910A;
  background-color: #303841;
  border: none;
  cursor: pointer;
}

.sermons-metadata {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex: 99;
}

.sermons-date {
  display: flex;
  flex: 3;
}

.sermons-preacher {
  display: flex;
  justify-content: center;
  margin: 0px 10px;
  flex: 2;
}

.sermons-topic {
  display: flex;
  flex-wrap: wrap;
  flex: 20;
}

.icon-wrapper {
  display: flex;
  justify-content: flex-end;
  flex: 1;
}

.icon {
  display: flex;
  align-items: center;
  min-width: 20px;
}

.play {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-height: 0;
  overflow: hidden;
  /*transition: max-height 0.2s linear;*/
  /*transition: margin 0.2s linear;*/
}

.video, .download, .pdf {
  display: block;
  margin-top: 10px;
}

.video button, .download button, .pdf button {
  display: block;
  width: 100%;
  min-height: 35px;
  border: 2px solid #303841;
  outline: none;
  cursor: pointer;
  transition: 0.3s;
  color: #303841;
  background-color: #fff;
}

.video button:hover, .download button:hover, .pdf button:hover {
  color: #fff;
  background-color: #3E5059;
  border: 2px solid #3E5059;
}

/* Audio player */
.player, .player-pdf {
  display: block;
  margin-top: 10px;
}

.controls {
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #3E5059;
  background-color: #fff;
  border: 2px solid #3E5059;
}

.controls button {
  display: block;
  width: 25px;
  color: #3E5059;
  background-color: #fff;
  border: 1px solid #fff;
  outline: none;
  cursor: pointer;
  margin-left: 5px;
  transition: 0.3s;
  flex: 0;
}

.time {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  flex: 0;
}

.currentTime, .duration {
  display: block;
  width: 40px;
  margin-left: 5px;
  margin-right: 5px;
}

.slider-wrapper {
  display: flex;
  margin-right: 10px;
  margin-left: 10px;
  flex: 1;
}

.slider {
  -webkit-appearance: none;
  height: 5px;
  border-radius: 5px;  
  background: #d3d3d3;
  outline: none;
  -webkit-transition: .2s;
  transition: opacity .2s;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%; 
  background: #3E5059;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #3E5059;
  cursor: pointer;
}