html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

#secondAsinModal {
    right: 0;
    width: 100%;
    max-width: 550px; /* Default modal width */
    height: 100vh;
    overflow-y: auto;
    z-index: 1055;
    background: white;
    transition: max-width 0.3s ease;
}

    #secondAsinModal.sidebar-toggled {
        max-width: 610px;
        transform-origin: top left;
    }

@media (min-width: 1500px) {
    #secondAsinModal {
        max-width: 590px !important;
    }

    .second-asin-content {
        transform: scale(1) !important;
        transform-origin: top left !important;
    }

    #secondAsinModal.sidebar-toggled {
        max-width: 650px !important;
        transform-origin: top left !important;
    }
}

@media (min-width: 1800px) {
    #secondAsinModal {
        max-width: 730px !important;
    }

    .second-asin-content {
        transform: scale(1) !important;
        transform-origin: top left !important;
    }

    #secondAsinModal.sidebar-toggled {
        max-width: 810px !important;
        transform-origin: top left !important;
    }
}

@media (min-width: 2300px) {
    #secondAsinModal {
        max-width: 970px !important;
    }

    .second-asin-content {
        transform: scale(1) !important;
        transform-origin: top left !important;
    }

    #secondAsinModal.sidebar-toggled {
        max-width: 1070px !important;
        transform-origin: top left !important;
    }
}

.page-break {
    page-break-before: always;
    break-before: page;
    border-top: 1px dashed #ccc;
    margin: 2rem 0;
    text-align: center;
    position: relative;
}

    .page-break::after {
        content: "--- Page Break ---";
        color: #999;
        font-size: 0.9rem;
        background: #f8f9fa;
        padding: 0 1rem;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

@media print {

    .page-break::after {
        display: none !important;
    }
}

    .keyword-link {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        font-size: 0.92rem;
    }

        .keyword-link:hover span {
            text-decoration: underline;
            color: #0d6efd;
        }

        .keyword-link i {
            font-size: 0.85rem;
        }

/*td:first-child {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.25rem;
    font-size: 0.92rem;
}*/

    /*td:first-child .keyword-link {
        display: inline-block;
        min-height: 3.6em;*/ /* makes short content occupy ~2 lines visually */
        /*line-height: 1.2em;
    }*/

.hero-screenshot {
    width: 100%;
    min-width: 0; /* prevents overflow in flex layouts */
    margin-left: auto; /* center when stacked */
    margin-right: auto;
}

    .hero-screenshot img {
        display: block;
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    body .hero-screenshot {
        width: 100%;
        min-width: 0;
    }

    @media (min-width:992px) {
        body .hero-screenshot {
            max-width: 740px;
        }
    }
