/* styles.css */

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}

header {
    background-color: #ff4b4b;
    color: white;
    text-align: center;
    padding: 1em 0;
}

h1 {
    margin: 0;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2em;
}

#open-modal-btn {
    background-color: #ff4b4b;
    color: white;
    padding: 1em;
    border: none;
    cursor: pointer;
    margin-bottom: 1em;
}

#timeline-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#timeline {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.person {
    text-align: center;
    font-weight: bold;
}

#timeline-events {
    flex-grow: 1;
    width: 2px;
    background-color: red;
    position: relative;
    margin: 20px 0;
}

.event {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 2px solid red;
    border-radius: 50%;
    text-align: center;
    line-height: 20px;
    cursor: pointer;
    transform: translateX(-50%);
}

.event-details {
    display: none;
    position: absolute;
    background: white;
    border: 1px solid #ccc;
    padding: 1em;
    z-index: 100;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.event:hover .event-details {
    display: block;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
