* {
    margin: 0;
    padding: 0;
}

#tabmenu {
    /* margin: 2rem 3rem 0 3rem; */
    font-family: "OpenSans-Regular", Arial, sans-serif;
}

#tabmenu ul#nav {
    margin-bottom: 0 !important;
    width: 100% !important;
    position: relative !important;
    display: flex;
    align-items: stretch;
}


/*li, p { font: 12px/16px Arial, Helvetica, sans-serif; }*/

#nav {
    overflow: hidden;
    padding-left: 0;
}

#nav li {
    float: left;
    list-style: none;
    background: #EEE; 
    margin-bottom: 0px;
    display: flex;
    align-items: stretch;
}

#nav li a {
    padding: 24px 20px 30px;
    border-top: 6px solid #dfdfdf;
    background: #eeeeee;
    color: #808080;
    transition: color 0.3s linear;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    position: relative;
    padding: 1rem;
    text-align: center;
    font-size: 16px;
    justify-content: center;
    align-items: center;
    display: flex;  
    width: 100%;
    height: 100%;
    min-height: 84px;
}

#nav li a p{
    margin-bottom: 0px;
}

#nav li a:hover {
    color: #fe5000;
    transition: color 0.3s linear;
}

#tab-content {
    padding: 2rem 1rem;
    width: 100%;
    margin-top: -1px;
    -moz-border-radius: 0 0 5px 5px;
}

#tab-content #tab1 h3,
#tab-content #tab1 h4,
#tab-content #tab1 h5,
#tab-content #tab1 h6 {
    margin-top: 1rem;
}

#tab-content #tab2 h3,
#tab-content #tab2 h4,
#tab-content #tab2 h5,
#tab-content #tab2 h6 {
    margin-top: 1rem;
}

#tab-content #tab3 h3,
#tab-content #tab3 h4,
#tab-content #tab3 h5,
#tab-content #tab3 h6 {
    margin-top: 1rem;
}

#tab-content #tab4 h3,
#tab-content #tab4 h4,
#tab-content #tab4 h5,
#tab-content #tab4 h6 {
    margin-top: 1rem;
}

#tab-content #tab5 h3,
#tab-content #tab5 h4,
#tab-content #tab5 h5,
#tab-content #tab5 h6 {
    margin-top: 1rem;
}

#tab-content #tab6 h3,
#tab-content #tab6 h4,
#tab-content #tab6 h5,
#tab-content #tab6 h6 {
    margin-top: 1rem;
}

#nav li a.active {
    margin-bottom: -3px;
    border-top: 6px solid #fe5000;
    color: #fe5000;
    border-bottom: 1px solid #dfdfdf;
}

#nav li a.active:before {
    content: "";
    background: #dfdfdf;
    width: 1px;
    height: 100%;
    left: 0px;
    bottom: 0px;
    display: block;
    position: absolute;
}

#nav li a.active:after {
    content: "";
    background: #dfdfdf;
    width: 1px;
    height: 100%;
    right: 0px;
    bottom: 0px;
    display: block;
    position: absolute;
}

#tabmenu p {
    font-family: "OpenSans-Regular", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 24px;
    line-height: 1.5;
}

div#tabmenu div#tab-content ul li {
    margin-bottom: 10px;}

div#tabmenu div#tab-content ul li>ul {
    margin-top: 10px;}   

#tabmenu ul#nav {
    margin-bottom: 0 !important;
    width: 100% !important;
    position: relative !important;
}    



@media only screen and (max-width: 592px) {
    #tabmenu {
        margin: 0 1rem;
    }
    /* #tabmenu #nav li {
    width: 100% !important;
  } */
    #nav li a {
        min-height: auto;
    }
}


@media only screen and (max-width: 767px) {
#tabmenu ul#nav {
    display: block;}

#nav li {
    width: 100% !important;}
}

@media only screen and (max-width: 1024px) {
    #nav li a p {
        font-size: 14px;
        hyphens: auto;
    }

        #nav li a {
            padding: 1rem 0.3rem;
        }
}