@font-face {
    font-family: 'DomesticMannersRegular';
    src: url('../fonts/domesticmanners-tetetewf.eot');
    src: url('../fonts/domesticmanners-tetetewf.eot?#iefix') format('embedded-opentype'),
         url('../fonts/domesticmanners-tetetewf.woff') format('woff'),
         url('../fonts/domesticmanners-tetetewf.ttf') format('truetype'),
         url('../fonts/domesticmanners-tetetewf.svg#DomesticMannersRegular') format('svg');
    font-weight: normal;
    font-style: normal;
}

body {
    font-size: 16px;
    font-family: 'Times New Roman';
}


#wrapper {
    width: 990px;
    margin: 0 auto;
}

#header {
    position: relative;
    height: 125px;
    background: url("../images/logo_100.png") no-repeat 20px 15px;
}

#header h1, #header h2 {
    margin: 0 0 0 130px;
}
#header span span {
    margin: 0 0 0 0;
}

#header .fb-like {
    position: absolute;
    top: 10px;
    right: 0px;
}

#header h1 {
    font-family: DomesticMannersRegular, Arial, Helvetica, sans-serif;
    font-size: 50px;
    margin-top: -15px;
}

#header h2 {
    font-family: DomesticMannersRegular, Arial, Helvetica, sans-serif;
    font-size: 20px;
    margin-top: -10px;
}

.bar {
    font-family: DomesticMannersRegular, Arial, Helvetica, sans-serif;
    background-color: #222b00;
    color: white;
    border-radius: 5px;
    margin: 0 0 10px 0;
    padding: 0;
    line-height: 40px;
    font-size: 20px;
    text-align: center;
    display: block;
}

#content {
    /* background-color: #ccc; */
    width: 100%;
    vertical-align: top;
    z-index: 0;
}

#content div h1 {
    /* font-family: DomesticMannersRegular, Arial, Helvetica, sans-serif; */
    font-family: DomesticMannersRegular, Arial, Helvetica, sans-serif;
    line-height: 40px;
    font-size: 18px;
    text-align: center;
    margin: 0;
    padding: 0;
    height: 40px;
}

#content div {
    width: 230px;
    height: 600px;
    margin: 0;
    padding: 0;
    display: inline-block;
    zoom: 1;
    *display: inline;
    margin-right: 10px;
    border-radius: 5px;
    border-width: 5px;
    border-style: solid;
    vertical-align: top;
    z-index: 2;
    overflow: hidden;
    position: relative;
}

#content div.selected {
    overflow: visible;
    z-index: 11;
    /* position: relative; */
}

#content #house {
    margin-right: 0px;
    /* z-index: -1; */
}

#content div div {
    display: block;
    height: auto;
    width: auto;
    border-radius: 0;
    border-width: 0px;
    border-style: none;
    position: absolute;
    margin: 0;
}

#content div div.content {
    border-radius: 15px;
    border-width: 0px;
    border-style: none;
    padding: 10px;
    z-index: 10;
    height: 540px;
    overflow-y: auto;
}

#content div div.content div {
    position: relative;
}

#footer {
    font-size: 12px;
    color: #666;
}

#footer div.left {
    float: left;
}

#footer div.right {
    text-align: right;
    float: right;
}

#footer a {
    text-decoration: underline;
    color: #666;
}

#about,
#about div.content {
    background-color: #acb77c;
    border-color: #acb77c;
}

#news,
#news.selected div.content {
    background-color: #EB871C;
    border-color: #EB871C;
}

#events,
#events.selected div.content {
    background-color: #E8C020;
    border-color: #E8C020;
}

#house,
#house div.content {
    background-color: #4D738C;
    border-color: #4D738C;
}

#about .content {
    width: 745px;
}

#news .content {
    width: 745px;
    margin-left: -100px;
}

#events .content {
    width: 745px;
    margin-left: -350px;
}

#house .content {
    width: 745px;
    margin-left: -533px;
}

#events .content h2 {
    text-align: center;
}

#event_table table {
    margin: 0 auto;
    text-align: center;
}

#event_table td {
    width: 20px;
    height: 30px;
    border: 1px solid black;
}

div.content div#eventDetailsLabel {
    margin: 0 auto;
    /* width: 600px; */
    margin-top: 15px;
    font-size: 16px;
    font-weight: bold;
}

div.content div#eventDetails {
    margin: 0 auto;
    width: 600px;
    height: 255px;
    overflow-y: auto;
    background-color: #F5D247;
    /* border: 1px solid black; */
}

div.content div#eventDetails div span.label {
    font-weight: bold;
    width: 80px;
    display: inline-block;
}

#content div div.content div.event {
    background-color: #F5D247;
    border-bottom: 1px solid yellow;
    padding: 10px 5px 5px 5px;
}

#content div div.content div.event img {
    position: absolute;
}

#content div div.content div.event div {
    margin-left: 60px;
}

#content div div.content div.calendar {
    text-align: center;
}

#content div div.content div.calendar .month {
    width: 154px;
    height: 245px;
    padding: 0 20px;
    display: inline-block;
    *display: inline;
    veritcal-align: top;
}

#content div div.content div.calendar .eventsContainer {
    display: none;
}

#content div div.content div.calendar .month .title {
  text-align: center;
}

#content div div.content div.calendar .month .days {
  text-align: left;
}

#content div div.content div.calendar .month .day {
    width: 20px;
    height: 25px;
    display: block;
    float: left;
    border: 1px solid black;
    vertical-align: middle;
    text-align: center;
    padding-top: 5px;
}

#content div div.content div.calendar .month .day.header {
    border-color: transparent;
}

#content div div.content div.calendar .day.leading {
  border-color: transparent;
}

#content div div.content div.calendar .day.today {
  background-color: red;
}

#content div div.content div.calendar .day.events {
  background-color: yellow;
  cursor: pointer;
}

#content div div.content div.calendar .day.events.today {
  background-color: #FF7800;
}


#content div div.content #previousCalendar {
    background: url('../images/btn-prev.png') no-repeat 0 0;
    width: 27px;
    height: 27px;
    line-height: 30px;
    overflow: hidden;
    text-indent: 30px;
    top: 40px;
    left: 30px;
    position: absolute;
    /* width: 100px; */
    /* background-color: red; */
    cursor: pointer;
}

#content div div.content #nextCalendar {
    background: url('../images/btn-next.png') no-repeat 0 0;
    width: 27px;
    height: 27px;
    line-height: 30px;
    overflow: hidden;
    text-indent: 30px;
    top: 40px;
    right: 30px;
    position: absolute;
    /* width: 100px;
    background-color: red; */
    cursor: pointer;
}

#content #house .booked {
    background-color: yellow;
}

#content #house .full {
    background-color: #ff7800;
}

#content #house .today {
    background-color: red;
}

#content #house div.month {
    display: inline-block;
    width: 200px;
}

#content #house div.month div.title {
    text-align: center;
}

#content #house div.header,
#content #house div.footer,
#content #house div.bookings {
    text-align: center;
}

#content #house div.bookings {
    height: 180px;
}

#content #house div.footer div.legend {
    width: 400px;
    margin: 0 auto;
    margin-top: 5px;
}

#content #house div.footer div.legend div {
    width: 100px;
    float: left;
}


#content #house div.bookings .month .day {
    border: 1px solid black;
    display: block;
    float: left;
    font-size: 13px;
    height: 20px;
    line-height: 19px;
    text-align: center;
    vertical-align: middle;
    width: 18px;
}

#content #house div.bookings .month .day.header {
    border-color: transparent;
}

#content #house div.bookings .month {
    width: 140px;
    padding: 0 20px;
    display: inline-block;
    *display: inline;
    veritcal-align: top;
}

#content div div.content #previousBookings {
    background: url('../images/btn-prev.png') no-repeat 0 0;
    width: 27px;
    height: 27px;
    line-height: 30px;
    overflow: hidden;
    text-indent: 30px;
    top: 40px;
    left: 10px;
    position: absolute;
    /* width: 100px;
    background-color: red; */
    cursor: pointer;
}

#content div div.content #nextBookings {
    background: url('../images/btn-next.png') no-repeat 0 0;
    width: 27px;
    height: 27px;
    line-height: 30px;
    overflow: hidden;
    text-indent: 30px;
    top: 40px;
    right: 10px;
    position: absolute;
    /* width: 100px;
    background-color: red; */
    cursor: pointer;
}


#content #about .content p {
    font-size: 12p;
    margin: 5px 0;
}

#content #about .content h3 {
    font-size: 16px;
    margin: 5px 0;
}

#news div.newsList {
    width: 600px;
    margin: 0 auto;
    overflow-y: auto;
    height: 540px;
}

#news div.newsList div.news {
    margin-bottom: 20px;
    background-color: #F0983A;
    padding: 10px 5px 10px 10px;
}

#news div.news img.icon {
    float: left;
}

#news div.news div.message,
#news div.news div.link {
    margin-left: 20px;
}

#news div.news div.created_time {
    position: absolute;
    right: 5px;
    bottom: 2px;
    font-size: 10px;
}

#news #previousNews {
    background: url('../images/btn-prev.png') no-repeat 0 0;
    width: 27px;
    height: 27px;
    line-height: 30px;
    overflow: hidden;
    text-indent: 30px;
    top: 40px;
    left: 30px;
    position: absolute;
    /* width: 100px;
    background-color: red; */
    cursor: pointer;
}

#news #nextNews {
    background: url('../images/btn-next.png') no-repeat 0 0;
    width: 27px;
    height: 27px;
    line-height: 30px;
    overflow: hidden;
    text-indent: 30px;
    top: 40px;
    right: 30px;
    position: absolute;
    /* width: 100px;
    background-color: red; */
    cursor: pointer;
}

.loading {
    background: url("../images/ajax-loader.gif") no-repeat center center;
}

.selected .loader {
    height: 200px !important;
    background: url("../images/ajax-loader.gif") no-repeat center center;
}


#events .content .ajaxloader {
    position: absolute;
    top: 130px;
    width: 100%;
}

#events .content .ajaxloader div {
    background: url("../images/ajax-loader.gif") no-repeat scroll center center #F5D247;
    margin: 0 auto;
    border-radius: 5px;
    height: 40px;
    width: 200px;
}


#house .content .bookings .ajaxloader {
    position: absolute;
    top: 30px;
    width: 100%;
}

#house .content .bookings .ajaxloader div {
    background: url("../images/ajax-loader.gif") no-repeat scroll center center #7FAAC7;
    border-radius: 5px;
    margin: 0 auto;
    height: 40px;
    width: 200px;
}

#contacts .popup_content {
	overflow-y: scroll;
	margin: 0 10px;
}

#contacts .popup_content h2 {
	margin: 10px 0;	
	font-size: 20px;
}

#contacts .popup_content h3 {
	margin: 5px 0;
}

#contacts .popup_content {
	vertical-align: top;	
}

#contacts .popup_content .org {
	display: inline-block;
	vertical-align: top;	
	margin-right: 30px;
}

#contacts .popup_content .kgy {
	display: inline-block;
	vertical-align: top;	
}

@media all and (max-width: 989px) {
    #wrapper {
        width: 100%;
    }

    #content div {
        display: block;
        width: auto;
        height: auto;
        overflow: visible;
        margin: 0;

    }

    #content div div.content {
        height: auto;
        display: none;
        width: auto;
        margin-left: 0px !important;
    }

    #content div.selected div.content {
        display: block;
        position: relative;
    }

    #content div div.content {
        border-radius: 0px;
        padding: 0px;
    }

    #news div.newsList {
        width: auto;
        height: auto;
    }

    div.content div#eventDetails {
        width: auto;
        height: auto;
        min-height: 40px;
    }

    #news div.newsList div.news {
        /* width: auto; */
    }

    #content #house .content .header img {
        max-width: 100%;
    }

    #content #house div.bookings {
        height: auto;
    }

    #content #house div.footer div.legend {
        width: auto;
    }

    #content #house div.footer div.legend div {
        float: none;
        margin: 0 auto;
    }
    
    .loading {
    	background-image: none;
    }
}

@media all and (max-width: 690px) {

    #header h1 {
        font-size: 30px;
        margin-top: -10px;
    }

    #header h2 {
        font-size: 16px;
        margin-top: -6px;
    }
    
	#footer div.left {
	    float: none;
	}
	
	#footer div.right {
	    text-align: left;
	    float: none;
	}
}

@media all and (max-width: 415px) {

    #header h1 {
        font-size: 40px;
        padding-top: 20px;
    }

    #header h2 {
        display: none;
    }

}
        .popupwrapper {
            position: fixed;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            z-index: 1000;
            padding: 0;
            margin: 0;
            * background-color: #cccccc;
        }

        * body {
            height: 100%;
        }

        * html .popupwrapper {
            position:absolute;
            /* height: expression(eval(window.innerHeight));*/
            bottom:auto;
            top:expression(eval(document.documentElement.scrollTop));
        }

        .popupwrapper h1 {
            font-family: SpeedlineRegular, Arial, Verdana;
            margin: 0 0 0 30px;
            padding: 20px 0 10px 0;
            font-size: 20px;

        }
        .popupwrapper .background {
            position: absolute;
            top: 0;
            left: 0;
            background-color: grey;
            opacity: 0.5;
            width: 100%;
            height: 100%;
            z-index: -1;
        }

        .popupwrapper .popup {
            position: relative;
            background-color: white;
            width: 940px;
            margin: 0 auto;
            height: 80%;
            border-radius: 15px;
            padding: 0 0px;
            border: 0 none;
            top: 0;
            zoom: 1;
        }

        .popupwrapper .popup_content {
            width: auto;
            height: 80%;
            zoom: 1;
        }

        .popupwrapper .popup .close_popup {
            position: absolute;
            top: 5px;
            right: 5px;
            height: 20px;
            width: 20px;
            background: url("../images/close.png");
            overflow: hidden;
            text-indent: 20px;

        }

        #pbo_report .popup_content {
            position: relative;
            overflow: auto;
            margin: 0 10px;
            width: auto;
            zoom: 1;
        }

        .pbo_reports {
            margin: 0 auto;
        }


        #pbo_report .popup_content .pbo_reports_icon {
            position: absolute;
        }

        #pbo_report .popup_content .pbo_reports_row.header .header {
            font-weight: bold;
            text-align: center;
            padding: 5px 0;
        }

        #pbo_report .popup_content .pbo_reports_upload.header {
            display: none;
        }

        #pbo_report .popup_content .pbo_reports_filename {
            padding-top: 15px;
        }

        #pbo_report .popup_content .pbo_reports_filename,
        #pbo_report .popup_content .pbo_reports_upload {
            padding-left: 80px;
            width: auto;
            overflow: hidden;
        }

        #pbo_report .popup_content .pbo_reports_upload {
            float:right;
            margin-right: 10px;
            font-size: 0.813em;
        }

        #pbo_report .popup_content .pbo_reports_row {
            height: 70px;
            position: relative;
        }

        #pbo_report .popup_content .pbo_reports_row:nth-child(even) {
            background-color: #ccc;
        }

        #pbo_report .popup_content .pbo_reports_row.header {
            height: auto;
        }


@media all and (max-height: 550px) {
    .popupwrapper .popup {
        height: 440px;
    }
}

@media all and (max-height: 440px) {
    .popupwrapper .popup {
        height: 100%;
    }
}

@media all and (max-width: 940px) {
    .popupwrapper .popup {
        width: 100%;
    }

    #pbo_report .popup_content .pbo_reports_upload {
        float:none;
    }
}

