html {
    box-sizing: border-box;
}

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

@keyframes d2ltab-fade {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


/* ---------- General tab styles ---------- */

.d2l-tabs-widget .d2l-tabs {
    position: relative;
    overflow: hidden;
}

.d2l-tabs-widget .d2l-tabs .d2l-tab-nav {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-flow: row wrap;
    -moz-flex-flow: row wrap;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    -webkit-justify-content: flex-start;
    -moz-justify-content: flex-start;
    justify-content: flex-start;
}

.d2l-tabs-widget .d2l-tabs .d2l-tab-nav .d2l-tab {
    text-align: center;
    /* -webkit-box-flex: 0;
    -webkit-flex: 0 1 auto;
    -moz-box-flex: 0;
    -moz-flex: 0 1 auto;
    -ms-flex: 0 1 auto;
    flex: 0 1 auto; */
    flex: 1 1 0;
}

.d2l-tabs-widget .d2l-tabs .d2l-tab-nav .d2l-tab a {
    display: block;
    text-overflow: ellipsis;
    white-space: normal;
    padding: 20px 40px;
    text-decoration: none;
    border: none;
    margin: 0;
    outline: none;
    -webkit-transition: color 0.3s;
    -moz-transition: color 0.3s;
    -ms-transition: color 0.3s;
    transition: color 0.3s;
}

@media only screen and (max-width: 1024px) {
    .d2l-tabs-widget .d2l-tabs .d2l-tab-nav .d2l-tab a {
        padding: 20px 25px;
    }
}

.d2l-tabs-widget .d2l-tabs .d2l-tab-nav .d2l-tab span.d2l-icon-wrapper span {
    font-size: 32px;
    font-weight: 400;
    vertical-align: middle;
    margin-right: 10px;
}

.d2l-tabs-widget .d2l-tabs .d2l-tab-nav .d2l-tab span.d2l-image-wrapper img {
    max-width: 24px;
    display: inline-block;
    vertical-align: middle;
    height: auto;
    width: auto;
    padding: 0;
    margin: 0 10px 0 0;
    border: none;
}

.d2l-tabs-widget .d2l-tabs .d2l-tab-nav .d2l-tab span.d2l-tab-title {
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.d2l-tabs-widget .d2l-tabs .d2l-tabs-panes {
    position: relative;
}

.d2l-tabs-widget .d2l-tabs .d2l-tabs-panes .d2l-tab-pane {
    padding: 40px;
    display: none;
    overflow: hidden;
}

.d2l-tabs-widget .d2l-tabs .d2l-tabs-panes .d2l-tab-pane.d2ltab-active {
    display: block;
    animation: d2ltab-fade 0.3s ease-in-out;
}


/* ----- Fallback for IE 8/9 ----- */

.d2l-no-flexbox .d2l-tab-nav {
    display: block;
}

.d2l-no-flexbox .d2l-tab-nav .d2l-tab {
    min-width: 15%;
    display: inline-block;
}


/* ------------- Vertical tab styles ----------------- */

.d2l-tabs-widget .d2l-tabs.d2l-vertical {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flexbox;
    display: flex;
}

.d2l-tabs-widget .d2l-tabs.d2l-vertical .d2l-tab-nav {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -moz-box-flex: 1;
    -moz-flex: 1 1 auto;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    -webkit-box-direction: normal;
    -webkit-box-orient: vertical;
    -webkit-flex-direction: column;
    -moz-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    -webkit-justify-content: flex-start;
    -moz-justify-content: flex-start;
    justify-content: flex-start;
}

.d2l-tabs-widget .d2l-tabs.d2l-vertical .d2l-tabs-panes {
    -webkit-box-flex: 16;
    -webkit-flex: 16 1 auto;
    -moz-box-flex: 16;
    -moz-flex: 16 1 auto;
    -ms-flex: 16 1 auto;
    flex: 16 1 auto;
}

.d2l-tabs-widget .d2l-tabs.d2l-vertical.d2ltab-mobile-layout {
    -webkit-box-direction: normal;
    -webkit-box-orient: vertical;
    -webkit-flex-direction: column;
    -moz-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}


/* --------- Tab navigation in mobile ------------- */

.d2l-tab-mobile-menu {
    display: none;
    /* Hide on desktop */
    position: absolute;
    top: 23px;
    right: 20px;
    background: transparent;
    border: none;
    z-index: 10;
}

.d2l-tab-mobile-menu i {
    font-size: 18px;
    color: #777;
    font-weight: bold;
}

.d2l-tabs-widget .d2l-tabs.d2ltab-mobile-layout .d2l-tab-mobile-menu {
    display: block;
    /* Show on mobile only */
}

.d2l-tabs-widget .d2l-tabs.d2ltab-mobile-layout .d2l-tab-nav {
    -webkit-box-direction: normal;
    -webkit-box-orient: vertical;
    -webkit-flex-direction: column;
    -moz-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    cursor: pointer;
}

.d2l-tabs-widget .d2l-tabs.d2ltab-mobile-layout .d2l-tab-nav .d2l-tab {
    text-align: center;
    display: none;
}

.d2l-tabs-widget .d2l-tabs.d2ltab-mobile-layout .d2l-tab-nav .d2l-tab.d2ltab-active {
    display: block;
}

.d2l-tabs-widget .d2l-tabs.d2ltab-mobile-layout.d2ltab-mobile-open {
    /* Open all tab navs and change the expand menu button to close button */
}

.d2l-tabs-widget .d2l-tabs.d2ltab-mobile-layout.d2ltab-mobile-open .d2l-tab-nav .d2l-tab {
    display: block;
}

.d2l-tabs-widget .d2l-tabs.d2ltab-mobile-layout.d2ltab-mobile-open .d2l-tab-mobile-menu i:before {
    content: '\e911';
}


/* ------------- Style 1 ----------------- */

.d2l-tabs-widget .d2l-tabs.style1 .d2l-tab-nav .d2l-tab {
    border-left: 1px solid #d9d9d9;
    border-bottom: 1px solid #e2e2e2;
    background: #e9e9e9;
}

.d2l-tabs-widget .d2l-tabs.style1 .d2l-tab-nav .d2l-tab:first-child {
    border-left-color: transparent;
    border-radius: 5px 0 0 0;
}

.d2l-tabs-widget .d2l-tabs.style1 .d2l-tab-nav .d2l-tab:first-child.d2ltab-active a {
    border-radius: 5px 0 0 0;
}

.d2l-tabs-widget .d2l-tabs.style1 .d2l-tab-nav .d2l-tab:last-child {
    border-radius: 0 5px 0 0;
}

.d2l-tabs-widget .d2l-tabs.style1 .d2l-tab-nav .d2l-tab:last-child.d2ltab-active a {
    border-radius: 0 5px 0 0;
}

.d2l-tabs-widget .d2l-tabs.style1 .d2l-tab-nav .d2l-tab.d2ltab-active {
    border-bottom: none;
    background: #f2f2f2;
}

.d2l-tabs-widget .d2l-tabs.style1 .d2l-tab-nav .d2l-tab a {
    color: #777;
}

.d2l-tabs-widget .d2l-tabs.style1 .d2l-tab-nav .d2l-tab a:hover,
.d2l-tabs-widget .d2l-tabs.style1 .d2l-tab-nav .d2l-tab a:focus {
    color: #333;
}

.d2l-tabs-widget .d2l-tabs.style1 .d2l-tab-nav .d2l-tab.d2ltab-active a {
    color: #333;
}

.d2l-tabs-widget .d2l-tabs.style1 .d2l-tabs-panes {
    background: #f2f2f2;
    border-radius: 0 4px 4px 4px;
}

.d2l-tabs-widget .d2l-tabs.style1.d2ltab-mobile-layout:not(.d2ltab-mobile-open) .d2l-tab.d2ltab-active {
    background: #eeeeee;
}

.d2l-tabs-widget .d2l-tabs.style1.d2ltab-mobile-layout .d2l-tab {
    border-left: none;
    border-bottom-color: #d9d9d9;
}

.d2l-tabs-widget .d2l-tabs.style1.d2ltab-mobile-layout .d2l-tab:first-child {
    border-radius: 5px 5px 0 0;
}

.d2l-tabs-widget .d2l-tabs.style1.d2ltab-mobile-layout .d2l-tab-nav .d2l-tab.d2ltab-active > a{
    border-radius: 5px 5px 0 0;
}

.d2l-tabs-widget .d2l-tabs.style1.d2ltab-mobile-layout .d2l-tab:last-child {
    border-radius: 0;
}

.d2l-tabs-widget .d2l-tabs.style1.d2ltab-mobile-layout .d2l-tabs-panes {
    border-radius: 0;
}


/* ------------- Style 2 ----------------- */

.d2l-tabs-widget .d2l-tabs.style2 .d2l-tab-nav .d2l-tab {
    border-left: 1px solid #d9d9d9;
    border-bottom: 1px solid #e2e2e2;
    background: #e9e9e9;
}

.d2l-tabs-widget .d2l-tabs.style2 .d2l-tab-nav .d2l-tab:first-child {
    border-left-color: transparent;
    border-radius: 5px 0 0 0;
}

.d2l-tabs-widget .d2l-tabs.style2 .d2l-tab-nav .d2l-tab:first-child.d2ltab-active a {
    border-radius: 5px 0 0 0;
}

.d2l-tabs-widget .d2l-tabs.style2 .d2l-tab-nav .d2l-tab:last-child {
    border-radius: 0 5px 0 0;
}

.d2l-tabs-widget .d2l-tabs.style2 .d2l-tab-nav .d2l-tab:last-child.d2ltab-active a {
    border-radius: 0 5px 0 0;
}

.d2l-tabs-widget .d2l-tabs.style2 .d2l-tab-nav .d2l-tab.d2ltab-active {
    border-bottom: none;
    background: #f2f2f2;
}

.d2l-tabs-widget .d2l-tabs.style2 .d2l-tab-nav .d2l-tab a {
    color: #777;
}

.d2l-tabs-widget .d2l-tabs.style2 .d2l-tab-nav .d2l-tab a:hover,
.d2l-tabs-widget .d2l-tabs.style2 .d2l-tab-nav .d2l-tab a:focus {
    color: #333;
}

.d2l-tabs-widget .d2l-tabs.style2 .d2l-tab-nav .d2l-tab.d2ltab-active a {
    color: #333;
}

.d2l-tabs-widget .d2l-tabs.style2 .d2l-tabs-panes {
    background: #f2f2f2;
    border-radius: 0 4px 4px 4px;
}

.d2l-tabs-widget .d2l-tabs.style2.d2ltab-mobile-layout:not(.d2ltab-mobile-open) .d2l-tab.d2ltab-active {
    background: #eeeeee;
}

.d2l-tabs-widget .d2l-tabs.style2.d2ltab-mobile-layout .d2l-tab {
    border-left: none;
    border-bottom-color: #d9d9d9;
}

.d2l-tabs-widget .d2l-tabs.style2.d2ltab-mobile-layout .d2l-tab:first-child {
    border-radius: 5px 5px 0 0;
}

.d2l-tabs-widget .d2l-tabs.style2.d2ltab-mobile-layout .d2l-tab-nav .d2l-tab.d2ltab-active > a{
    border-radius: 5px 5px 0 0;
}

.d2l-tabs-widget .d2l-tabs.style2.d2ltab-mobile-layout .d2l-tab:last-child {
    border-radius: 0;
}

.d2l-tabs-widget .d2l-tabs.style2.d2ltab-mobile-layout .d2l-tabs-panes {
    border-radius: 0;
}

/* ------------- Style 3 ----------------- */

.d2l-tabs-widget .d2l-tabs.style3 .d2l-tab-nav .d2l-tab {
    border-left: 1px solid #d9d9d9;
    border-bottom: 1px solid #e2e2e2;
    background: #e9e9e9;
    margin-right: 4px;
}

.d2l-tabs-widget .d2l-tabs.style3 .d2l-tab-nav .d2l-tab:first-child {
    border-left-color: transparent;
    border-radius: 5px 0 0 0;
}

.d2l-tabs-widget .d2l-tabs.style3 .d2l-tab-nav .d2l-tab:first-child.d2ltab-active a {
    border-radius: 5px 0 0 0;
}

.d2l-tabs-widget .d2l-tabs.style3 .d2l-tab-nav .d2l-tab:last-child {
    border-radius: 0 5px 0 0;
    margin-right: 0;
}

.d2l-tabs-widget .d2l-tabs.style3 .d2l-tab-nav .d2l-tab:last-child.d2ltab-active a {
    border-radius: 0 5px 0 0;
}


.d2l-tabs-widget .d2l-tabs.style3 .d2l-tab-nav .d2l-tab.d2ltab-active {
    border-bottom: none;
    background: #f2f2f2;
}

.d2l-tabs-widget .d2l-tabs.style3 .d2l-tab-nav .d2l-tab a {
    color: #777;
}

.d2l-tabs-widget .d2l-tabs.style3 .d2l-tab-nav .d2l-tab a:hover,
.d2l-tabs-widget .d2l-tabs.style3 .d2l-tab-nav .d2l-tab a:focus {
    color: #333;
}

.d2l-tabs-widget .d2l-tabs.style3 .d2l-tab-nav .d2l-tab.d2ltab-active a {
    color: #333;
}

.d2l-tabs-widget .d2l-tabs.style3 .d2l-tab-nav .d2l-tab-title {
  display: none;
  font-size: 18px;
}

@media all and (min-width: 720px) {
  .d2l-tabs-widget .d2l-tabs.style3 .d2l-tab-nav .d2l-icon-wrapper span {
    margin-bottom: 12px;
    font-size: 22px;
  }
  .d2l-tabs-widget .d2l-tabs.style3 .d2l-tab-nav .d2l-tab-title {
    display: block;
  }
}

.d2l-tabs-widget .d2l-tabs.style3 .d2l-tabs-panes {
    background: #f2f2f2;
    border-radius: 0 4px 4px 4px;
}

.d2l-tabs-widget .d2l-tabs.style3.d2ltab-mobile-layout:not(.d2ltab-mobile-open) .d2l-tab.d2ltab-active {
    background: #eeeeee;
}

.d2l-tabs-widget .d2l-tabs.style3.d2ltab-mobile-layout .d2l-tab {
    border-left: none;
    border-bottom-color: #d9d9d9;
}

.d2l-tabs-widget .d2l-tabs.style3.d2ltab-mobile-layout .d2l-tab:first-child {
    border-radius: 5px 5px 0 0;
}

.d2l-tabs-widget .d2l-tabs.style3.d2ltab-mobile-layout .d2l-tab-nav .d2l-tab.d2ltab-active > a{
    border-radius: 5px 5px 0 0;
}

.d2l-tabs-widget .d2l-tabs.style3.d2ltab-mobile-layout .d2l-tab:last-child {
    border-radius: 0;
}

.d2l-tabs-widget .d2l-tabs.style3.d2ltab-mobile-layout .d2l-tabs-panes {
    border-radius: 0;
}
