@font-face{
    font-family:"Comic Sans MS";
    font-style:normal;
    font-weight:400;
    src:local('Comic Sans MS'),
        local('ComicSansMS-Regular'),
        url(../fonts/comic-sans-ms_53a8778a817839ef2dbc5dc94ce14334.woff) format('woff'),
        url(../fonts/comic-sans-ms_53a8778a817839ef2dbc5dc94ce14334.ttf) format('truetype')
}
@font-face {
    font-family:"Comic Sans MS";
    font-style:normal;
    font-weight:700;
    src:local('Comic Sans MS Bold'),
        local('ComicSansMS-Bold'),
        url(../fonts/comic-sans-ms-bold_a1b80394f5a8455df4c4236b2f87345d.woff) format('woff'),
        url(../fonts/comic-sans-ms-bold_a1b80394f5a8455df4c4236b2f87345d.ttf) format('truetype')
}
#main
{
    padding-top: 25px !important;
}
#home-page a:hover
{
    color: #193973;
}
body *
{
    font-family: "Comic Sans MS", Arial, Helvetica, sans-serif !important;
    font-size: 16px;
}
#home-page label, #home-page input[type='text'],#home-page input[type='button'], #home-page span, #home-page div, #home-page select, #home-page button,
#home-page table, #home-page h4, #home-page textarea
{
    font-size: 20px;
    line-height: 30px;
}
#home-page label span
{
    font-weight: normal;
    font-size: 19px;
}
#home-page input[type="text"], #home-page select
{
    height: 44px;
    color: #000;
    margin-right: 0px !important;
}
.two-number
{
    margin-left: -5px;
}
#home-page .panel
{
    margin-top: 30px;
}
.radio-item
{
    width: 20px;
    float: left;
    margin-right: 10px;
    text-align: center;
}
.radio-item span
{
    display: inline;
    width: 17px;
    text-align: center;
}

.radio-item input
{
    margin: auto;
}
.radio-first-label, .radio-last-label
{
    float: left;
    display: inline-block;
    margin-right: 10px;
}
.radio-group
{
    height: 2px;
}

.form-group
{
    padding-bottom: 10px;
    margin-bottom: 10px;
}
.border-bottom
{
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}
.border-bottom .pull-right
{
    padding-top: 10px;
}
.group-radio
{
    padding: 5px;
    border-radius: 3px;
    border: 1px solid #d2d2d2;
}

.mark-error .form-control {
    border-color: #a94442;
    background-color: #FFEFEF;
}
.mark-error .group-radio
{
    background-color: #FFEFEF;
    padding: 5px;
    border-radius: 3px;
    border: 1px solid #a94442;
}
.group-button-score *
{
    float: left;
}
.group-button-score label
{
    margin-right: 6px;
    margin-left: 6px;
    line-height: 40px;
    height: 40px;
    display: block;
    float: left;
    margin-bottom: 5px;
}
.group-button-score input[type='button'], .group-button-score button
{
    margin-bottom: 10px;
}

#your_score, #average_score, #search_chart
{
    min-height: 300px;
    margin-top: 55px;
    margin-bottom: 60px;
    position: relative;
    border-bottom: 1px solid rgb(214, 233, 198);
}
#search_chart
{
    width: 100%;
}
#gspinner {
    display: none;
    color: #000;
    z-index: 9999;
    opacity: 0.6;
    background: url("../img/loading.gif") no-repeat scroll 50% 50% transparent;
    background-color: #111111;
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
}
.post
{
    margin-bottom: 10px;
}
@media (max-width: 500px)
{
    #your_score, #average_score, #search_chart
    {
        margin-top: 80px;
        margin-bottom: 145px;
    }
    #home-page .panel
    {
        border: none;
    }
    #home-page div.panel:last-child
    {
        margin-bottom: 0px !important;
    }
    #home-page .panel .panel-heading
    {
        border-radius: 3px;
    }

    #home-page .panel .panel-body
    {
        padding-top: 10px;
        border-bottom: none !important;
        border-spacing: 0px;
        border-collapse: collapse;
        padding-bottom: 20px;
    }
    .post
    {
        margin-bottom: 0px !important;
    }
    .rotate-degree
    {
        display: block;
        width: 64px;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-right: 0px;
        padding-right: 0px;
    }
    .flot-x-axis .flot-tick-label.tickLabel
    {
        -webkit-transform: rotate(-90deg);
        -moz-transform: rotate(-90deg);
        -ms-transform: rotate(-90deg);
        -o-transform: rotate(-90deg);
        filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
    }
    .table > tbody > tr > td, .table > thead > tr > th
    {
        padding: 0px !important;
        padding-right: 5px;
    }
    .table > tbody > tr > td 
    {
        text-align: center;
    }
    #main
    {
        padding-bottom: 0px !important;
    }
}
.back-to-top {
    background: none;
    margin: 0;
    position: fixed;
    bottom: 0;
    right: 0;
    width: 47px;
    height: 47px;
    z-index: 100;
    display: none;
    text-decoration: none;
    background: url('../img/Capture.PNG') no-repeat center center !important;
}

.back-to-top i {
    font-size: 60px;
}
#toTop
{
    display: none !important;
}

@-webkit-keyframes bargrowth{
    0%   {max-height: 0%;}
    100%  {max-height: 100%;}
}

@keyframes bargrowth{
    0%   {max-height: 0%;}
    100%  {max-height: 100%;}
}

.bar {
    -webkit-animation: bargrowth 1000ms ease;
    animation: bargrowth 1000ms ease;
    position:absolute;
    bottom:0;
    display:inline-block;
    background: #6f80a0;
    box-shadow: 1px -1px #193973, 2px -2px #193973, 3px -3px #193973, 4px -4px #193973, 5px -5px #193973, 6px -6px #193973, 7px -7px #193973, 8px -8px #193973, 9px -9px #193973, 10px -10px #193973, 11px -11px #193973, 12px -12px #193973, 13px -13px #193973, 14px -14px #193973, 15px -15px #193973, 16px -16px #193973, 17px -17px #193973, 18px -18px #193973, 19px -19px #193973, 20px -20px #193973;
}
#average_score .bar
{
    background: #e6e6e6;
    box-shadow: 1px -1px #A2A2A2, 2px -2px #A2A2A2, 3px -3px #A2A2A2,   4px -4px #A2A2A2, 5px -5px #A2A2A2, 6px -6px #A2A2A2, 7px -7px   #A2A2A2, 8px -8px #A2A2A2, 9px -9px #A2A2A2, 10px -10px #A2A2A2, 
        11px -11px #A2A2A2, 12px -12px #A2A2A2,13px -13px #A2A2A2,14px -14px #A2A2A2,15px -15px #A2A2A2,16px -16px #A2A2A2,17px -17px #A2A2A2,18px -18px #A2A2A2,19px -19px #A2A2A2,20px -20px #A2A2A2;

}
.bar-text
{
    position: absolute;
    bottom: -30px;
    width: 100%;
    text-align: center;
}
.bar-value
{
    position: absolute;
    top: -50px;
    width: 100%;
    text-align: center;
}

@media (max-width: 970px){
	#result_page .table tbody tr td{
		display: block;
		width: 100%;
		text-align: right;
	}
	#result_page .table thead{
		display: none;
	}
	#result_page .table tbody tr td:before{
		display: inline-block;
		text-align: left;
		font-weight: bold;
		float: left;
	}
	#result_page .table tbody tr td:nth-child(1):before{
		content: 'Post Code';
	}
	#result_page .table tbody tr td:nth-child(2):before{
		content: 'social';
	}
	#result_page .table tbody tr td:nth-child(3):before{
		content: 'trust';
	}
	#result_page .table tbody tr td:nth-child(4):before{
		content: 'austerity';
	}
	#result_page .table tbody tr td:nth-child(5):before{
		content: 'taxes';
	}
	#result_page .table tbody tr td:nth-child(6):before{
		content: 'invest';
	}
	#result_page .table tbody tr td:nth-child(7):before{
		content: 'helpfulness';
	}
	#result_page .table tbody tr td:nth-child(8):before{
		content: 'friendliness';
	}
	#result_page .table tbody tr td:nth-child(9):before{
		content: 'hospitality';
	}
	
	.bar
    {
        box-shadow: 1px -1px #193973, 2px -2px #193973, 3px -3px #193973,   4px -4px #193973, 5px -5px #193973, 6px -6px #193973, 7px -7px   #193973, 8px -8px #193973, 9px -9px #193973, 10px -10px #193973;
    }
    #average_score .bar
    {
        box-shadow: 1px -1px #A2A2A2, 2px -2px #A2A2A2, 3px -3px #A2A2A2,   4px -4px #A2A2A2, 5px -5px #A2A2A2, 6px -6px #A2A2A2, 7px -7px   #A2A2A2, 8px -8px #A2A2A2, 9px -9px #A2A2A2, 10px -10px #A2A2A2;
    }
    .bar-text, .bar-value
    {
        -webkit-transform: rotate(-90deg);

        /* Firefox */
        -moz-transform: rotate(-90deg);

        /* IE */
        -ms-transform: rotate(-90deg);

        /* Opera */
        -o-transform: rotate(-90deg);

        /* Internet Explorer */
        filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
        
        display: inline-block;
    }
    .bar-text
    {
        bottom: -140px;
    }
}

#result_page
{
    margin-top: 50px;
    padding: 20px;
}
#home-page center img {
    max-width: 100% !important;
}
#score-header-text {
    height: 80px;
    width: 100%;
    background-image: url(../img/header_image_large.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    margin-top: 20px;
}
@media (max-width: 1020px) and (min-width: 991px) {
    #score-header-text {
        height: 80px;
        width: 100%;
        background-image: url(../img/header_image_large.jpg);
        background-position: -26px center;
    }
}
@media (max-width: 990px) {
    #score-header-text {
        height: 57px;
        width: 100%;
        background-image: url(../img/small_header.png);
        background-position: center center;
    }
}
@media (max-width: 400px) {
    #score-header-text {
        height: 57px;
        width: 100%;
        background-image: url(../img/small_header.png);
        background-position: center center;
        background-size: contain;
    }
}
#home-page .panel-success>.panel-heading {
    color: #072c5e !important;
    background-color: #f3f8ff !important;
    border-color: #b6c3d6 !important;
    background-image: none;
}
#home-page .panel-success {
    border-color: #b6c3d6 !important;
}
#result_page {
    color: #072c5e !important;
    background-color: #f3f8ff !important;
    border-color: #b6c3d6 !important;
}
#result_page a {
    font-size: 20px;
}
#result_page h3 > span {
    font-size: 24px;
}