body {
    font-family: Arial, sans-serif;
    background-image: url("_images/fern-bg.avif");
    margin: 0;
    padding: 0;
}

#wrapper {
    width: 80%;
    margin: auto;
    padding: 20px;
    margin-top: 60px; 
}

header {
    background-color: rgba(51, 51, 51, 0.8); 
    color: #fff;
    padding: 10px 0;
    text-align: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; 
}

header h1 {
    margin: 0;
    font-size: 2em;
}

nav {
    background-color: rgba(51, 51, 51, 0.8); 
    color: #fff;
    padding: 10px 0;
    text-align: center;
    position: fixed;
    top: 60px; 
    width: 100%;
    z-index: 1000; 
    backdrop-filter: blur(10px); 
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline;
    margin-right: 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

nav ul li a:hover {
    background-color: rgba(85, 85, 85, 0.8); 
}

#timelinem {
    margin-top: 120px; 
    padding-top: 20px; 
}

.intro {
    text-align: center;
    padding: 50px 0;
    background-color: rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
    color: #fff;
}

.intro h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.intro p {
    font-size: 1.2em;
}

.era {
    background-color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    padding: 40px;
    border-radius: 8px;
    color: #333;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.era h2 {
    margin-bottom: 10px;
}

.era p {
    margin-bottom: 10px;
}

.era img,
.infographic-item img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

.manscaped-tip {
    background-color: #e0f7fa;
    padding: 10px;
    border-left: 5px solid #00796b;
    margin-top: 10px;
    color: #00796b;
}

.manscaped-tip h3 {
    margin: 0 0 5px 0;
}

.tooltip {
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 5px;
    border-radius: 5px;
    font-size: 0.8em;
    opacity: 0.8;
    z-index: 10;
}

.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    background: rgba(0, 0, 0, 0.7);
}

.modal-content {
    position: relative;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
}

.modal-img {
    max-width: 80%;
    max-height: 60vh;
}

.modal .close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 1.5em;
}

.infographic {
    position: relative;
    text-align: center;
}

.infographic-item {
    display: inline-block;
    margin: 20px;
    cursor: pointer;
    transition: transform 0.3s;
    position: relative;
}

.infographic-item:hover {
    transform: scale(1.1);
}

.infographic-info {
    bottom: 100%;
    width: 200px;
    left: 50%;
    transform: translate
}

.space {
    height: 150px;
}

footer {
    background-color: transparent;
    padding: 20px;
    text-align: center;
    font-family: Arial, sans-serif;
    color: azure;
}

footer p {
    margin: 10px 0;
}

footer ul {
    list-style-type: none;
    padding: 0;
    margin: 10px 0;
}

footer ul li {
    margin: 5px 0;
}

footer a {
    color: azure;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.mainHeading {
    font-family: "Quando", serif;
    margin: 0;
    font-weight: lighter;
    font-size: 1.5em;
}

@media (max-width: 768px) {
    .era img,
    .infographic-item img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .intro {
        padding: 30px 0;
    }
    .intro h1 {
        font-size: 2em;
    }
    .intro p {
        font-size: 1em;
    }
    .era {
        padding: 20px;
    }
    .manscaped-tip {
        padding: 5px;
    }
    .infographic-item {
        margin: 10px;
    }
}
