body {
    font-family: "Inter", serif;
    color: #eee;
    margin: 0;
    padding: 0;
    background-image: url(Background\ copy.jpg);
}

/* Navigation Styling */
nav {
    background: #222;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    z-index: 1000;
}

/* Navigation Links */
nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 15px 0;
    text-align: center;
}

nav ul li {
    display: inline-block;
}

nav a {
    color: white;
    text-decoration: none;
    padding: 10px;
    font-size: 15px;
}

nav a:hover {
    background: #444;
    border-radius: 5px;
}

/* Menu */
.menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    z-index: 1100;
    align-items: center;
    left: 10px;
    height: 40px;
    top: 50%;
}

.menu div {
    width: 25px;
    height: 4px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Ensure the nav-links dropdown appears above everything */
#nav-links {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    justify-content: space-around;
}

#nav-links li {
    padding: 10px;
}

#nav-links a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-weight: normal;
}

/* Responsive design for the menu */
@media (max-width: 768px) {
    .menu {
        display: flex;
        flex-direction: column;
        cursor: pointer;
    }

    .menu div {
        width: 30px;
        height: 3px;
        background-color: rgb(255, 255, 255);
        margin: 3px 0;
    }
}

/* Responsive styles for smaller screens */
@media (max-width: 768px) {

    #nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1200;
    }

    #nav-links.active {
        display: flex;
    }

    #nav-links li {
        text-align: center;
        padding: 5px;
    }

    #nav-links a {
        display: block;
        width: 100%;
    }
}

/* Responsive Menu */
@media screen and (max-width: 768px) {
    nav {
        justify-content: space-between; /* Allows hamburger and menu */
    }

    nav ul {
        display: none;
        flex-direction: column;
        background: #343434;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        text-align: center;
        padding: 20px 0;
    }

    nav ul.show {
        display: flex;
    }
}

/* Body */
.container {
    padding: 20px;
    text-align: center;
}

.title {
    font-size: 2.5em;
    font-weight: bold;
    margin: 20px 0;
    font-family: "Road Rage", serif;
    font-size: 80px;
    letter-spacing: 2px;
    text-align: center;
}

/* Popup Warning */
.alert {
    padding: 20px;
    background-color:  rgb(118, 1, 1);
    color: white;
    font-size: 16px;
  }
  
  .closebtn {
    margin-left: 10px;
    color: white;
    font-weight: bold;
    float: right;
    font-size: 20px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
  }
  
  .closebtn:hover {
    color: black;
  }

/* Fonts */
.road-rage-regular {
    font-family: "Road Rage", serif;
    font-weight: 400;
    font-style: normal;
  }


.nunito-sans {
    font-family: "Nunito Sans", serif;
    font-optical-sizing: auto;
    font-weight: 200;
    font-style: normal;
    font-variation-settings:
      "wdth" 112.5,
      "YTLC" 500;
}

.inter {
    font-family: "Inter", serif;
    font-optical-sizing: auto;
    font-style: normal;
}

/* Centering the Timeline Box */
.timeline-container {
    display: flex;
    justify-content: center; 
    align-items: center; 
    width: 100%;
    margin-top: 20px; 
}

/* Timeline Box */
.timeline-box {
    width: 100%;
    max-width: 900px; 
    height: 500px; 
    overflow-y: auto; 
    overflow-x: hidden; 
    border: 2px solid rgb(118, 1, 1); 
    padding: 15px;
    backdrop-filter: blur(5px);
    background-color: #8c89893e;
    border-radius: 10px;
    scrollbar-width: thin; 
    scrollbar-color: #888 #f9f9f9; 
    margin-bottom: 100px;
}

/* Scrollbar */
.timeline-box::-webkit-scrollbar {
    width: 10px; 
}

.timeline-box::-webkit-scrollbar-thumb {
    background: #888; 
    border-radius: 5px; 
}

.timeline-box::-webkit-scrollbar-thumb:hover {
    background: #555; 
}

/* Body Section 2 */
.timeline-box h1{
    font-family: "Road Rage", serif;
    text-align: left;
    margin-bottom: 2px;
    font-size: 50px;
    letter-spacing: 1px;
    margin-left: 30px;
    color: white;
}

.timeline-box h2{
    font-family: "Nunito Sans", serif;
    text-transform: uppercase;
    font-size: 40px;
    color: white;
    margin-left: 30px;
}

.timeline-box p {
    margin: 10px 0;
    text-align: left;
    font-family: "Nunito Sans", serif;
    text-transform: uppercase;
    font-size: 20px;
    margin-left: 30px;
    color: white;
}

/* Book Pages */
.book {
    transition: opacity 0.4s 0.2s;
    width: 65%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); 
    padding: 20px;                
    border-radius: 10px;  
    margin: auto;
    background-color: #ecd9b2;
    position: relative;
    z-index: 500;
}
   
.page h3{
    font-family: "Nunito Sans", serif;
    text-transform: uppercase;
    font-size: 3rem;
    margin: 40px;
    margin-top: 80px;
    color: rgb(118, 1, 1);
    text-align: center;
}

.page h4{
    font-family: "Inter", serif;
    margin-top: 8vw;
    text-align: center;
    font-size: 1.2rem;
    color: #000000;
    margin: 40px;
    font-weight: normal;
}

.page h5{
    font-family: "Road Rage", serif;
    text-transform: uppercase;
    font-size: 6rem;
    margin: 40px;
    margin-top: 80px;
    color: rgb(118, 1, 1);
    text-align: center;
}

.page h6{
    font-family: "Nunito Sans", serif;
    margin-top: 8vw;
    text-align: left;
    font-size: 1.3rem;
    color: #000000;
    margin-left: 70px;
    margin-right: 25px;
    margin-top: -20px;
    font-weight: normal;
    text-transform: uppercase;
}

p{
    font-family: "Inter", serif;
    margin-top: 8vw;
    text-align: center;
    font-size: 1.5rem;
    color: #000000;
    margin: 40px;
}

.page {
    width: 30vw;
    height: 44vw;
    background-color: #111111;
    float: left;
    margin-bottom: 0.5em;
    background: left top no-repeat;
    background-size: cover;
    margin: auto;
    overflow: scroll;
}

.page:nth-child(even) {
    clear: both;
}

.book .pages {
    width: 60vw;
    height: 44vw;
    position: relative;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    border-radius: 4px;
}

.book .page {
    float: none;
    clear: none;
    margin: 0;
    position: absolute;
    top: 0;
    width: 30vw;
    height: 44vw;
    transform-origin: 0 0;
    transition: transform 1.0s;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    cursor: pointer;
    user-select: none;
    background-color: #f0f0f0;
}

.book .page:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.7s;
    z-index: 2;
}

.book .page:nth-child(odd) {
    pointer-events: all;
    transform: rotateY(0deg);
    right: 0;
    border-radius: 0 4px 4px 0;
    background-image: linear-gradient(to right, rgba(0,0,0,.15) 0%, rgba(0,0,0,0) 10%);
}

.book .page:nth-child(odd):hover {
    transform: rotateY(-15deg);
}

.book .page:nth-child(odd):hover:before {
    background: rgba(0, 0, 0, 0.03);
}

.book .page:nth-child(odd):before {
    background: rgba(0, 0, 0, 0);
}

.book .page:nth-child(even) {
    pointer-events: none;
    transform: rotateY(180deg);
    transform-origin: 100% 0;
    left: 0;
    border-radius: 4px 0 0 4px;
    border-color: black;
    background-image: linear-gradient(to left, rgba(0,0,0,.12) 0%, rgba(0,0,0,0) 10%);
}

.book .page:nth-child(even):before {
    background: rgba(0, 0, 0, 0.2);
}

.book .page.grabbing {
    transition: none;
}

.book .page.flipped:nth-child(odd) {
    pointer-events: none;
    transform: rotateY(-180deg);
}

.book .page.flipped:nth-child(odd):before {
    background: rgba(0, 0, 0, 0.2);
}

.book .page.flipped:nth-child(even) {
    pointer-events: all;
    transform: rotateY(0deg);
}

.book .page.flipped:nth-child(even):hover {
    transform: rotateY(15deg);
}

.book .page.flipped:nth-child(even):hover:before {
    background: rgba(0, 0, 0, 0.03);
}

.book .page.flipped:nth-child(even):before {
    background: rgba(0, 0, 0, 0);
}

.page img {
    width: 100%;
    max-width: 800px;
    height: 44vw;
}

*,
* :before,
*:after {
    box-sizing: border-box;
}
 
.page:nth-child(odd){
    background-position: right top;
}

/* Victims & Family */
.hero h1{
    font-size: 2.5em;
    font-weight: bold;
    font-family: "Road Rage", serif;
    font-size: 80px;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
}


/* Background */
.evidence h2{
    font-family: "Nunito Sans", serif;
    text-transform: uppercase;
    font-size: 40px;
    text-align: center;
    margin-top: -60px;
}

  
@media (max-width: 1400px) {
    .hero h1 {
        font-size: 60px;
        margin: auto;
        padding-top: 30px;
        margin-bottom: -20px;
        padding: 20px;
    }
    
    .evidence h2{
        font-size: 20px;
        margin: auto;
        padding-bottom: 30px;
        padding-top: 5px;
    }
    
    .title {
        font-size: 60px;
        margin: auto;
        padding-top: 30px;
        margin-bottom: 30px;
    }
    
    .timeline-box {
        width: 100%;
        margin: 20px;
        max-width: 700px; 
        height: 500px; 
        overflow-y: auto; 
        overflow-x: hidden; 
        border: 2px solid rgb(118, 1, 1); 
        padding: 15px;
        backdrop-filter: blur(5px);
        background-color: #8c89893e;
        border-radius: 10px;
        scrollbar-width: thin; 
        scrollbar-color: #888 #f9f9f9; 
        margin-bottom: 100px;
    }

    .timeline-box h1{
        font-size: 30px;
        margin: auto;
        padding: 10px;
    }

    .timeline-box h2{
        font-size: 20px;
        margin: auto;
        padding: 10px;
    }

    .timeline-box p{
        font-size: 15px;
        margin: auto;
        padding: 10px;
    }

    .alert{
        font-size: 10px;
    }

    nav a {
        color: white;
        text-decoration: none;
        padding: 10px;
        font-size: 15px;
    }

    .page h5{
        font-size: 35px;
        margin: auto;
        padding-top: 20px;
    }

    .page h3{
        font-size: 10px;
        margin: auto;
        padding-top: 20px;
    }

    p{
        font-size: 8px;
        margin: auto;
        padding: 20px;
    }

    .page h4{
        font-size: 8px;
        margin: auto;
        padding: 20px;
    }

    .page h6{
        font-size: 10px;
        margin: auto;
        padding: 20px;
    }

    .page{
        overflow: scroll;
        width: 25vw;
        height: 39vw;
        float: left;
        margin-bottom: 0.5em;
        background: left top no-repeat;
        background-size: cover;
        margin: auto;
    }

}

@media (max-width: 1200px){
    nav a{
        font-size: 12px;
        padding: 5px;
        text-align: center;
    }
}

@media (max-width: 900px){
    .page h5{
        font-size: 15px;
        margin: auto;
        padding-top: 10px;
    }

    .page h3{
        font-size: 8px;
        margin: auto;
        padding-top: 10px;
    }

    p{
        font-size: 7px;
        margin: auto;
        padding: 20px;
    }

    .page h6{
        font-size: 5px;
        margin: auto;
        padding: 20px;
    }

    .page{
        overflow: scroll;
        width: 25vw;
        height: 39vw;
        float: left;
        margin-bottom: 0.5em;
        background: left top no-repeat;
        background-size: cover;
        margin: auto;
    }
}

@media (max-width: 900px){
    .page h5{
        font-size: 15px;
        margin: auto;
        padding-top: 10px;
    }

    .page h3{
        font-size: 8px;
        margin: auto;
        padding-top: 10px;
    }

    p{
        font-size: 7px;
        margin: auto;
        padding: 20px;
    }

    .page h6{
        font-size: 5px;
        margin: auto;
        padding: 20px;
    }

    .page{
        overflow: scroll;
        width: 25vw;
        height: 39vw;
        float: left;
        margin-bottom: 0.5em;
        background: left top no-repeat;
        background-size: cover;
        margin: auto;
    }
}

@media (max-width: 800px){
    .page h5{
        font-size: 15px;
        margin: auto;
        padding-top: 10px;
    }

    .page h3{
        font-size: 8px;
        margin: auto;
        padding-top: 10px;
    }

    p{
        font-size: 7px;
        margin: auto;
        padding: 20px;
    }

    .page h6{
        font-size: 5px;
        margin: auto;
        padding: 20px;
    }

    .page{
        overflow: scroll;
        width: 25vw;
        height: 39vw;
        float: left;
        margin-bottom: 0.5em;
        background: left top no-repeat;
        background-size: cover;
        margin: auto;
    }

    .timeline-box {
        width: 100%;
        margin: 20px;
        max-width: 600px; 
        height: 500px; 
        overflow-y: auto; 
        overflow-x: hidden; 
        border: 2px solid rgb(118, 1, 1); 
        padding: 15px;
        backdrop-filter: blur(5px);
        background-color: #8c89893e;
        border-radius: 10px;
        scrollbar-width: thin; 
        scrollbar-color: #888 #f9f9f9; 
        margin-bottom: 100px;
    }

    /* Date/Year */
    .timeline-box h1{
        font-size: 22px;
        margin: auto;
        padding: 6px;
    }

    /* Explore the Timeline */
    .timeline-box h2{
        font-size: 16px;
        margin: auto;
        padding: 6px;
    }

    .timeline-box p{
        font-size: 13px;
        margin: auto;
        padding: 5px;
    }
}


@media (max-width: 500px){
    p{
        font-size: 5px;
        margin: auto;
        padding: 10x;
    }

    .timeline-box {
        width: 100%;
        margin: 20px;
        max-width: 600px; 
        height: 500px; 
        overflow-y: auto; 
        overflow-x: hidden; 
        border: 2px solid rgb(118, 1, 1); 
        padding: 15px;
        backdrop-filter: blur(5px);
        background-color: #8c89893e;
        border-radius: 10px;
        scrollbar-width: thin; 
        scrollbar-color: #888 #f9f9f9; 
        margin-bottom: 100px;
    }

    /* Date/Year */
    .timeline-box h1{
        font-size: 20px;
        margin: auto;
        padding: 5px;
    }

    /* Explore the Timeline */
    .timeline-box h2{
        font-size: 15px;
        margin: auto;
        padding: 5px;
    }

    .timeline-box p{
        font-size: 12px;
        margin: auto;
        padding: 4px;
    }
}