body, html {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;   /* horizontally center */
  align-items: center;       /* vertically center */
  background-color: #fff;    /* optional background */
}

.icon-orbit-container {
  position: relative;
  width: 800px;
  height: 600px;
  margin: auto;
}

.center-logo {
  position: absolute;
  width: 300px;
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -120%); /* move up by 10% of its own height */
  z-index: 2;
}

.icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: auto;

  /* Arrange evenly in a circle */
  transform:
    rotate(calc(var(--i) * 30deg - 90deg))      /* orbit rotation offset by -90deg */
    translateX(250px)
    rotate(calc(-1 * (var(--i) * 30deg - 90deg))) /* counter rotate with same offset */
    translate(-50%, -40%);

  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.icon img {
  width: 100%;
  height: 100%;
  box-shadow: 0 0 10px rgba(255,255,255,0.3);  /* Optional glow */
  display: block;
  object-fit: cover;               /* Ensures image fits the square */
}

/* ====== New corner text styles ====== */

.corner-text {
  position: absolute;
  padding: 10px 15px;
  background: white;             /* White background */
  color: black;                  /* Text color black for contrast */
  border: none;       /* 2px solid black border */
  border-radius: 8px;           /* Curved corners */
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  font-size: 16px;
  font-family: monospace;
  text-align: center;
  /* box-shadow: 0 2px 5px rgba(0,0,0,0.15);  /* subtle shadow */
}

.corner-text a {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.corner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -30%);
}

.rotate-warning {
  display: none;
}

@media screen and (max-width: 719px) {
  .rotate-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    color: black;
    font-family: monospace;
    font-size: 1.0rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 9999;
    padding: 1rem;
  }

  .rotate-warning img.rotate-icon {
    width: 200px;
    height: auto;
    margin-bottom: 1rem;
  }

  .rotate-warning p {
    margin: 0.2em 0;
  }

  /* Optionally hide other content */
  body > *:not(.rotate-warning) {
    display: none !important;
  }
}
