.scrollbar {
  position: absolute;
  top: 0;
  right: -20px;
  width: 20px;
  height: 100%;
  background: rgba(255,255,255,0.1);
}

.scroll-handle {
  position: absolute;
  top: 0;
  width: 100%;
  height: 80px; /* handle size */
  background: rgba(255,255,255,0.6);
  border-radius: 10px;
  cursor: grab;
}
.scroll-handle:active {
  cursor: grabbing;
}

#wrap-3d-menu {
  position: fixed;
  top: 0;
  left: 0;
}

#wrap-footer {
  position: fixed;
  bottom: 6px;
  right: 50px;
}

#zoomZone {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 50px;
  height: 200px;
  overflow-y: scroll;
  background: rgba(255,255,255,0.05);
  z-index: 10000;
  cursor: ns-resize;
}
#zoomZone::-webkit-scrollbar {
  width: 0;
}

.modelViewer{
  position: absolute;
  transform-origin: center center;
  transform: rotateX(-90deg) scaleY(-1);
  transform-style: preserve-3d;
  pointer-events: none;
  z-index: 500;
  /* border: 2px solid white; */
}

#cartoon {
  width: 320px; 
  height: 320px;
  bottom: 0;
  left: 0;
}

#robot {
  width: 320px; 
  height: 320px;
  bottom: 0;
  left: 0;
}

#coWizard {
  width: 320px; 
  height: 320px;
  bottom: 0;
  left: 0;
}

#donPenguin {
  width: 170px; 
  height: 170px;
  bottom: 0;
  left: 0;
}

#coinMachine {
  width: 320px; 
  height: 640px;
  bottom: -800px;
  left: -300px;
}

#woodenBoat {
  width: 640px; 
  height: 640px;
  bottom: -2000px;
  left: -1600px;
}

#sunflower {
  width: 840px; 
  height: 840px;
  bottom: -700px;
  left: 500px;
}

model-viewer::part(default-progress-bar) {
  display: none;
}

.superHandle {
  position: fixed;       /* stays at bottom center */
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;

  opacity: 0.25;         /* nearly invisible by default */
  transition: opacity 0.3s ease;
  cursor: grab;       /* indicate interactivity */
}

.superHandle:hover {
  opacity: 1;            /* fully visible on hover */
}

/* Frame and knob remain the same */
.handle-frame {
  width: 80px;
  height: 80px;
  border: 3px solid #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.8);
}

.handle-knob {
  width: 20px;
  height: 20px;
  background: #333;
  border-radius: 50%;
  cursor: grab;
}
.handle-knob:active {
  cursor: grabbing;
}


#pjax-container.loading {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

#pjax-loader {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
}

/* Make the top section one row */
.cbLogoutForm {
  display: flex;
  align-items: center;
  justify-content: space-between; /* space out greeting, avatar, button */
  max-width: 600px;
  margin: 1rem auto;
  padding: 0.8rem 1.2rem;
  background: #2a2a2a;       /* slightly dark background */
  border-radius: 8px;        /* gentle rounded corners */
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  color: #f5f5f5;
  font-family: "Segoe UI", Roboto, sans-serif;
}

/* Greeting text */
.cbLogoutForm .login-greeting {
  font-size: 1rem;
  font-weight: 600;
  margin: 0; /* remove vertical spacing */
}

/* Avatar */
.cbLogoutForm .login-avatar {
  margin: 0 1rem;
}
.cbLogoutForm .login-avatar svg {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}
.cbLogoutForm .login-avatar:hover svg {
  transform: scale(1.05);
}

/* Logout button */
.cbLogoutForm .logout-button .btn {
  background: #4cafef;
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.2s ease;
  cursor: pointer;
}
.cbLogoutForm .logout-button .btn:hover {
  background: #2196f3;
  transform: translateY(-2px);
}
.visually-hidden, #uddeim-navbar2 {
  display: none;
}
.icon-chevron-down {
  cursor: pointer;
}


/* Outer row */
.row.no-gutters.cbPosTop {
  padding: 0;
}

/* Column */
.col-sm-2.cbPosRight {
  display: block;          
  margin: 0 auto;          /* center horizontally */
  width: 100%;        /* wider container */
  position: relative;
}

/* Tab content blocks */
.cb_tab_content.cb_tab_html {
  display: block;
  margin-bottom: 1.5rem;
  padding: 0.5rem 0;
  position: relative;
}

/* Titles */
.titleCell {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  text-align: left;
}

/* Form table */
.contentpane {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
}
.contentpane td {
  vertical-align: top;
}

/* Inputs */
.inputbox {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: 1px solid #aaa;
  border-radius: 4px;
  font-size: 0.95rem;
}
.inputbox:focus {
  outline: none;
  border-color: #333;
}

/* Textarea */
textarea.inputbox {
  resize: vertical;
  min-height: 120px;
}

/* Submit button */
.button {
  padding: 0.5rem 1rem;
  border: 1px solid #333;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}
.button:hover {
  border-color: #000;
}

/* Private messaging link */
.fieldCell a {
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.fieldCell a:hover {
  border-color: #333;
}
/* Container */
.cbLoginForm {
  max-width: 320px;
  margin: 0 auto;
  padding: 20px;
  border: 2px solid #333;
  border-radius: 10px;
  background: white;
  font-family: "Segoe UI", Roboto, sans-serif;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Input groups */
.cbLoginForm .form-group {
  margin-bottom: 1rem;
}

.cbLoginForm .input-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Inputs */
.cbLoginForm .form-control {
  flex: 1;
  padding: 0.5rem 0.6rem;
  border: 1px solid #aaa;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cbLoginForm .form-control:focus {
  outline: none;
  border-color: #333;
  box-shadow: 0 0 0 3px rgba(50,50,50,0.2);
}

/* Icons */
.cbLoginForm .input-group-text,
.cbLoginForm .input-password-toggle {
  flex-shrink: 0;
  font-size: 1.2rem;
  color: #555;
  background: none;
  border: none;
  cursor: pointer;
}
.cbLoginForm .input-password-toggle:hover {
  color: #000;
}

/* Remember Me */
.cbLoginForm .form-check {
  display: block;
}
.cbLoginForm .form-check-label {
  cursor: pointer;
  font-size: 0.9rem;
}

/* Buttons side by side */
.cbLoginForm .mod-login__submit {
  display: inline-block;
  width: 49%;              /* evenly split */
  margin-right: 2%;
  vertical-align: top;
}
.cbLoginForm .mod-login__submit:last-child {
  margin-right: 0;
}

.cbLoginForm .btn {
  width: 100%;             /* fill container */
  min-height: 48px;        /* consistent height */
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  float: left;
}
.cbLoginForm .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Password toggle button sizing */
.input-password-toggle {
  width: 40px !important;
  height: 40px;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Options */
.cbLoginForm .mod-login__options {
  margin-top: 1rem;
  text-align: left;
  padding-left: 0;
}
.cbLoginForm .mod-login__options li {
  display: inline-block;
  margin: 0 0.5rem;
}
.cbLoginForm .mod-login__options a {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.cbLoginForm .mod-login__options a:hover {
  border-color: #333;
}

/* Responsive stacking for buttons */
@media (max-width: 360px) {
  .cbLoginForm .mod-login__submit {
    display: block;
    width: 100%;
    margin-right: 0;
    margin-bottom: 0.5rem;
  }
}

.avatar-overlay {
  position: absolute;
  width: 700px;
  height: 0;                 /* collapsed initially */
  background: rgba(255,255,255,0.95);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.3);
  overflow: hidden;
  transform-origin: bottom left;
  transform:rotateX(90deg) scaleY(1) translateY(0px);
  transform-style: preserve-3d;
  transition: height 0.8s ease;
  z-index: 500;
  pointer-events: auto;
}

.avatar-overlay.active {
  height: 500px;             /* grows upward */
}
