.clg-main { box-sizing: border-box; /* Add box-sizing to handle padding and border correctly */ } .head { font-size: 0.875rem; /* Use rem for better scalability */ line-height: 1 !important; } .clg-main p { font-size: 0.875rem; /* Use rem for better scalability */ margin-bottom: 10px; margin-top: 0; } .app-title { text-align: center; font-size: 1.5rem; /* Give the title a bit more emphasis */ } .currentDate { display: flex; justify-content: flex-end; /* Align to the right */ padding-inline-end: 0 !important; } .clg-container { display: flex; flex-direction: row; margin: 1.5rem auto; justify-content: center; gap: 20px 30px; max-width: 1024px; padding: 10px; } .clg-container .inputSection { padding-top: 2.5rem; max-width: 270px; min-width: 270px; } .inputSection, .displaySection { margin-bottom: 0; /* Removed negative margin */ } .purpose-wrap, .domainSection, .p-serverSection, .s-serverSection, .nameSection, .addressSection, .registerCompanyName, .phoneSection, .logoSection, .clg-field-wrap { display: flex; flex-direction: column; } .tabs { display: flex; border-bottom: 2px solid #ddd; /* Added bottom border for tab separation */ } .tabs, .margin-below { margin-bottom: 10px; } .tab { background-color: #f0f0f0; cursor: pointer; flex-grow: 1; padding: 10px; text-align: center; } .tab.active { background-color: #ddd; font-weight: bold; border-bottom: 2px solid #333; /* Emphasize the active tab */ } // input#domain, input#primaryServer, input#secondaryServer, input#name, select#purpose, input#registerCompanyName, input#phone, input#logo, .clg-field-wrap .clg-field { height: 2rem; padding-left: 5px; font-family: monospace; font-size: 14px; width: 100%; outline: none; } .clg-field-wrap label { display: inline-block; width: 100%; font-weight: 500; margin-bottom: 5px; } input:focus { outline: none; /* Removes the default blue outline on focus */ } input.clearButton { position: relative; } .submitButton, .clearButton { background-color: #ffffff; padding: 15px 25px; margin-top: 5px; border: 1px solid #b8b8b8; border-radius: 5px; } .active-logoSection { display: none; /* Ensure this class is toggled correctly */ } .displaySection { background-color: #eef0f1; max-width: calc(100% - 280px); padding: 4rem; } .headingSectionUI { display: flex; justify-content: center; align-items: center; } .greetingSection { max-width: 650px; } .subjectSection { text-align: center; margin: 30px 0; } .closingSectionUI { margin-top: 0 !important; padding-top: 0.3rem !important; } .secLastSection { margin-top: 1.5rem; } /* Cross (remove) Button Styles */ #removeLogoBtn { background-color: transparent; color: #ff0000; border: none; font-size: 24px; cursor: pointer; padding: 0; display: inline-block; } #removeLogoBtn:hover { color: #c50808; } #removeLogoBtn:focus, #removeLogoBtn:active { outline: none; } #logo { width: 75%; } /* Adjust button positioning if necessary */ button#removeLogoBtn { position: relative; float: right; left: 0; top: 0; } .introStart { display: inline-block; /* Ensures block-level behavior, so spacing works properly */ white-space: normal; /* Allows wrapping of the text */ } .intro p { word-wrap: break-word; /* Ensures long words wrap properly if needed */ } .signature { color: #bbbbbb; padding: 15px 0; font-style: italic; } .domainName, .pNameServer, .sNameServer,.sincerely, .nameDisplay, .addressDisplay, .phoneDisplay { word-break: break-all; margin-bottom: 5px; } .submit { margin-top: 0.5rem; position: relative; display: flex; flex-direction: row; justify-content: space-between; } .submit input[type="submit"] { padding: 10px 20px; cursor: pointer; font-weight: 600; } .submit input[type="submit"]:hover { background: #cacaca; } // test code @media print { .displaySection { font-family: Arial, sans-serif; font-size: 14px; line-height: 1.6; margin: 0; padding: 0; max-width: 100%; word-wrap: break-word; /* Make sure long words break properly */ } /* Hide everything else except .displaySection */ body * { visibility: hidden; } .displaySection, .displaySection * { visibility: visible; } .displaySection { position: absolute; left: 0; top: 0; width: 100%; } }; @media screen and (max-width: 767px) { .clg-container { flex-wrap: wrap; padding: 10px 20px; } .clg-container .inputSection { max-width: 100%; width: 100%; } .clg-container .displaySection { padding: 2rem; width: 100%; max-width: 100%; } }