/* GENERAL */

body, div {
    word-wrap: break-word;
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
}

@media only screen and (min-width: 1200px) {
    .ui.container {
        width: 800px;
    }
}


/* Semantic UI Bugfix (there seems to be a problem with display:flex (.ui.items>.item) and inside images that have max-width:100% */
.readmore .ui.items>.item, .homeitem .ui.items>.item {
    display: inherit;
}

/* Semantic UI defaults */
.ui.vertical.segment {
    border-color: #ebebeb;
}


/* No margin for grid */
.grid.nomargin {
    margin-left: 0px!important;
    margin-right: 0px!important;
}

/* No border for vertical segment */
.ui.vertical.segment.noborder {
    border-bottom: none;
}

/* FIX GOOGLE A-SENSE BACKGROUND */
body ins {
    background: inherit;
}

/* NAV */
#nav .list .item:first-child .header {
    font-size: 1.4em;
}

@media ( min-width: 768px) {
    #nav .stackable {
        max-height: 500px;
        overflow: auto;
    }
}

/* Below Header Segment (mainly used for ads) */
#belowheadersegment {
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 15px;
}

/* Hidden message (displayed to A(d)blockers */
.achecktip {
    display: none;
}

/* HOME */
#page.home {

}

#page.home .homeitem .item .content .description {
    background: gainsboro;
    margin-top: 0;
    padding: .75em 1em;
    font-family: roboto !important;
    font-size: 18px;
    line-height: 24px;
    font-weight: 300 !important;
}

#page.home .homeitem > .row {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.text {
    padding-top: 0!important;
    padding-bottom: 0!important;
}

@media ( max-width: 768px) {

    #page.home .homeitem .item .content .description {
        font-size: 14px !important;
        line-height: 21px !important;
        font-family: Verdana, Arial, sans-serif !important;
        font-weight: normal;
        margin-top: .2em;
        padding: inherit;
        background: white;
    }

    #page.home .homeitem > .column, #page.home .homeitem > .row {
        padding: 0 !important;
    }

}

#page.home .item:HOVER .content .description {
    background: aliceblue;
}

#page.home .homeitem .link .item:HOVER img {
    opacity: .5;
}

/* PAGE */

#page .column {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

#pagetitle {
    font-family: roboto;
    margin-bottom: 16px;
}

#pagetitle .sub.header {
    font-size: 18px;
}

#below_title {
    margin-bottom: 0;
}

#below_intro_text {
    margin-top: 0 !important;
}

#teaser, #below_intro_text {
    font-size: 13px;
    line-height: 19px;
}

#teaser p {
    font-family: roboto !important;
    font-size: 18px;
    line-height: 24px;
    font-weight: 300 !important;
}

.text {
    font-size: 18px !important;
}

.text p, .textparagraph {
    margin: 0 0 30px 0;
    font-size: 18px !important;
}

#segmentnutshell div {
    font-family: Verdana, Arial, sans-serif !important;
    font-size: 16px !important;
}

.nutshell a {
    color: #4E5EFB;
    text-decoration: underline;
}

.nutshellinlinesegment {
    background: #F8F8F9!important;
    padding: 1em 1.5em!important;
    color: #525252;
}

#segmentbottomlinks {
    font-family: Verdana, Arial, sans-serif !important;
    font-size: 16px !important;
}

.text h1, .text h2, .text h3, .text h4, .text h5 {
    font-family: roboto, Verdana, Arial, sans-serif !important;
    font-weight: bold !important;
}

.text h1 {
    font-size: 1.8em !important;
}

.text h2 {
    font-size: 1.3em !important;
    margin-bottom: 0.8em !important;
    margin-top: 1em !important;
}

.text h3 {
    font-size: 1.17em !important;
}

.text h4 {
    font-size: 1.12em !important;
}

.text h5 {
    font-size: .83em !important;
}

.text h6 {
    font-size: .75em !important;
}

.text h1:first-child, .text h2:first-child, .text h3:first-child, .text h4:first-child, .text h5:first-child {
    margin-top: 0 !important;
}

.text p:first-child {
    margin-top: 0;
}

.text a, .text a:HOVER, .text a:VISITED, .text a:ACTIVE, #teaser a, #teaser a:HOVER, #teaser a:VISITED, #teaser a:ACTIVE {
    color: #0086DF;
    font-weight: normal;
}

.text p a, .text p a:HOVER, .text p a:VISITED, .text p a:ACTIVE, #teaser p a, #teaser p a:HOVER, #teaser p a:VISITED, #teaser p a:ACTIVE {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dotted;
}

.text p a:not(.button):HOVER, #teaser p a:not(.button):HOVER {
    background: aliceblue;
    border-bottom: 1px solid lightblue;
}

div.insertedparagraph {
    margin: .5em 0;
}

a.inlinerecommendation {
    text-decoration: none;
}

a.inlinerecommendation span {
    border-bottom: 1px dotted;
}

a.inlinerecommendation span:HOVER {
    border-bottom: 1px solid;
}

.readmore .link .item:HOVER img, #right-sidebar .link .item:HOVER img {
    opacity: .5;
}

.bottom .list .item .header {
    color: #999999;
    font-weight: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-all;
    word-break: break-word;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.bottom .list .item:HOVER {
    background: aliceblue;
}

.bottom .list .item:HOVER .header {
    color: rgba(0, 0, 0, .85);
}

.bottom .divider {
    margin-top: 3em;
}

@media ( max-width: 768px) {

    .bottom.ui.stackable.grid .column {
        padding-bottom: 0 !important;
        padding-top: 0 !important;
    }

    .bottom.ui.stackable.grid .column .item:first-child {
        border-top: 1px solid rgba(34, 36, 38, .15);
    }

    .bottom.ui.stackable.grid .column:first-child {
        padding-top: 1rem !important;
    }

    .bottom.ui.stackable.grid .column:first-child .item:first-child {
        border-top: none;
    }

    .bottom.ui.stackable.grid .column:last-child {
        padding-bottom: 1rem !important;
    }

}

/* Right sidebar */

#right-sidebar-flat .link .item .header, .text .link .item .header {
    font-size: 1.1em;
}

#right-sidebar-flat .link .item .description, .text .link .item .description {
    margin-top: .2em;
}

#right-sidebar-flat .link .item:HOVER, .text .link .item:HOVER, #nav .list .item:HOVER {
    background: aliceblue;
}

/* Footer */
#segmentfooter {
    color: #777;
    background: #F2F2F2;
    padding-bottom: 0;
    margin-bottom: -19px;
}

#segmentfooter a {
    color: #777;
}

#segmentfooter a:hover {
    color: #333;
}

#segmentfooter a.button, #segmentfooter a.button:hover {
    background: none !important;
}

/* Search results */

#web-search-form, #web-search-form input[type=text] {
    font-size: 1em;
    font-family: arial, sans-serif;
    font-weight: normal;
    color: #000000;
}

#web-search-form input[type=text] {
    padding: 0.6em .7em;
    border-top-left-radius: 2px;
    border-bottom-left-radius: 2px;
}

#web-search-form input[type=text]:focus {
    border-color: #4684EC !important;
}

#web-search-form .button {
    font-size: 1.5rem;
    padding: .45em .6em;
    background: #4684EC;
    color: white;
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
}

#web-search-form .button:hover {
    background: #3267C6;
}

#web-search-form .button .icon {
    opacity: 1;
}

#web-search-form .suggest.results {
    margin-top: -1px;
    border-radius: 2px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding: 0em 0 0.4em 0;
}

#web-search-form .suggest.results .result {
    padding: 0.05em .7em;
    border: none;
    border-radius: 0;
}

#web-search-form .suggest.results .result.active, #web-search-form .suggest.results .result:hover {
    background-color: #EEEEEE;
}

#web-search-form .suggest.results .result .title {
    font-size: 1em;
    font-family: arial, sans-serif;
    font-weight: normal;
    color: #222;
}

#web-results {
    font-family: arial, sans-serif;
}

#web-results .searchstats {
    color: #808080;
    font-size: 0.95em;
    padding-left: 0.5em;
}

#web-results #organic-results-label {
    font-size: 11px;
    text-align: right;
    color: #BBB;
    margin-bottom: -19px;
}

#web-results .item .content .header {
    font-family: arial, sans-serif;
    font-weight: normal;
}

#web-results .link .item {
    margin: 1.2em 0;
    padding: 0.5em;
    border-radius: 1px;
}

#web-results .link .item .small.image img {
    max-height: 150px;
    width: auto;
}

#web-results .link .item .header {
    font-size: 1.25em;
    color: #1a0dab;
}

#web-results .link .item:visited .header {
    color: #609;
}

#web-results .link .item .header:hover {
    text-decoration: underline;
}

#web-results .link .item .description {
    margin-top: 0;
    font-size: 0.95em;
    color: #545454;
}

#web-results .link .item .description .dispurl {
    font-size: 1.05em;
    color: #006621;
}

#web-results .link .item .description .dispurl span {
    color: grey;
}

#web-results .link .item:HOVER {
    background: #F7F7F7;
}

/* Search theme */
#web-search-form .button {
    background: #F29015;
}

#web-search-form .button:hover {
    background: #E1820B;
}

#web-search-form input[type=text]:focus {
    border-color: #F29015 !important;
}

#web-results .link .item .header {
    /* color: #1020d0; */
}

#web-results .link .item:visited .header {
    /* color: #600090; */
}

#web-results .link .item .description .dispurl {
    /* color: #127B71; */
}

/* Glossy links (image links used e. g. in sidebar) */

#right-sidebar .glossylink {
    margin-bottom: 7px;
}

.glossylink {
    display: block;
    position: relative;
    width: 100%; /* for IE 6 */
}

.glossylink img {
    width: 100%;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.glossylink:HOVER img {
    -webkit-filter: brightness(0.7);
}

.glossydesc {
    position: absolute;
    bottom: 7%;
    left: 0;
    width: 80%;
    color: white;
    padding: 5px;
    filter: alpha(opacity=75);
    opacity: 0.75;
    background-color: #000 !important;
    z-index: 0;
}

.glossysmall .glossydesc {
    bottom: 1%;
    padding: 1px;
}

.glossydesc p {
    font-size: 15px;
    margin: 0 !important;
    font-weight: normal;
}

.glossysmall .glossydesc p {
    font-size: 13px;
    line-height: 15px;
}

/* Media */
.mediabody #maincontentsegment {
    background: #1b1c1d;
}

.media .ui.inverted.attached.segment, .media .ui.inverted.block.segment {
    border-color: #1b1c1d;
}

.media .ui.header, .media .ui.header .sub.header {
    color: white;
}

.media p {
    font-weight: normal;
}

.media.imagebox {
    background-color: black !important;
    border-radius: 0 !important;
    border: none;
    padding: 0;
}

.media .imagebox a, .media.inlinemedia a {
    display: block;
}

.media .imagebox a:HOVER, .media.inlinemedia a:HOVER {
    box-shadow: 0 0 10px #888;
}

.media.description {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 0;
}

.media.description p, .media .ui.items .item .content .description {
    color: white;
    margin: 13px 0;
    font-family: Verdana, Arial, sans-serif !important;
    font-size: 14px !important;
}

.media .text .readmore .ui.link.items .item:HOVER {
    background: #666666;
}

.media.description p:first-child {
    margin: 0 !important;
}

.media.description p a {
    color: white;
    text-decoration: none;
    border-bottom: 1px dotted;
}

.media.description a:HOVER {
    background-color: lightslategray !important;
}

.media.inlinemedia .imagebox {
    background-color: black !important;
    border-radius: 0 !important;
    border: none;
    padding: 0;
}

.media.inlinemedia {
    margin-bottom: 13px;
}

.media .segment {
    box-shadow: none !important;
}

.media .vertical-space {
    height: 16px;
}

.media .button {
    background-color: #3767B9 !important;
}

.media .previmage, .media .nextimage {
    position: absolute;
    top: 43%;
    zoom: 1;
    filter: alpha(opacity=50);
    opacity: 0.8;
    background-color: #000 !important;
    padding: 0 0.9em;
    z-index: 1;
    margin-right: 0;
}

.media .previmage:HOVER, .media .nextimage:HOVER {
    background-color: #3767B9 !important;
}

.media .previmage .icon, .media .nextimage.ui.button .icon {
    margin: 0;
    width: auto;
    height: auto;
    filter: alpha(opacity=100);
    opacity: 1;
    font-size: 72px;
}

@media ( max-width: 768px) {

    .media .previmage, .media .nextimage {
        top: 33%;
    }

}

.media .previmage {
    left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.media .nextimage {
    right: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.media .playbutton {
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    height: 173px;
    width: 173px;
    background: none !important;
    box-shadow: none !important;
    z-index: 2;
}

.media .playbutton .icon {
    margin: 0;
    filter: alpha(opacity=70);
    opacity: 0.7;
    font-size: 72px;
    background: white !important;
}

.media .playbutton:HOVER .icon {
    filter: alpha(opacity=90);
    opacity: 0.9;
}

.media .slideprogress {
    position: absolute;
    top: 0;
    right: 0;
    color: #D7D7D7;
    background: black !important;
    padding: 0 13px 0 5px;
    font-size: 10px;
    font-weight: bold;
    border-bottom-left-radius: 3px;
    z-index: 1;
}

.media.inlinemedia .slideprogress {
    background: #5C6166 !important;
    z-index: 1;
}

.media .videodesc, .media .videotitle {
    position: absolute;
    bottom: 0;
    filter: alpha(opacity=80);
    opacity: 0.8;
    background-color: #000 !important;
    width: 100%;
    z-index: 0;
}

@media ( max-width: 768px) {

    .media .videodesc, .media .videotitle {
        position: inherit;
    }

}

.media #teaserdesc {
    position: absolute;
    bottom: 2em;
    filter: alpha(opacity=90);
    opacity: 0.9;
    background-color: #000 !important;
    width: 75%;
    z-index: 0;
}

.media .videodesc p, .media .videotitle p {
    padding: 0.5em 0.9em 0 0.8em;
    color: inherit;
    font-size: 13px;
    line-height: 17px;
}

.media .videotitle p {
    padding-top: 0.9em;
}

.media .videotitle {
    top: 0;
    bottom: inherit;
    font-size: 1.5em;
    font-weight: bold;
}

.youtube-video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}

.youtube-video-container iframe, .youtube-video-container object, .youtube-video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.linked_media_wrapper {
    overflow: hidden;
}

.text .linked_media_wrapper > p {
    margin: 0;
}

.linked_media_wrapper > a.ebook_download.ui.image {
    height: 250px;
    background: url(/themes/ezine2/images/download-ebook.png) no-repeat bottom left;
    float: right;
    margin-left: 15px;
    padding: 5px;
}

.linked_media_wrapper > a.ebook_download.ui.image:HOVER {
    background-color: aliceblue;
}

.linked_media_wrapper > a.ebook_download:HOVER img {
    opacity: .5;
}

/* Other */
#helperbox {
    font-family: "Open Sans", "Helvetica Neue", "Helvetica", "Arial",
    sans-serif;
}

#helperbox .ui.sidebar .text.item {
    padding: 0.6em 0;
    text-align: center;
    width: 100%;
    overflow: hidden;
}

#helperbox .ui.top.sidebar {
    border-bottom: 2px groove grey;
}

#helperbox .ui.sidebar {
    overflow: hidden;
    height: inherit !important;
}

/* Search */

.inlinesearch.ui.button {
    font-size: inherit;
    border-bottom: 1px solid rgba(0, 0, 0, .15);
}

.pagination.ui.menu .item {
    font-size: 13px;
}

#defaultsearch {
    vertical-align: baseline;
    padding-left: 20%;
}

#defaultsearch input {
    font-size: 13px;
    padding: .3em .5em;
}

#defaultsearch .button {
    padding: 0.5em;
    font-size: 13px;
    border-bottom: 0;
}

#defaultsearch {
    text-align: right;
    margin-top: 0 !important;
}

#searchform input {
    font-size: 16px;
}

#searchform .fields .field {
    margin-bottom: 0;
}

#searchform .fields .field input {
    padding: 5px 10px;
}

#searchform .fields .field button {
    padding: 7px;
}

/* Responsive */

#responsivecheck {
    color: #FFFFFF;
}

@media ( max-width: 768px) {

    #responsivecheck {
        color: #000000;
    }

    .text, #teaser, #below_intro_text {
        padding-right: 3% !important;
    }

    #teaser p {
        padding-right: 0;
    }

    #right-sidebar .ui.list .item > .content {
        line-height: 1.7em;
    }

    #right-sidebar .ui.list .item > .icon {
        padding: .35em 0 0;
    }

    #headermenu .item.search {
        display: none;
    }
}

/* Special ad(s) */
#rightspace {
    position: fixed;
    margin-left: 980px;
    margin-top: 10px;
}

/* Youtube video styles */
.youtube-video {
    margin-top: 10px;
    margin-bottom: 10px;
    border: 10px black;
}

.youtube-video-title {
    padding: 10px;
    font-size: 16px;
    text-align: center;
    font-weight: bolder;
}

.youtube-video-container {
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    height: 0;
    overflow: hidden;
}

.youtube-video-container iframe, .youtube-video-container object, .youtube-video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.youtube-video-description {
    padding: 10px;
    white-space: pre;
    font-size: 10px;
    display: none;
}

.show-hide-description {
    margin-top: 5px;
    text-align: right;
    font-weight: lighter;
    font-size: 12px;
    cursor: pointer;
}


/* LANDING TEASER */
#segmentteaser.landing {
    padding: 40px;
}

/*
#segmentteaser.landing #pagetitle {
    padding-bottom: 15px;
    margin-top: -2em;
}
*/

#segmentteaser.landing #pagetitle h1 {
    font-family: Arial,sans-serif!important;
    font-size: 34px!important;
    font-weight: 500!important;
    color: #515151;
    text-align: left;
    line-height: 1.37;
    margin-bottom: 0;
}

#segmentteaser.landing #pagetitle h2 {
    font-family: Arial,sans-serif!important;
    margin: 1em 0 0 0!important;
    font-size: 17px!important;
    color: #666;
    font-weight: normal!important;
    background: #fbe7d7; /* Old browsers */
    background: -moz-linear-gradient(left, #fbe7d7 0%, #ffffff 100%); /* FF3.6-15 */
    background: -webkit-linear-gradient(left, #fbe7d7 0%,#ffffff 100%); /* Chrome10-25,Safari5.1-6 */
    background: linear-gradient(to right, #fbe7d7 0%,#ffffff 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fbe7d7', endColorstr='#ffffff',GradientType=1 );
}

#segmentteaser.landing .text p {
    margin-top: 0;
    font-size: 18px!important;
    font-weight: 300;
    margin-bottom: 35px;
    font-family: roboto!important;
}

#segmentteaser.landing .landingleftcol.text p {
    margin-bottom: 15px;
}

.hide {
    display: none;
}

a.readmoreshow, a.readmorehide {
    border: none!important;
}

/* Mobile */
@media only screen and (max-width: 767px) {

    #sidebaricon {
        padding-right: 0;
    }

    #headermenu .left.menu a {
        padding-left: 0!important;
    }

    #segmentheader.ui.vertical.segment {
        padding-top: 0.5rem!important;
        padding-bottom: 1.5rem!important;
    }

    #segmentteaser.landing {
        padding: inherit;
        background: #f7f7f7;
        margin-bottom: 1em;
    }

    #segmentteaser.landing #pagetitle {
        padding-bottom: 0;
        margin-top: 0.3em;
    }

    #segmentteaser.landing .text p {
        margin-bottom: 0;
    }

    #segmentteaser.landing .landingleftcol.text p {
        margin-bottom: 15px;
    }

    #segmentteaser.landing #pagetitle h1 {
        font-size: 24px!important;
    }

    #segmentteaser.landing #pagetitle h2 {
        margin: 0.5em 0 0 0 !important;
        background: #fbe7d7; /* Old browsers */
        background: -moz-linear-gradient(left, #fbe7d7 0%, #f7f7f7 100%); /* FF3.6-15 */
        background: -webkit-linear-gradient(left, #fbe7d7 0%,#f7f7f7 100%); /* Chrome10-25,Safari5.1-6 */
        background: linear-gradient(to right, #fbe7d7 0%,#f7f7f7 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fbe7d7', endColorstr='#f7f7f7',GradientType=1 );
    }

    .ui.stackable.grid>.wide.column.landingleftcol {
        padding-top: 0.5rem!important;
    }

    .ui.stackable.grid>.wide.column.landingrightcol {
        padding-top: 0!important;
    }


}
