/*
    Help Center Style
*/

section > ul {
    padding-left: 20px ;
    list-style-type: disc;
}

section.header {
    display: block;
    background-image: url("/wp-content/themes/angelsense/images/help-center/helpBG.jpg");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    padding: 50px calc((100% - 1200px)/ 2);
    height: 370px;
    position: relative;
}

section.header div.title {
    position: absolute;
    top: 30%;
    z-index: 1000;
}

section.header div.title h1,
section.header div.title h1 a {
    font-size: 40px;
    font-weight: 500;
    color: #32b4a6;
    line-height: 1.2;
}

section.header div.title > h2 {
    font-weight: 400;
    font-size: 22px;
    line-height: 1.3;
    margin: 0.8em 0em 0em 0em;
    color: #0f0f0f;
}

h2 {
    color: #292929;
    font-size: 36px;
}

section.content {
    padding: 50px calc((100% - 1200px)/ 2);
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
}

#topics {
    width: 25%;
}

#topics ul {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: left;
    list-style-type: none;
}

#topics ul li {
    margin: 0;
    border-bottom: 1px solid #E6E6E6;
}

#topics ul li a {
    display: block;
    background-color: #f7f7f9;
    padding: 0.6em 0.5em;
    font-size: 20px;
    color: #292929;
    font-weight: 300;
    outline: 0;
    transition: all 0.3s;
    position: relative;
    z-index: 0;
}

#topics ul li a.active,
#topics ul li a:hover {
    background-color: #3abeb0;
    color: white;
}

#subTopics {
    width: 70%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: start;
}

#subTopics > div {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

#subTopics > div div {
    position: relative;
}

#subTopics > div div:hover div.tooltip {
    visibility: visible;
    opacity: 1;
}

#subTopics > div div div.tooltip {
    position: absolute;
    top: 15px;
    left: 0.5em;
    width: 25px;
    height: 25px;
    z-index: 10;
    visibility: hidden;
    opacity: 0;
}

#subTopics > div div div.tooltip:before {
    content: 'URL link is copied';
    position: absolute;
    bottom: 130%;
    left: 0;
    width: 200px;
    visibility: hidden;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

#subTopics > div div div.tooltip.show:before {
    visibility: visible;
    opacity: 1;
}

#subTopics > div div div.tooltip input {
    opacity: 0;
}

#subTopics > div div div.tooltip button {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    background-color: transparent;
    background-image: url("/wp-content/themes/angelsense/images/help-center/link.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 60% auto;
    opacity: 0.4;
}

#subTopics div a.subTopicSwitch {
    display: block;
    background-color: white;
    padding: 0.6em 0.5em;
    padding-left: 2em;
    font-size: 20px;
    color: #292929;
    font-weight: 400;
    outline: 0;
    position: relative;
    transition: all 0.3s;
    border-top: 1px solid #E6E6E6;
}

#subTopics div a.subTopicSwitch.active,
#subTopics div a.subTopicSwitch:hover {
    background-color: #3abeb0;
    color: white;
}

#subTopics div a.subTopicSwitch:before {
    content: '';
    position: absolute;
    top: 50%;
    right: 1em;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    background-image: url("/wp-content/themes/angelsense/images/help-center/Arrow-Down-Green.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% auto;
    width: 13px;
    height: 8px;
    transition: all 0.3s;
}

#subTopics div a.subTopicSwitch.active:before,
#subTopics div a.subTopicSwitch:hover:before {
    background-image: url("/wp-content/themes/angelsense/images/help-center/Arrow-Down_White.png");
}

#subTopics div a.subTopicSwitch.active:before {
    -webkit-transform: rotate(-180deg);
    transform: rotate(-180deg);
    top: 40%;
}

#subTopics article {
    padding: 0.8em 2em;
    display: none;
    color: #292929;
}

#subTopics article p {
    margin: 1em 0em;
    font-weight: 300;
}

#subTopics article ul  {
    padding-left: 20px;
    list-style-type: disc;
}

#subTopics article ul.articles {
    margin-bottom: 1em;
    list-style: none;
    padding-left: 0;
}

#subTopics div article ul.articles li {
    margin: 1em 0em;
    display: inline-block;
    width: 45%;
}

#subTopics div article a,
#subTopics div article li a {
    color: #3abeb0;
    font-weight: 700;
}

#subTopics div article a:hover,
#subTopics div article li a:hover {
    text-decoration: underline;
}

#subTopics div article div {
    color: #292929;
    font-weight: 300;
    line-height: 1.5;
}

#subTopics div article h1,
#subTopics div article h2,
#subTopics div article h3,
#subTopics div article h4,
#subTopics div article h5 {
    color: #292929;
}

/*Landscape*/
@media only screen and (min-device-width: 768px) and (max-device-width: 1367px) and (orientation: landscape){
    section.content,
    section.header {
        padding: 50px calc((100% - 950px)/ 2);
    }

    section.header {
        margin-top: 55px;
    }

    #subTopics div article ul.articles li {
        width: 49%;
    }
}

/* Portrait */
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    section.content,
    section.header {
        padding: 50px calc((100% - 750px)/ 2);
    }

    section.header {
        margin-top: 55px;
    }

    #subTopics div article ul.articles li {
        width: 49%;
    }
}