the bottom buttons exceed their container when i zoom <!DOCTYPE html> <html lang="en">…
- User
the bottom buttons exceed their container when i zoom
body { display: flex; font-family: 'lucidity', Arial, sans-serif; background-color: black; color: white; transform-origin: top left; /* Ensures scaling starts from top-left */ } @font-face { font-family: 'lucidity'; src: url('C:/Users/PC/Desktop/guest/WEB BUILD/lucidity/fonts/lucidity.ttf') format('truetype'); } .left-half, .right-half { flex: 1; display: flex; flex-direction: column; justify-content: space-between; /* Ensures space between top content and bottom buttons */ /* Removed align-items: center to prevent vertical misalignment */ } .left-half { padding: 1vh 0.5vh 1vh 1vh; /* Removed max-width: 50%; to align with reference code */ overflow-x: hidden; /* Hide overflowing content */ } .right-half { padding: 1vh 1vh 1vh 0.5vh; justify-content: center; } .button-group { flex-grow: 1; overflow-y: auto; scrollbar-width: none; /* Optional: Hide scrollbars for a cleaner look */ } .image-space { width: 100%; height: 100%; border: 0.1vh solid white; overflow: hidden; box-sizing: border-box; /* Ensures padding and borders are included */ } .image-space img { width: 100%; height: 100%; object-fit: cover; animation: fadeIn 3s forwards; box-sizing: border-box; /* Ensures padding and borders are included */ } .image-space video { width: 100%; height: 103.5%; object-fit: cover; animation: fadeIn 3s forwards; box-sizing: border-box; /* Ensures padding and borders are included */ } .dropdown-button { background-color: black; color: white; border: 0.1vh solid white; font-family: inherit; font-size: calc(3vh * var(--scale-factor)); /* Consistent scaling */ cursor: pointer; padding: 1.5vh 2vh; width: 100%; text-align: left; opacity: 0; animation: fadeIn 3s forwards; transition: background-color 0.3s, color 0.3s; margin-bottom: 1.2vh; box-sizing: border-box; /* Includes padding in width and height */ } .bottom-buttons-container { display: flex; justify-content: space-between; align-items: center; /* Vertically centers the buttons */ padding-top: 0.9vh; /* Changed from 9px to 0.9vh for responsiveness */ padding-bottom: 0.9vh; /* Changed from 9px to 0.9vh */ margin-bottom: -0.9vh; /* Adjusted to counteract padding and maintain position */ width: 100%; gap: 1vh; /* Ensures consistent spacing between button groups */ box-sizing: border-box; /* Includes padding in layout calculations */ } .bottom-button:not(:last-child) { border-right: 0.1vh solid white; } .bottom-button { padding: calc(1vh * var(--scale-factor)) calc(2vh * var(--scale-factor)); /* Proportional scaling */ font-size: calc(2vh * var(--scale-factor)); /* Unified scaling with --scale-factor */ color: white; background-color: black; border: 0.1vh solid white; cursor: pointer; transition: background-color 0.3s, color 0.3s; display: flex; align-items: center; justify-content: center; /* Centers content horizontally */ line-height: 1.2; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; /* Includes padding and border in dimensions */ } .up-down-buttons { display: flex; gap: 1vh; } .home-chat-buttons { display: flex; gap: 1vh; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .dropdown-button:hover, .bottom-button:hover { background-color: white; color: black; } .caption { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background-color: black; color: white; padding: 1vh 2vh; border-radius: 0.5vh; font-size: calc(3vh * var(--scale-factor)); /* Consistent scaling */ z-index: 2; display: none; box-sizing: border-box; /* Includes padding in dimensions */ } .caption.show { display: block; animation: flicker 1s linear 3; } @keyframes flicker { 0%, 100% { opacity: 1; } 50% { opacity: 0; } } .dropdown-button:nth-child(n+2) { animation-delay: calc((var(--delay) - 1) * 0.5s); } .tooltip { position: relative; display: inline-block; } .tooltip .tooltiptext { visibility: hidden; width: auto; background-color: white; color: black; text-align: center; border-radius: 6px; padding: 5px 10px; position: absolute; z-index: 1; bottom: 115%; left: 50%; transform: translateX(-50%); white-space: nowrap; opacity: 0; transition: opacity 0.3s; pointer-events: none; } .tooltip:hover .tooltiptext { visibility: visible; opacity: 1; } /* Accessibility: Focus styles */ .bottom-button:focus { outline: 2px solid #fff; outline-offset: 2px; } </style> - Assistant