@import url('https://fonts.googleapis.com/css?family=Encode+Sans+Condensed');

/* Main */

html, body {
    margin:0;
    font-family: 'Encode Sans Condensed', sans-serif;
    color: #222;
}

*, ::after, ::before{
    box-sizing: content-box;
}
a {
    color: #222;
}

#root {
    height: 100%;
    display: none;
}

/* First section */

#banner-placeholder {
    background-image: url(../img/earth.jpg);
    background-size: cover;
    z-index: 5;
    height: 100% !important;
}

#banner {
    color:#fff;
    font-family: 'Encode Sans Condensed', sans-serif;
    text-align: center;
    font-size: 6em;
    padding: 30px;
    line-height: .8em;
    border: 1px solid #fff;
    margin: auto;
    width: 3em;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.2);
    box-sizing: content-box;
}

/* Menu */
#menu,#menu-about {
    position: fixed;
    color: #fff;
    font-size: 1em;
    font-family: 'Encode Sans Condensed', sans-serif;
    margin: 0 auto;
    background-color: #222;
    width: 100%;
    z-index: 10;
    padding: 20px;
    border-bottom: 4px solid #ec9a00;
}

#menu {
    display: none;
}

#menu a,#menu-about a {
    color: #fff;
    text-decoration: none;    
}

#menu-main {
    padding-right: 10px;
    font-size: larger;
}

/* Surveys sections */

.survey {
    text-align: center;
}

.survey .question {
    font-size: 2em;
    margin: auto;
    padding: 0 50px;
}

.survey .response {
    margin-top: 0px;
    margin-bottom: 10px;
    font-size: 2em;
}

.people-surveyed {
    font-size: .7em;
    color: #222;
    margin-bottom: 50px;
}

.survey .response .first-response {
    color : #ec9a00;
}

.survey .response .second-response {
    color : #777;
}

.survey .result {    
    margin: 0 auto;
    font-size: 2em;
    font-weight: bold;
}

.survey .result .first-result {
    vertical-align: center; 
    font-weight: normal;
    padding: 10px;
    margin: auto;
}

.survey .result .second-result {
    vertical-align: center; 
    font-weight: normal;
    padding: 10px;
    margin: auto;
}

.survey .result .data {
    line-height: 3em;
    display: initial;
    padding: .2em .4em;
    border-radius: .1em;
}

.survey .result .first-result .data {
    color: #EC9A00;
    border: 1px solid #ec9a00;
}

.survey .result .second-result .data {
    color: #777;
    border: 1px solid #777;
}

.survey .result .first-result .data.winner {
    color: #fff;
    background-color: #ec9a00;
}

.survey .result .second-result .data.winner {
    color: #fff;
    background-color: #777;
}

.survey .result .first-result .result-response {
    color: #ec9a00;
}

.survey .result .second-result .result-response {
    color: #777;
}

.survey .detailed-results {
    font-size: 1em;
    margin-top: 40px;
}

.survey .detailed-results a {
    text-decoration: none;
    border: 1px solid #222;
    color: #222;
    border-radius: 3px;
    padding: 5px 10px;
}

.detailed-results-choice {
    font-size: 1.4em;
    margin-top: 40px;
    margin-bottom: 40px;
    display: inline-block;
}

.detailed-results-choice a {
    text-decoration: none;
    border: 1px solid #222;
    color: #222;
    border-radius: 3px;
    padding: 5px 10px;
}

.detailed-results-choice span {
    color: #fff;
    background-color: #222;
    border-radius: 3px;
    padding: 5px 10px;
}

.survey .bottom-result {
    display: none;
}

.chart, .chart-average {
    margin:auto;
    display:inline-block !important;
}

.fp-controlArrow.fp-next {
    border-color: transparent transparent transparent transparent;
}

.fp-controlArrow.fp-prev {
    border-color: transparent  transparent transparent transparent;    
}

#loading {
    color: #fff;
    position: fixed;
    display: inline-block;
    bottom: 0;
    z-index: 20;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    left: 50%;    
    text-align: center;
    width: 150px;
    margin-left: -85px;
    margin-bottom: 20px;
    padding: 7px 10px 5px 10px ;
}        

#next-survey {
    background-color: #ec9a00;
    color: white;
    cursor: pointer;
    position: fixed;
    display: inline-block;
    bottom: 0;
    z-index: 20;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    left: 50%;    
    text-align: center;
    width: 50px;
    margin-left: -35px;
    display: none;
    margin-bottom: 20px;
    padding: 7px 10px 5px 10px ;
    box-sizing: content-box;
}

/* Slides */

.inline-block, 
.chart-per-gender-men, 
.chart-per-gender-women,
.chart-per-maturity-lessthan40, 
.chart-per-maturity-40andover,
.chart-per-country-allquestion {
    margin: 0 auto 10px auto;
    display:inline-block !important;
}

.chart-per-country {
    margin: 0 auto 5px auto;
    width:80%;
    text-align: center;
}
.country-chart-block{
    display:block !important;
    margin: 0 auto 10px auto;
}

.chart-percountry-name{
    font-size: 1.2em;
    display: inline-block !important;
    text-align: center;
    font-weight: bold;
}

.chart-percountry-center {
    padding-left: 3px;
    padding-right: 3px;
}
.chart-percountry-center::before {
    content : "";
}
.chart-percountry-center::after {
    content : "";
}
.chart-percountry-percent
{
    font-size: 1.0em;
    font-weight: lighter;
}

.otherCountry {
    font-weight: bold;
}
.otherCountry-percent {
    font-weight: lighter;
}

.country-chart-block > canvas {
    display: inline-block !important;
    box-sizing: content-box;
}

.first-winner {
    color: #fff;
    background-color: #ec9a00;
    border-radius: 3px;
    padding: 5px;
    font-size:  1em;
}

.first-looser {
    color: #ec9a00;
    border: 1px solid #ec9a00;
    border-radius: 3px;
    padding: 5px;
    font-size:  1em;
}

.second-winner {
    color: #fff;
    background-color: #777;
    border-radius: 3px;
    padding: 5px;
    font-size: 1em;
}

.second-looser {
    color: #777;
    border: 1px solid #777;
    border-radius: 3px;
    padding: 5px;
    font-size: 1em;
}

/* About */

.content-about{
    padding-top: 10em;
}
#about,#aboutcountry {
    background-color: #222;
    color: #fff;
    height: 300px;
}

#about div .aboutScroll {
    overflow: auto;
    padding: 2.5em;
    max-height: 100%;
}
#about div .aboutText {
    margin: auto;
    max-width: 450px;    
    padding: 0;
}
div .about-title {
    font-size: 3em;
    padding:0;
}
#about a {
    color:#EC9A00;
    text-decoration: none;
}
.about-sub-title {
    font-weight: bolder;
}
.allquestions-country {
    margin-bottom: 4em;
    font-weight: normal;
}
/* Responsive */
#questions {
    text-align: center;
    margin-top: 2em;
}
@media (max-width: 576px) { 

    #banner {
        font-size: 3em;
    }
    .survey .bottom-result {
        display: table-row;
    }
    .survey .result .top-result .first-result, .survey .result .top-result .second-result {
        display: none;
    }
    .survey .question {
        font-size: 1.2em;
    }
    .survey .response {
        font-size: 1.2em;
    }   
    .survey .bottom-result div {
        display: inline-block;
    }
    .chart-percountry-name{
        font-size: 0.8em;
        display: inline-block !important;
        text-align: left;
        font-weight: bold;
    }
    
    .chart-percountry-percent
    {
        font-size: 0.8em;
        font-weight:normal;
    }
    
    .detailed-results-choice {
        font-size: .7em;
    }
 }

@media (max-width: 768px) { 
    .result-response {
        display: none;
    }
}

@media (max-height: 800px) {

    .survey .response {
        margin-top: 0px;
    }    
    .people-surveyed {        
        margin-bottom: 0;
    }

    .survey .result, .survey {
        font-size: 1em;
    }   

    .survey .detailed-results {
        margin-top: 10px;
        font-size: .7em;
    }

    .survey .result .first-result, .survey .result .second-result {
        padding: 0 10px;
    }

    .survey .question {
        font-size: 1.7em;
    }

    #menu,#menu-about{
        padding: 3px 3px 3px 10px;
        border-bottom: 2px solid #777;        
    }

    #next-survey {
        width: 30px;
        margin-left: -20px;
        display: none;
        margin-bottom: 5px;
        padding: 3px 5px 1px 5px ;
    }        

    #next-survey img {
        width: 20px;
    }  
    .detailed-results-choice {
        margin-top: 20px;
        margin-bottom: 20px; 
    }
    .chart-percountry-name{
        font-size: .9em;
    }
}

