﻿/* DEFAULTS
----------------------------------------------------------*/

html {
    -webkit-text-size-adjust: none; /* Prevent font scaling in landscape */
}

body {
    background: #0079C1;
    margin: 0px;
    padding: 0px;
}

html, body, p, h1 {
    color: #444444;
    font-size: 1em;
    font-family: "Helvetica Neue", "Lucida Grande", "Segoe UI", Arial, Helvetica, Verdana, sans-serif;
}

input, select, td {
    font-size: 1em;
    font-family: "Helvetica Neue", "Lucida Grande", "Segoe UI", Arial, Helvetica, Verdana, sans-serif;
}

h1 {
    color: #666666;
    font-variant: small-caps;
    margin: 0.2em 0;
    font-size: 1.2em;
}

a:link {
    color: white;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

a:focus {
    outline: 1px solid white;
    border-radius: 1.5px;
    outline-offset: 2px;
}

table {
    width: 100%;
}

.page {
    background-color: #FFFFFF;
    margin: 0 auto 0 auto;
}

.header {
    display: flex;
    justify-content: space-between;
    background: #0079C1;
    margin: 0;
    padding: 8px;
}

.language {
    /*float: right;*/
}

    .language a {
        color: #FFFFFF;
        font-size: small;
    }

.header h1 {
    margin: 0;
    padding: 0;
    color: #FFFFFF;
    border: none;
}

.main {
    margin: 12px 8px 8px 8px;
    min-height: 420px;
}

.AltRow, th {
    background: #e1f1fa;
}

#MainContent_CertificationResultsFormView {
    border-bottom: solid 1px #0079C1;
}

.footer {
    color: #6cb1d9;
    font-size: .6em;
    padding: 0px 0px 0px 0px;
    margin: 0px auto;
    text-align: center;
    line-height: normal;
}

    .footer a:visited {
        color: white;
    }

.title {
    display: block;
    text-align: left;
    width: auto;
}

span.LS_FormError {
    display: block !Important;
    font-size: 1em;
    font-family: "Helvetica Neue", "Lucida Grande", "Segoe UI", Arial, Helvetica, Verdana, sans-serif;
    color: #CC0000;
}

.validationError {
    display: block !Important;
    font-size: 1em;
    font-family: "Helvetica Neue", "Lucida Grande", "Segoe UI", Arial, Helvetica, Verdana, sans-serif;
    color: #CC0000;
}

.submitButton {
    text-align: right;
    padding-right: 10px;
}

.a--with-tooltip {
    position: relative;
}

[role="tooltip"] {
    display: none;
    padding: .5rem;
    background: white;
    color: black;
    border: solid black 2px;
    width: 10rem;
    position: absolute;
    left: 0;
    top: 1rem;
}

.input-required {
    position: relative;
}

.input-required::after {
    position: absolute;
    content: "*";
    top: 0;
    right: -.5rem;
    color: #DC3545;
} 

@media screen and (min-width: 800px) {
    .page {
        margin: 0 auto 0 auto;
        max-width: 800px;
    }
}
/* iphone 5 landscape */
@media screen and (max-width: 568px) {
    body, .header {
        /*    font-size: 110%;*/
    }

    p {
        /*    font-size: 60%;*/
    }
}
/* iphone 5 portrait */
@media screen and (max-width: 320px) {
    body, .header {
        /*    font-size: 120%;*/
    }

    p {
        /*    font-size: 100%;*/
    }
}

@media print {
    @page {
        margin: 1in;
    }

    html * {
        color: Black !important;
        font-size: 13px;
    }

    #GetCertificationsForm,
    .language {
        display: none;
    }

    body,
    th,
    td,
    .header {
        background: none !important;
    }

    .date {
        width: 1.5in;
    }
}

td {
    vertical-align: top;
    padding-bottom: 5px;
}

.date {
    text-align: center;
}

th.awardName {
    text-align: left;
}

#CertificationsHeld tr:nth-child(even),
#CoursesAttended tr:nth-child(even) {
    background: #ffffff
}

#CertificationsHeld tr:nth-child(odd),
#CoursesAttended tr:nth-child(odd) {
    background: #e1f1fa;
}

#MainContent_CustomerCodeTextBox {
    text-transform: uppercase;
}

.legal-text > * {
    color: white;
}

.footer {
    color: white;
    position: relative;
}

/*********************************************************/
/** Narrow Screen Display                               **/
/*********************************************************/
@media only screen and (max-width: 600px) {
    table, thead, tbody, th, td, tr {
        display: block;
    }

    #CertificationsHeld tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }

    #CoursesAttended tr {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .certification.date {
        grid-column: 1/2;
        grid-row: 2/3;
    }

    #CertificationsHeld .expiry.date {
        grid-column: 2/3;
        grid-row: 2/3;
    }

    .awardName {
        grid-column: 1/3;
        grid-row: 1/2;
    }

    .heading {
        background: #e1f1fa;
        font-weight: 700;
    }
}
