/*
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0.875rem 0px;
    font-weight: 450;
}*/

main {
    margin: 0px 1rem;
    margin-top: 2rem;
}

#the_video_container {
    overflow: hidden;
    border-radius: 0.75rem;
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}

#progress_and_controls {
    background-color: rgba(0, 0, 0, 0.5);
    position: absolute;
    box-sizing: border-box;
    padding: 0.5rem;
    padding-top: 0px;
    z-index: 8;
    bottom: 0%;
    width: 100%;
    opacity: 1;
    transition: opacity 200ms;
}

@keyframes spinner-loading {
  0%{
    transform: rotate(0deg);
  }

  100%{
    transform: rotate(360deg);
  }
}

#spinner-container{
  display: hidden; 
  width: 0px;
  overflow: hidden;  
  background-color: rgba(0, 0, 0, 0.5);
}

#spinner-container.loading{
  display: flex;
  width: 100%;
}

#spinner-container.loading > #spinner{
  animation: spinner-loading 1000ms infinite forwards;
}

#spinner{
  width: 50%;
  height: 50%;
  max-width: 100px;
  max-height: 100px;
  fill: white;
}


#video_progress_container {
    width: 100%;
    margin: 0px auto;
    position: relative;
    padding: 0.5rem 0px;
    box-sizing: border-box;
}

#progress_and_controls progress {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 0.25rem;
    block-size: 0.25rem;
    background-color: white;
    color: #0091fa;
    padding: 0px;
    border-width: 0px;
}

#video_progress_container:hover {
    cursor: pointer;
}

#progress_and_controls progress::-webkit-progress-bar {
    background-color: white;
    height: 100%;
}

#progress_and_controls progress::-webkit-progress-value {
    background-color: #0091fa;
}

#progress_button {
    position: absolute;
    padding: 0.25rem;
    background-color: red;
    border-radius: 50%;
    top: -50%;
    z-index: 8;
}

#video_controls {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

#video_controls button {
    font-size: 0px;
    padding: 4px;
    width: 36px;
    height: 36px;
    background-color: transparent;
    border-width: 0px;
    border-radius: 50%;
    box-sizing: border-box;
    overflow: hidden;
    margin: 0px 0.25rem;
}

#play_or_pause {
    margin-left: 0px !important;
}

#request_fullscreen {
    margin-right: 0px !important;
}

#video_controls button:hover {
    cursor: pointer;
}

#video_controls svg {
    width: 100%;
    height: 100%;
    display: inline;
}

#video_controls svg.disabled {
    fill: gray;
}

#video_timestamp {
    margin: 0.5rem 0px;
}


#next_lesson:hover {
    cursor: pointer;
}

#next_chapter:visited {
    color: #272fce;
    text-decoration: none;
    font-size: 1rem;
}

#video_and_title {
    height: fit-content;
}

#the_playlist {
    box-sizing: border-box;
    height: auto;
    max-height: 600px;
    padding: 0.5rem;
    border-width: 1px;
    border-color: gray;
    border-style: solid;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.two-liner {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.watching {
    color: #272fce;
}

.watching.lesson-name {
    color: #272fce;
}

#watch_more {
    overflow-y: auto;
    height: 100%;
}

.disabled p {
    color: gray;
}