/* Fonts */

@font-face {
    font-family: 'Libre Baskerville';
    src: url('fonts/LibreBaskerville-Italic.woff2') format('woff2'),
    url('fonts/LibreBaskerville-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Libre Baskerville';
    src: url('fonts/LibreBaskerville-Regular.woff2') format('woff2'),
    url('fonts/LibreBaskerville-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Libre Baskerville';
    src: url('fonts/LibreBaskerville-Bold.woff2') format('woff2'),
    url('fonts/LibreBaskerville-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* Globals */

html,body{
    font-size: 16px;
    font-family: 'century-gothic';
    font-weight: normal;
    color: #6D7489;
}
h1, h2, h3, h4, h5{
    font-family: 'Libre Baskerville';
    font-weight: normal;
    line-height: 1.2;
}
h1{
    font-size:2.25rem;
    line-height: 2.5rem;
}
h2{
    font-size: 2rem;
}
h3{
    font-size: 1.625rem;
}
h4{
    font-size: 1.5rem;
}
h5{
    font-size: 1.125rem;
    font-weight: bold;
}
h6{
    font-size: 1.125rem;
    font-weight: bold;
}
a{
    color: #C3A155;
    text-decoration: underline;
    transition: all 0.3s;
}
a:hover, a:visited{
    color:#907029;

}
p{
    line-height: 1.3;
}
/* Helpers */

.centuryGothic{
    font-family: 'century-gothic', sans-serif;
}
.baskerville{
    font-family: 'Libre Baskerville', serif;
}
.font_color_dark{
    color: #6D7489;
}
.font_color_light, a.font_color_light{
    color: #fff;
}
a.font_color_light:hover{
    color:#C3A155;
}
.font_color_dark h1, .font_color_dark h2, .font_color_dark h3, .font_color_dark h4, .font_color_dark h6 {
    color: #202843;
}
.font_color_light h1, .font_color_light h2, .font_color_light h3, .font_color_light h4, .font_color_light h6 {
    color: #fff;
}
h5{
    color:#BD9554;
}
.background_position_top_right {
    background-position-x: 100%;
    background-size: auto;
    background-position-y: 80%;
}
.small{
    font-size: 0.8rem;
}
.lightboxAction{
    top: 1rem;
    left: auto;
    right: 0rem;
    background: none !important;
}
.flexRow {
    flex-direction: row;
}

.flexRowReverse {
    flex-direction: row-reverse;
}
h1.postTitle {
    color: #003366;
    text-align: center;
    position: relative;
}
.subtitle {
    font-size: 1.125rem;
    width: 50%;
    text-align: center;
    margin: 1rem auto 3rem;
}
/* Buttons */
.button{
    transition: all 0.3s;
    text-decoration: none;
}
.button.regular{
    font-family: 'Libre Baskerville';
    font-size: 1rem;
    font-weight: bold;
    position: relative;
    text-transform: uppercase;
    color: #C3A155;
}
.button.regular:after{
    content: '';
    position: absolute;
    bottom:-10px;
    left: 0;
    border: 1px solid #C3A155;
    height: 0px;
    border-radius: 10px;
    background-color: #C3A155;
    width:100%;
    transition: all 0.3s;
}

.button.regular:hover{
    color:#907029;
}
.button.regular:hover:after{
    background-color:#907029;
    border-color: #907029;
}

.button.conversion{
    font-family: 'Libre Baskerville';
    font-size: 1rem;
    font-weight: bold;
    padding:1rem 1.5rem;
    text-transform: uppercase;
    background-color: transparent;
    color:#C3A155;
    border:2px solid #C3A155;
    border-radius: 2px;
}

.button.conversion:hover, .remarkablePersonTileLoop:hover .button.conversion, .button.conversion.acceptAllCookies{
    background-color: #C3A155;
    color:#fff;
    border:2px solid #C3A155;
    border-radius: 2px;
}
.button.showPrefs {
    text-transform: none !important;
}

/* Timeline */
.page-template-page-timeline div#main {
    background-color: #F8F8F8;
    position: relative;
}
main.postContent.timelineContent {
    position: relative;
}
#decadesContainer{
    position: absolute;
    height: 100%;
}
#verticalLine {
    background-color: rgba(109,116,137,0.4);
    width: 1px;
    height: 100%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%);
    /*top: 0;*/
    /*left: 0;*/
    /*right: 0;*/
    /*margin: auto;*/
}
/* Timeline elements */
.timelineDateContainer {
    width: 50%;
    align-self: flex-end;
    position: relative;
    color: #C3A155;
    font-size: 2rem;
    box-sizing: border-box;
    padding-left: 2rem;
    cursor: pointer;
}
.timelineDateContainer:before {
    content: '';
    background-color: #003366;
    width: 23px;
    height: 23px;
    position: absolute;
    border-radius: 100%;
    top: 0;
    left: 0;
    transform: translate(-50%);
}
.timelineDate {
    position: relative;
    transform: translateY(-7px);
    top: 0;
}
.timelineElement {
    display: flex;
    flex-direction: column;
    margin-bottom: 3rem;
}
.timelineElementClose {
    width: 100%;
    display: flex;
    flex-direction: column;
    display: none;
}
.timelineElementContent {
    width: 50%;
}

.timelineElementContent.alignLeft {
    align-self: flex-end;
}

.timelineElementContent.alignRight {
    align-self: flex-start;
}
.timelineElementInner {
    padding: 1.5rem;
    box-sizing: border-box;
    background-color: #fff;
}

.timelineElementContent.alignLeft .timelineElementInner {
    margin: 3rem 30% 3rem 1rem;
    border-top: 20px solid #fff;
    border-left: 10px solid #f8f8f8;
}

.timelineElementContent.alignRight .timelineElementInner {
    margin: 3rem 1rem 3rem 30% ;
    border-top: 20px solid #fff;
    border-right: 10px solid #f8f8f8;
}
.timelineElementDescritpion{
    margin-bottom: 1rem;
}
.timelineElementImage img {
    height: 20rem;
    max-width: 80%;
    object-fit: contain;
    margin: 1.5rem auto;
}

.timelineElementImage {
    text-align: center;
}

.timelineElementInner h3 {
    margin-bottom: 1rem;
    color:#003366;
}

.timelineElementInner p {
    margin: 0;
}

.timelineElementImageCaption {
    margin-bottom: 2rem;
}

.timelineElementButton.buttonsContainer {
    margin-bottom: 1rem;
}

div#decades {
    display: flex;
    align-items: center;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 2;
    padding-top: 3rem;
}
div#decadesEls {
    margin-left: 1.5rem;
}
div#decadesLines {
    padding-left: 1rem;
}
.decadeLine {
    width: 6px;
    background-color: rgba(109,116,137,0.15);
    height: 17px;
    margin-right: 12px;
    border-radius: 6px;
}


.decadeEl {
    font-size: 1.5rem;
    color: #003366;
    padding: 0.7rem 0;
    cursor: pointer;
    transition: all 0.3s;
}
.decadeEl:hover{
    color: #6D7489;
}

.decadeLine.active {
    height: 30px;
    background-color: #C3A155;
}

.decadeEl.active {
    font-size: 2rem;
    color: #C3A155;
}

@media all and (max-width : 800px){
    .button.conversion, .button.regular{
        padding: 0 !important;
    }
    #decades{
        display: none !important;
    }
    .subtitle {
        width: 100%;
    }

    .timelineElementContent.alignLeft,.timelineElementContent.alignRight {
        align-self: flex-end;
        width: 95%;
    }

    .timelineElementContent.alignLeft .timelineElementInner, .timelineElementContent.alignRight .timelineElementInner {
        margin: 1rem;
        border-top: 20px solid #fff;
        border-left: 10px solid #f8f8f8;
        border-right: 0;
    }

    .timelineDateContainer {
        width: 100%;
        padding-left: 3rem;
        padding-bottom: 1rem;
    }

    .timelineDateContainer:before {
        transform: none;
        left: 6px;
        width: 18px;
        height: 18px;
    }

    #verticalLine {
        left: 15px;
    }

    .timelineElementImage img {
        max-width: 95%;
        margin: 1rem 0;
    }
}