/*
 * HTML5 Boilerplate
 *
 * 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,
button,
input,
select,
textarea {
    color: #222;
}

body {
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection declarations 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 images and the bottom of their containers: h5bp.com/i/440
 */

img {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Chrome Frame prompt
   ========================================================================== */

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

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

/* ==========================================================================
   Layout
   ========================================================================== */

html, body {
   height:100%;
   margin:0;
   padding:0;
   background-color: #000;
}

body {
    text-align: center;
}

#vertical {
   height:50%;
   width:1px;
   margin-bottom:-281px; /* half the wrappers height */
   float:left;
}
#container {
   margin:0 auto; /* use if centering horizontally  */
   text-align:left; /* set text back to default if centering horizontally  */
   position:relative;
   height:562px;
   width:1000px;
   clear:left;
}


/*#container {
    background-color:#000;
    position:fixed;
    z-index: 100;
    top:50%;
    left:50%;
    margin:-281px 0 0 -500px;
    width:1000px;
    height:562px;
}*/


header,
.site-content,
footer {
    width:1000px;
    margin: 0 auto;
    background-color:#888;
}


header {
    height:35px;
    background-color:#000;
}

.site-content {
    width:1000px;
    height:346px;
    background-color: #fff;
    margin:0;
}

footer {
    height:181px;
    /*background: url('../img/bg_pattern.png') repeat-x top left;*/
    background: url('../img/footer.png') no-repeat;
    width: 1000px;
}

/* ==========================================================================
   Nav - Header
   ========================================================================== */


#logo {
    display:block;
    width: 309px;
    height: 30px;
    position:relative;
}

#logo a {
    display: block;
    text-indent:-9999px;
    background:url('../img/logo.gif') no-repeat;
    width:100%;
    height:100%;
}

#logo span {
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background:url('../img/logo_red.png') no-repeat;
}

#copyright, .nav-header {
    height: 35px;
}

#copyright {
    width: 187px;
    color: #fff;
    font-size: 60%;
    padding-right: 2px;
    padding-left: 6px;
    line-height: 35px;
    background: url('../img/licurici_199x34.gif') no-repeat transparent center center;
}

#copyright span.block {
    line-height:55px;
    vertical-align: text-bottom;
}

.nav-header {
    width: 496px;
    text-align:right;
    line-height:30px;
}

.nav-header a {
    display: block;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 18px;
    line-height: 17px;
    padding-bottom: 7px;
    /*zoom:1.1;*/
}

.nav-header .current {
    border-bottom: 5px solid #fff;
} /* De vazut daca ii place */

.nav-header a:hover,.nav-header a:active {
    border-bottom: 5px solid #fff;
    color: #FF0000;
}

.inline-block-list {
    list-style:none;
    margin:0;
    padding:0;
}

.inline-block-list li {
    display:inline-block;
    vertical-align:top;
    padding:0;
    height: 35px;
}

.nav-header .inline-block-list li {
    margin:0 0 0 1.5em;
}

.inline-block-list li:first-child {
    margin-left:0;
}

/* ==========================================================================
   Nav - Footer
   ========================================================================== */
.nav-footer {
        width: 1000px;
}

.contact, .foto, .home, .servicii, .suport, .vid{
	background: url(../img/meniu2.png) no-repeat;
        position: relative;
}

.contact span, .foto span, .home span, .servicii span, .suport span, .vid span {
        position: absolute;
        top: 0; left: 0; bottom: 0; right: 0;
        background: url(../img/meniu2.png) no-repeat;
}

.home{
	background-position: 0 0;
	width: 163px;
	height: 146px;
}

.home span{
	background-position: 0 -147px ;
	width: 163px;
	height: 146px;
}

.servicii{
	background-position: -171px 0;
	width: 160px;
	height: 146px;
}

.servicii span{
	background-position: -171px -147px ;
	width: 160px;
	height: 146px;
}

.foto{
	background-position: -340px 0;
	width: 161px;
	height: 146px;
}

.foto span{
	background-position: -340px -147px ;
	width: 161px;
	height: 146px;
}

.vid{
	background-position: -510px 0;
	width: 156px;
	height: 146px;
}

.vid span{
	background-position: -510px -147px ;
	width: 156px;
	height: 146px;
}

.suport{
	background-position: -676px 0;
	width: 156px;
	height: 146px;
}

.suport span{
	background-position: -676px -147px ;
	width: 156px;
	height: 146px;
}

.contact{
	background-position: -839px 0;
	width: 161px;
	height: 146px;
}

.contact span{
	background-position: -839px -147px ;
	width: 161px;
	height: 146px;
}

.nav-footer .inline-block-list li {
    margin: 28px 0 0 4px;
}

.nav-footer .inline-block-list li:first-child {
    margin-left:0;
}

.nav-footer .inline-block-list li:last-child {
    margin-left: 0;
    position: absolute;
    right: 0;
}

.nav-footer li a {
    display: block;
    text-decoration: none;
    text-transform: uppercase;
    text-indent: -9999px;
}

/* ==========================================================================
   Home Page
   ========================================================================== */

.index-left-content, .index-right-content {
    width:496px;
    padding:2px;
    height:342px;
}

.index-left-content p, .index-right-content p {
    padding: 0;
    margin: 0;
    height: 21px;
    font-size: 16px;
    font-weight: normal;
    line-height: normal;
    text-align:justify;
}

/* ==========================================================================
   Servicii Page
   ========================================================================== */

.servicii-left-content p, .servicii-pret-content p {
	padding: 0;
	margin: 0;
	height: 18.1px;
	font-size: 13px;
	font-weight: normal;
	line-height: normal;
	text-align:justify;
	font-style: normal;
}

.servicii-left-content {
	width:498px;
	height:342px;
	padding-top: 2px;
	padding-right: 0px;
	padding-bottom: 2px;
	padding-left: 4px;
}

.servicii-pret-content {
	width:126px;
	padding-top: 2px;
	height: 342px;
	padding-left: 0px;
}

.servicii-right-content {
    width: 369px;
    height: 342px;
    padding: 2px 2px 2px 0px
}

/* ==========================================================================
   Foto Page
   ========================================================================== */

.foto-left-content {
    width: 495px; /* 495 x 330 */
    height: 330px;
    margin-left: 3px;
    margin-right: 2px;
    margin-top: 8px;
    margin-bottom: 8px;

}

.slider-wrapper {
    background: url('../album/foto/00/00.jpg') no-repeat;
    background-color: #fff;
    width:495px;
    height: 330px;
    overflow: hidden;
}

.foto-right-content {
    width: 492px;
    height: 330px;
    margin-top: 8px;
    margin-right: 3px;
    margin-left: 5px;
    margin-bottom: 8px;
    position: relative;
    /*overflow: hidden;*/
}

.mbottom {
    margin-bottom: 8px;
}

div.album_01, div.album_02, div.album_03, div.album_04, div.album_05, div.album_06, div.album_07, div.album_08, div.album_09 {
    width: 241px;
    height: 161px;
    float:left;
    display: block;
    margin-right: 9px;
    position: relative;
}

.foto_01, .foto_02, .foto_03, .foto_04, .foto_05, .foto_06, .foto_07, .foto_08, .foto_09 {
    display: block;
    width: 241px;
    height: 161px;
}

.foto_01 span, .foto_02 span, .foto_03 span, .foto_04 span, .foto_05 span, .foto_06 span, .foto_07 span, .foto_08 span, .foto_09 span {
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
}

.foto-end {
    margin-right: 0 !important;
}


.foto_01 span{
    background: url('../album/01.jpg') no-repeat;
}

.foto_01 {
    background: url('../album/01_bw.jpg') no-repeat;
}

.foto_02 span{
    background: url('../album/02.jpg') no-repeat;
}

.foto_02 {
    background: url('../album/02_bw.jpg') no-repeat;
}

.foto_03 span{
    background: url('../album/03.jpg') no-repeat;
}

.foto_03 {
    background: url('../album/03_bw.jpg') no-repeat;
}

.foto_04 span{
    background: url('../album/04.jpg') no-repeat;
}

.foto_04 {
    background: url('../album/04_bw.jpg') no-repeat;
}

.foto_05 span{
    background: url('../album/05.jpg') no-repeat;
}

.foto_05 {
    background: url('../album/05_bw.jpg') no-repeat;
}

.foto_06 span{
    background: url('../album/06.jpg') no-repeat;
}

.foto_06 {
    background: url('../album/06_bw.jpg') no-repeat;
}

.foto_07 span{
    background: url('../album/07.jpg') no-repeat;
}

.foto_07 {
    background: url('../album/07_bw.jpg') no-repeat;
}

.foto_08 span{
    background: url('../album/08.jpg') no-repeat;
}

.foto_08 {
    background: url('../album/08_bw.jpg') no-repeat;
}

.foto_09 span{
    background: url('../album/09.jpg') no-repeat;
}

.foto_09 {
    background: url('../album/09_bw.jpg') no-repeat;
}

/* ==========================================================================
   Nivo Slider Default Theme Modifications
   ========================================================================== */

.theme-default .nivo-controlNav {
    text-align: left;
    padding: 0;
    position: absolute;
    top: 387px;
    z-index: 100;
}

.nivo-controlNav {
    padding-top: 6px;
    margin-left: -5px;
}

.theme-default .nivo-controlNav a {
    width: 9px;
    height: 11px;
    background: none;
    background-color: #adadad;
    text-indent: -9999px;
    margin: 0;
    margin-right: 9px;
    border:1px solid #adadad;
    -webkit-border-radius: 2px;
    -moz-borderx-radius: 2px;
    border-radius: 2px;
}

.theme-default .nivo-controlNav a.active {
    background-color:#ff0000;
    border:1px solid #ff0000;
}

/* ==========================================================================
   Video Page
   ========================================================================== */

.film-left-content {
    width:496px;
    padding:2px;
    height:274px;
}

.film-right-content {
    width:496px;
    padding:2px;
    height:274px;
}

.film-footer-content {
    width:996px;
    padding:2px;
    height:63px;
}

.film-left-content p, .film-right-content p, .film-footer-content p {
    padding: 0;
    margin: 0;
    height: 20px;
    font-size: 17px;
    font-weight: normal;
    line-height: normal;
    text-align:justify;
}

.film-left-content h1 {
    font-size: 19px;
    font-weight: normal;
    text-align:justify;
    margin-top:10px;
    height: 25px;
}

#cds {
    margin-top:8px;
    text-align:center;
    width: 496px;
}

.rspacer {
    padding-right: 1px;
    width:78px;
    height: 78px;
    display: block;
    display: inline-block;
    position: relative;
}

.dvd_01 span, .dvd_02 span, .dvd_03 span, .dvd_04 span, .dvd_05 span, .dvd_06 span, .dvd_07 span, .dvd_08 span, .dvd_09 span {
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
}

.dvd_01 span{
    background: url('../img/dvd/01.jpg') no-repeat;
}

.dvd_01 {
    background: url('../img/dvd/01_bw.jpg') no-repeat;
}

.dvd_02 span{
    background: url('../img/dvd/02.jpg') no-repeat;
}

.dvd_02 {
    background: url('../img/dvd/02_bw.jpg') no-repeat;
}

.dvd_03 span{
    background: url('../img/dvd/03.jpg') no-repeat;
}

.dvd_03 {
    background: url('../img/dvd/03_bw.jpg') no-repeat;
}

.dvd_04 span{
    background: url('../img/dvd/04.jpg') no-repeat;
}

.dvd_04 {
    background: url('../img/dvd/04_bw.jpg') no-repeat;
}

.dvd_05 span{
    background: url('../img/dvd/05.jpg') no-repeat;
}

.dvd_05 {
    background: url('../img/dvd/05_bw.jpg') no-repeat;
}

.dvd_06 span{
    background: url('../img/dvd/06.jpg') no-repeat;
}

.dvd_06 {
    background: url('../img/dvd/06_bw.jpg') no-repeat;
}


#cds .rspacer :last-child{
    padding-right: 0;
}

.centerme {
    margin: auto;
    width: 496px;
}

#filme_hd {
    float: right;
}

/* ==========================================================================
   Dotare Page
   ========================================================================== */

.dotare-left-content {
    width:388px;
    padding:2px;
    height:342px;
}

.dotare-right-content {
    width: 604px;
    padding:2px;
    height:342px;
}

.dotare-right-content p, .dotare-text p{
    padding: 0;
    margin: 0;
    height: 20px;
    font-size: 17px;
    font-weight: normal;
    line-height: normal;
    text-align:justify;
}

.dotare-text {
    width: 360px;
    height: 222px
}

.dotare-poza {
    height: 244px;
}

/* ==========================================================================
   Contact Page
   ========================================================================== */

.contact-left-content, .contact-right-content {
    width:496px;
    margin:2px; /* nu padding sa nu se vada harta in spate*/
    height:342px;
    position: relative;
}

.contact-left-content p, .contact-right-content p {
    padding: 0;
    margin: 0;
    height: 20px;
    font-size: 17px;
    font-weight: normal;
    line-height: normal;
    text-align:justify;
    padding: 9px 0;
    letter-spacing: -1px;
}

#icons {
    text-align: justify;
    height: 70px;
    display: block;
    position:relative;
    width: 100%;
    margin: 0 auto;
}

.the-icons {
    font-size: 50px;
    display: inline-block;
    *display: inline;
    zoom: 1;
    border: none;
    text-decoration: none;
}

.the-icons a {
    color: #000;
    /*border: 1px solid #000;*/
    text-decoration: none;
    display:block;
}

.the-icons a:hover, .the-icons:hover a{
/*    color: #fff;
    background-color:#000;*/
    color: #ff0000;
}

.icon-facebook {
    margin-right: -10px;
}

.icon-yahoo {
    margin-left: -5px;
    margin-right: 5px;
}

.icon-doc-1 {
    margin-left: 5px;
    margin-right: -5px;
}

.icon-location {
    margin-left: -15px;
    margin-right: 5px;
}

*:focus {outline: none;}

::-webkit-input-placeholder {
   color: #000;
   opacity: 0.8;
}

:-moz-placeholder { /* Firefox 18- */
   color: #000;
   opacity: 0.8;
}

::-moz-placeholder {  /* Firefox 19+ */
   color: #000;
   opacity: 0.8;
}

:-ms-input-placeholder {
   color: #000;
   opacity: 0.8;
}

.contact_form {
    width:480px;
    margin:0px;
    padding:0 10px 10px 10px;
    position:absolute;
    bottom:0;
    background: #fff;
}
.contact_form span{
    padding:2px;
    position:relative;
    display:block;
    float:left;
    margin:0;
}

.contact_form input {
    height: 20px;
}

.contact_form textarea {
    height: 40px;
}

.contact_form input, .contact_form textarea {
    border:1px solid #aaa;
    box-shadow: 0px 0px 3px #ccc, 0 10px 15px #eee inset;
    border-radius:2px;
    margin:2px 0;
    padding:5px 0 5px 10px;
}
.contact_form input:focus, .contact_form textarea:focus {
    background: #fff;
    border:1px solid #555;
    box-shadow: 0 0 3px #aaa;
}
/* Button Style */
button.submit {
    background-color: #000000;
    background: -webkit-gradient(linear, left top, left bottom, from(#000000), to(#333333));
    background: -webkit-linear-gradient(top, #000000, #333333);
    background: -moz-linear-gradient(top, #000000, #333333);
    background: -ms-linear-gradient(top, #000000, #333333);
    background: -o-linear-gradient(top, #000000, #333333);
    background: linear-gradient(top, #000000, #333333);
    border: 1px solid #555555;
    border-bottom: 1px solid #666666;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -ms-border-radius: 3px;
    -o-border-radius: 3px;
    box-shadow: inset 0 1px 0 0 #999999;
    -webkit-box-shadow: 0 1px 0 0 #999999 inset ;
    -moz-box-shadow: 0 1px 0 0 #999999 inset;
    -ms-box-shadow: 0 1px 0 0 #999999 inset;
    -o-box-shadow: 0 1px 0 0 #999999 inset;
    color: white;
    /*font-weight: bold;*/
    padding: 6px 20px;
    text-align: center;
    text-shadow: 0 -1px 0 #396715;
    margin-top: 5px;

}
button.submit:hover {
    opacity:.85;
    cursor: pointer;
}
button.submit:active {
    border: 1px solid #20911e;
    box-shadow: 0 0 10px 5px #ff0000 inset;
    -webkit-box-shadow:0 0 10px 5px #ff0000 inset ;
    -moz-box-shadow: 0 0 10px 5px #ff0000 inset;
    -ms-box-shadow: 0 0 10px 5px #ff0000 inset;
    -o-box-shadow: 0 0 10px 5px #ff0000 inset;
}

.contact_form input:focus, .contact_form textarea:focus { /* add this to the already existing style */
    /*padding-right:70px;*/
}

.contact_form input, .contact_form textarea { /* add this to the already existing style */
    -moz-transition: padding .25s;
    -webkit-transition: padding .25s;
    -o-transition: padding .25s;
    transition: padding .25s;
}

.contact_form input, .contact_form textarea {
    /* padding-right:30px;*/
}

input:required, textarea:required {
    background: #fff url(../img/red_asterisk.png) no-repeat;
    background-position: right center;
}

input#fullname, textarea {
    width:456px;
    position:relative;
}

input#email, input#telefon {
    width:220px;
    position:relative;
}

::-webkit-validation-bubble-message {
    padding: 1em;
}

.ie {
    position:absolute !important;
    top:0;
    left:5px;
    width:100%;
    height: 100%;
    display:block;
    z-index:99;
}

.placeholder
{
  color: #999;
}

textarea {
    resize: none;
}

.contact_form input:focus:invalid, .contact_form textarea:focus:invalid { /* when a field is considered invalid by the browser */
    background: #fff url(../img/invalid.png) no-repeat;
    background-position: right center;
    box-shadow: 0 0 5px #d45252;
    border-color: #b03535;
}

.contact_form input:required:valid, .contact_form textarea:required:valid { /* when a field is considered valid by the browser */
    background: #fff url(../img/valid.png) no-repeat;
    background-position: right center;
    box-shadow: 0 0 5px #5cd053;
    border-color: #28921f;
}

#success, #error {
    padding: 0;
    text-align: center;
    width: 380px;
    font-weight: bold;
    display: none;
    margin-top: 12px;
}
#success {
    color: #28921f;
}

#error {
    color: #b03535;
}


/* ==========================================================================
   Misc
   ========================================================================== */

#film_hd {
    margin-left:2px;
    background: #fff;
    overflow:hidden;
}


.dotare-right-content p:after, #icons:after, .contact-left-content p:after, .index-right-content h1:after, .index-right-content h2:after, .index-right-content p:after, .index-left-content p:after, .film-footer-content p:after, .film-left-content h1:after, .film-left-content p:after, .film-right-content p:after, .servicii-left-content p:after, .servicii-pret-content p:after {
    content: "";
    display: inline-block;
    width: 100%;
}

a.contact, a.foto, a.home, a.servicii, a.suport, a.vid {
    -o-transition:none;
    -ms-transition:none;
    -moz-transition:none;
    -webkit-transition:none;
    transition:none;
}

h1, h2, p {
    font-family: Arial, Helvetica, sans-serif;
    line-height: normal;
    text-align: justify;
}

p {
    font-size: 18px;
}

h1, h2 {
    font-size:19px;
    display:block;
    font-weight: normal;
    margin:0;
    padding:0;
    margin-top:35px;
    margin-bottom:18px;
    height:25px;
}

p.big {
    font-size: 21px;
    display: block;
    width: 100%;
    text-align: right;
    margin-top: 18px;
}

.goleft {
    float:left;
}

.goright {
    float:right;
}

.textleft {
    text-align: left;
}

.textright {
    text-align: right;
}

.textjustify {
    text-align: justify;
}

.block {
    display:block;
}


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

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 100%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.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: h5bp.com/p
 */

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

/*
 * Hide visually and from screenreaders, 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;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   Theses 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 */
	font-size: 90%;
}

@media only screen and (-webkit-min-device-pixel-ratio: 1.5),
       only screen and (min-resolution: 144dpi) {
    /* Style adjustments for high resolution devices */

}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        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 for images, or javascript/internal links
     */

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

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

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

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

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

    @page {
        margin: 0.5cm;
    }

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

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

@media only screen and (orientation:landscape){
#overlay{
  display:none;
}
#modal{
  display:none;
}
}

@media only screen and (orientation:portrait){ 
#vertical {
   height:50%;
   width:1px;
   margin-bottom:-220px; /* half the wrappers height */
   float:left;
}
#overlay{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background-color: rgba(0,0,0,0.5); /*dim the background*/
}
#modal {
	font-size: 5em;
	color:white;
    width: 1020px;
    height: 480px;
    line-height: 200px;
    position: fixed;
    top: 25%; 
    left: 50%;
    margin-top: -220px;
    margin-left: -510px;
    text-align: center;
    z-index: 11; /* 1px higher than the overlay layer */
}

/*  body { */
/*    height: 1220px; */
/*    width: 600px; */
/*    -webkit-transform: rotate(90deg); */
/*    -moz-transform: rotate(90deg); */
/*    -o-transform: rotate(90deg); */
/*    -ms-transform: rotate(90deg); */
/*    transform: rotate(90deg); */
/*  } */
}
