/* Videos Cards */

.videos-box {
  margin: 20px;
}

/* Math */

.alt-card:nth-child(odd) .ma-ic {
  background-color: rgba(168,53,67,0.8);
  margin: 1px;
  color: white;
}

.alt-card:nth-child(even) .ma-ic {
  margin: 1px;
  background-color: rgba(255,255,255,0.8);
  border: solid 2px rgba(168,53,67);
}

/* A.Math */

.alt-card:nth-child(odd) .am-ic {
  background-color: rgba(249,65,68, 0.8);
  margin: 1px;
  color: white;
}

.alt-card:nth-child(even) .am-ic {
  margin: 1px;
  background-color: rgba(255,255,255,0.8);
  border: solid 2px rgba(249,65,68);
}

/* E.Math */

.alt-card:nth-child(odd) .em-ic {
  background-color: rgba(245,130,35,0.8);
  margin: 1px;
  color: white;
}

.alt-card:nth-child(even) .em-ic {
  margin: 1px;
  background-color: rgba(255,255,255,0.8);
  border: solid 2px rgba(245,130,35);
}

/* Science */

.alt-card:nth-child(odd) .sc-ic {
  background-color: rgba(149,38,143,0.8);
  margin: 1px;
  color: white;
}

.alt-card:nth-child(even) .sc-ic {
  margin: 1px;
  background-color: rgba(255,255,255,0.8);
  border: solid 2px rgba(149,38,143);
}

/* Combine Science */

.alt-card:nth-child(odd) .cs-ic {
  background-color: rgba(154,209,212,0.8);
  margin: 1px;
  color: white;
}

.alt-card:nth-child(even) .cs-ic {
  margin: 1px;
  background-color: rgba(255,255,255,0.8);
  border: solid 2px rgba(154,209,212);
}

/* Physics */

.alt-card:nth-child(odd) .ph-ic {
  background-color: rgba(118,120,237,0.8);
  margin: 1px;
  color: white;
}

.alt-card:nth-child(even) .ph-ic {
  margin: 1px;
  background-color: rgba(255,255,255,0.8);
  border: solid 2px rgba(118,120,237);
}

/* Biology */

.alt-card:nth-child(odd) .bi-ic {
  background-color: rgb(213,181,16,0.8);
  margin: 1px;
  color: white;
}

.alt-card:nth-child(even) .bi-ic {
  margin: 1px;
  background-color: rgba(255,255,255,0.8);
  border: solid 2px rgb(213,181,16);
}

/* Chemistry */

.alt-card:nth-child(odd) .ch-ic {
  background-color: rgba(56,131,158,0.8);
  margin: 1px;
  color: white;
}

.alt-card:nth-child(even) .ch-ic {
  margin: 1px;
  background-color: rgba(255,255,255,0.8);
  border: solid 2px rgba(56,131,158);
}

/* Chinese */

.alt-card:nth-child(odd) .cl-ic {
  background-color: rgba(211,92,154,0.8);
  margin: 1px;
  color: white;
}

.alt-card:nth-child(even) .cl-ic {
  margin: 1px;
  background-color: rgba(255,255,255,0.8);
  border: solid 2px rgba(211,92,154);
}

/* Higher Chinese */

.alt-card:nth-child(odd) .hc-ic {
  background-color: rgba(215,137,136,0.8);
  margin: 1px;
  color: white;
}

.alt-card:nth-child(even) .hc-ic {
  margin: 1px;
  background-color: rgba(255,255,255,0.8);
  border: solid 2px rgba(215,137,136);
}

/* Chinese Enrichment */

.alt-card:nth-child(odd) .ce-ic {
  background-color: rgba(175,148,188,0.8);
  margin: 1px;
  color: white;
}

.alt-card:nth-child(even) .ce-ic {
  margin: 1px;
  background-color: rgba(255,255,255,0.8);
  border: solid 2px rgba(175,148,188);
}

/* English */

.alt-card:nth-child(odd) .el-ic {
  background-color: rgba(53,162,165,0.8);
  margin: 1px;
  color: white;
}

.alt-card:nth-child(even) .el-ic {
  margin: 1px;
  background-color: rgba(255,255,255,0.8);
  border: solid 2px rgba(53,162,165);
}

/* General Paper */

.alt-card:nth-child(odd) .gp-ic {
  background-color: rgba(115,171,148,0.8);
  margin: 1px;
  color: white;
}

.alt-card:nth-child(even) .gp-ic {
  margin: 1px;
  background-color: rgba(255,255,255,0.8);
  border: solid 2px rgba(115,171,148);
}

/* Social Studies */

.alt-card:nth-child(odd) .ss-ic {
  background-color: rgba(122,169,96,0.8);
  margin: 1px;
  color: white;
}

.alt-card:nth-child(even) .ss-ic {
  margin: 1px;
  background-color: rgba(255,255,255,0.8);
  border: solid 2px rgba(122,169,96);
}

/* Econs */

.alt-card:nth-child(odd) .ec-ic {
  background-color: rgba(221,210,5,0.8);
  margin: 1px;
  color: white;
}

.alt-card:nth-child(even) .ec-ic {
  margin: 1px;
  background-color: rgba(255,255,255,0.8);
  border: solid 2px rgba(176,167,7);
}

.ic-video-card {
  height: 12em!important;
  border-radius: 8px;
}

.ic-video-card:hover {
  box-shadow: 0 4px 6px rgba(0,0,0,0.36);
  transform: scale(1.05);
}

.ic-video-card:hover .card-image {
  opacity: 0.3;
}

.ic-video-card-play {
  color: white;
  font-size: 1em;
}

.card-text.book-title.videotitle {
  font-size: 1em;
  font-weight: 550;
}

/* Card Footers */

.card-footer-ma {
  background-color: rgb(168,53,67);
  text-align: center;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
  padding: 5px 0px 5px 0px;
}

.card-footer-am {
  background-color: rgba(249,65,68);
  text-align: center;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}

.card-footer-em {
  background-color: rgba(245,130,35);
  text-align: center;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}

.card-footer-sc {
  background-color: rgba(149,38,143);
  text-align: center;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}

.card-footer-cs {
  background-color: rgba(154,209,212);
  text-align: center;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}

.card-footer-ph {
  background-color: rgba(118,120,237);
  text-align: center;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}

.card-footer-bi {
  background-color: rgb(213,181,16);
  text-align: center;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}

.card-footer-ch {
  background-color: rgba(56,131,158);
  text-align: center;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}

.card-footer-cl {
  background-color: rgba(211,92,154);
  text-align: center;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}

.card-footer-hc {
  background-color: rgba(215,137,136);
  text-align: center;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}

.card-footer-ce {
  background-color: rgba(175,148,188);
  text-align: center;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}

.card-footer-el {
  background-color: rgba(53,162,165);
  text-align: center;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}

.card-footer-gp {
  background-color: rgba(115,171,148);
  text-align: center;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}

.card-footer-ss {
  background-color: rgba(122,169,96);
  text-align: center;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}

.card-footer-ec {
  background-color: rgba(176,167,7);
  text-align: center;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}

/* Image Overlay */

.card {
  position: relative;
  /*overflow: hidden;*/
  overflow: visible;
}

.card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.7;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body, .card-footer-ma {
  position: relative;
  z-index: 1;
}

