@font-face {
    font-family: 'Assistant'; 
    src: url('./Assistant-Regular.ttf');
}

@font-face {
    font-family: 'Assistant-Bold'; 
    src: url('./Assistant-Bold.ttf');
}

body {
    font-family: 'Assistant';
    overflow: hidden;
    margin: 0px;
}

/* Loading screen and spinner styles stay the same */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader {
  border: 8px solid #f3f3f3;
  border-top: 8px solid #3498db;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  animation: spin 1s linear infinite;
}

.loading-text {
  color: white;
  margin-top: 15px;
  font-size: 18px;
  font-family: sans-serif;
}

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

a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none;
    color: rgb(79, 161, 255);
    font-weight: bolder;
}

/* Buttons and labels */
.change-scene {
    position: fixed;
    padding: 4px 20px;
    bottom: 20px;
    right: 20px;
    color: white;
    display: flex;
    border: 1px solid white;
    align-items: center;
    z-index: 5;
    background-color: black;
}

.created-by {
    position: fixed;
    padding: 4px 10px;
    top: 20px;
    left: 10px;
    color: white;
    display: flex;
    align-items: center;
    z-index: 5;
}

.change-scene-select {
    background-color: white;
    height: 25px;
    width: 25px;
    margin: 0px 5px 0px 10px;
    border: 3px solid white;
    cursor: pointer;
}

.change-scene-select.selected {
    background-color: rgb(49.409485%, 85.099792%, 34.118652%);
}

.description {
    margin-bottom: 10px;
}

/* Info panel */
.show-info-container {
    display: flex;
    background-color: #000000;
    position: fixed;
    bottom: 0px;
    flex-direction: column;
    height: fit-content;
    width: 400px;
    color: white;
    transition: height 1s;
}

.show-info-container[show=false] {
    height: 20px !important;
}

.mul-info-key-value {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.key-value-pair {
    display: flex;
}

.info-key {
    font-weight: bold;
    margin: 1px 10px 1px 10px;
    width: 130px;
}

.info-value {
    margin-left: 10px;
}

.info-value.description,
.mul-info-key-value {
    padding: 0px 20px 0px 10px;
}

.info-value.description {
    margin-top: 10px;
}

.show-info-container>.hide-info,
.show-info-container>.show-info {
    height: 100%;
    width: 100%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-family: cursive;
    cursor: pointer;
    opacity: 0;
    font-size: 0px;
    transition: font-size 0.33s, opacity 0.33s;
    font-family: Assistant;
}

.show-info-container:hover>.hide-info {
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 1;
    font-size: 2em;
}

.show-info-container>.show-info {
    background-color: rgb(34 109 2);
    font-size: 1em;
    opacity: 1;
}

.show-info-container[show=false]>.hide-info,
.show-info-container[show=true]>.show-info {
    display: none;
}

/* Existing mobile portrait rule: completely hide the info panel on narrow screens */
@media only screen and (max-width: 700px) and (orientation: portrait) {
    .show-info-container {
        width: 100%;
    }
}

/* New: Optimize for mobile landscape (horizontal) */
@media only screen and (max-width: 900px) and (orientation: landscape) {
    .show-info-container {
        width: 90%; /* Make it almost full width */
        left: 5%;   /* center horizontally */
        bottom: 10px;
        font-size: 14px;
    }

    .info-key {
        width: auto; /* Let keys take dynamic width */
        margin: 1px 5px;
        font-size: 14px;
    }

    .info-value {
        font-size: 14px;
    }

    .change-scene {
        bottom: 10px;
        right: 10px;
        padding: 3px 10px;
        font-size: 14px;
    }

    .change-scene-select {
        width: 20px;
        height: 20px;
        margin: 0px 3px 0px 5px;
    }

    .created-by {
        top: 10px;
        left: 5px;
        font-size: 12px;
    }
}
