// * { body { display: block; justify-content: center; align-items: center; min-height: 100vh; } .clg-main { box-sizing: border-box; /* Add box-sizing to handle padding and border correctly */ } p { font-size: 0.875rem; /* Use rem for better scalability */ line-height: 30px; } .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 0; // padding: 0 1rem; /* Symmetrical padding */ justify-content: center; column-gap: 1.5rem; } .inputSection { padding-top: 2.5rem; } #coverLetterForm { width: 250px; } .inputSection, .displaySection { margin-bottom: 0; /* Removed negative margin */ } .purpose-wrap, .domainSection, .p-serverSection, .s-serverSection, .nameSection, .addressSection, .registerCompanyName, .phoneSection, .logoSection { 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 { height: 2rem; padding-left: 5px; width: 243px; } input:focus { outline: none; /* Removes the default blue outline on focus */ } textarea#address { width: 243px; padding-top: 5px; padding-left: 5px; height: 2rem; } 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: 794px; // margin-left: 1rem; padding: 4rem; } .paper { width: 500px; } .headingSectionUI { display: flex; justify-content: center; align-items: center; } .greetingSection { max-width: 650px; } .subjectSection { text-align: center; margin: 15px 0; } .closingSection { padding-top: 0.7rem !important; margin-top: 0 !important; } .secLastSection { margin-top: 1.5rem; } .headingSectionUI { margin-top: 1.2rem; } /* 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; } /* Adjust button positioning if necessary */ button#removeLogoBtn { position: relative; float: right; left: 0px; top: -37px; } .introStart { display: inline-block; /* Ensures block-level behavior, so spacing works properly */ // margin-left: 45px; /* Adds the space at the beginning */ 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; } // 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 print { // @page { // size: A4 portrait; // margin: 0; /* Completely remove the default margins */ // } // /* Ensure full-page usage with equal left-right spacing */ // .displaySection { // margin-left: auto; // // margin-top: -300px; // // margin-top: auto; // margin-right: auto; // margin-bottom: auto; // } // .headingSection { // position: relative; // } // .headingSection img { // position: absolute; // top: 0; // left: 50%; // transform: translateX(-50%); // width: 100px; // height: 100px; // margin-left: 0 !important; // } // /* Move .currentDate UPWARD safely */ // .currentDate { // text-align: right; // } // p { // font-size: 0.875rem !important; // } // }