body {
    position: relative;
    min-height: 45rem;
    padding-bottom: 80px;
    /*background: #efefee;*/
    /*background: url('../images/backgrounds/background-3.jpg');*/
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-position: center center;
    height: 100%;
    color: #1C1C1C;

    font-family: "Open Sans";
    line-height: 1.3;

    /*-webkit-animation: fadeIn 1 0.25s ease-out;*/
    /*-moz-animation: fadeIn 1 0.25s ease-out;*/
    /*-o-animation: fadeIn 1 0.25s ease-out;*/
    /*animation: fadeIn 1 0.25s ease-out;*/
}
h1, h2, h3 {
    font-family: "Montserrat" !important;
}

html {
    height:100%
}

/* NAVIGATION */

.navbar {
   /* position: fixed;*/
    width: 100%;
    transition: top 0.3s;
    /*z-index: 100;*/
}

.navbar-bg {
    /*background: url('../images/histo-nav.jpg');*/
    /*background-color: #8b8b8b;*/
    /*background-color: #26517f;*/
    background-color: #717171;
    background-size: 100%;
}

.dropdown-menu, .dropdown-menu.show {
    right: 0;
    z-index: 99999;
    opacity: 0.9;
}

.overlay {
    position: absolute;
    top: 20px;
    bottom: 0;
    left: 10%;
    right: 0;
    transition: .3s ease;
}

.space-brand {
    color: #fff;
    font-weight: bold;
}

.nav-profile-img {
    /*width: 50px;*/
    /*border: 1px solid #fff;*/
    width: 30px;
}

.inner{
    width: 100%;
}
.to-be-approved {
    border: 5px solid red;
    width: 100%;
}
.changed {
    border: 5px solid orange;
}
.deleted {
    border: 5px solid red;
}
.new {
    border: 5px solid green;
}
/* LOGIN REGISTRATION */

.form-container {
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    background: #fff;
}

.inactive {
    border-color: lightgray lightgray lightgray;
    background: darkgray;
    color: #fff;
}

.nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover {
    color: #efefee;
}

.sticker {
    position: fixed;
    z-index: 1201;
    background-color: #debd96;
    /*background-color: #AAAA00BB;*/
    /*background-color: #717171;*/
    left:10px;
    opacity: 0.9;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.25);
}

.event-info-persons {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 220px;
    overflow-y: auto;
    padding: 2px 0;
}

.event-info-person {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 3px 6px;
    border: none;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.35);
    text-align: left;
    cursor: pointer;
    color: inherit;
}

.event-info-person:hover {
    background: rgba(255, 255, 255, 0.7);
}

.event-info-person-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.event-info-person-name {
    font-size: 0.85em;
    line-height: 1.2;
}

.event-info-refs {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.event-info-ref {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88em;
    font-weight: 600;
    color: #2a3d6b;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.event-info-ref:hover {
    color: #1a2540;
}

.event-info-ref--plain {
    color: #3a342c;
    text-decoration: none;
    font-weight: 600;
}

.fixed {
    position: absolute;
    z-index: 1200;
}
.find {
    position: absolute;
    z-index: 1200;
    top:17px;
    left: 60px;
}
.eventinfo {
    /*position: fixed;*/
    position: absolute;
    z-index: 1200;
    background-color: #AAAAAABB;
    left:39px;
    top:100px;
}
#eventinfowrapper {
    max-height: 60vh;
    overflow: auto;
    display:inline-block;
}
.eventinfo table{
    /*table-layout: fixed;*/
    /*margin: 4px;*/
    width: 100%;
}
.eventinfo tr {
    border-bottom: 1px;
}
.eventinfo tr:hover {
    background-color: lightgrey;
}
#eventinfotable .selected {
    background-color: white;
}
.eventinfo td:nth-child(1){
    width: 60px;
}
.eventinfo td:nth-child(3){
    width: 20px;
}

/* ADVERTISEMENT */

.ad-space {
    background: #fff;
    border-radius: 5px;
    border-top: 5px solid green;
}

.quote-space {
    background: #fff;
    margin-top: 30px;
    border-radius: 5px;
    border-top: 5px solid hotpink;
}

/* ARTICLES */

.main-article {
    border: 2px solid #efefee;
    Background: #fff;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.main-article img {
    width: 100%;
    height: 250px;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    border-top: 5px solid lightblue;
}

.article-container {
    border: 1px solid #efefee;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    background: #fff;
}

.main-article-link, .article-container a {
    text-decoration: none;
    color: #000;
}

.main-article-link:hover {
    text-decoration: none;
    color: #000;
}

.article-title {
    min-width: 300px;

}

@media (max-width: 440px) {
    .article-title {
        min-width: 100px;
        max-width: 245px;
    }
}

.article-img {
    height: auto;
    width: 100px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    /*border-radius: 50%;*/
    /*border: 1px solid #717171;*/
}

.article-icon {
    height: 120px;
    width: 120px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}
.show-article-icon {
    height: auto;
    width: 100px;
}
.article-author-img {
    height: 25px;
    border: 1px solid darkgray;
    padding: 2px;
}

.article-details {
    font-size: .8em;
}

/* PROFILE */

.profile-img {
    width: 150px;
    height: auto;
    border: 2px solid #fff;
}

.profile-name {
    font-size: 1.5em;
}
/*
.my-article-container {
    background: #FFBC49;
    border: solid 1px #efefee;
    border-radius: 5px;
}*/

/*
.hoverTable tr:hover {
    background-color: #ffff99;
}*/

/* CREATE ARTICLE */

.create-article-container {
    min-width: 400px;
    background-color: lightblue;
    border-radius: 5px;
}

/* ARTICLE SHOW PAGE */

.show-article-container {
    width: 100%;
    background-color: #fff;
    box-shadow: 2px 3px 9px 4px rgba(0,0,0,0.2);
}

.show-article-container.show-article-container-border-green {
    border-top: 3px solid green;
    border-radius: 3px;
}

.event-img {
    /*width: auto;*/
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.show-article-img {
    /*width: 250px;*/
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.show-article-title {
    /*font-size: 2em;*/
    font-size: 1.7em;
}

.show-article-block {
    display: flex;
    flex-direction: row;
    -ms-flex-direction: row;
    flex-wrap: wrap;
    margin: 10px 0px;
}
.show-article-item {
    margin: 0px 15px;
}
.show-article-left-item {
    margin-left: 0px 15px 0px;
}
.show-article-right-item {
    margin-right: 0px 0px 15px;
}
.jc-sp-btw {
    justify-content: space-between;
}
.jc-right {
    justify-content: flex-end;
}

.like-article, .like-article:hover {
    color: red;
    text-decoration: none;
}

@media (max-width: 991px) {
    .show-article-title {
        font-size: 1.5em;
    }

    .show-article-title-container {
        max-width: 220px;
    }
}

.article-text {
    /*margin-top: 20px;*/
}

.share-icons i {
    font-size: 1.5em;
}

.comment-container {
    max-width: 600px;
}

.comment-img {
    /*width: 50px;*/
    width: 100%;
    max-width: 120px;
    height: auto;
    border: 1px solid darkgray;
}

.commenter-name {
    font-weight: bold;
}

.comment-form {
    min-width: 500px;
}

@media (max-width: 767px) {
    .comment-form {
        min-width: 260px;
    }
    .comment-container {
        max-width: 280px;
    }
}

/* FOOTER */

.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 40px; /* Set the fixed height of the footer here */
  line-height: 40px; /* Vertically center the text there */
  background-color: #fff;
  margin-top: 10px;
  z-index: 1200;
}

.form-group {
    margin: 10px;
}

[data-toggle="toggle"] {
    display: none;
}

.hoverable :hover {
    background-color: #555;
}

tr.chapter {
    font-weight: bold;
}

tbody.chapter_book {
    display: none;
}

/* ADD */
button {
    cursor: pointer;
}
a:hover{
    text-decoration: none;
}
/* TIMELINE CONTEXT MENU */
.context-menu-open {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.54);
    background-color: white;
    border-radius: 4px;
    padding: 4px;
    opacity: 0.9;
}
.context-menu-open ul {
    padding: 0;
    margin: 0;
}
.context-menu-open ul li {
    cursor: pointer;
    list-style: none;
    padding: 7px 15px;
    /*border-bottom: 1px solid #BFE2FF;*/
}
.context-menu-open ul li:first-child {
    /*border-bottom: 1px solid transparent;*/
    margin-top: 15px;
}
.context-menu-open ul li:last-child {
    /*border-bottom: 1px solid transparent;*/
    margin-bottom: 7px;
}
.context-menu-open ul li:hover {
    background-color: #BFE2FF;
}
.context-menu-open .divider {
    height: 1px;
    margin: 8px 0;
    padding: 0px 3px;
    overflow: hidden;
    background-color: #e5e5e5;
}

.disabled {
    pointer-events:none;
    opacity:0.6;
}

/* MODAL FORM ADD EVENT */
.popup-box {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
}
.popup-form-add-event {
    position: relative;
    width: 70%;
    height: auto;
    max-height: 70vh;
    margin: 0 auto;
    margin-top: calc(100vh - 80vh - 20px);
    padding: 10px 20px 20px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #999;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.54);
    overflow: auto;
    opacity: .95;
}
.popup-close-icon {
    position: relative;
    width: 100%;
    height: 25px;
    right: 0px;
    top: 0px;
    text-align: right;
    cursor: pointer;
    margin: 0px 0px 10px;
}
.popup-close-icon img {
    height: 25px;
}
.cursor-p {
    cursor: pointer;
}
th a {
    color: #1C1C1C;
    font-weight: 450;
    white-space: nowrap;
    /*color: #C8CCCF;*/
    /*color: #5B5B5B;*/
}
.checkedbyuser {
    color: green;
}

.checkedbyanotheruser {
    color: green;
}

.notchecked {
    color: red;
}

.partlychecked {
    color: orange;
}


#level_table {
    border-collapse: collapse;
    table-layout: fixed;
}

#level_table tr {
    border: none;
}

#level_table td {
    border-right: solid 1px #f00;
    border-left: solid 1px #f00;
}
/*
.dropdown-item .country{
    width: 36px;
}

.country {
    margin: 10px;
    padding: 4px 6px;
    border: 1px solid #999;
    border-radius: 5px;
    display: inline-block;
    font-family: tahoma;
    font-size: 12px
}
.country i {
    background: url('../images/flags/flags.png') no-repeat;
    display: inline-block;
    width: 16px;
    height: 11px;
}*/

/*  UPDATE BOOTSTRAP   */
.text-primary:hover {
    color: #0056b3 !important;
    text-decoration: none;
}
.table td, .table th {
    vertical-align: middle !important;
}
.form-check-input {
    margin-left: 0px !important;
}
.btn-primary {
    color: #fff;
}
.table td .new {
    background-color: #FF55FF;
}
a:hover {
    color: #3E50F0;
    opacity: 0.9;
}
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,.8);
}
.nav-link {
    font-weight: 500;
    cursor: pointer;
}
.btn {
    cursor: pointer;
}
.btn:not(.input-group-append .btn, .form-search-item .btn) {
    text-transform: uppercase;
    vertical-align: bottom;
    border: 0;
    -webkit-box-shadow: 0 2px 5px 0 rgba(0,0,0,.2),0 2px 10px 0 rgba(0,0,0,.1);
    box-shadow: 0 2px 5px 0 rgba(0,0,0,.2),0 2px 10px 0 rgba(0,0,0,.1);
    /*font-weight: 500;*/
    padding: .625rem 1.5rem .5rem;
    font-size: .75rem;
    line-height: 1.5;
}
.btn.active, .btn.active:focus, .btn.focus, .btn:active, .btn:active:focus, .btn:focus, .btn:hover {
    -webkit-box-shadow: 0 4px 10px 0 rgba(0,0,0,.2),0 4px 20px 0 rgba(0,0,0,.1);
    box-shadow: 0 4px 10px 0 rgba(0,0,0,.2),0 4px 20px 0 rgba(0,0,0,.1);
}

/* end UPDATE BOOTSTRAP */

/* MAIN MENU SEARCH */
.form-search-item {
    display: inline-block;
    position: relative;
}
.form-search-item input {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    outline: none;
    width: 100%;
    height: 30px;
    /*padding: 0px 10px;*/
    font-size: 14px;
    color: #FFFFFF;
}
.form-search-item input:focus ~ label,
.form-search-item input:not(:focus):valid ~ label {
    color: rgba(255, 255, 255, 0.5);
    left: 15px;
    top: -8px;
    font-size: 10px;
}
.form-search-item label {
    color: rgba(255, 255, 255, 0.5);
    position: absolute;
    left: 7px;
    transition: .3s;
    top: 10px;
    pointer-events: none;
    line-height: 15px;
    font-size: 15px;
}
.form-search-item .btn {
    background-color: transparent;
    padding: 0px;
    vertical-align: center !important;
    color: rgba(255, 255, 255, 0.5);
    /* border-color: #2780E3; */
    /*-webkit-box-shadow: none;*/
    /*-moz-box-shadow: none;*/
    /*box-shadow: none;*/
}
/*    END MAIN MENU SEARCH */

/*    NEW STYLES   */
.img-100 {
    width: 100%;
    hight: auto;
}
.img-200px {
    width: 200px;
    hight: 200px;
}
.arrow {
    /*transform: rotate(-90deg);*/
    cursor: pointer;
    /*-moz-transform: matrix(0, -1, -1, 0, 0, 0);*/
}
.form-control label {
    cursor: pointer;
}
/*  END NEW STYLES*/

/* ANIMATION */
.fade-in-block {
    animation: fadeIn 5s;
    -webkit-animation: fadeIn 5s;
    -moz-animation: fadeIn 5s;
    -o-animation: fadeIn 5s;
    -ms-animation: fadeIn 5s;
}
@keyframes fadeIn {
    0% {opacity:0;}
    100% {opacity:1;}
}

@-moz-keyframes fadeIn {
    0% {opacity:0;}
    100% {opacity:1;}
}

@-webkit-keyframes fadeIn {
    0% {opacity:0;}
    100% {opacity:1;}
}

@-o-keyframes fadeIn {
    0% {opacity:0;}
    100% {opacity:1;}
}

@-ms-keyframes fadeIn {
    0% {opacity:0;}
    100% {opacity:1;}
}
/* END ANIMATION */