/*! 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;
}

html.skice{
background:url('img/skices/NG_sakumlapa_bio.jpg');
opacity:0.2;
}

body{
background:#cccc99;
}

#vilnis{
background-image:url('img/vilnis1.png');
background-repeat:repeat-y;
position:absolute;
width:86px;
height:100%;
right:20%;
}

#melnis{
background-color:#000;
position:absolute;
width:20%;
height:100%;
right:0;
}

#header_logo{
margin: 10px 0 0 5px;
vertical-align: top;
}

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

a:hover{
color:#333;
text-decoration:underline;
}

li.selected a{
color:#000;	
}


/*
 * 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 #fff;
    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
   ========================================================================== */

















/* ==========================================================================
   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: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@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;
    }
}

#lapa{
/*
max-width:1300px;
margin:0 auto;
*/
}
#header{
position:relative;
height:148px;
}
#header_img,#header_logo,#ng_year{
position:absolute;	
}
#header_img{
top:0;
left:0;
}
#header_logo{
left:232px;
top:2px;
}
#ng_year{
left:250px;
top:66px;	
font-size:13px;
font-weight:bold;
color:#666;
}	

#t_button{
position:absolute;
top:32px;
right:0;
z-index:1;
}

#sidebar{
float:left;
width:227px;
}

#main{
float:left;
width:calc(100% - 227px);
}

#main .saturs{
width:calc(80% - 227px);
}

body.mob #sidebar{
float:none;
width:100%;
}

body.mob #main{
float:none;
width:100%;
padding:0 5%;
}

body.mob #main .saturs{
width:100%;
}
	



.saturs img {
height: auto;
max-width: 100%;
}

#div_wait{
background:rgba(255, 255, 255, 0.5) url("img/wait.gif") no-repeat scroll 50% 50%;
height:100px;
left:47%;
position:fixed;
top:47%;
width:100px;
}

#scrollup{width:40px;height:40px;opacity:0.7;position:fixed;bottom:20px;right:20px;display:none;text-indent:-9999px;background:url('img/icon_top.png') no-repeat;z-index:999}
#scrollup:hover{opacity:1}

.pap_saturs_2 h2{
color:#bc1111;
}

button.audio2,
button.audio{
background: rgba(0, 0, 0, 0) url("img/audio.png") no-repeat scroll 50% 50% / 100% auto;
border:medium none;
height:20px;
width:15px;
border-radius:10px;
float:left;
display:inline-block;
margin:2px 0;
}

button.video{
background: rgba(0, 0, 0, 0) url("img/video.png") no-repeat scroll 50% 50% / 100% auto;
border:medium none;
height:18px;
width:18px;
float:left;
display:inline-block;
margin:2px 0;
}

button.other{
background: rgba(0, 0, 0, 0) url("img/document.png") no-repeat scroll 50% 50% / 100% auto;
border:medium none;
height:16px;
width:16px;
float:left;
display:inline-block;
margin:2px 0;
}

button.play{
border:2px solid #ffff00;	
}

.act:active{
top:1px;
left:1px;
position:relative;
}

button:focus,input:focus{
outline:none;   
}

div.mp3,div.pap_link{
/*margin:5px 0;*/
clear: both;
font-size: 15px;
font-weight:300;
}

.d_work1 {
margin:0 0 40px;	
}

.d_work1 span.b{
margin:0 0 0 5px;
vertical-align:middle;
}


ul#menu-lang{
list-style:none;
text-transform:uppercase;
}

ul#menu-lang li{
float:left;
}

ul#menu-lang li {
float: left;
margin: 0 5px 0 0;
padding: 3px;
}

ul.main{
list-style:none;
}


@media screen and (max-width:960px){

#footer > p {
margin:0 0 0 25px !important;
}	
	
#vilnis{
right:10%;
}

#melnis{
width:10%;
}

#main .saturs{
width:calc(90% - 227px);
}

}

@media screen and (max-width: 480px) {
#footer > p {
margin:0 0 0 10px !important;
}	

#vilnis{
right:5%;
}
#melnis{
width:5%;
}
#main .saturs{
width:calc(95% - 227px);
}
}

.title > p {
margin: 0;
padding: 0;
}

span.mp3:hover{
color:#333;
text-decoration:underline;
cursor:pointer;
}

div.subtitle{
margin: 0;
padding: 0;
font-weight:300;
}

p {
padding: 1px 0;
}


#footer > p {
color: #fff;
font-size: 12px;
margin: 0 0 0 225px;
}