/* PorterSoft Solutions public site.
   Desktop keeps the legacy look (StyleMain.css + MasterPage.master: grey page, white rounded panel, green links, Arial / Arial Narrow);
   tablets and phones get the same pieces stacked. */

:root {
    --pss-green: #229740;
    --pss-page-bg: #ececeb;
    --pss-menu-bg: #F4F4F3;
    --pss-narrow: "Arial Narrow", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 8px 0 0;
    background-color: var(--pss-page-bg);
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}

img { border: 0; }

/* ---- Legacy StyleMain.css classes used by the page content ---- */
a, a:visited { color: var(--pss-green); font-family: Arial, sans-serif; text-decoration: none; cursor: pointer; }
a:hover { color: red; text-decoration: underline; }

.mytd { color: gray; font-family: Arial, sans-serif; font-size: 18px; }
.StdText { color: gray; font-family: var(--pss-narrow); font-size: 22px; }
.features { color: gray; font-family: var(--pss-narrow); font-size: 18px; }
.smalllink { font-size: 13px; font-family: Arial, sans-serif; color: silver; }
a.smalllink, a.smalllink:visited { color: silver; }
a.smalllink:hover { color: red; }
.size_center { font-size: 28px; font-family: Arial, sans-serif; text-align: center; font-weight: normal; }
.Feat_title { font-size: 21px; font-family: var(--pss-narrow); text-align: center; text-decoration: underline; color: var(--pss-green); }
.Feat_subtitle { font-size: 20px; font-family: var(--pss-narrow); color: var(--pss-green); }
.Featdes_title { font-size: 20px; font-family: var(--pss-narrow); }
.pss-red { color: red; }
.pss-silver { color: silver; }
.pss-nowrap { white-space: nowrap; }
.img { border-radius: 10px; box-shadow: 1px 5px 5px silver; }
img.pss-zoom { cursor: zoom-in; max-width: 100%; height: auto; }

fieldset { box-shadow: 2px 4px 5px silver; border-radius: 12px; border: 1px solid gray; }
legend { color: silver; font-size: 15px; font-family: Arial, Helvetica, sans-serif; }

/* ---- The white rounded panel (legacy Panel1 80% → table 95%, radius 45px) ---- */
.pss-shell {
    width: 76%;
    margin: 0 auto 16px;
    padding: 14px;
    background: #fff;
    border: 1px solid silver;
    border-radius: 45px;
    box-shadow: 2px 2px 3px silver;
    animation: pss-fade-in .5s ease-out;
}

@keyframes pss-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---- Header: logo, menu, Customer Login / Questions ---- */
.pss-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 12px 0;
}

.pss-logo img { display: block; max-width: 100%; height: auto; }

.pss-menu-toggle { display: none; }

.pss-nav { flex: 1 1 auto; display: flex; justify-content: center; padding-top: 30px; }
.pss-nav ul { list-style: none; margin: 0; padding: 0; display: flex; position: relative; z-index: 30; }
.pss-nav li { position: relative; margin: 0; padding: 0; font: 18px Arial, sans-serif; }

.pss-nav-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 90px;
    padding: 0 4px;
    background: #fff;
    border: 1px solid #fff;
    color: var(--pss-green);
    font: 18px Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}
a.pss-nav-top, a.pss-nav-top:visited { color: var(--pss-green); }
.pss-nav-top:hover, a.pss-nav-top:hover { color: red; text-decoration: underline; }

/* Legacy #sddm div: hidden, closes 500 ms after the mouse leaves (mclosetime). */
.pss-sub {
    position: absolute;
    left: 0;
    top: 100%;
    visibility: hidden;
    transition: visibility 0s .5s;
    min-width: 150px;
    padding: 4px;
    background: var(--pss-menu-bg);
    border: 1px solid var(--pss-page-bg);
    text-align: left;
}
.pss-sub-wide { min-width: 260px; }
.pss-sub a {
    display: block;
    padding: 6px 4px;
    white-space: nowrap;
    font: 18px Arial, sans-serif;
    color: var(--pss-green);
}
.pss-sub a:hover { background: var(--pss-page-bg); color: red; }

@media (hover: hover) {
    .pss-has-sub:hover > .pss-sub { visibility: visible; transition-delay: 0s; }
}
.pss-has-sub.open > .pss-sub { visibility: visible; transition-delay: 0s; }

.pss-header-right { flex: 0 0 auto; text-align: center; white-space: nowrap; }
.pss-login { display: inline-flex; align-items: center; gap: 4px; }
.pss-login b { font-size: 12px; font-family: Verdana, sans-serif; color: var(--pss-green); }
.pss-login, .pss-login-v2 { vertical-align: middle; }
.pss-login-v2 { margin-left: 10px; font-size: 11px; font-family: Verdana, sans-serif; }
.pss-questions { margin-top: 4px; color: gray; font-size: 22px; font-family: var(--pss-narrow); }
.pss-questions a { font-size: 22px; font-family: var(--pss-narrow); }

.pss-fade-line { display: block; width: 100%; height: 40px; }
.pss-fade-line-top { margin-top: 4px; }

/* ---- Page content ---- */
.pss-main { padding: 0 2px; }

.pss-trial-banner {
    margin: 12px 0 24px;
    font-size: 27px;
    font-family: var(--pss-narrow);
    color: var(--pss-green);
}

.pss-page { text-align: center; }
.pss-page table { max-width: 100%; }
.pss-page img { max-width: 100%; height: auto; }
.pss-page h1, .pss-page h2 { font-weight: normal; }

/* The module pages' check lines (Check.Row / Row2). */
tr.pss-ck > td { vertical-align: top; }

/* The module links row above and below the module pages. */
.pss-module-links { margin: 6px 0; font-size: 14px; color: gray; }
.pss-module-links a { font-size: 14px; color: blue; }
.pss-module-links a:hover { color: red; }

/* ---- Footer ---- */
.pss-footer { padding-top: 32px; }
.pss-footer-ask { margin: 0 0 32px; font-size: 24px; font-family: var(--pss-narrow); color: silver; }
.pss-footer-trial { margin-bottom: 40px; }

.pss-footer-cols {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    width: 70%;
    margin: 0 auto;
    padding: 12px;
}
.pss-footer-col { display: flex; flex-direction: column; align-items: flex-start; text-align: left; white-space: nowrap; min-width: 9%; }
.pss-footer-head, a.pss-footer-head, a.pss-footer-head:visited { font-size: 16px; font-family: Arial, sans-serif; color: silver; text-decoration: underline; }
.pss-footer-seals, .pss-footer-logos { text-align: center; }
.pss-footer-logos div { display: flex; justify-content: center; gap: 4px; margin-top: 2px; }
.pss-footer-hr { width: 90%; border: 0; border-top: 1px solid var(--pss-page-bg); }
.pss-copyright { margin: 8px 0 4px; }

/* ---- "Success" / "Oops" (legacy SetMasterUpdateStatus) ---- */
.pss-status { display: inline-block; max-width: 100%; margin: 6px auto; text-align: left; font-family: Arial, sans-serif; }
.pss-status-head { display: block; font-size: 16px; }
.pss-status-text { font-size: 12px; }
.pss-status-ok { color: #188310; }
.pss-status-err { color: red; }
.pss-status-large .pss-status-head { font-size: 25px; }
.pss-msg-big { font-size: 18px; }
.pss-msg-link { font-family: var(--pss-narrow); font-size: 20px; }
.pss-wait { display: block; margin: 0 auto; }

/* ---- Trial form (legacy UC_Trial: 450 wide, rounded white box) ---- */
.pss-trial {
    width: 450px;
    max-width: 100%;
    min-height: 350px;
    margin: 0 auto;
    padding: 12px 10px 20px;
    background: #fff;
    border: 1px solid silver;
    border-radius: 35px;
    box-shadow: 2px 2px 3px silver;
    text-align: center;
}
.pss-trial-intro { margin: 6px 4px 10px; }
.pss-trial-title { font-size: 18px; }
.pss-trial-type { display: flex; justify-content: center; gap: 32px; margin: 4px 0 10px; font-size: large; color: black; }
.pss-trial-type label { cursor: pointer; }

.pss-big-input {
    display: block;
    width: 85%;
    margin: 6px auto;
    padding: 12px;
    font-size: 19px;
    font-family: Arial, sans-serif;
    color: gray;
    border: 1px solid silver;
    border-radius: 10px;
}
textarea.pss-big-input { font-size: 16px; height: 200px; resize: vertical; }
.pss-big-input[hidden] { display: none; }

.pss-captcha { display: flex; justify-content: center; margin: 10px 0; min-height: 78px; }
.pss-image-button { padding: 0; border: 0; background: none; cursor: pointer; }
.pss-image-button:disabled { opacity: .6; cursor: wait; }
.pss-image-button img { max-width: 100%; height: auto; }

.pss-button {
    color: gray;
    font-size: 19px;
    padding: 10px;
    border: 1px solid silver;
    border-radius: 10px;
    background: #f4f4f4;
    cursor: pointer;
}

/* ---- Pages with the left picture buttons and the vertical line ---- */
.pss-side-page {
    display: grid;
    grid-template-columns: 20% 13px 1fr;
    gap: 7px;
    width: 98%;
    margin: 0 auto;
    padding: 7px;
    text-align: left;
}
.pss-side-buttons { text-align: center; }
.pss-side-buttons img { display: inline-block; margin: 2px; max-width: 100%; height: auto; }
.pss-vline { min-height: 600px; background: url(/frontwebimg/hline.jpg) center top / 13px 100% no-repeat; }
.pss-side-content { min-width: 0; }

.pss-page-title { font-size: 32px; font-family: var(--pss-narrow); color: var(--pss-green); }

/* Legacy asp:Panel GroupingText boxes. */
.pss-group { width: 520px; max-width: 100%; margin: 0; padding: 10px; }
.pss-group-wide { width: 100%; }

/* ---- "Loading..." cover (legacy SearchPanelLoader) ---- */
.pss-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    padding-top: 30vh;
    background: rgba(255, 255, 255, .75);
    color: #333;
    font: 20px Arial, sans-serif;
}
.pss-loader[hidden] { display: none; }

/* ---- Large screenshot (legacy ModalPopupExtender, modalPopup / modalBackground) ---- */
.pss-zoom-dialog {
    width: 1200px;
    max-width: 96vw;
    max-height: 94vh;
    padding: 13px;
    background: var(--pss-page-bg);
    border: 1px solid silver;
    border-radius: 25px;
    text-align: center;
}
.pss-zoom-dialog::backdrop, .pss-build-dialog::backdrop { background: rgba(83, 82, 82, .7); }
.pss-zoom-title { text-align: left; font: 22px Arial, sans-serif; color: red; }
.pss-zoom-body { max-height: calc(94vh - 110px); overflow: auto; }
.pss-zoom-body img { width: 1150px; max-width: 100%; height: auto; }
.pss-zoom-close { margin-top: 6px; padding: 0; border: 0; background: none; cursor: pointer; }

/* ---- Features page ---- */
.pss-features { display: grid; grid-template-columns: 20% 13px 1fr; gap: 3px; text-align: left; }
.pss-features-list { overflow-x: auto; max-width: 230px; }
.pss-features-list ul { margin: 0; padding-left: 18px; }
.pss-features-list li { white-space: nowrap; }
.pss-feature-group { margin: 7px; }
.pss-feature-detail { width: 95%; margin: 0 auto; }
.pss-feature-detail .mytd { text-align: left; }
.pss-feature-detail img.img { display: block; margin: 0 auto; max-width: 100%; height: auto; }

/* ---- Full Feature List ---- */
.pss-all-features { display: flex; flex-wrap: wrap; gap: 0 24px; align-items: flex-start; }
.pss-all-features .pss-col { min-width: 0; }
.pss-all-features h3 { margin: 6px 0; font: normal 22px var(--pss-narrow); color: gray; text-decoration: underline; }
.pss-all-features .pss-group-title { font: bold 14px Verdana, sans-serif; color: var(--pss-green); }
.pss-all-features ul { margin: 2px 0 8px; padding-left: 30px; }
.pss-all-features li a { font-size: 12px; }

/* ---- Pricing ---- */
.pss-pricing { width: 800px; max-width: 100%; margin: 0 auto; border-collapse: collapse; }
.pss-pricing td { border: 1px solid silver; padding: 4px; }
.pss-pricing .pss-price-head td { height: 75px; vertical-align: bottom; }
.pss-pricing .pss-price-module td { background: var(--pss-page-bg); vertical-align: bottom; }
.pss-pricing .pss-price-col { width: 25%; text-align: center; }
.pss-price-name { font-size: 32px; font-family: var(--pss-narrow); color: gray; }
.pss-price { display: inline-flex; align-items: flex-start; font-family: var(--pss-narrow); color: gray; }
.pss-price b { font-size: 36px; font-weight: normal; }
.pss-price span { font-size: 20px; }
.pss-section-title { font-size: 17px; text-decoration: underline; color: gray; font-family: Verdana, sans-serif; }
.pss-pricing a.pss-signme { font-size: 18px; color: blue; font-weight: bold; }
.pss-pricing .pss-feature-name { text-align: left; white-space: nowrap; }
.pss-pricing .pss-feature-name a { font-size: 12px; }
.pss-pricing .pss-general-name { font-size: 13px; color: var(--pss-green); }
.pss-pricing .pss-group-row td { text-align: left; }
.pss-pricing .pss-group-row b { font: bold 14px Verdana, sans-serif; color: var(--pss-green); }

/* ---- Build My Application ---- */
.pss-build { width: 800px; max-width: 100%; margin: 0 auto; }
.pss-build-note { padding: 5px; background: #f8f8f8; border: 1px solid silver; font-size: 20px; font-family: var(--pss-narrow); color: gray; text-align: center; }
.pss-build-section { margin: 4px 0; text-align: left; }
.pss-build-head { width: 100%; padding: 4px; border: 0; background: none; text-align: left; cursor: pointer; color: silver; font: 24px var(--pss-narrow); }
.pss-build-head hr { border: 0; border-top: 1px solid var(--pss-page-bg); }
.pss-build-options { display: none; padding: 0 3px; font: smaller Arial, sans-serif; color: black; }
.pss-build-section.open .pss-build-options { display: block; }
.pss-build-options label { display: block; padding: 3px; cursor: pointer; }
.pss-build-actions { display: flex; justify-content: space-between; padding: 6px; background: #f8f8f8; border: 1px solid silver; }
.pss-build-actions .pss-button { width: 150px; color: black; }
.pss-build-dialog { width: 600px; max-width: 96vw; padding: 12px; background: #fff; border: 1px solid silver; text-align: center; }

/* ---- Reseller / contact forms ---- */
.pss-form-table td { padding: 2px 4px; }
.pss-form-table .pss-label { text-align: right; white-space: nowrap; }
.pss-form-table input[type=text], .pss-form-table input[type=password] { width: 250px; max-width: 100%; }
.pss-form-table .pss-short { width: 80px; }
.pss-form-table .pss-phone { width: 40px; }
.pss-form-table .pss-phone4 { width: 50px; }
.pss-help { text-decoration: underline; cursor: help; color: gray; }
.pss-vercode img { vertical-align: middle; }

/* ---- Blank layout (activation pages) ---- */
.pss-blank { margin: 8px; }
.pss-blank-head { width: 898px; max-width: 100%; margin: 0 auto 12px; }
.pss-blank-head img { max-width: 100%; height: auto; }

/* ---- Home page (legacy Default.aspx) ---- */
.pss-home { width: 98%; margin: 0 auto; }
.pss-hero {
    width: 1100px;
    max-width: 100%;
    aspect-ratio: 1100 / 535;
    margin: 6px auto 0;
    padding: 5px 12px;
    background: #fff url(/frontwebimg/topbg1.png) center top / cover no-repeat;
    border: 1px solid var(--pss-page-bg);
    border-radius: 35px;
    color: #fff;
    font-family: var(--pss-narrow);
}
.pss-hero-title { font-size: 36px; padding-top: 2px; }
.pss-hero-sub { font-size: 28px; padding-top: 4px; }
.pss-home h1.size_center, .pss-home h2.size_center { margin: 12px auto; max-width: 1100px; }

.pss-custom-box {
    width: 670px;
    max-width: 100%;
    min-height: 260px;
    margin: 8px auto;
    padding: 30px 24px;
    background: #f8f8f8;
    border: 1px solid silver;
    border-radius: 70px 0 70px 0;
}
.pss-custom-title { font-size: 25px; font-family: var(--pss-narrow); }
.pss-custom-text { margin: 30px 0 10px; font-size: 15px; font-family: var(--pss-narrow); }
.pss-custom-link { font-size: 20px; font-family: var(--pss-narrow); }

.pss-home-modules { display: flex; justify-content: center; align-items: flex-start; gap: 12px; padding: 6px; }
.pss-checkbox-list { margin: 0; padding: 0; list-style: none; text-align: left; }
.pss-checkbox-list li { display: flex; align-items: center; gap: 14px; padding: 7px; }
.pss-checkbox-list a, .pss-checkbox-list span { font-size: 20px; font-family: Arial, sans-serif; }
.pss-home-mac { flex: 0 1 65%; text-align: left; }
.pss-home-mac img, .pss-home-tablet img, .pss-home-paypal img { max-width: 100%; height: auto; }

.pss-home-features { display: flex; width: 80%; margin: 0 auto; gap: 8px; align-items: flex-start; }
.pss-home-feature-list { flex: 1 1 50%; margin: 0; padding-left: 20px; text-align: left; }
.pss-home-feature-list li { padding: 4px 0; }
.pss-home-feature-list a { font-size: 20px; font-family: var(--pss-narrow); }
.pss-home-paypal { flex: 1 1 50%; text-align: center; }

.pss-home-text { width: 90%; margin: 0 auto; }
.pss-home-mobile { display: flex; gap: 8px; align-items: flex-start; margin-top: 48px; text-align: left; }
.pss-home-tablet { flex: 0 1 55%; }
.pss-home-mobile .StdText { flex: 1 1 45%; padding-top: 18px; }
.pss-signup-link { font-size: 20px; text-decoration: underline; font-family: var(--pss-narrow); }
.pss-home-choose { width: 90%; margin: 36px auto 0; text-align: left; }
.pss-home-manage a { font-size: 18px; font-family: Arial, sans-serif; }
.pss-home-manage li { font-size: 18px; font-family: Arial, sans-serif; }
.pss-home-quote { margin: 60px 0 12px; padding: 12px; font-size: 32px; font-family: var(--pss-narrow); }

.pss-notice-list { margin: 0; padding-left: 18px; }

/* =========================================================================================
   Tablets
   ========================================================================================= */
@media (max-width: 1100px) {
    .pss-shell { width: 96%; border-radius: 30px; }
    .pss-header { flex-wrap: wrap; justify-content: center; }
    .pss-nav { order: 3; flex-basis: 100%; padding-top: 6px; }
    .pss-footer-cols { width: 100%; flex-wrap: wrap; }
}

/* =========================================================================================
   Phones: the menu folds behind a "Menu" button and the page parts stack.
   ========================================================================================= */
@media (max-width: 760px) {
    body { margin-top: 0; }
    .pss-shell { width: 100%; padding: 8px; border-radius: 0 0 18px 18px; border-top: 0; }

    .pss-header { padding: 4px 4px 0; }
    .pss-logo { flex-basis: 100%; display: flex; justify-content: center; }
    .pss-logo img { width: 220px; }
    .pss-menu-toggle {
        display: block;
        order: 2;
        padding: 8px 14px;
        border: 1px solid silver;
        border-radius: 10px;
        background: var(--pss-menu-bg);
        color: var(--pss-green);
        font: 18px Arial, sans-serif;
        cursor: pointer;
    }
    .pss-header-right { order: 2; }
    .pss-questions, .pss-questions a { font-size: 18px; }

    .pss-nav { display: none; }
    .pss-nav.open { display: block; }
    .pss-nav ul { flex-direction: column; align-items: stretch; text-align: left; border: 1px solid var(--pss-page-bg); border-radius: 10px; }
    .pss-nav-top { justify-content: flex-start; width: 100%; padding: 10px 8px; }
    .pss-sub { position: static; display: none; visibility: visible; border: 0; padding: 0 0 6px 24px; }
    .pss-has-sub.open > .pss-sub { display: block; }
    .pss-sub a { white-space: normal; }

    .pss-trial-banner { font-size: 21px; }
    .pss-footer-ask { font-size: 19px; }
    .pss-footer-cols { gap: 16px; padding: 6px; }
    .pss-footer-col { min-width: 40%; }
    .pss-footer-seals, .pss-footer-logos { flex-basis: 100%; }

    /* Legacy layout tables become one column. */
    .pss-page table, .pss-page tbody, .pss-page tr, .pss-page td, .pss-page th {
        display: block;
        width: auto !important;
        height: auto !important;
    }
    .pss-page td[nowrap], .pss-page .pss-nowrap { white-space: normal; }
    .pss-page tr.pss-ck { display: flex; flex-wrap: wrap; gap: 4px; }
    .pss-page tr.pss-ck > td { flex: 0 0 auto; }
    .pss-page tr.pss-ck > td + td { flex: 1 1 0; min-width: 0; }
    .pss-page tr.pss-ck2 > td:not(.pss-mark) { flex: 1 1 calc(100% - 30px); }

    .pss-page img[src$="hline.jpg"] { display: none; }

    /* The picture sits under the text (on the picture's own green) instead of behind it. */
    .pss-hero {
        aspect-ratio: auto;
        padding-bottom: calc((100vw - 16px) * 0.487);
        background-color: #42D66B;
        background-size: 100% auto;
        background-position: center bottom;
        border-radius: 20px;
    }
    .pss-hero-title { font-size: 26px; }
    .pss-hero-sub { font-size: 20px; }
    .size_center { font-size: 22px; }
    .pss-custom-box { border-radius: 40px 0 40px 0; padding: 20px 14px; min-height: 0; }
    .pss-home-modules, .pss-home-features, .pss-home-mobile { flex-direction: column; align-items: center; width: 100%; }
    .pss-home-mac { text-align: center; }
    .StdText { font-size: 19px; }
    .pss-home-choose, .pss-home-text { width: 100%; }
    .pss-home-quote { font-size: 24px; margin-top: 30px; }

    .pss-side-page, .pss-features { grid-template-columns: 1fr; }
    .pss-vline { display: none; }
    .pss-side-buttons img { width: 46%; }
    .pss-features-list { max-width: none; }
    .pss-page-title { font-size: 26px; }

    .pss-trial { border-radius: 20px; min-height: 0; }
    .pss-trial-type { gap: 18px; }
    .pss-big-input { width: 100%; }

    .pss-form-table, .pss-form-table tbody, .pss-form-table tr, .pss-form-table td { display: block; width: auto; }
    .pss-form-table .pss-label { text-align: left; padding-top: 8px; }

    .pss-pricing td { font-size: 12px; }
    .pss-price-name { font-size: 22px; }
    .pss-price b { font-size: 24px; }
    .pss-price span { font-size: 14px; }
    .pss-pricing .pss-feature-name { white-space: normal; }
}
