body {
    background-color: black;
    -ms-overflow-style: none; /* Hide scrollbars in Internet Explorer */
    scrollbar-width: none; /* Hide scrollbars in Firefox */
    margin: 0;
    overflow-x: hidden;
    overflow-y: hidden; /* Hide vertical scrolling */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: 'Times New Roman', Times, serif;
}

/* To hide scrollbars in Chrome, Safari, and newer versions of Opera */
body::-webkit-scrollbar,
#slide-container::-webkit-scrollbar,
#outer-container::-webkit-scrollbar {
    display: none;
}

#slide-container {
    /* Hide scrollbar for Firefox */
    scrollbar-width: none;
    /* Hide scrollbar for IE and older versions of Edge */
    -ms-overflow-style: none;
}

.embedded-slide {
    pointer-events: none;
}



.control-div {
    position: absolute;
    right: 1%;
    z-index: 1000; /* Ensure it's above slide content */
    top: 1%
}



.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}




.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    height: 100%; 
    padding: 8px;
    box-sizing: border-box;
    overflow-y: auto;
}


.grid .slide {
    position: relative;
    width: 100%; 
    height: 100%; 
    overflow: hidden; 

}


.markdownComponent {
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
}

.markdownComponent p {
    margin: 0;
    text-align: left;
    line-height: 1;
    height: 100%;
}


.markdownComponent mjx-container, .markdownComponent mjx-math, .markdownComponent mjx-mi, .markdownComponent mjx-c {
    margin: 0 !important;
    padding: 0 !important;
}


.loader {
    border: 16px solid #f3f3f3;
    border-top: 16px solid #3498db;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 2s linear infinite;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

#loading-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 10px;
  }

#slide-container {
    width: 100vw;
    height: 100vh;
    max-width: calc(100vh * 16 / 9);
    max-height: calc(100vw * 9 / 16);
    margin: auto;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: black; /* Optional for debugging aspect ratio */
}


.fullscreen-mode {
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


/* Default style (covers wider screens) */
.fullscreen-mode .slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    width: 100vw;
    height: 56.25vw;
    
    max-height: 100vh;
    max-width: calc(100vh * 16 / 9);
}


  
  #loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  #loading-bar {
    width: 200px;
    height: 20px;
    margin-bottom: 10px;
  }
  
  #loading-text {
    color: white;
    font-family: sans-serif;
    font-size: 16px;
  }
  




@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}


.hide-cursor {
    cursor: none;
}

.button-base {
    background-color: transparent;
    border: none;
    color: white;
    font-size: 20px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    outline: none;
    box-shadow: none;
    margin-left: -10px; /* Adjust this value as needed */
    margin-right: -10px; /* Adjust this value as needed */
}


.button-base:focus, .button-base:active {
    outline: none;
    box-shadow: none;
}

.button-arrow {
    background-color: transparent;
    border: none;
    color: rgb(255, 255, 255);
    font-size: 50px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    outline: none;
    box-shadow: none;
}

.button-arrow:focus, .button-arrow:active {
    outline: none;
    box-shadow: none;
    color: #0d6e56;  /* Slightly lighter text color when clicked */
}

.button-light {
    opacity: 0.6;
}



/* For screens taller than 16:9 */
@media (max-aspect-ratio: 16/9) {
    .fullscreen-mode .slide {
        width: calc(100vh * 16 / 9);
        height: 100vh;
    }
}


/* Custom styles for code blocks */
.hljs {
    background: transparent;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Black with opacity */
    overflow: auto;
    z-index: 1; /* Sit on top */
}

.modal-content {
    background-color: #333333; /* Charcoal */
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 30%; /* Adjust this value for the modal width */
    position: relative;
    color: white;
    word-wrap: break-word; /* Break long words if necessary */
    overflow: hidden;      /* Hide overflowed content */
}

#modalText {
    white-space: pre-line; /* Allows text to wrap */
    overflow-wrap: break-word; /* Break long words if necessary */
    max-width: 100%; /* Ensure the text doesn't go beyond the modal */
}

#copyBtn {
    position: absolute;
    top: 10px;
    right: 10px;
}

#copyBtn:hover {
    color: gray;
}

#copyMessage {
    display: none;
    color: limegreen;
    margin-top: 10px;
    font-weight: bold;
}


