.body {
    background-color: rgb(33, 33, 33);
    margin: 0;
    padding: 0;
}
nav {
    width: 100%; /* Ensure it spans the full width */
    text-align: center;
    background: rgb(13, 3, 50);
    border: 3px groove;
    border-radius: 16px;
    border-color: rgba(59, 58, 62, 0.7); 
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.65);
    box-shadow: 5px 5px 9px rgba(0, 0, 0, 0.8);
    padding-top: 12px;
    padding-bottom: 12px;
    margin: 5px 3px 0px 3px;
    z-index: 1001;
    position: relative;
}
.topnav a {
    color: rgba(255, 255, 255, 0.677); 
}
a:hover {
    color: black;
}
nav ul {
    list-style: none;
    padding: 0;
    margin: 1px 0;
}

nav li {
    padding-right: 1rem;
    padding-left: 1rem;
    text-decoration: none;
    
}

button {
    background-color: rgba(70, 69, 85, 0.7); 
    color: white;
    font-size: 15px;
    font-family: 'andale mono',consolas,'courier new', monospace;
    font-weight: 600;
    border-radius: 11px;
    padding: 1px 1px;
    cursor: pointer;
    border: 2px solid;
    border-color: rgba(33, 32, 36, 0.7); 
    margin: 2px 2px;
    transition-duration: 0.7s;
    box-shadow: 5px 5px 9px rgba(0, 0, 0, 0.8);
    text-decoration: none;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.517);
}
 


button:hover {
    background-color: rgb(255, 255, 255); /* Change background color on hover */
    border-color: rgb(97, 223, 245);
    box-shadow: 0 0 7px rgba(255, 255, 0, 0.8), 0 0 20px rgba(255, 255, 0, 0.6), 0 0 25px rgba(255, 255, 0, 0.4); /* Glowing light yellow effect */
    color: black;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.377);
}

nav a {
    display: flex;
    align-items: justify;
    justify-content: center;
    text-decoration: none;
    height: 100%; /* Ensure the anchor takes the full height of the li */
}

.worldsphotosheader {
    margin: 0px 3px 30px 3px;
    position: relative;
    justify-content: justify;
    align-items: center;
    background-image: url('./worldsmost-resources/nebulaheader.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 145px;
    z-index: 1000;
    border-radius: 16px;
    box-shadow: 5px 5px 9px rgba(0, 0, 0, 0.8);
}

.worldsphotosheader h1 {
    font-family: Consolas, monaco,'andale mono',monospace; 
    position: flexible;
    font-size: 28px;
    font-weight: bold;
    color: rgb(255, 255, 255);
    text-align: center;
    padding-top: 50px;
    margin-left: 30px;
    margin-right: 30px;
    text-shadow: 0 10px 7px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 0, 0, 0.8); /* Dispersed shadow */
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0px;
    padding: 5px 0;
    
}

.pagination a {
    color: blue;
    text-decoration: none;
    margin: 0 10px;
    font-size: 17px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
}
.current-page {
    color: white;
    text-decoration: underline;
    margin: 0 10px;
    font-size: 17px;
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
}

.pagination a:hover {
    text-decoration: underline;
    color: rgb(216, 216, 49);
}

.black3menu {
    position: absolute;
    top: 50px;
    left: 15px;
    background-color: rgba(44, 44, 44, 0.412);
    border: 3px solid rgba(255, 255, 255, 0.493);
    color: white;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items:center;
    Justify-content:center;
    height: 30px;
    width: auto;
    z-index: 999;
}
/* Media query to adjust layout on smaller screens */
@media (max-width: 600px) {
    .black3menu {
        top: auto;
        bottom: 10px; /* Adjust as needed */
        left: 10px; /* Adjust as needed */
    }
}
.black3menu:hover {
    box-shadow: 0px 0px 7px rgba(255, 231, 75, 0.749), /* Center */
    2px 2px 7px rgba(255, 231, 75, 0.71), /* Bottom-right */
    -2px -2px 7px rgba(255, 231, 75, 0.621), /* Top-left */
    2px -2px 7px rgba(255, 231, 75, 0.729), /* Top-right */
    -2px 2px 7px rgba(255, 231, 75, 0.711); /* Bottom-left */;
}
.black3menu button {
    background: none;
    border: solid 4px black;
    color: inherit;
    font: inherit;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    box-shadow: none;
}
.black3menu button:hover {
    border: solid 4px rgba(239, 254, 101, 0.685);
}
.black3menu:hover {
    background-color: rgba(198, 208, 108, 0.536);
}

.black3menu img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: pointer;
}

.black3menu .dropdown {
    display: none;
    position: absolute;
    top: 100%; /* Position below the button */
    left: 0;
    background-color: rgba(24, 24, 24, 0.877); 
    color: white;
    padding: 22px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    max-height:350px;
    max-width: 1000px;
    font-family: 'andale mono', consolas, 'courier new', monospace;
    column-count: 3;
    column-gap: 55px;
    border-radius: 0px 16px 16px 16px;
}

.black3menu .dropdown ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.black3menu .dropdown ul li {
    padding: 10px 25px;
    break-inside: avoid;
    margin: 0px;
    white-space: nowrap;
}

.black3menu .dropdown ul li a {
    color: white;
    text-decoration: none;
    display: block;
}

.black3menu .dropdown ul li a:hover {
  text-shadow: 0px 0px 7px rgba(255, 231, 75, 0.749), /* Center */
    2px 2px 7px rgba(255, 231, 75, 0.71), /* Bottom-right */
    -2px -2px 7px rgba(255, 231, 75, 0.621), /* Top-left */
    2px -2px 7px rgba(255, 231, 75, 0.729), /* Top-right */
    -2px 2px 7px rgba(255, 231, 75, 0.711); /* Bottom-left */
}

.black3menu:focus-within .dropdown {
    display: block;
}
/* Media query to allow wrapping on smaller screens */
@media (max-width: 600px) {
    .black3menu .dropdown ul li {
        white-space: normal; /* Allow text to wrap on smaller screens */
    }
}
h2 {
    font-family: Consolas, monaco,'andale mono',monospace; 
    position: flexible;
    font-size: 20px;
    font-weight: bold;
    color: rgb(255, 255, 255);
    text-align: left;
    text-shadow: 3px 3px 4px rgba(0, 0, 0, 0.85);
    padding-left: 20px;
    padding-right: 20px;
    margin-top: 50px;
}
p {
    font-family: 'andale mono', consolas, 'courier new', monospace;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.6em;
    text-align: left;
    word-spacing: 0.05em;
    padding: 5px 20px 5px 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.85);
}
a.nasalink {
    color: rgb(142, 0, 0);
    text-decoration: none;
    font-size: 17.2px;
    font-weight: 600;
}
a.nasalink:hover {
    color: rgb(188, 188, 22);
}
/* Modal styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
}
.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 800px;
}
img.expandable {
    cursor: zoom-in; /* Change cursor to zoom-in on hover */
}
/* Modal end - Modal end - Modal end - Modal end - Modal end- */

.introp h4 {
    font-family: Consolas, monaco,'andale mono',monospace; 
    position: flexible;
    font-size: 17px;
    font-weight: 450;
    color: rgb(249, 238, 118);
    text-align: left;
    padding: 5px 20px 5px 20px;
    line-height:1.5;
    z-index: 2;
    position:relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.9); /* Dark shadow for better readability */
}
.introp {
    position: relative;
    background-image: url('./worldsmost-resources/photocollage.webp');
    background-size: 340px;
    background-repeat: repeat;
    border: solid 10px black;
    margin-top: -15px;
}
.introp::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Adjust the opacity as needed */
    z-index: 1;
}
img:not(.black3menu img) {
    border: 20px solid black;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.19); /* Add shadow effect */
    transition: transform 0.3s;
}
img:not(.black3menu img):hover {
    transform: scale(1.05); /* Slightly enlarge the image on hover */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 12px 40px rgba(0, 0, 0, 0.25); /* Enhance shadow effect on hover */
}
.jwst {
    margin-top: 60px;
    width: 90%;
}
.ggbridge {
    margin-top: 60px;
}
.jwstimages, .bridgeimages {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Create three equal columns */
    gap: 10px; /* Add space between images */
    grid-template-rows: auto auto; /* Create two rows */
    justify-items: center; /* Center the images horizontally */
    align-items: center;
    margin: 10px;
}

.jwstimages img {
    width: 85%; /* Make images take up the full width of their grid cell */
    max-width: 85%; /* Set a maximum width for images */

}
.bridgeimages img {
    width: 85%; /* Make images take up the full width of their grid cell */
    max-width: 85%; /* Set a maximum width for images */
    margin: 5px;
}

h6 {
    font-family: Consolas, monaco,'andale mono',monospace;
    font-size: 15px;
    font-weight: 400;
    color: gray;
    margin-left: 40px;
    margin-top: -80px;
    margin-bottom: 80px;
}
h5 {
    font-family: Consolas, monaco,'andale mono',monospace;
    font-size: 15px;
    font-weight: 400;
    color: gray;
    margin-left: 40px;
    margin-top: -20px;
    
}


.mmother {
    display: grid;
    width: 90%;
    grid-template-columns: 65% 1fr;
    gap: 20px;
    align-items: center;
    margin-top: -50px;
    margin-bottom: 50px;
}
.migrantmotherimg img {
    width: 85%;
    max-width: 85%;
    height: auto;
    margin: 5px 30px 5px 30px;
}
.tankman-container {
    display: grid;
    width: 90%;
    grid-template-columns: 60% 1fr;
    gap: 20px;
    align-items: center;
    margin-top: 10px;
    margin-bottom: -30px;
}
.tankmanimg img {
    width: 85%;
    max-width: 85%;
    height: auto;
    margin: 5px 30px 5px 30px;
}
.fsoldier-container {
    display: flex;
    width: 85%;
    flex-direction: column;
    gap: 20px;
    margin-top: 50px;
}
.fsoldier-content {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
}
.fsoldier-container h2 {
    margin: 0;
}
.fsoldier-p {
    flex: 1;
    margin: 0;
}
.fsoldierimg{
    flex: 1;
    display: flex;
    justify-content: center;
}
.fsoldierimg img {
    width: 50%;
    max-width: 50%;
    height: auto;
}
.earthriseimages {
    display: grid;
    width: 90%;
    grid-template-columns: 1fr 1fr; /* Create three equal columns */
    gap: 20px; /* Add space between images */
    grid-template-rows: auto auto; /* Create two rows */
    justify-items: center; /* Center the images horizontally */
    align-items: center;
    margin: 10px;
}
.earthriseimages img {
    width: 85%; /* Make images take up the full width of their grid cell */
}
.nycimages1 {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 70px;
    gap: 30px;
    width: 80%;
    max-width: 80%;
}

.nycimages1 img {
    width: 70%;
}


.nycimages2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Create three equal columns */
    gap: 10px; /* Add space between images */
    grid-template-rows: auto auto; /* Create two rows */
    justify-items: center; /* Center the images horizontally */
    align-items: center;
    width: 90%;
    margin-left: 10px;
}
.nycimages2 img {
    width: 85%; /* Make images take up the full width of their grid cell */
    max-width: 85%; /* Set a maximum width for images */
    width: 300px;
    margin: 10px;
}

.hindenburg-container {
    display: grid;
    grid-template-columns: 60% 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "hindenburg-p"
        ;
    gap: 20px;
    align-items: center;
    margin-top: -30px;
    width: 90%;
    
}
.hindenburgimg img {
    width: 85%;
    max-width: 85%;
    height: auto;
    margin: 10px;
}

.burningmonk-container {
    display: grid;
    grid-template-columns: 60% 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "burningmonk-p"
        ;
    gap: 10px;
    align-items: center;
    margin-top: 30px;
    
}
.burningmonkimg img {
    width: 85%;
    max-width: 85%;
    height: auto;
    margin: 10px;
}








/* NYC SUB MODAL - NYC SUB MODAL -NYC SUB MODAL -NYC SUB MODAL -NYC SUB MODAL-NYC SUB MODAL  -*/
.nycsubway-slideshow-container {
    position: relative;
    align-items: center;
    margin-top: 10px;
    margin-left: 50px;
    margin-bottom: 90px;
    width: 80%;
}
.nycsubway-slideshow-container img {
    width: 65%;
    max-width: 65%;
    height: auto;
    margin: 10px;
}
.nycsubmodal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.9); /* Black w/ opacity */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

.nycsubmodal-content {
    position: relative;
    margin: auto;
    display: block;
    width: auto;
    max-width: 750px;
}
.nycsubmodal-content img {
    width: 750px;
    max-width: 750px; /* Limit the maximum width */
    max-height: 90vh; /* Limit the maximum height to 90% of the viewport height */
    height: auto; /* Maintain aspect ratio */
}
.nycsubmodal .close {
    position: absolute;
    top: 30px;
    right: 55px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.nycsubmodal .prev, .nycsubmodal .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 5px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.nycsubmodal .prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.nycsubmodal .next {
    right: 0;
    border-radius: 0 3px 3px 0;
}

.nycsubmodal .prev:hover, .nycsubmodal .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
/* NYC SUB MODAL - NYC SUB MODAL -NYC SUB MODAL -NYC SUB MODAL -NYC SUB MODAL-NYC SUB MODAL  -*/


.websitefooter p {
        background: solid;
        text-decoration: none;
        font-family: 'andale mono', consolas, 'courier new', monospace;
        font-size: 11px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7), 0 6px 20px rgba(0, 0, 0, 0.6);
        font-weight: 600;
        margin: 10px 10px 20px 10px;
        padding: 6px;
    }
    strong {
        color: rgb(176, 33, 33);
        font-family: 'courier new', monospace, 'andale mono', consolas;
        font-size: 12px;
        text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.75);
        font-weight: 600;
    }