html, body, #s2k-preview {
    height: 100%;
}

body {
    font-size: initial;
    --color-white: #FFFFFF;
    --color-green: #C3E7CE;
    --color-beige: #FBEFD8;
    --color-black: #0F1111;

    --width-margins-narrow: 80%;
    --width-margins-medium: 70%;
    --width-margins-wide: 60%;

    --height-spacing-tight: 1.4em;
    --height-spacing-medium: 1.8em;
    --height-spacing-large: 2.2em;

    --font-ember: 'Amazon Ember';
}

a {
    text-decoration: none;
    color: #007185;
}

@font-face {
    font-family: 'Amazon Ember';
    src: url("/fonts/AmazonEmber_Rg.ttf");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Amazon Ember';
    src: url("/fonts/AmazonEmber_Bd.ttf");
    font-weight: bold;
    font-style: normal;
}


/* Customize the scrollbar for WebKit browsers (Chrome, Safari) */
::-webkit-scrollbar {
    width: 8px; /* Width of the scrollbar */
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    border-radius: 4px; /* Rounded corners for the thumb */
    background-color: #A2A6A6;
}

::-webkit-scrollbar-button {
    display: none;
}
/**********************************************
 * Classes
 **********************************************/
.s2k-preview-input-description {
    display: block;
    font-family: 'Amazon Ember';
    background: none;
    border: none;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #0F1111;
    margin: 0 auto 6px 0;
}

.s2k-preview-input {
    border-radius: 4px;
    border: 2px solid #888C8C;
    background: #FFFFFF;
    box-shadow: 0px 2px 1px 0px rgba(15, 17, 17, 0.15) inset;
}

.s2k-preview-input:focus {
    border: 2px solid #007185;
    background: #F7FEFF;
    box-shadow: 0px 2px 1px 0px rgba(15, 17, 17, 0.15) inset, 0px 0px 0px 3px #C8F3FA;
}

.s2k-preview-input.alert {
    border: 2px solid #CC0C39;
}

.s2k-preview-input-edit-icon {
    position: absolute;
    width: 20px;
    height: 20px;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    background-size: 20px 20px;
    background-image: url("/images/s2k-preview-icon-edit.svg");
}

.s2k-preview-input:focus + .s2k-preview-input-edit-icon {
    position: absolute;
    width: 20px;
    height: 20px;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    background-size: 20px 20px;
    background-image: url("/images/s2k-preview-icon-edit-focus.svg");
}

.s2k-show {
    display: flex !important;
}

.s2k-hide {
    display: none !important;
}

.s2k-no-margin {
    margin: 0;
}
/**********************************************
 * Elements
 **********************************************/
#s2k-preview-header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 18px 24px 18px 24px;
    background: #F0F2F2;
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.25);
    z-index: 100;
    position: sticky;
}

#s2k-preview-back {
    cursor: pointer;
    float: left;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin: auto 0 auto 0;
    padding: 0;
    border: none;
    background-color: transparent;
    background-repeat: no-repeat;
    background-image: url("/images/s2k-popup-arrow-left.svg");
}

#s2k-preview-header-title {
    font-family: 'Amazon Ember';
    background: none;
    border: none;
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    color: #0F1111;
    margin: auto auto auto auto;
}

#s2k-preview-send {
    cursor: pointer;
    font-family: 'Amazon Ember';
    background: none;
    border: none;
    font-weight: 700;
    font-size: 16px;
    line-height: 24px;
    color: #418FDE;
}

#s2k-preview-send:disabled {
    cursor: default;
    color: #888C8C;
}

#s2k-preview-content-container {
    font-family: var(--font-ember);
    overflow: auto;
    padding: 25px 45px;
    text-align: justify;
    height: calc(100% - 48px - 20px - 20px - 25px - 25px);
    font-size: 20px;
}

#s2k-preview-content-container img{
    max-width: 100%;
    height: auto;
}

#s2k-preview-content {
    width: var(--width-margins-medium);
    margin: 0 auto;
}

#s2k-preview-title-container {
    display: flex;
    position: relative;
}

#s2k-preview-title {
    display: flex;
    padding: 8px 37px 8px 7px;
    align-items: center;
    width: 100%;
    resize: none;
    font-family: "Amazon Ember";
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
    height: 32px;
    color:  #0F1111;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    outline: none;
}

#s2k-preview-title-section {
    margin: 0 0 0 0;
}

#s2k-preview-author-section {
    margin: 12px 0 0 0;
}

#s2k-preview-byline {
    margin: 0 0 0 0;
    display: flex;
    max-width: 100%;
    align-items: center;
}

#s2k-preview-byline-separator {
    margin: 0 5px;
}

#s2k-preview-author-container {
    display: flex;
    position: relative;
    width: 40%;
}

#s2k-preview-byline-author {
    display: flex;
    padding: 8px 37px 8px 7px;
    align-items: center;
    width: 100%;
    resize: none;
    font-family: "Amazon Ember";
    font-size: 16px;
    line-height: 20px;
    height: 20px;
    color:  #0F1111;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    outline: none;
}

.s2k-preview-input-inline-alert {
    display: flex;
    margin: 4px auto 0 auto;
    align-items: center;
}

.s2k-preview-input-inline-alert-icon {
    margin: auto 0 auto 0;
    width: 18px;
    height: 18px;
    padding: 0;
    border: none;
    background-image: url("/images/s2k-popup-red-alter-icon.svg");
}

.s2k-preview-input-inline-alert-text {
    margin: auto auto auto 6px;
    font-family: 'Amazon Ember';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    min-height: 20px;
    line-height: 20px;
    align-items: center;
    text-align: left;
    color: #DD0000;
}

.s2k-result-content {
    line-height: var(--height-spacing-medium);
}

#s2k-preview-timestamp {
    margin: auto auto auto 24px;
    flex-shrink: 0;
}

#s2k-preview-footer-text {
    font-size: 16px;
    font-family: "Amazon Ember";
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    text-align: left;
}

#s2k-preview-feedback-container {
    display: flex;
    cursor: pointer;
    position: absolute;
    top: 100px;
    /* (because need to rotate) 18px is 1/2 width + bottom padding*/
    right: 18px;
    background: #418FDE;
    border-radius: 8px 8px 0 0;
    padding: 8px 10px 8px 10px;
    border: none;
    transform: translateX(50%) rotate(-90deg) translateX(-50%);
}

#s2k-preview-feedback-text {
    margin: 0;
    padding: 0;
    color: #FFFFFF;
    font-family: "Amazon Ember";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

#s2k-preview-feedback-icon {
    margin: 0 0 0 8px;
    width: 20px;
    height: 20px;
    padding: 0;
    background-size: 20px 20px;
    background-image: url("/images/s2k-preview-icon-feedback.svg");
    transform: rotate(90deg);
}

/**********************************************
 * Content style from Back End
 **********************************************/
.s2k-image-wrap {
    width: 100%;
    text-align: center;
    padding-top: 1.25em;
    padding-bottom: 1.25em;
}

.s2k-default-image {
    border: #000 hidden 1px;
    line-height: 1em;
    margin: 0px auto;
    padding: 0.25em;
    text-align: center;
    font-size: 50%;
}

.s2k-blockquote {
    margin: 0em 2em 0em 2em;
    font-style: italic;
}

.s2k-text-header {
    margin: 1em
}

.s2k-table table {
    width: 100%;
    padding-top: 1.0em;
    padding-bottom: 1.0em;
}

.s2k-table table,
.s2k-table tbody,
.s2k-table tr,
.s2k-table td,
.s2k-table th {
    margin: 20px 0px;
    border: none;
    border-collapse: collapse;
    border-spacing: 2px;
    font-size: inherit;
}

.s2k-table td,
.s2k-table th {
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #111;
}

.s2k-maps-table {
    width: 100%;
    border-collapse: collapse;
    font-size: inherit;
}

.s2k-maps-table td {
    vertical-align: middle;
    padding-bottom: 5px;
    padding-top: 10px;
}

.s2k-waypoint-header .s2k-maps-text {
    font-weight: bold;
}

.s2k-maps-waypoints {
    margin-top: 20px;
}

.s2k-waypoint-header {
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
}

.s2k-waypoint-info {
    font-size: 70%;
    text-align: right;
    border-top: 1px solid #000;
}

.s2k-maps-distance {
    width: 10%;
    font-size: 80%;
    text-align: right;
}

.s2k-maps-num {
    width: 5%;
    font-size: 80%;
    text-align: center;
    padding: 0px 10px;
}

.s2k-maps-icon {
    width: 5%;
    padding: 0px 10px;
    text-align: center;
}

.s2k-maps-text {
    padding-left: 20px;
}

.s2k-maps-step-duration {
    font-size: 80%;
}

.s2k-maps-step-notice {
    color: #800000;
    font-size: 80%;
}

.s2k-maps-copyright,
.s2k-maps-disclosure {
    margin-top: 20px;
    line-height: 1.5em;
    text-align: center;
    font-size: 70%;
}

.s2k-maps-disclosure {
    margin-top: 50px;
}

tr.s2k-darkrow {
    background-color: #e8e7e3;
}

p {
    margin-bottom: 1em;
}


