body {
    margin: 0;
    font-family: "Merriweather", serif;
    background:
        linear-gradient(
            rgba(128, 128, 128, 0.4),
            rgba(128, 128, 128, 0.4)
        ),
        url(images/blackpavement.jpg);
    background-size: auto;
    background-repeat: repeat; 
}
header {
    background: url(images/roughpaper.jpg) lightgray -0.22px -34px / 100% 632.176% no-repeat;
}
.title {
    color: #822424;
    font-size: 72px;
    margin: 0;
    text-shadow: 1px 1px 2px #000;
    text-align: center;
    padding: 20px 0 0;
    filter: drop-shadow(1px 4px 3px rgba(0, 0, 0, 0.79));
}

/* nav */
nav {
    display: flex;
    justify-content: center;
    background: #494949;
    margin-top: 15px;
    padding: 5px;
    gap: 150px;
}
nav > div {
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 0;
    margin: 0;
    align-items: center;
    gap: 150px
}
nav a{
    display: block;
    text-align: center;
    text-decoration: none;   
    padding: 12px 25px;
    color: #fff;   
}
nav a:hover{
    background-color: #822424;
}
nav a.active {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #822424;
}
.dropdown{
    position: relative;
}
.dropdown-content {
    background-color: #444;
    min-width: 260px;
    display: none;
    position: absolute;
    z-index: 1; 
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}
.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: center;
    transition: 0.3s ease;
}
.dropdown:hover .dropdown-content{
    display: block;
}
.dropdown-content a:hover {
    color: #822424;
    background-color: rgb(254, 254, 254);
    font-weight: bold;
}
.dropdown-content a.active{
    color: #822424;
    background-color: rgb(254, 254, 254);
    font-weight: bold;
}





/* main page*/
.container {
    margin: auto;
    background: #ddd;
    padding: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    box-sizing: border-box;
}
.card {
    background: #f5f5f59b;
    padding: 10px;
    box-sizing: border-box;
}
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.card h2 {
    font-family: "Merriweather", serif;
    font-size: 30px;
    margin: 8px 0 2px;
}
.card p {
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    color: #333;
    line-height: 1.5;
    margin: 0;
}
a{
    text-decoration: none;
    color: black
}







/* cases */
main{
    background: #D9D9D9;
    max-width: 1250px;
    margin: auto;
    padding: 25px;
}
body.gradent{
    background:
    linear-gradient(
        to bottom,
        rgba(217, 217, 217, 0.3) 0%,
        rgba(217, 217, 217, 0.6) 40%,
        rgba(133, 26, 26, 0.7) 100%
    ),
    url(images/blackpavement.jpg);
    background-size: auto;
    background-repeat: repeat; 
}
h1{
    font-size: 50px;
    margin-top: -8px;
    font-family: "Merriweather", serif;
    white-space: nowrap;
}
h2{
    margin-top: -30px;
    font-family: "Open Sans", sans-serif;
    margin-bottom: 0px;
}
.layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 23px;
    margin-top: -20px;
    align-items: stretch;
}
.left{
    display: flex;
    flex-direction: column;
    gap: 20px
}
.right{
    flex: 1;
}
.st-right{
    flex: 1;
    width: 575px;
}





/*LEFT*/
.overview h3{
    display: flex;
    color: #000;
    font-family: "Open Sans";
    font-size: 22px;
    font-weight: 700;
    margin-top: 50px;
}
.overview p{
    color: #000;
    font-family: "Open Sans";
    font-size: 20px;
    padding-left: 18px;
    margin-top: -15px;
}




/*RIGHT*/
.death{
    width: 100%;
    border: 3px solid black;
    padding: 10px;
    margin: 10px;
    display: block;
    margin-right: 0;
    margin-bottom: 25px;
    margin-top: 0%;
    box-sizing: border-box;
}
.death h3{
    margin-top: -5px;
    font-size: 32px;
}
.death h4{
    font-family: "Open Sans", sans-serif;
    font-size: 30px;
    color: #822424;
    text-align: center;
    margin-top: -25px;
}
.causetype{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-family: "Open Sans", sans-serif;
    font-size: 25px;
    margin-top: -35px;
}
.row{
    display: flex;
    justify-content: flex-start;
    gap: 10px;
}
.row p{
    margin: 0px;
}
.label{
    font-weight: bold;
    text-align: left;
}
.value{
    text-align: left;
}
hr{
    border: 0px;
    border-top: 3px solid black;
    margin-top: 20px;
}
.quote{
    color: #000;
    font-family: "Open Sans", sans-serif;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-align: center;
    margin-top: -8px;
}
.leader{
    width: 100%;
    border: 3px solid black;
    padding: 10px;
    margin: 10px;
    display: block;
    margin-right: 0;
    margin-bottom: 25px;
    box-sizing: border-box;
}
.leader img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: center;
    margin-top: -5px;
}
.leader h1{
    color: #000;
    font-family: "Open Sans";
    font-size: 40px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.8px;
    text-align: center;
    margin-top: 5px;
}
.information{
    display: flex;
    flex-direction: column;
    align-items: left;
    gap: 8px;
    font-family: "Open Sans", sans-serif;
    font-size: 20px;
    margin-top: -20px;
}
.information .row{
    display: flex;
    justify-content: left;
    gap: 10px;
}
.information .label{
    font-weight: bold;
}
.information .value{
    text-align: left;
}




/*PHOTOS*/
.photos{
    display: block;
    flex-grow: 1;
    grid-column: 1/ -1;
    color: #000;
    font-family: "Open Sans";
    font-size: 22px;
    font-weight: 700;
    margin-top: -20px;
}

.photo-dump {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: -10px;
}
.photo-dump img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: pointer;
}
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
}
.overlay-content {
    text-align: center;
    max-width: 80%;
}
#overlay img {
    max-width: 100%;
    max-height: 500px;
    display: block;
    margin: auto;
}
#caption {
    color: white;
    margin-top: 10px;
    font-size: 18px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}
.arrow {
    position: absolute;
    top: 50%;
    font-size: 40px;
    color: white;
    cursor: pointer;
    padding: 10px;
    transform: translateY(-50%);
}
.arrow.left {
    left: 20px;
}
.arrow.right {
    right: 20px;
}






/*TIMELINE*/
.timeline-container{
    grid-column: 1/ -1;
    margin-top: 20px;
    font-family: "Open Sans", sans-serif;
    font-size: 20px;
}
.timeline-container h3{
    font-size: 22px;
    margin-top: -20px;
}
.timeline{
    position: relative;
    padding-left: 75px;
}
.event {
    position: relative;
    margin-bottom: 20px;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 75px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgb(68, 68, 68);
}
.year {
    position: absolute;
    left: -100px;
    width: 90px;
    text-align: right;
    font-weight: bold;
}
.content {
    padding-left: 15px;
    border-top: 1px dashed rgba(68, 68, 68, 0.8);
    margin-bottom: -8px;
}
.content hr{
    width: 50px;
    margin: 3px 0px 2.5px;
    border: none;
}
.bold{
    font-weight: bold;
    margin-top: 10px;
}
.bottom{
    text-align: center;
    font-weight: bold;
    margin-top: 15px;
}

footer{
    font-family: "Open Sans", sans-serif;
    font-size: 20px;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 40px;
    font-weight: bold;
}
footer a{
    color: #fff;
    text-decoration: none;

}



.modal {
    display: block;
    position: fixed;        z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}
.modal-content {
    position: relative;
    background-color: #771919;
    margin: auto;
    padding: 0;
    border: 1px solid #888;
    width: 80%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;
    color: #f5f5f5
}
@-webkit-keyframes animatetop { 
    from {top:0; opacity:1}
    to {top:-300px; opacity:0}
}
@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1} 
}
.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin-right: 10px;
}
.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}
.modal-header {
    background-color: #8d3c3c;
    color: white;
    padding: 10px 16px;
    width: 100%;
    box-sizing: border-box;

}
.modal-header h2{
    text-align: center;
    margin: 0;
    font-family: "Open Sans";
    font-size: 50px;
    font-weight: bold;
}
.modal-body {
    padding: 2px 16px;
    text-align: center;
    font-family: "Open Sans";
    font-size: 30px;
    font-weight: bold;
}


.soruces a{
    display: block;
    margin: 10px 0;
}
.soruces a:hover {
    color: #822424;
    text-decoration: underline;
}

.bottomsources {
    grid-column: 1 / -1;
    max-width: 800px;
    margin: 15px auto;
    text-align: center;
    font-weight: bold;
}
