body {
    background-color: #344444;
}
a {
    color: white;
    font-size: 0.8em;
}

.sidebar-sticky {
    margin-top: 10px;
}

.nav-link {
    margin-left: 0px !important;
    padding-left: 0px !important;

}

a:hover,
a:active {
    color: red;
}

.modal-dialog {
    /* This will affect the modal dialog's position */
    display: flex;
    align-items: center;
    /* Align vertically */
    justify-content: center;
    height: 100%;
    /* Align horizontally */
}



/* Ensure the image inside the modal body is centered */
.modal-body {
    text-align: center;
    /* Center inline elements like images */
}

.modal-body img {
    max-height: 80vh;
    /* Limit the image height to be within the viewport */
    max-width: 100%;
    /* Limit the image width to not exceed the modal width */
    height: auto;
    /* Maintain the aspect ratio */
    width: auto;
    /* Maintain the aspect ratio */
}

.content-image { 
    margin: auto;
    /* Total viewport height minus space for title and pagination */
    object-fit: contain;
    opacity: 0.97;

}

.image-mask {
    display: flex;

}

#content>h2 {
    margin-top: 0;
    margin: 20px auto 20px auto;
    color: whitesmoke;
    font-size:1.1em;
    /* Space between title and image */
}

/* Adjustments to the .pagination-container to ensure it's positioned at the bottom */
.pagination-container {
    margin-top: 10px;
    /* Space between image and pagination */

    display: flex;
    justify-content: center;
    /* Center the pagination horizontally */
}
.page-link {
    background-color: #000000;
    opacity: 0.6;
    color: white;
    border: none;
}
.page-item.active .page-link {
    background-color: #3f3f3f;
}
#threejs-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.5
    /* Puts the canvas behind your content */
}

@media (min-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 100;
        overflow-x: hidden;
        overflow-y: auto;
        width: 200px;
        opacity: 0.6;
        background-color: #000000;
        /* Adjust if necessary */

    }

    .content-area {
        margin-left: 200px;
        /* Adjust this to match the sidebar width */
        margin-right: auto;
        width: calc(100% - 200px);
        display: flex;
        flex-direction: column;
        
        /* Changed to space-between to align items per requirements */
        height: 100vh;


    }

    #content {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        /* Aligns content to the top */
    }

    .content-image {
        height: calc(100vh - 180px);
        max-width: calc(100% - 40px);


    }



    .hide-on-large {
        display: none;
        /* Hide the top navbar on large screens */
    }
}

@media (max-width: 767px) {
    .content-image {
      height: calc(100% - 180px);
      max-width: calc(100% - 40px);

    }

    .content-area {
        margin-left: auto;
        margin-right: auto;
        width: 100vh;
        /* Full width on smaller screens */
    }

    #sidebarMenu>a.navbar-brand {
        display: none;
    }
    .navbar-dark {
        background-color: #000;
        opacity:0.6;
    }
    .navbar-dark .navbar-brand {
        color:white;
    }
    .sidebar {
        background-color: #000;
        opacity:0.6; 
    }
}
/* Ensure the modal is centered on any screen size */
@media (min-width: 576px) {
    .modal-dialog {
        min-height: calc(100% - (1.75rem * 2));
    }

    .modal-dialog-centered {
        min-height: calc(100% - (1.75rem * 2));
    }
}


.faded {
    position: relative;
    display: inline-block;
    color: white;
  }
  .faded:after {
    content: "";
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-collapse: separate;
  }
  .faded.faded-left:after {
    box-shadow: inset 40px 0 40px -16px;
  }
  .faded.faded-right:after {
    box-shadow: inset -40px 0 40px -16px;
  }
  .faded.faded-top:after {
    box-shadow: inset 0 40px 40px -16px;
  }
  .faded.faded-bottom:after {
    box-shadow: inset 0 -40px 40px -16px;
  }
  .faded.faded-left.faded-right:after {
    box-shadow: inset 40px 0 40px -16px, inset -40px 0 40px -16px;
  }
  .faded.faded-left.faded-top:after {
    box-shadow: inset 40px 40px 40px -16px;
  }
  .faded.faded-right.faded-bottom:after {
    box-shadow: inset -40px -40px 40px -16px;
  }
  .faded.faded-top.faded-right:after {
    box-shadow: inset -40px 40px 40px -16px;
  }
  .faded.faded-top.faded-bottom:after {
    box-shadow: inset 0 40px 40px -16px, inset 0 -40px 40px -16px;
  }
  .faded.faded-left.faded-bottom:after {
    box-shadow: inset 40px -40px 40px -16px;
  }
  .faded.faded-top.faded-right.faded-bottom:after {
    box-shadow: inset -20px 0 40px 16px;
  }
  .faded.faded-left.faded-right.faded-bottom:after {
    box-shadow: inset 0 -20px 40px 16px;
  }
  .faded.faded-left.faded-top.faded-bottom:after {
    box-shadow: inset 20px 0 40px 16px;
  }
  .faded.faded-left.faded-top.faded-right:after {
    box-shadow: inset 0 20px 40px 16px;
  }
  .faded.faded-all:after, .faded.faded-left.faded-top.faded-right.faded-bottom:after {
    box-shadow: inset 0 0 40px 16px;
  }
  .faded.faded-narrow.faded-left:after {
    box-shadow: inset 20px 0 20px -10px;
  }
  .faded.faded-narrow.faded-right:after {
    box-shadow: inset -20px 0 20px -10px;
  }
  .faded.faded-narrow.faded-top:after {
    box-shadow: inset 0 20px 20px -10px;
  }
  .faded.faded-narrow.faded-bottom:after {
    box-shadow: inset 0 -20px 20px -10px;
  }
  .faded.faded-narrow.faded-left.faded-right:after {
    box-shadow: inset 20px 0 20px -10px, inset -20px 0 20px -10px;
  }
  .faded.faded-narrow.faded-left.faded-top:after {
    box-shadow: inset 20px 20px 20px -10px;
  }
  .faded.faded-narrow.faded-right.faded-bottom:after {
    box-shadow: inset -20px -20px 20px -10px;
  }
  .faded.faded-narrow.faded-top.faded-right:after {
    box-shadow: inset -20px 20px 20px -10px;
  }
  .faded.faded-narrow.faded-top.faded-bottom:after {
    box-shadow: inset 0 20px 20px -10px, inset 0 -20px 20px -10px;
  }
  .faded.faded-narrow.faded-left.faded-bottom:after {
    box-shadow: inset 20px -20px 20px -10px;
  }
  .faded.faded-narrow.faded-top.faded-right.faded-bottom:after {
    box-shadow: inset -10px 0 20px 10px;
  }
  .faded.faded-narrow.faded-left.faded-right.faded-bottom:after {
    box-shadow: inset 0 -10px 20px 10px;
  }
  .faded.faded-narrow.faded-left.faded-top.faded-bottom:after {
    box-shadow: inset 10px 0 20px 10px;
  }
  .faded.faded-narrow.faded-left.faded-top.faded-right:after {
    box-shadow: inset 0 10px 20px 10px;
  }
  .faded.faded-narrow.faded-all:after, .faded.faded-narrow.faded-left.faded-top.faded-right.faded-bottom:after {
    box-shadow: inset 0 0 20px 10px;
  }
  .faded.faded-wide.faded-left:after {
    box-shadow: inset 80px 0 80px -28px;
  }
  .faded.faded-wide.faded-right:after {
    box-shadow: inset -80px 0 80px -28px;
  }
  .faded.faded-wide.faded-top:after {
    box-shadow: inset 0 80px 80px -28px;
  }
  .faded.faded-wide.faded-bottom:after {
    box-shadow: inset 0 -80px 80px -28px;
  }
  .faded.faded-wide.faded-left.faded-right:after {
    box-shadow: inset 80px 0 80px -28px, inset -80px 0 80px -28px;
  }
  .faded.faded-wide.faded-left.faded-top:after {
    box-shadow: inset 80px 80px 80px -28px;
  }
  .faded.faded-wide.faded-right.faded-bottom:after {
    box-shadow: inset -80px -80px 80px -28px;
  }
  .faded.faded-wide.faded-top.faded-right:after {
    box-shadow: inset -80px 80px 80px -28px;
  }
  .faded.faded-wide.faded-top.faded-bottom:after {
    box-shadow: inset 0 80px 80px -28px, inset 0 -80px 80px -28px;
  }
  .faded.faded-wide.faded-left.faded-bottom:after {
    box-shadow: inset 80px -80px 80px -28px;
  }
  .faded.faded-wide.faded-top.faded-right.faded-bottom:after {
    box-shadow: inset -40px 0 80px 28px;
  }
  .faded.faded-wide.faded-left.faded-right.faded-bottom:after {
    box-shadow: inset 0 -40px 80px 28px;
  }
  .faded.faded-wide.faded-left.faded-top.faded-bottom:after {
    box-shadow: inset 40px 0 80px 28px;
  }
  .faded.faded-wide.faded-left.faded-top.faded-right:after {
    box-shadow: inset 0 40px 80px 28px;
  }
  .faded.faded-wide.faded-all:after, .faded.faded-wide.faded-left.faded-top.faded-right.faded-bottom:after {
    box-shadow: inset 0 0 80px 28px;
  }
  
  .panel {
    background-color: blue;
    padding: 1em;
    color: white;
  }
  .panel .faded {
    color: blue;
  }
  
  img {
    max-width: 100%;
  }