/* Make body take full height and center content */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center; /* horizontal center */
  align-items: center;     /* vertical center */
  background-color: rgb(248, 249, 250);
}

/* Responsive container */
.canvas-container {
  position: relative;
}

.container, .canvas-container {
  max-width: none;
}

/* Canvas size for various breakpoints */
@media (max-width: 400px) {
   .canvas-container {
     padding-top: 5rem !important;
     padding-bottom: 1.5rem !important;
   }

   .overlay-top {
     top: calc(5rem + 8%) !important;
   }
}

@media (max-width: 768px) {
  .canvas-container {
    width: 90vw;
    height: 70vh;
  }
}
@media (min-width: 769px) and (max-width: 1200px) {
  .canvas-container {
    width: 80vw;
    height: 70vh;
  }
}
@media (min-width: 1201px) {
  .canvas-container {
    width: 80vw;
    height: 70vh;
  }
}

canvas {
  width: 100%;
  height: 100%;
  display: block;
  border: 1px solid #b8b8b8; /*ccc*/
  background: #f9f9f9;
}

.landing-logo {
  background-color: #f9f9f9fa;
  width: auto;
}

.landing-join {
  padding: 0 !important;
}

.landing-join:active, .landing-docs:active {
  border: 0px;
}

.overlay-join:hover, .overlay-docs:hover {
  box-shadow: 3px 3px !important;
}

.overlay-top {
  position: absolute;
  top: 10%; /* not fully top or center — visually balanced */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}


/* Overlay styling remains the same */
.overlay-group {
  position: absolute;
  top: 35%; /* not fully top or center — visually balanced */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80%;
}

.overlay-group .overlay:nth-child(1) {
  margin-bottom: 24px;
}

.overlay-group .overlay-docs a {
  font-size: 24px;
}

.overlay-group .overlay:nth-child(2) {
  font-size: 20px;
  margin-bottom: 20px;
}

.overlay-group .overlay:nth-child(3) {
  font-size: 18px;
  margin-bottom: 0; /* last one, no margin needed */
  font-style: italic;
}

.overlay {
  padding: 10px 15px;
  background-color: rgba(255, 255, 255, 0.8);
  background-color: #f9f9f987;
  background-color: #f9f9f9fa;
  border: 1px solid rgb(63, 63, 63);
  font-size: 18px;
  color: #333;
  border-radius: 3px;
  box-shadow: 3px 3px 3px;
  text-align: center;
}

.overlay-join {
  padding: 5px 10px !important;
}

/* Default (large screens) already defined above — we're now scaling down */

@media (max-width: 1200px) {
  .overlay-group {
    top: 35%;
  }
  .overlay-group .overlay:nth-child(1) {
    margin-bottom: 24px;
  }
  .overlay-group .overlay-docs a {
    font-size: 24px;
  }
  .overlay-group .overlay:nth-child(2) {
    font-size: 20px;
    margin-bottom: 20px;
  }
  .overlay-group .overlay:nth-child(3) {
    font-size: 18px;
  }
  .landing-logo {
    width: 500px;
  }
}

@media (max-width: 992px) {
  .landing-logo {
    width: 425px;
  }
}

@media (max-width: 768px) {
  .overlay-group {
    top: 35%;
  }
  .overlay-group .overlay:nth-child(1) {
    margin-bottom: 22px;
  }

  .overlay-group .overlay-docs a {
    font-size: 22px;
  }
  .overlay-group .overlay:nth-child(2) {
    font-size: 19px;
    margin-bottom: 19px;
  }
  .overlay-group .overlay:nth-child(3) {
    font-size: 16px;
  }
  .landing-logo {
    width: 355px;
  }
}

@media (max-width: 480px) {
  .overlay-group {
    top: 42.5%;
  }
  .overlay-group .overlay:nth-child(1) {
    margin-bottom: 20px;
  }
  .overlay-group .overlay-docs a {
    font-size: 20px;
  }
  .overlay-group .overlay:nth-child(2) {
    font-size: 18px;
    margin-bottom: 18px;
  }
  .overlay-group .overlay:nth-child(3) {
    font-size: 16px;
  }
  .landing-logo {
    width: 75vw;
  }

  .overlay-top {
     top: calc(3rem + 6%);
   }

}
