html,
body {
  height: 100%;
  margin: 0;
  color: black;
}
.disclaimer {
  position: fixed;
  left: 0;
  bottom: 0%;
  color: black;
  margin: 0px;
  padding: 0px;
  background: orange;
  z-index: 100;
}
a {
        color: #ffd700;
        text-decoration: none;
        font-weight: bold;
      }
      a:hover {
        text-decoration: underline;
      }
.howTo {
  max-height: 100px;
  overflow-y: auto;
  padding-right: 5px;
  width: 100%;
  padding: 6px;
}
.board {
  max-height: 130px;
  overflow-y: auto;
  padding-right: 5px;
  width: 100%;
  padding: 0px;
  margin-top: 0px;
}
.leaderboard-entry {
  font-size: 1.2rem;
  padding: 8px 12px;
  margin: 6px 0;
  width: 80%;
  background-color: #f0f0f0;
  border-left: 4px solid #4CAF50;
  border-radius: 4px;
  font-family: sans-serif;
}
.gold-entry {
  border-left: 10px solid gold;
  margin-top: 0px;
}
.silver-entry {
  border-left: 10px solid silver;
}
.bronze-entry {
  border-left: 10px solid #CE8946;
}

#skinContainer {
  max-height: 150px;
  overflow-y: auto;
  padding-right: 5px;
  width: 100%;
  padding: 6px;
  position: relative; /* Needed for z-index to work on children */
  z-index: 10;
}
.bigButton {
  color: orange;
  background: yellow;
  font-size: 200%;
  margin: 5px;
  border: 2px solid orange;
  border-radius: 3px;
}
#playerName {
  font-family: monospace;
  color: orange;
  border-radius: 8px;
  border: 3px solid gold;
  position: fixed;
  bottom: 40px;
  font-size: 300%;
  text-align: center;
  left: 32%;
}
#element-align {
  position: fixed;
  bottom: 0;
}
#scene {
  position: fixed;
  bottom: 10%;
  width: 100%;
  height: 80%;
}
a-scene {
  display: block;
  width: 60%;
  height: 100%;
}
#titleTop {
  color: orange;
  font-size: 450%;
  margin: 0px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}
.io {
  color: gold;
}
hr {
  border: none;
  height: 3px;
  background: orange;
  margin: 1.5%;
}

.leftBar {
  position: fixed;
  left: 0;
  z-index: 501;
  padding-left: 5px;
  padding-bottom: 5px;
  width: 30%;
  top: 8%;
  border: 5px solid blue;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 5px;
}
p, ul {
  margin: 1%;
  font-size: 100%;
  color: yellow;
}
ul {
  max-height: 55px;
  overflow-y: auto;
}
.shortp {
  max-height: 50px;
  height: 50px;
  overflow-y: auto;
}
.rightBar {
  position: fixed;
  right: 0;
  z-index: 100;
  padding-left: 5px;
  padding-bottom: 5px;
  width: 30%;
  top: 8%;
  border: 5px solid green;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 5px;
}
.sideBarHeading {
  font-size: 200%;
  padding: 0px;
  margin: 0px;
  color: orange;
}
.regbutton {
  font-size: 1.5rem;
  padding: 1.5%;
  margin: 1%;
  width: calc(100% - 20px);
  background: linear-gradient(to bottom, #ffd700, #ffa500);
  border: 2px solid orange;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}
.regbutton:hover {
  background: linear-gradient(to bottom, #ffa500, #ff8c00);
  transform: scale(1.05);
  position: relative;  /* This ensures it can stack above */
  z-index: 9999;       /* Make sure it shows above everything */
}
.otherInput {
  width: calc(100% - 45px);
  padding: 10px;
  margin: 1%;
  font-size: 1.2rem;
  border-radius: 8px;
  border: 3px solid orange;
  transition: transform 0.3s ease, background 0.3s ease;
}
.otherInput:hover {
  transform: scale(1.05);
}
body {
  height: 100%;
  background-color: orange; /* For browsers that do not support gradients */
  background-image: linear-gradient(135deg, #ff4500, #ffd700);
}
/* Announcement Overlay Styles */
  #announcement-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12,12,12,0.55);
    z-index: 2000; /* above footer (1000) in your page */
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }

  /* visible state */
  #announcement-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  /* Card */
  #announcement-overlay .card {
    width: min(760px, 92%);
    max-height: 85vh;
    overflow: auto;
    background: #d78903;
    color: black;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    padding: 18px 20px 16px 20px;
    transform: translateY(-8px);
    transition: transform 240ms cubic-bezier(.2,.9,.3,1);
  }

  #announcement-overlay.open .card {
    transform: translateY(0);
  }

  /* Header row */
  #announcement-overlay .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
  }
  #announcement-overlay h2 {
    margin: 0;
    font-size: 1.05rem;
  }

  /* Close button */
  #announcement-overlay .close-btn {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1;
    padding: 6px;
    border-radius: 6px;
  }
  #announcement-overlay .close-btn:focus {
    outline: 2px solid #66aaff;
  }

  /* Body text */
  #announcement-overlay .card-body {
    font-size: 0.95rem;
    color: #222;
    line-height: 1.45;
  }

  /* Actions row */
  #announcement-overlay .actions {
    display:flex;
    gap:8px;
    margin-top: 14px;
    flex-wrap:wrap;
  }
  #announcement-overlay .btn {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fafafa;
    cursor: pointer;
    font-weight: 600;
  }
  @media (max-width:420px){
    #announcement-overlay .card { padding: 14px; border-radius: 10px; }
    #announcement-overlay h2 { font-size: 1rem; }
  }