.align-right {
  text-align: right;
}

.thumbs {
  width: 80px;
}

.ratio-container {
  position: relative;
  width: 95%;
  padding-top: 20px;
  margin: auto;
  align: center;
}
.video-frame {
  position:  absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

/* Styles the lightbox, removes it from sight and adds the fade-in transition */
.lightbox-target {
  position: fixed;
  top: -100%;
  width: 100%;
  background: rgba(0,0,0,.7);
  width: 100%;
  opacity: 0;
  -webkit-transition: opacity .5s ease-in-out;
  -moz-transition: opacity .5s ease-in-out;
  -o-transition: opacity .5s ease-in-out;
  transition: opacity .5s ease-in-out;
  overflow: hidden;
  z-index: 1;
}

/* Styles the lightbox image, centers it vertically and horizontally, adds the zoom-in transition and makes it responsive using a combination of margin and absolute positioning */

.lightbox-target img {
  margin: auto;
  position: absolute;
  top: 0;
  left:0;
  right:0;
  bottom: 0;
  max-height: 0%;
  max-width: 0%;
  border: 3px solid white;
  box-shadow: 0px 0px 8px rgba(0,0,0,.3);
  box-sizing: border-box;
  -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  -o-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
}

/* Styles the close link, adds the slide down transition */

a.lightbox-close {
  display: block;
  width:80px;
  height:80px;
  box-sizing: border-box;
  background: white;
  color: black;
  text-decoration: none;
  position: absolute;
  top: -80px;
  right: 0;
  -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  -o-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
}

/* Provides part of the "X" to eliminate an image from the close link */

a.lightbox-close:before {
  content: "";
  display: block;
  height: 50px;
  width: 1px;
  background: black;
  position: absolute;
  left: 40px;
  top:16px;
  -webkit-transform:rotate(45deg);
  -moz-transform:rotate(45deg);
  -o-transform:rotate(45deg);
  transform:rotate(45deg);
}

/* Provides part of the "X" to eliminate an image from the close link */

a.lightbox-close:after {
  content: "";
  display: block;
  height: 50px;
  width: 1px;
  background: black;
  position: absolute;
  left: 40px;
  top:16px;
  -webkit-transform:rotate(-45deg);
  -moz-transform:rotate(-45deg);
  -o-transform:rotate(-45deg);
  transform:rotate(-45deg);
}

/* Uses the :target pseudo-class to perform the animations upon clicking the .lightbox-target anchor */

.lightbox-target:target {
  opacity: 1;
  top: 0;
  bottom: 0;
}

.lightbox-target:target img {
  max-height: 100%;
  max-width: 100%;
}

.lightbox-target:target a.lightbox-close {
  top: 0px;
}

/* Font */
.simhei {
  font-family: 'SimHei';
}

.kaiti {
  font-family: 'KaiTi'; 
}

.simsun {
  font-family: 'SimSun'; 
}

/* Uploader */
#upload-image-input {
  display: none;
}
#upload-video-input {
  display: none;
}

/* Others */
.bottom-buttons {
  margin-top: 1em;
  text-align: center;
}

.hspace{
  margin: 1em;
}


hr {
  border: 0;
  height: 1px;
  background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(120, 120, 120, 0.25), rgba(0, 0, 0, 0));
}

.top-h1 {
  margin-top: 0.6em;
  margin-bottom: 0.4em;
  text-align: center;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
  .container {
    max-width: 95%;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
  .container {
    max-width: 90%;
  }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
  .container {
    max-width: 85%;
  }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 70%;
  }
}

.btn-xlg {
  padding: .75rem 1.5rem;
  font-size: 1.5rem;
  line-height: 1.5;
  border-radius: .4rem;
}

body {
  font-size: 1.25rem;
}

.progress-span {
  display: inline-block;
  height: 25px;
  width: 15px;
  background-color: #dbdbdb;
  border: 1px solid black;
  border-radius: 4px;
  vertical-align: middle;
}

.btn.nohover:hover {
  cursor: default !important;
  color: #343a40; 
  background-color: transparent;
}

.plain-btn {
  display: inline-block;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid #343a40;
  color: #343a40;
  background-color: transparent;
  padding: .375rem .75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: .25rem;
}

#lastday[readonly] {
  background-color: white;
}

.my-card-body {
  flex: 1 1 auto;
  padding: 0rem 1.25rem 1.25rem 1.25rem;  
}

.zero-padding {
  padding: 0rem;
}

.left-card-header {
  padding: 0.75rem 1.25rem;
  background-color: rgba(0,0,0,.1);
  display: inline-block;
  border-top-right-radius: .4rem;
  border-bottom-right-radius: .4rem;
}

.right-card-header {
  padding: 0.75rem 1.25rem;
  display: inline-block;
}

.video-wrapper {
  position: relative;
}

@media (min-width: 992px) {
.video-wrapper > video {
  width: 650px;
  vertical-align: middle;
}

@media (max-width: 991px) {
.video-wrapper > video {
  width: 100%;
  vertical-align: middle;
}
