@font-face {
  font-family: "Blue Screen";
  src: url("./fonts/Blue-Screen-Billy-Argel.ttf");
}

@font-face {
  font-family: "Elegant Typewriter";
  src: url("./fonts/ELEGANT-TYPEWRITER-Regular.ttf");
}

@font-face {
  font-family: "IBM";
  src: url("./fonts/Px437_DOS-V_re_ANK24.ttf");
}

.noise {
  pointer-events: none;
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("https://media.giphy.com/media/oEI9uBYSzLpBK/giphy.gif");
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.02;
}

.overlay {
  pointer-events: none;
  position: absolute;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  background-size: auto;
}

.overlay::before {
  content: "";
  pointer-events: none;
  position: absolute;
  display: block;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
    0deg,
    transparent 0%,
    rgba(32, 115, 128, 0.2) 2%,
    rgba(118, 32, 128, 0.2) 3%,
    rgba(32, 123, 128, 0.2) 3%,
    transparent 100%
  );
  background-repeat: no-repeat;
}

body {
  color: white;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: black;
  background-image: radial-gradient(#581151, #041607),
    url("https://media.giphy.com/media/oEI9uBYSzLpBK/giphy.gif"); /* noise */
  background-repeat: no-repeat;
  background-size: cover;
}

#container {
  width: 90vh;
}

a:link,
a:visited {
  color: #b62ba6;
  text-decoration: none;
}

a:hover,
a:active {
  color: #77966d;
}

.title a {
  color: #f4f2f3;
  text-align: center;
  font-family: "Blue Screen";
  font-size: 60px;
}

#topbar {
  text-align: center;
  width: 100%;
  margin: 2%;
  padding: 4%;
  font-family: "IBM";
  border: 1px solid white;
  background-color: #1b1b1e;
}

#topbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#topbar li {
  display: inline;
  border: 1px white solid;
  border-width: 1px;
  padding: 1%;
}

#main {
  display: flex;
  gap: 2%;
  padding: 4%;
  margin: 2%;
  width: 100%;
  height: 100%;
  font-family: "IBM";
  font-display: block;
  border: 1px white double;
  background-color: #1b1b1e;
}

#sidebar {
  width: 30%;
  height: 70vh;
  padding: 1%;
}

#sidebar li {
  display: list-item;
  list-style-type: "> ";
  list-style-position: inside;
  margin: 20% 0;
  padding: 2%;
  background-color: #307351;
  border: 1px solid #AFFC41;
}

.landHidden,
.compHidden,
.craterHidden,
.minesHidden,
.badaHidden {
  display: none;
  justify-content: left;
}

.company:hover + .compHidden,
.land:hover + .landHidden,
.crater:hover + .craterHidden,
.mines:hover + .minesHidden,
.bada:hover + .badaHidden {
  justify-content: left;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  margin-left: 2%;
  animation: typing 1.5s steps(30, end), blink-caret 0.5s step-end infinite;
}

/* The typing effect */
@keyframes typing {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

/* The typewriter cursor effect */
@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: orange;
  }
}

#planet {
  width: 70vh;
  height: 62vh;
  margin: 0 auto;
  padding: 1%;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid white;
  background: transparent;
}

#globeViz {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#infoPanel {
  position: absolute;
  width: 260px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 12px 16px;
  border-radius: 1px;
  display: none;
  z-index: 1000;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}
#infoPanel button {
  padding: 20px 20px;
  border-radius: 1px;
  cursor: pointer;
  font-family: "IBM";
}
#infoPanel button:hover {
  background: #4adbc8;
}

#label {
  font-family: "IBM";
}
