/* Var */

:root {
    --primaryColor: lightgreen;
    --commercial: teal;
    --animation: green;
    --narration: rgb(170, 0, 0);
    --documentary: blue;
    --elearning: darkorange;
    --podcast: purple;
  }

/* Reset and Common Styles */

* {
    margin: 0;
    padding: 0;
    outline: none;
    box-sizing: border-box;
    text-decoration: none;
    list-style-type: none;
    font-family: 'Jost', sans-serif;
    font-weight: 400;
}

html {
    font-size: 62.5%; /* 1rem = 10px */
    scroll-behavior: smooth;
}

body {
    background-color: #2b2c28;
    color: #fff;
    padding:  0 2rem;
}

h2 {
    font-size: 3.6rem;
    margin: 3rem auto 3rem auto;
    border-bottom: .5rem solid var(--primaryColor);
    font-weight: bold;    
    padding: 1rem;
    text-align: center;
    text-transform: uppercase;
    max-width: 50rem;
    text-shadow: .1rem .1rem .3rem rgba(0,0,0,.7);
}

.flex {
    display: flex;
}

.center {
    align-items: center;
    display: flex;
    justify-content: center;
}

.wrap {
    flex-wrap: wrap;
}

.section {
    padding: 2rem;    
}

.highlight {
    color: var(--primaryColor);
}

.hidden {
    display: none;
}

.strike {
    text-decoration: line-through;
}

.bold {
    font-weight: bold;
}

/* Navi */

nav {
    /* background-color: white; */
    font-size: 2rem;
    padding: 20px;
    width: 100%;
}

nav > div {
    align-items: center;
    justify-content: space-between;
}

nav .title {
    margin-left: 1rem;
    text-align:center;
}

nav .title .name {
    border-bottom: .5rem solid var(--primaryColor);
    font-size: 4rem;
    font-weight: bold;
    letter-spacing: .5rem;
}

nav .title .sub {
    font-size: 1.4rem;
    letter-spacing: .25rem;
    margin-top: .5rem;
}

nav .logo {
    align-items: center;
}

nav .logo > img {
    height: 5rem;
    margin: 0 2rem;
    width: 5rem;
}

nav a {
    color: white;
}

nav .btn-cta {
    background: linear-gradient(to bottom, lightgreen, mediumaquamarine);
    border-radius: .5rem;
    cursor: pointer;
    font-size: 2rem;
    font-weight: bold;  
    letter-spacing: .1rem;  
    padding: 1rem;
    text-align: center;
    text-transform: uppercase;
    text-shadow: .1rem .1rem .3rem rgba(0,0,0,.7);
}

nav ul {
    align-items: center;
    display: flex;
    list-style-type: none;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    text-decoration: none;
    color: #fff;    
    padding-bottom: .5rem;
    position: relative;
    transition: color .4s ease;
}

nav ul li a::before {
    background-color: var(--primaryColor);
    content: ""; 
    height: .3rem;
    position: absolute;
    width: 0;
    bottom: 0;
    left: 0;
    transition: width .2s linear;
}

nav ul li a:hover {
    color: var(--primaryColor);
}

nav ul li a:hover::before {
    width: 5rem;
}

/* Mobile Nav */

.mobile-menu {
    user-select: none;
    cursor: pointer;
}

.line {
    background-color: lightgreen;
    border-radius: 10rem;
    width: 3rem;
    height: .3rem;
    margin: .5rem 0;
    transition: transform .5s ease;
}

.mobile-menu.active .line-1 {
    transform: rotate(45deg) translate(.6rem);
}
.mobile-menu.active .line-2 {
    display: none;
}
.mobile-menu.active .line-3 {
    transform: rotate(-45deg) translate(.5rem);
}

/* Hero */

#hero {
    background-color: gray;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.9)), url('img/hero-bg1.jpg');
    background-size: cover;
    border-radius: 1.5rem;
    align-items: center;
    height: 65rem;
    padding: 2rem 0 0 2rem;
    position: relative;
}

#hero #hero-content {
    color: #fff;
    padding: 2rem;
    margin: 2rem;
    width: 50%;
    z-index: 1;
}

main #hero-content > h1 {
    font-size: 5rem;
    letter-spacing: .5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

main #hero-content > p {
    font-size: 1.5rem;
    letter-spacing: .2rem;
    line-height: 2.5rem;
}

#hero-img img {    
    bottom: 0;
    position: absolute;
    right: 0;
    width: 75rem;
}

/* Social */

#social {
    background-color: #adb5bd;
    border-bottom: .2rem solid #5e6266;    
    padding: 2rem 0;
}

.social-container {
    flex-wrap: wrap;
    justify-content: center;
}

.social-img {
    height: 5rem;
    margin: 1rem 2rem;
    width: 20rem;
    -webkit-filter: grayscale(100%); /* Safari 6.0 - 9.0 */
    filter: grayscale(100%);
    transition: filter .5s linear;
}

.social-img:hover {
    cursor: pointer;
    -webkit-filter: grayscale(0%); /* Safari 6.0 - 9.0 */
    filter: grayscale(0%);
}

/* Demos */

#demos {
    align-items: start;
    flex-direction: column;
}

#demos h4 {
    font-size: 2rem;
    font-weight: bold;
    margin: .5rem 0;
    text-transform: uppercase;
}

#demos iframe {
    margin: 1rem;
}

.filters {
    width: 100%;
}

.filters > div {
    margin: 1rem 0;
}

.demo-filter-container {
    flex-wrap: wrap;
    /* margin: auto; */
}

.filter-btn {
    background-color: rgb(120, 120, 120);
    border-radius: 2rem;
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: bold;
    margin: .5rem 1rem;
    opacity: 50%;
    padding: 1rem;
    text-shadow: .1rem .1rem .3rem rgba(0,0,0,.6);
    user-select:none;
}

.filter-btn.selected {
    opacity: 100%;
}

.demo-wrapper {    
    flex-wrap: wrap;
    justify-content: center;
}

.demo {
    background-color: #495057;
    border:.1rem solid #fff;
    border-radius: 1.5rem;
    box-shadow: .2rem .2rem 0rem #fff;
    margin: 1rem;
    padding: 4rem 2rem 2rem 2rem;
    position: relative;    
    width: 35rem;
}

.demo .demo-type {
    background-color: #fff;
    border-radius: 1.5rem;
    font-weight: bold;
    padding: .5rem;
    position: absolute;
    right: 1rem;
    text-shadow: .1rem .1rem .1rem rgba(0,0,0,.5);
    text-transform: uppercase;
    top: 1rem;
    user-select: none;    
}

/* Demo Card Type Styles */

.demo.commercial {
    border-color: var(--commercial);
    box-shadow: .2rem .2rem 0rem var(--commercial);
}
.demo.commercial .demo-type,
.filter-btn.commercial.selected {
    background-color: var(--commercial);
}

.demo.animation {
    border-color: var(--animation);
    box-shadow: .2rem .2rem 0rem var(--animation);
}
.demo.animation .demo-type,
.filter-btn.animation.selected {
    background-color: var(--animation); 
}

.demo.narration {
    border-color: var(--narration);
    box-shadow: .2rem .2rem 0rem var(--narration);
}
.demo.narration .demo-type,
.filter-btn.narration.selected {
    background-color: var(--narration);
}

.demo.documentary {
    border-color: var(--documentary);
    box-shadow: .2rem .2rem 0rem var(--documentary);
}
.demo.documentary .demo-type,
.filter-btn.documentary.selected {
    background-color: var(--documentary);
}

.demo.elearning {
    border-color: var(--elearning);
    box-shadow: .2rem .2rem 0rem var(--elearning);
}
.demo.elearning .demo-type,
.filter-btn.elearning.selected {
    background-color: var(--elearning);
}

.demo.podcast {
    border-color: var(--podcast);
    box-shadow: .2rem .2rem 0rem var(--podcast);
}
.demo.podcast .demo-type,
.filter-btn.podcast.selected {
    background-color: var(--podcast);
}

/* END TYPE STYLES */

.demo h3 {
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 2rem;
    text-shadow: .1rem .1rem .1rem rgba(1, 37, 21, 0.8);
    user-select: none;
} 

.demo-file {
    display: flex;
    flex-direction: column;
    margin: 2rem 0;
}

.demo .demo-file label {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.demo .tag-container {
    flex-wrap: wrap;
}

.demo .tag-container .tag {
    background-color: #ddffef;
    border-radius: 1.5rem;
    color: black;
    font-weight: bold;
    margin: .5rem;
    padding: .5rem;
    user-select: none;
}

/* Slider */

 /* The switch - the box around the slider */
 .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-left: 1rem;
    margin-bottom: .5rem;
  }
  
  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #495057;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
  }
  
  input:checked + .slider {
    background-color: var(--primaryColor);
  }
  
  input:focus + .slider {
    box-shadow: 0 0 1px var(--primaryColor);
  }
  
  input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
  }
  
  /* Rounded sliders */
  .slider.round {
    border-radius: 34px;
  }
  
  .slider.round:before {
    border-radius: 50%;
  } 

/* Mobile */

@media screen and (max-width: 991.98px) {
    
    #hero {
        flex-direction: column;
        height: auto;
    }

    #hero #hero-content {
        margin: 0;
        padding: 0 1rem 0 0;
        width: 100%;
    }

    #hero-img img {
        position: initial;
        width:100%;
    }

    .filters {
        text-align: center;
    }

    .demo-filter-wrapper {
        flex-direction: column;
    }

    .demo-filter-container {
        align-items: center;
        justify-content: center;
    }

}