html,
    body {
        margin:0;
        padding:0;
        height:100%;
        background: url(../images/bg-row.png) center repeat-y #18181a;
        color: #fff;
    }



#container {
        background: url(../images/head_javitott_3.png) center top no-repeat;
    }

    #header .title-image {
        display:block;
        margin: 0 auto;
    }

    #mainmenu {
        display: block;
        margin: 235px auto 0;
        width: 542px;
        height: 31px;
        background: url(../images/bg-menu.png) center;
        text-align: center;
    }

    #body {
        width: 830px;
        margin: 0 auto;
        padding: 24px 35px 0;
    }

    #footer {
        background: url(../images/lablec.png) center bottom no-repeat ;
        height: 380px;
        display: block;
        position: relative;
        margin: -80px 0 0;
    }

    #footer div.text {
        text-align:center;
        position: absolute;
        bottom: 20px;
        left: 0;
          right: 0;
          margin: 0 auto;
        background: url(../images/bg-menu.png) center;
        width: 450px;
    }
    
    #footer div.space {
    	width: 50px; display:inline-block;
    }
#mainmenu a
{
    color: #FFF;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3em;
}




#footer div.text a
{
    color: #e9b778;
}

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

.border-land
{
    
    /*background: url(../images/border-x.png) no-repeat;
    background-size: 250px 165px;
    padding: 5px 5px 7px 5px;*/
    padding: 5px;
}

.border-land.large
{
    
    /*background: url(../images/border-y-large.png) no-repeat;
    background-size: 340px 240px;
    padding: 5px 5px 5px 5px;
    width: 340px;
    height: 240px;
    box-sizing: border-box;*/
    margin-top: 55px;
}

.border-portrait
{/*
background: url(../images/border-x-large.png) no-repeat;
    background-size:  165px 250px;
    padding: 5px 7px 7px 5px;*/
}

.border-portrait.large {
	/*width:  240px;
	height: 340px;
    padding: 5px 5px 5px 5px;
    background-size: 240px 340px;
    box-sizing: border-box;
    margin: 15px 0 0 55px;*/
margin:     0 0 0 55px;
}

.border-portrait.huge{

background: url(../images/border-x-large.png) no-repeat;
background-size:  264px 360px;
    padding: 5px 5px 5px 5px;
}

.scrollbox, .ref-mini div, .contentbox
{
    border-color: #f6c07e;
    border-width: 0px 1px;
    border-style: solid;
    padding: 15px;
}
.teaserbox, .contentbox
{
    background: rgba(20,20,20,0.7);
}

.teaserbox
{
    float:right;
    width: 455px;
    height: 370px;
    margin-bottom:40px;
    box-sizing: border-box;

}

.teaserbox h1
{
    text-align: center;
    margin: .5em auto;
    font-size: 1.5em;
    text-transform: uppercase;
    font-weight: normal;
}

.ref-mini
{
    width: 262px;
    float:left;
    text-align:center;
margin:     10px auto;
    box-sizing: content-box;
}

.ref-mini div
{
    height: 3.5em;
    display:block;
    margin: 0px 0px 0px 0px;
    background: rgba(0,0,0,0.3);
    color: #FFF;
    font-size: 1.2em;
    text-decoration: none;
    box-sizing: content-box;
      position: absolute;
  bottom: 0;
 
  left: 0;
  right: 0;
  width: 230px;
  padding-top: 0px; padding-bottom: 0px;

}

.ref-mini div span
{
    display:block;
    position: relative;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    
    line-height: 0.9em;
    box-sizing: content-box;
}

.ref-mini.landscape
{
    padding-top: 75px;
    margin-left: 0px;
}

.ref-mini.landscape div {

}

.contentbox
{
    clear:both;
    height: 510px;
}

.refblock {
  height: 335px;
  width: 250px;
  margin: 5px 12px ;
  float: left;
  box-sizing: content-box;
  position: relative;
  text-transform: uppercase;
  z-index: 500;
  
}