p {
    font-size: 16px;
    color: #111;
    font-family: "Arial Black", sans-serif;
}
.text {
    position: absolute;
    color: white;
    font-family: "Arial Black", sans-serif;
    font-size: 50px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    display: none;
    width: 100vw;
    height: 100%;
    overflow: hidden;
    outline: 0
}
.modal-dialog {
        color: #111;
    font-family: sans-serif;
    border: 2px solid white;
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none
}

h2 {
    font-family: "Arial Black", sans-serif;
    text-align: center;
    text-decoration: none;
    color:white;
    font-size: 15px;
}

.modal.fade .modal-dialog {
    -webkit-transition: -webkit-transform 0.3s ease-out;
    transition: -webkit-transform 0.3s ease-out;
    transition: transform 0.3s ease-out;
    transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
    -webkit-transform: translate(0, -50px);
    transform: translate(0, -50px)
}
@media (prefers-reduced-motion: reduce) {
    .modal.fade .modal-dialog {
        -webkit-transition: none;
        transition: none
    }
}
.modal.show .modal-dialog {
    -webkit-transform: none;
    transform: none
}
.modal-dialog-scrollable {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    max-height: calc(100% - 1rem)
}
.modal-dialog-scrollable .modal-content {
    max-height: calc(100vh - 1rem);
    overflow: hidden
}
.modal-dialog-scrollable .modal-header,
.modal-dialog-scrollable .modal-footer {
    -ms-flex-negative: 0;
    flex-shrink: 0
}
.modal-dialog-scrollable .modal-body {
    overflow-y: auto
}
.modal-dialog-centered {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    min-height: calc(100% - 1rem)
}
.modal-dialog-centered::before {
    display: block;
    height: calc(100vh - 1rem);
    content: ""
}
.modal-dialog-centered.modal-dialog-scrollable {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    height: 100%
}
.modal-dialog-centered.modal-dialog-scrollable .modal-content {
    max-height: none
}
.modal-dialog-centered.modal-dialog-scrollable::before {
    content: none
}
.modal-content {
    background-color: #050120;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    outline: 0
}
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000
}
.modal-backdrop.fade {
    opacity: 0
}
.modal-backdrop.show {
    opacity: 0.5
}
.modal-header {
    color: white;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 1rem 1rem;
    border-bottom: 1px solid #dee2e6
}
.modal-header .close {
    padding: 1rem 1rem;
    margin: -1rem -1rem -1rem auto
}
.modal-title {
    margin-bottom: 0;
    line-height: 1.5
}
.modal-body {
    color: white;
    position: relative;
    -webkit-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 1rem
}
.modal-footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    padding: 1rem;
    border-top: 1px solid #dee2e6
}
.modal-footer>:not(:first-child) {
    margin-left: .25rem
}
.modal-footer>:not(:last-child) {
    margin-right: .25rem
}
.modal-scrollbar-measure {
    position: absolute;
    top: -9999px;
    width: 50px;
    height: 50px;
    overflow: scroll
}
@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto
    }
    .modal-dialog-scrollable {
        max-height: calc(100% - 3.5rem)
    }
    .modal-dialog-scrollable .modal-content {
        max-height: calc(100vh - 3.5rem)
    }
    .modal-dialog-centered {
        min-height: calc(100% - 3.5rem)
    }
    .modal-dialog-centered::before {
        height: calc(100vh - 3.5rem)
    }
    .modal-sm {
        max-width: 300px
    }
}
@media (min-width: 992px) {
    .modal-lg,
    .modal-xl {
        max-width: 800px
    }
}
@media (min-width: 1200px) {
    .modal-xl {
        max-width: 1140px
    }
}

.btnClose {
    text-align: center;
    height: 15px;
    width: 15px;
    color: #FFF;
    background-color: transparent;
    border: 2px solid #FFF;
    font-weight: bold;
    border: 2px solid #FFF;
    border-radius: 3px;
    cursor: pointer;
    outline: none;
    min-width: 15px;
    border-radius: 0;
}

.btnClose:hover {
    background-color: #FFF;
    color: #111;
}


#loader {
    position: fixed;
    background: #050120;
    justify-content: center;
    align-items: center;
    display: flex;
    z-index: 10;
    height: 100%;
    width: 100%;
    color: #fff;
    font-family: "Arial Black", sans-serif;
    font-size: 40px;
    opacity: 1;
}
#loader span {
    display: inline-block;
    -webkit-animation: pulse 0.4s alternate infinite ease-in-out;
    animation: pulse 0.4s alternate infinite ease-in-out;
    font-family: "Arial Black", sans-serif;
    font-size: 60px;
}
#loader span:nth-child(odd) {
    -webkit-animation-delay: 0.4s;
    animation-delay: 0.4s;
}
@-webkit-keyframes pulse {
    to {
        -webkit-transform: scale(0.8);
        transform: scale(0.8);
        opacity: 0.5;
    }
}
@keyframes pulse {
    to {
        -webkit-transform: scale(0.8);
        transform: scale(0.8);
        opacity: 0.5;
    }
}
.entity-list-wrapper {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #f0f0f0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 200px;
    z-index: 1000; /* Add this line to bring the list to the front */
  }
  
  .entity-list-wrapper {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #333; /* Dark gray background */
    padding: 10px;
    border: 1px solid #666; /* Dark gray border */
    border-radius: 5px;
    width: 200px;
    z-index: 1000; /* Bring the list to the front */
  }
  
  .entity-list-wrapper h2 {
    margin-top: 0;
    color: #fff; /* White text for the header */
  }
  
  #entity-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  #entity-list li {
    padding: 10px;
    border-bottom: 1px solid #444; /* Dark gray border between list items */
    cursor: pointer;
  }
  
  #entity-list li:hover {
    background-color: #555; /* Dark gray hover effect */
  }
  
  #entity-list li:last-child {
    border-bottom: none;
  }
  .entity-list-wrapper {
    position: fixed;
    top: 60px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    color: white;
    z-index: 10;
    transition: opacity 0.3s ease-in-out;
    display: flex; 
    flex-wrap: wrap;
}

#entity-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

#entity-list li {
    margin: 5px;
    width: calc(50% - 10px); 
    box-sizing: border-box; 
}

#entity-list a {
    color: white;
    text-decoration: none;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100; 
}

#slider-gui {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    color: white;
    z-index: 10;
}

#speedSlider {
    -webkit-appearance: none; 
    width: 150px;
    height: 10px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
}

#speedSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    background: #4CAF50;
    cursor: pointer;
}

#speedSlider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    background: #4CAF50;
    cursor: pointer;
}

.entity-list-wrapper.hidden {
    opacity: 0; 
    pointer-events: none; 
}

#nova-toggle {
    position: fixed;
    top: 10px;
    left: 10px;
    width: 100px;
    cursor: pointer;
    z-index: 11; 
}

#orbit-controls {
    position: fixed;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
    color: white;
    z-index: 10;
}

#orbit-controls select, 
#orbit-controls button {
    margin: 5px;
}
/* Smooth Transitions for Camera Movement */
a-entity[camera] {
    transition: all 0.2s ease-in-out; /* Adjust the duration and easing as needed */
  }
