/* CSS for History Page 2024 Ed. */
/* Timeline */


.timeline-top {
    height: 145px;
    overflow: hidden;
}

.timeline-top > div,
.timeline-bottom > div {
    position: relative;
    width: 25%;
    float: left;
    margin-left: 2%;
    height: 100%;
}

.timeline-container img {
    width: 100%;;
    opacity: 0;
}

.timeline-top > div:first-child,
.timeline-bottom > div:first-child {
    margin-left: 0;
    width: 19%;
    overflow: hidden;
    fill: currentColor
}

.timeline-top{
    margin-bottom: 0.5rem;
}

.timeline-pipe {
    border-top: 1px solid silver;
    margin-top: 0.5rem;
    margin-left: 0.35rem;
    margin-bottom: -1.375em;
    border-left: 1px solid #A02337;
    height: 1.25rem;
}

.timeline-dot {
    width: .75rem;
    height: .75rem;
    border-radius: 1rem;
    background: #A02337;
}

.timeline-year {
    padding-top: 1.125rem;
    font-size: 1rem;
    font-weight: bold;
    color: #0a0a0a !important;
}
.timeline-caption {
    font-size: 0.95rem;
}

.timeline-slide:first-child {
    height: 100%;
    background: url('/history-2025/img/timeline-1964.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center
}

.timeline-slide:nth-child(2) {
    background: url('/history-2025/img/timeline-1976.jpg');
    background-size: cover;
    background-repeat: no-repeat;
}

.timeline-slide:nth-child(3) {
    background: url('/history-2025/img/timeline-1994.jpg');
    background-size: cover;
    background-repeat: no-repeat;
}

.timeline-slide:nth-child(4) {
    background: url('/history-2025/img/timeline-2022.jpg');
    background-size: cover;
    background-repeat: no-repeat;
}

/* Added by Ali */
article a.history-expand-all {
    font-size: 0.85rem;
}

article a.history-expand-all > .show-on-collapsed {
    display: none;
}
article a.history-expand-all > .hide-on-collapsed {
    display: inline;
}

article a.history-expand-all.collapsed > .show-on-collapsed {
    display: inline;
}
article a.history-expand-all.collapsed > .hide-on-collapsed {
    display: none;
}

article a > .show-on-collapsed {
    display: none;
}
article a > .hide-on-collapsed {
    display: inline;
}

article a.collapsed > .show-on-collapsed {
    display: inline;
}
article a.collapsed > .hide-on-collapsed {
    display: none;
}

.history-top a,
.history-top a:active,
.history-top a:hover {
    text-decoration: none !important;
}

/* 2025-02-11 */
.history-table {
    border: none;
    border-bottom: 1px solid #333 !important;
}

.history-table tr.history-period {
    background: #ececec;
}

.history-table tr.history-year {
    background: #f8f8f8;
}

.history-table th,
.history-table td {
    border-top: 1px solid #333 !important;
    border-right: none;
    border-bottom: none;
    border-left: none;
}

.history-table th:first-child {
    white-space: nowrap;
}

.history-table td:nth-child(3) {
    white-space: nowrap;
    vertical-align: bottom;
}

.history-table {
    font-size: .9125rem;
}

.history-slides {
    margin-bottom: 3rem;
}

.history-slides figure {
    display: table;
    margin: 0 auto;
}

/*.history-slides figure img {*/
/*    height: 360px;*/
/*}*/

.history-slides figure figcaption {
    display: table-caption;
    caption-side: bottom;
    font-size: 0.9rem;
    margin-top: 0.25rem;
    text-align: center;
}

.history-slides button i {
    color: #121212;
    font-size: 1.25rem;
}
.history-slides .carousel-indicators {
    bottom: -3rem;
}

.history-slides .carousel-indicators li {
    width: 10px;
    height: 10px;
    background-color: grey;
    margin: 0.25rem;
    padding: 0;
}
.history-slides .carousel-indicators li:hover {
    width: 10px;
    height: 10px;
    background-color: grey;
}
.history-slides .carousel-indicators li:hover,
.history-slides .carousel-indicators li.active {
    background-color: #A02337;
}
.history-prefix {
    margin: 0.5rem 0 1rem 0;
}


/* Grid */
.history-container {
    font-size: 0.9125rem;
    border-bottom: 1px solid #333;
}

.history-container .row {
    padding: 1rem 0.25rem;
    border-top: 1px solid #333;
}

.history-level-1{
    background: #ececec;
}

.history-level-1 .history-period-header {
    font-weight: bold;
}

.history-level-2 {
    background: #fafafa;
}

/* Expand widget container (year). */
.history-level-2 > div:nth-child(3) {
    font-weight: bold;
    text-align: right;
    vertical-align: bottom;
}

/* Responsive carousel image. */
.history-slides figure img {
    height: 240px;
}

@media (min-width: 768px) {
    .history-slides figure img {
        height: 300px;
    }
}

@media (min-width: 1024px) {
    .history-slides figure img {
        height: 340px;
    }
}

@media (min-width: 1280px) {
    .history-slides figure img {
        height: 380px;
    }
}


.history-overlay {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1002;
    display: none;
}
.history-overlay .overlay-backdrop {
    position: relative;
    height: 100%;
    width: 100%;
    background-color: black;
    opacity: 0.75;
}
.history-overlay .overlay-content {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    text-align: center;
    padding: 0 8%;
}

.history-overlay .overlay-header {
    line-height: 2rem;
    color: #eee;
}
.history-overlay .overlay-header > span {
    float: left;
}
.history-overlay .overlay-header > a {
    float: right;
    color: #eee;
    font-size: 1.5rem;
}
.history-overlay .overlay-header > a:active,
.history-overlay .overlay-header > a:hover {
    color: #fff;
}