/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

figure
{
    margin: 0;
}

body
{
    color: #007d53;
    padding-top: 88px;
}

a
{
    color: #007d53;
    text-decoration: none;
}

.application
{
    margin: 0px auto;

    position: relative;
    height: 100%;
}

.application.horizontal
{
    display: flex;
    height: 100%;
}

.application.horizontal.middle
{
    align-items: center;
}

.application.horizontal.middle .small
{
    flex: 3;
}

.application.horizontal.middle .large
{
    flex: 5;
}

.scrollable
{
    padding-top: 88px;
    width: 100%;
    /*height: calc(100vh - 93px);
    overflow: scroll;*/
}

#quick-access
{
    background: white url('../img/quick-access-background.png') repeat-x;
    height: 93px;
    font-size: 13px;

    position: absolute;
    left: 0;
    top: 0;
    width: 100%;

    z-index: 10;
}

#quick-access .application
{
    height: 88px;
}

#small-logo
{
    min-width: 133px;
    flex: 1;
    height: 63px;

    background: transparent url('../img/quick-access-logo.png') no-repeat left center;

    margin-left: 1em;
}

#quick-contacts
{
    padding: 20px 0;
    display: none;
    flex: 1;
    margin-left: 3em;
}

#quick-contacts address
{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;

    font-style: normal;
}

#quick-contacts address + address
{
    margin-left: 0.5em;
}

#quick-contacts address figure
{
    display: flex;
    margin: 2px 0;
}

#quick-contacts address figure .fa
{
    margin-right: 4px;
    align-self: center;
}

#quick-access nav
{
    display: flex;
    height: 100%;
}

#quick-access nav a
{
    color: #007d53;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 135px;

    transform: skewX(-13deg);
}

#quick-access nav a span.title
{
    transform: skewX(13deg);
}

#quick-access nav a:hover, #quick-access nav a.current
{
    color: white;
    background-color: #007d53;
}

#quick-access nav .separator
{
    width: 2px;
    background-color: #007d53;

    transform: skewX(-13deg);
    margin-left: -1px;
    margin-right: -1px;
}

#languages
{
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    padding: 0px 2em;
    justify-content: center;
    align-items: center;
    margin-left: 2px;
    margin-right: 1em;
}

#languages::before
{
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background-color: #007d53;
    transform: skewX(-13deg);
}

#languages a
{
    color: white;
    margin: 3px 0;
    text-align: center;
    z-index: 1;

    padding-bottom: 1px;
}

#languages a:hover
{
    padding-bottom: 0;
    border-bottom: dotted 1px white;
}

#languages a.current
{
    padding-bottom: 0;
    border-bottom: solid 1px white;
}

#content section
{
    height: calc(100vh - 88px);
    min-height: 400px;

    font-family: Verdana;
}

#content section.gray
{
    background-color: #f8f8f8;
}

#content article
{
    padding: 0 2em;
}

.graphic
{
    height: 100%;
    background-size: 80%;
    background-position: center center;
    background-repeat: no-repeat;
}

#hero .application
{
    background: transparent url('../../graphics/handshake.png') no-repeat 0% 40%;
}

#large-logo
{
    width: 553px;
    height: 100%;

    background: url('../img/hero-logo-lv.png') no-repeat right 43%;
    background-color: transparent;
    background-color: rgba(255, 255, 255, 0.6);

    position: absolute;
    left: 70%;
    top: 0;

    transform: translateX(-50%);
}

#large-logo.latvian
{
    background-image: url('../img/hero-logo-lv.png')
}

#large-logo.russian
{
    background-image: url('../img/hero-logo-ru.png')
}

#large-logo.english
{
    background-image: url('../img/hero-logo-en.png')
}

.scrollhint
{
    position: absolute;
    bottom: 0px;
    left: 50%;
    margin-left: -21px;
    width: 42px;
    height: 42px;
    background-color: #007d53;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

#about-saldos .graphic
{
    /*background-position: right center;*/
}

#services .graphic
{
    flex: 3;
}

#services article
{
    flex: 2;
}

#services h2
{
    line-height: 1;
}

#services h2 small
{
    font-size: 0.7em;
}

#contacts article
{
    background-color: #f8f8f8;
    flex: 3;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
    font-size: 1.4em;

    padding: 0;
}

#google-map
{
    flex: 5;
    height: 100%;
    margin-right: 10px;
}

#disclaimer
{
    background: #007d53 url('../img/disclaimer-logo.png') no-repeat center center;
    height: 100px;

    color: white;
    text-transform: uppercase;

    position: relative;
}

#disclaimer .left, #disclaimer .right
{
    position: absolute;
    top: 45%;
}

#disclaimer .left
{
    right: 50%;
    margin-right: 50px;
}

#disclaimer .right
{
    left: 50%;
    margin-left: 50px;
}

#liaa
{
    background-color: white;
    padding: 4em 1em;
    font-size: 0.8em;
    color: #333;
}

#liaa .content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

#liaa p {
    margin: 0 0 1em 0;
}

#liaa .logos {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 3em;
    margin-top: 1.5em;
}

#liaa .logos img {
    height: 110px;
    width: auto;
}

ul.seamless
{
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.indented li
{
    text-indent: 2em;
    hyphens: auto;
}

.centered
{
    text-align: center;
}

p.seamless, h1.seamless, h2.seamless, h3.seamless, h4.seamless, h5.seamless, h6.seamless
{
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6
{
    font-weight: normal;
}

ul.top-margin
{
    margin-top: 2em;
}

.application
{
    width: 960px;
}

.scrollable, #quick-access, #content section, #disclaimer
{
    min-width: 960px;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 980px)
{
    #quick-access
    {
        position: fixed;
    }
}

@media only screen and (min-width: 1366px)
{
    .application
    {
        width: 1300px;
    }

    .application.horizontal.middle .small
    {
        flex: 2;
    }

    .scrollable, #quick-access, #content section, #disclaimer
    {
        min-width: 1300px;
    }

    #small-logo
    {
        flex: initial;
    }

    #quick-contacts
    {
        display: flex;
    }

    #hero .application
    {
        background-position: 10% 40%;
    }

    #large-logo
    {
        left: 70%;
    }
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
