/* 
 BOOTSTRAP AND GLOBAL OVERWRITES
 */
h1,
.h1 {
    font-size: 1.3rem;
}
h2,
.h2 {
    font-size: 1.2rem;
}
h3,
.h3 {
    font-size: 1.1rem;
}

label {
    font-size: 0.7rem;
    color: #534e4e;
}

mark {
    background-color: yellow;
}

a {
    color: #95ab90;
}
/*
 RANGE SLIDER
 */
.range-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: 0.2s;
    transition: opacity 0.2s;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #404040;
    cursor: pointer;
}

.range-slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #404040;
    cursor: pointer;
}

/* 
  BOOTSTRAP CUSTOMIZED NAVBAR - START 
  */
.navbar-default {
    background: #404040;
}

.navbar-default .navbar-brand,
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
    color: #fff;
}

.navbar-default .navbar-nav > li > a {
    color: #fff;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    color: #95ab90;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    color: #95ab90;
}

.navbar-default .navbar-text {
    color: #fff;
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: #fff;
}

.navbar-dark .navbar-toggler {
    border: none;
}

#main-bruger {
    outline: none;
}

.badge-dark {
    color: #fff;
    background-color: #404040;
}
/* NAVBAR CUSTOMIZED - END */

form {
    margin-bottom: 2rem;
}

ul.list-group {
    margin-bottom: 3vh;
}

/** id of the body */
#onews {
    background-color: #fff;
    text-align: left;
    margin-top: 75px;
}

/* link styling*/
a.article-link {
    color: #404040;
}

a.article-link:hover {
    text-decoration: none;
}

.desktop .article-body {
    /* margin-left: 288px; */
    font-size: 14px;
    padding: 1.25rem 6rem;
    background: #f8f8f8;
}

/* Single Article view */
/* .article-container {
     padding-top: 66px;
 } */

/* buttons */
#onews .btn-onews {
    color: #95ab90;
    /* background-color: #fff; */
    border-color: #95ab90;
    /* margin-right: 1rem; */
}

#onews .dismiss-article {
    color: #dc8a2c;
    background-color: #fff;
    border-color: #dc8a2c;
    /* margin-right: 1rem; */
}

/* .article-content h1 {
     margin-bottom: 2vh;
 } */

.small-source {
    font-size: x-small;
}

#onews .dismiss-article:hover {
    color: #fff;
    background-color: #dc8a2c;
    border-color: #dc8a2c;
}

#settings {
    padding-top: 12px;
    position: relative;
}

#table-filters {
    width: 100%;
}

.fa-padding {
    text-align: center;
    color: #343a40;
}

/* GENERAL */
/* Floating div */
.desktop .floating-effect {
    border-radius: 10px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.mobile .floating-effect {
    margin: 0;
    border-radius: 10px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.mobile .page-header {
    margin: 0;
}
.heading-div {
    padding: 12px 12px 8px 12px;
    border-bottom: 1px solid #e2ddde;
    margin-bottom: 8px;
}
.mobile .space-top-bottom-small,
.desktop .space-top-bottom-small {
    margin-top: 12px;
    margin-bottom: 16px;
}
.mobile .space-top-bottom,
.desktop .space-top-bottom {
    margin-top: 32px;
    margin-bottom: 32px;
}
.padding-15 {
    padding-left: 15px;
    padding-right: 15px;
}
/* 
  SETTINGS 
 */

.hide {
    display: none;
}

.add-filter,
.delete-filter,
.save-filter {
    cursor: pointer;
}

th,
td {
    border-bottom: 1px solid #dddddd;
    padding: 8px;
}

th {
    background-color: #343a40;
    color: #fff;
}

th.add {
    background-color: #55595e;
    color: #fff;
    text-align: center;
}

.filtering {
    background-color: #858585;
    padding-top: 56px;
}

/*
  REPORTING
  */
#reporting-container,
#filter-container,
#lifetime-container {
    padding-top: 66px;
}
#reporting-container th,
#filter-container th,
#lifetime-container th {
    background-color: #404040;
    color: #fff;
}

#filter-container .small-bottom {
    margin-bottom: 4px;
}
#filter-container .medium-bottom {
    margin-bottom: 12px;
}

/*
  ACCOUNT
  */
#account-container {
    padding-top: 66px;
}
/*
  MANAGEMENT
  */
#mgmt-container {
    padding-top: 66px;
}
.padding-nav {
    padding-top: 66px;
}
/* 
  ARTICLES INDEX 
 */
.article {
    margin-bottom: 1px;
}
.remove-padding {
    padding: 0;
}
.date-header {
    color: #404040;
    font-weight: 500;
    padding-left: 0.5vw;
}

.date-header-line {
    background: #f5f5f5;
    margin: 0 0 8px 0;
}
.header-with-border-left {
    margin-bottom: 0px;
    padding-top: 8px;
    padding-bottom: 8px;
    border-left: 8px solid #404040;
}

.highlight-article {
    /* animation: pulse 3s ease-out; */
    animation: shake 1.5s ease;
}

.highlightButton {
    border: 1px solid;
    height: 22px;
}

.highlightButton button {
    border: 0px;
    width: 20px;
    height: 20px;
}

@keyframes shake {
    /* background-color: #c0c0c0; */
    /* border-top: 3px solid #c0c0c0;
         border-bottom: 3px solid #c0c0c0; */
    /* background-color: #f5f5f5; */
    /* border-top: 1px solid #d8d5d5;
         border-bottom: 1px solid #d8d5d5; */
    10%,
    30% {
        /* transform: translate3d(0, 2px, 0); */
        transform: rotate(-3deg);
    }
    20% {
        /* transform: translate3d(0, 2px, 0); */
        transform: rotate(3deg);
    }
    40%,
    60% {
        /* transform: translate3d(0, 1px, 0); */
        transform: rotate(2deg);
    }

    50% {
        /* transform: translate3d(0, 2px, 0); */
        transform: rotate(-2deg);
    }
    80% {
        /* transform: translate3d(0, 1px, 0); */
        transform: rotate(1deg);
    }

    70%,
    90% {
        /* transform: translate3d(0, 2px, 0); */
        transform: rotate(-1deg);
    }
}

/* 
  HANDLING USER MESSAGES
 */
.user-message-error {
    background-color: #95ab90;
}

@media only screen and (min-width: 1200px) {
    .article a {
        cursor: pointer;
    }
}

#onews .nav-submenu {
    color: #404040;
}

/*
  Sidebar
  - Account (Benutzer)
  - Management (Verwaltung)
 */

nav ul.nav {
    display: block;
}
.sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 100; /* Behind the navbar */
    padding: 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.1);
}

.sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 48px; /* Height of navbar */
    height: calc(100vh - 48px);
    padding-top: 0.5rem;
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

.sidebar .nav-link {
    font-weight: 500;
    color: #333;
}

.sidebar h5 {
    padding: 1rem 0 0 1rem;
}

.tag {
    margin-right: 6px;
}
.remove-badge {
    margin-left: 6px;
}


.toast-container{
    max-height: 300px ;
    overflow-y: hidden;

    -webkit-mask-image: -webkit-gradient(linear, left top, left bottom, 
    from(rgba(0,0,0,1)), to(rgba(0,0,0,0)));

}

.comment-section, .comment-section>table{
    width: 100%;
}

.comment-user-column{
    min-width: 7%;
}

.comment-body-column{
    white-space: pre-wrap;
}

.comment-add-section{
    width: 100%;
}

.comment-add-section>textarea{
    width: 100%;
    margin-bottom: 5px;
}

.comment-add-section>button{
    float: right;
}

#create-article>div{
    width: 100%;
}

.editing{
    color: #95ab90 !important;
}

.selectable-flex{
    display: flex;
    flex-wrap: wrap;
    gap: 10px 10px;
}

.selectable-flex>div{
    display: inline-block;
    cursor: pointer;
    padding: 3px;
    border: 1px solid #404040;
    border-radius: 5px;
}

#source-select-new-article{
    padding: 5px;
}

.dropdown-views{
    display: none;
    position: absolute;
    overflow: auto;
    background-color: #343a40;
    width: 135px;
    padding-left: 5px;
}

.dropdown:hover .dropdown-views{
    display: block;
}

#search_container_category, #search_container_region, #search_container_source{
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

#more_categories_div>p{
    margin-bottom: 0px;
}

.search_container_item{
    border: 1px solid #55595e;
    border-radius: 5px;
    padding: 2px;
}

.search_container_item_selected{
    background-color: #55595e;
    color: white;
}

#search_container_text>input{
    width: 100%;
    border-bottom: 1px solid #534e4e;
    margin-left: 0px;
}

#search_container{
    padding-left: 5px;
    padding-right: 5px;
}

#search_container>p{
    margin-bottom: 5px;
    margin-top: 15px;
}

#mobile_popup_background{
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,0.4);
    z-index: 1000;
}

#mobile_popup_content{
    background-color: #fefefe;
    margin: 15% auto;
    padding: 5px;
    width: 80%;
}

#mobile_popup_content>button{
    padding: 3px;
}

#mobile_popup_content>select{
    margin-top: 5px;
    margin-bottom: 5px;
    display: block;
}
