/** B : Global ****************************************************************/

@import url('https://fonts.googleapis.com/css?family=Raleway:400,700');

* {
    font-family: Raleway;
}

body {
    margin: 18px;
    background-image: url("img/home.png");
    background-color: #152736;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center; 
}

#content,
#main {
    width: 1px;
    min-width: 100%;
    *width: 100%;
    height: 94vh;
}

button,
a.btn {
    padding: 14px 20px;
    border-radius: 30px;
    text-transform: uppercase;
    border: none;
    margin: 20px 6% 0px 6%;
    font-size: 14px;
    line-height: 26px;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}
button {
    min-width: 210px;
}

/** E : Global ****************************************************************/


#content {
    background: white;
}

#content #menu,
#content #score,
#content #results,
#content #benchmark,
#content #main {
    display: none;
}
#content.test #main,
#content.results #menu,
#content.results #score,
#content.results #results,
#content.benchmark #menu,
#content.benchmark #score,
#content.benchmark #benchmark {
    display: block;
}

#menu {
    background: white;
    padding: 20px 10px;
    text-align: center;
    /* height: 10vh; */
}
#menu .separator {
    color: #dde4e8;
}
#menu .item {
    text-transform: uppercase;
    color: #777777;
    font-size: 14px;
    margin: 0 10px;
    padding: 4px 0;
    cursor: pointer;
}
#menu .item.active {
    color: #de1500;
    /* color: #29537c; */
    border-bottom: 1px solid;
}

#results {
    background: white;
    /* height: 84vh; */
}

#score {
    /* background: #dde4e8; */
    background-image: url("img/score.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center; 
    width: 80%;
    padding: 20px;
    margin: auto;
    text-align: center;
    font-size: 20px;
    color: white;
}

#score .value {
    font-weight: bold;
}

#results .protocol {
    border-bottom: 1px solid #dde4e8;
    width: 86%;
    margin: auto;
    padding: 20px 10px 15px 10px;
    clear: both;
}

#results .result {
    float: right;
    text-align: right;
}

#results .result .value {
    font-weight: bold;
    font-size: 24px;
}

#results .result .unit {
    font-size: 12px;
}

#results .icon {
    float: left;
    width: 30px;
    height: 30px;
    margin: 5px 40px 10px 0;
}

#results .details p {
    margin-top: 0px;
    margin-bottom: 4px;
    font-size: 10px;
}

#results .details p.title {
    text-transform: uppercase;
    color: #de1500;
    font-size: 14px;
}

#results button span.icon {
    float: left;
    width: 26px;
    height: 26px;
    margin: 0px 10px 0px 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center; 
}


#compare {
    float: right;
    background-color: #29537c;
    color: white;
}

#compare span.icon {
    background-image: url("img/compare-white.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center; 
}

#compare:hover {
    background-color: #de1500;
}


#share {
    display: none;
}

#share:hover {
    background-color: #29537c;
    color: white;
}

#share span.icon {
    background-image: url("img/share-black.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center; 
}

#share:hover span.icon {
    background-image: url("img/share-white.png");
}


#relaunch {
    background-color: #de1500;
    color: white;
}


#relaunch:hover {
    background-color: #29537c;
}

#relaunch span.icon {
    background-image: url("img/reload-white.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center; 
}


.loader {
    border: 5px solid #f3f3f3;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
    border-top: 5px solid #555;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin: 30px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#benchmark_chart {
    overflow: hidden;
    text-align: left;
    width: 540px;
    max-width: 96%;
    height: 300px;
    margin: auto;
    /* background: #dde4e8; */
}

#benchmark_description {
    width: 540px;
    max-width: 96%;
    font-size: 11px;
    text-align: center;
    margin: auto;
    margin-top: -60px;
}

#benchmark_link {
    margin: 10px 25px;
}

#benchmark_link a.btn {
    border: 2px solid #dde4e8;
    color: black;
    width: 200px;
    margin: 5px 10px;
    line-height: 30px;
    padding: 10px 15px;
    text-decoration: none;
}

#benchmark_link a.btn span.icon {
    display: block;
    float: left;
    width: 30px;
    height: 30px;
    margin-left: 10px;
    margin-right: 0px;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center; 
}


#benchmark_link a.btn:hover {
    border-color: #de1500;
    color: #de1500;
    font-weight: bold;
}

#benchmark_link a.btn.bouygues span.icon {
    background-image: url("img/bouygues.png");
}

#benchmark_link a.btn.free span.icon {
    background-image: url("img/free.png");
}

#benchmark_link a.btn.orange span.icon {
    background-image: url("img/orange.png");
}

#benchmark_link a.btn.sfr span.icon {
    background-image: url("img/sfr.png");
}

@media (max-width: 480px) {
    #score {
        padding: 5px 20px;
    }
    #results .icon {
        margin: 5px 10px 10px 0;
    }
    #benchmark_chart {
        height: 260px;
    }
    button,
    #benchmark_link a.btn {
        width: 88%;
    }
    #benchmark_link a.btn {
        margin: 0px 0 5px 0px;
        padding: 5px 20px;
    }
}

@media (max-width: 320px) {
    #benchmark_chart {
        height: 200px;
    }
    #benchmark_link a.btn {
        padding: 2px 20px;
    }
}
