/* Original styles */

*,
*:before,
*:after {
  box-sizing: border-box;
}

body {
  background-color: lightgray;
  line-height: 1.4;
}

header {
  padding: 30px;
  color: white;
  width: 100%;
  background-color: black;
  flex: 35%;
  margin-bottom: 5%;
}

header p {
  max-width: 50%;
  font-size: 18px;
}

header p a {
  color: yellow;
  text-decoration: none;
}

section {
  display: flex;
  flex-direction: column;
}

/* Changed from flex to block to better support multiple video groups */
section .container {
  width: 80%;
  max-width: 80%;
  margin: 0 auto;
  flex: 60%;
  display: block;
  padding-top: 170px;
}

/* Multi-instance video tabs */
/*
.video-tabs {
  margin-bottom: 150px;
}*/

.video-tabs ul.tabs {
  list-style: none;
  margin: 20px 0;
  display: flex;
  width: 100%;
  position: relative;
  padding: 0 0 56.25%;
}

.video-tabs ul.tabs li {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  padding: 0 0 56.25%;
}

.video-tabs ul.tabs li h2 {
  background-color: black;
  color: white;
  position: absolute;
  height: 130px;
  top: -166px;
  border-radius: 35.5px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  width: calc(93% / 3);
  border-left: 1px solid lightgray;
  font-size: 18px;
  transition: background-color 200ms ease-in;
}

.video-tabs ul.tabs li:first-child h2 {
  border-left: none;
}

.video-tabs ul.tabs li.active {
  z-index: 10;
}

.video-tabs ul.tabs li.active h2 {
  background-color: rgb(55, 51, 32);
}

.video-tabs ul.tabs li iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Mobile fixes */

@media (max-width: 768px) {

    .video-tabs ul.tabs li h2 {
        position: relative;
        top: 0;
        margin-left: 0 !important;
        width: 100%;
        height: auto;
        min-height: 60px;
        border-radius: 10px;
        margin-bottom: 5px;
        font-size: 14px;
        padding: 15px !important;
    }

    .video-tabs ul.tabs {
        padding-top: 220px;
    }
}




@media (max-width: 768px) {

    .video-tabs {
        margin-bottom: 80px;
    }

    .video-tabs ul.tabs li h2 {
        height: 80px;
        top: -90px;
        font-size: 12px;
        padding: 10px !important;
        border-radius: 15px;
    }

    section .container {
        width: 95%;
        max-width: 95%;
        padding-top: 100px;
    }

}

@media (max-width: 768px) {

    .video-tabs {
        margin-bottom: 50px;
    }

    .video-tabs ul.tabs {
        display: block;
        position: static;
        padding: 0;
    }

    .video-tabs ul.tabs li {
        position: static;
        width: 100%;
        height: auto;
        padding: 0;
        margin-bottom: 20px;
    }

    .video-tabs ul.tabs li h2 {
        position: static;
        width: 100%;
        height: auto;
        min-height: 60px;
        margin: 0 0 10px 0 !important;
        border-radius: 8px;
        font-size: 14px;
        padding: 15px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .video-tabs ul.tabs li iframe {
        position: relative;
        width: 100%;
        height: 220px;
    }

    .video-tabs ul.tabs li:not(.active) iframe {
        display: none;
    }
}