@import url('https://fonts.googleapis.com/css2?family=Noticia+Text:ital,wght@0,400;0,700;1,400;1,700&family=Prata&display=swap');

.timeline-container {
    background:#e3dad0;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 100%;
    position: relative;
    margin-top: var(--navbar-height);
    margin-bottom: 2em;
    height: var(--main-height);
    overflow-y: auto;
    height: max-content;
}

.timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
    padding-top: 15px; 
    padding-bottom: 20px;
    overflow: hidden;
}

.start-button, .end-button {
    text-decoration: none;
    background-color: #3d1302;
    color: #ffffff;
    padding: 30px 40px;
    border-radius: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    display: block;
    text-align: center;
    width: fit-content;
    margin: 10px auto;
    position: relative;
    z-index: 2;
}

.start-button:hover, .end-button:hover {
    background-color: #555;
}

.start-button {
    margin-bottom: 5em;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 50px; 
    bottom: 50px; 
    left: 50%;
    width: 4px;
    background-color: #785830; 
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    text-align: center;
    margin-bottom: 70px; 
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.timeline-item .point {
    width: 20px;
    height: 20px;
    background-color: #785830;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 2;
}

.timeline-item .point:hover {
    transform: scale(1.2);
}

.timeline-item .century {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 5px;
    flex: 1;
    text-align: right;
}

.timeline-item .title {
    font-size: 1.7rem;
    color: #333;
    margin-bottom: 5px;
    flex: 1;
    text-align: left;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.timeline-item:hover .title,
.timeline-item .point:hover + .title,
.timeline-item .century:hover + .title {
    opacity: 1;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
    transform: scale(1);
}

.modal-content {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    max-width: 250px;
    box-shadow: 0 5px 15px #333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-content img {
    width: 220px;
    height: 280px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 10px;
}

.modal-content .explore-btn {
    text-decoration: none;
    background-color: #785830;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: bold;
    display: inline-block;
    margin-top: 5px;
    transition: 0.3s;
}

.modal-content .explore-btn:hover {
    background-color: #555;
}

.modal-content .close {
    display: none;
}

.modal-content .close:hover {
    color: #000;
}

.nav-buttons {
    display: none;
}

@media (max-width: 480px) { 
        .timeline-container{
            padding-bottom: 7em;
        }
        
    
}