#timeline-embed {
    height: 99% !important;
    display: inline-block;
}

body {
    margin: 0;
    padding: 0;
}

.tl-attribution {
    display: none;
}

div#add-button-container {
    position: absolute;
    display: flex;
    top: 1em;
    right: 1em;
    z-index: 13;
    transition: 0.1s;
}

span#add-button {
    background: #ab0000;
    width: 1em;
    height: 1em;
    border-radius: 5.5em;
    display: flex;
    font-size: 4em;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: 0.25s;
}

div#pop-up-add-event-container {
    font-family: 'Comfortaa', sans-serif;
    position: absolute;
    top: 0em;
    left: 0em;
    width: calc(100% - 0em);
    background: #00000036;
    display: flex;
    z-index: 11;
    height: calc(100% - 0em);
    transform: translateY(-200%);
    transition: 0.5s;
    justify-content: center;
    align-items: center;
}

div#pop-up-add-event-container.visible {
    transform: translateY(0);
}

div#pop-up-add-event {
    width: 800px;
    max-width: 95%;
    height: 80%;
    background: white;
    box-shadow: 0 0 3px #00000024;
    padding: 2em;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: baseline;
    position: relative;
}

#add-button.close {
    transform: rotate(45deg);
}

input#searchInput {
    border: none;
    border-bottom: 1px solid;
    font-size: 1.8em;
    flex: 1;
    height: 1.2em;
    background: #00000002;
    padding-left: 0.5em;
}

#pop-up-add-event-content label {
    font-style: italic;
    opacity: 0.5;
}

button.search-button {
    /* border: none; */
    background: none;
    font-size: 1.5em;
    border-radius: 50%;
    width: 2em;
    height: 2em;
    cursor: pointer;
}

button.search-button:focus {
}

input#searchInput:focus {
    outline: none;
    border-bottom: solid 2px #990505;
}

#ai-api-catcher {
    background: #ffffff;
    z-index: 12;
    display: block;
    width: 100%;
    position: absolute;
    top: 0;
    display: none;
    padding: 1em;
}

div#result-events-container {
    margin-top: 1em;
    transform: translateX(-200%);
    opacity: 0;
    overflow: hidden;
    transition: 0.5s;
    height: 100%;
    position: relative;
    display: inline-block;
}

div#results-event-list {
    display: flex;
}

div#results-events-list {
    /* border: black solid 1px; */
    padding: 1em;
    max-height: 90%;
    overflow-y: auto;
}

div.result_obj {
    background: floralwhite;
    margin-bottom: 1em;
    padding: 0.75em 1em;
    box-shadow: 1px 1px 5px #00000026;
}

.result_obj .date {
    font-weight: bold;
    display: flex;
}

div#result-events-container.visible {
    transform: translateX(0);
    opacity: 1;
}

.button-add-to-timeline {
    /* transform: translate(0, 1em); */
    background: white;
    padding: 0.3em 1.5em;
    border-radius: 1.5em;
    border: solid 1px grey;
    position: relative;
    display: block;
    margin-left: auto;
    width: fit-content;
    margin-top: 0.5em;
    cursor: pointer;
    transition: 0.1s;
}

.button-add-to-timeline:hover {
    transform: scale(1.1);
    background: #e4f1ff;
}

div#pop-up-add-event-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
}

#results-events-list .description {
    font-style: italic;
}

#pop-up-add-event-content label.titre {
    opacity: 1;
    font-style: normal;
    font-size: 1.25em;
    margin: 0.25em 0 0.1em;
    display: inline-block;
    font-weight: bold;
}

.endDate::before {
    content: ">";
    margin-left: 1em;
    margin-right: 1em;
}

.tl-timemarker .tl-timemarker-content-container {
    height: auto !important;
    /* background: #f5fff7 !important; */
}

.search-bar {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
}

input#searchInput::placeholder {
    font-style: italic;
    opacity: 0.5;
    font-size: 0.9em;
}

div#add-button-container::after {
    content: "Add event";
    position: absolute;
    bottom: -1.5em;
    display: flex;
    flex-wrap: nowrap;
    width: 6em;
    font-family: 'Comfortaa', sans-serif;
    font-size: 0.8em;
}

div#add-button-container:hover {
    transform: scale(1.1);
}

html {
    overflow: hidden;
}

div#results-events-list.disabled {}

.button-add-to-timeline.disabled {
    opacity: 0.5;
    background: #0000001f;
    pointer-events: none;
}

div#pop-up-add-event-container.loading #loader {
    background: #0000001a;
    width: 100%;
    position: absolute;
    height: 100%;
    z-index: 1;
    background: url('ressources/loader.gif');
    width: 800px;
    max-width: 95%;
    height: 80%;
    background-repeat: no-repeat;
    background-size: 441px;
    background-position: center;
}

div#pop-up-add-event-container.loading #pop-up-add-event {
    filter: blur(2px);
    transition: 0.5s;
}

.tl-timenav {
    /* height: auto !important; */
    overflow: auto;
    overflow-y: hidden;
}

#add-button.glowing {
    animation: glowing 1s infinite ease-in-out;
}

@keyframes glowing {
    0%,100%{        transform: scale(1);    }
    50% {        transform: scale(1.1);    }
}