* { font-family: "Titillium Web", sans-serif; }

#main_container { display: none;}

#ui_container {
    position: absolute;
    top: 40px;
    bottom: 0;
    z-index: 2;
    width: 380px;
    min-height: 930px;
    box-shadow: 2px 2px 8px #666666;
}

#control_center {
    width: 350px;
    margin: 0 auto 0 auto;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -175px;
    transform: translateY(-50%);
}

.ol-attribution li {
    font-size: 13px !important;
}

.ol-attribution.ol-uncollapsible {
    height: 1.4em;
}

#header { margin-bottom: 5px; }

#logo_ign {
    height: 25px;
    margin-bottom: 5px;
}

#title_bloc {
    width: 340px;
    margin: 20px auto 20px auto;
    font-size: 13px;
    color: #9e9e9e;
}

#title {
    color: #666666;
    font-size: 25px;
    font-weight: bold;
    line-height: 25px;
}

.mentions {
    top: 40px;
    position: absolute;
    width: 100%;
    padding: 0;
    background: #f5f5f5;
}

.mentions h1 {
    background: #F2F2F2;
    text-transform: uppercase;
    font-weight: 450;
}

.mentions h2 {
    text-transform: uppercase;
    font-weight: 600;
}

.mentions p {
    color: #71777a;
    font-size: 16px;
}

.mentions-bloc {
    background: #F2F2F2;
    padding: 20px 60px;
}

.mentions #header #title_bloc {
    font-size: 17px;
}

.mentions #header #title {
    font-size: 34px;
}

.mentions footer {
    padding-bottom: 25px;
    font-size: 12px !important;
}

#alac {
    font-size: 45px;
    font-family: 'Tangerine', cursive;
}

.tooltip {
    -webkit-transition: opacity .15s linear;
    -o-transition: opacity .15s linear;
    transition: opacity .15s linear;
    pointer-events: none;
}

.pretty.p-default.p-round.p-smooth {
    margin-left: 50px;
}

.slider-handle {
    background-color: #b0b0b0 !important;
    background-image: -webkit-linear-gradient(top,#b0b0b0 0,#7d7d7d 100%) !important;
    background-image: -o-linear-gradient(top,#b0b0b0 0,#7d7d7d 100%) !important;
    background-image: linear-gradient(to bottom,#b0b0b0 0,#7d7d7d 100%) !important;
}

#altitudeRatioSlider {
    width: 142px;
}

.competition {
    margin-top: 25px;
    border: 1px solid #e3e3e3;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

.sponsors {
    display: inline-block;
    margin-top: 25px;
}

.country li .text {
    display:none !important;
}

#how_it_works { width: 160px; }

#examples { width: 180px; }

#how_it_works, #examples {
    padding: 2px 0 3px 0;
    transition: all 0.3s ease 0s;
}

.section {
    width: 340px;
    padding: 5px;
    margin: 0 auto 0 auto;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

.label_cgu {
    font-weight: 500;
}

/* Checkboxes */

/* Old checkbox for Personal & Parental data consentment (easy display toggle) */
input[type="checkbox"][name="consentment[]"]:not(:checked) + label:before,
input[type="checkbox"][name="consentment[]"]:checked + label:before {
  content: '';
  position: absolute;
  left:0; top: 2px;
  width: 17px; height: 17px;
  border: 1px solid #aaa;
  background: #f8f8f8;
  border-radius: 3px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.1)
}

input[type="checkbox"][name="consentment[]"]:not(:checked),
input[type="checkbox"][name="consentment[]"]:checked {
  display: none;
}

input[type="checkbox"][name="consentment[]"]:not(:checked) + label,
input[type="checkbox"][name="consentment[]"]:checked + label {
  position: relative;
  padding-left: 25px;
  cursor: pointer; 
}

input[type="checkbox"][name="consentment[]"]:not(:checked) + label:after,
input[type="checkbox"][name="consentment[]"]:checked + label:after {
  content: '✔';
  position: absolute;
  top: 0; left: 4px;
  font-size: 14px;
  color: #09ad7e;
  transition: all .2s;
}

input[type="checkbox"][name="consentment[]"]:not(:checked) + label:after {
  opacity: 0;
  transform: scale(0);
}

input[type="checkbox"][name="consentment[]"]:checked + label:after {
  opacity: 1;
  transform: scale(1);
}

input[type="checkbox"][name="consentment[]"] + label {
    display: none;
}
  
#personal_data_consentment#text, #parental_data_consentment#text {
    text-align: left;
}

/* New pretty checkboxes */
.pretty {
    margin-top: 6px;
}

.pretty #checkboxCGU {
    min-width: 0;
    width: auto;
}

.pretty label:hover {
    cursor: pointer;
}

.pretty .state label {
    font-size: 13px;
}

.green_white_checkbox .mdi-check::before {
    content: '✔';
    font-size: 14px;
    color: #09ad7e;
    transition: all .2s;
}

.green_white_checkbox.p-icon .state .icon::before {
    margin-left: -12px;
}

.green_white_checkbox input:checked ~ .state.p-success label::after, .green_white_checkbox.p-toggle .state.p-success label::after {
    background-color: #fcfcfc !important;
    border: 1px solid #aaa;
    transition: all .5s ease;
}

.green_white_checkbox.p-smooth .icon, .green_white_checkbox.p-smooth .svg, .green_white_checkbox.p-smooth label::after, .green_white_checkbox.p-smooth label::before {
    transition: 0ms;
}

.section_name {
    color: #666666;
    margin: 5px 0 10px 0;
    font-size: 15px;
}

.separator {
    color: #666666;
    font-size: 15px;
    font-weight: bold;
    margin: -1px 0 5px 0;
}

#generate_map {
    width: 220px;
    transition: all 0.3s ease 0s;
    padding: 2px 0 3px 0;
}

#stats {
    color: #666666;
    width: 290px;
    margin: 18px auto 0 auto;
    padding-bottom: 7px;
    border: 1px solid #e3e3e3;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

#download_periodic_countdown {
    font-size: 55px;
    line-height: 55px;
    letter-spacing: 3px;
    font-weight: bold;
}

#download_countdown {
    font-size: 23px;
    letter-spacing: 1px;
    float:left;
}

.download_periodic {
    /*border-bottom: 1px solid #ececec;
    padding-bottom: 4.5px;*/
    border-bottom: none;
    padding-bottom: 0;
}

.download {
    display: none;
    /*display: inline-block;*/
    padding-top: 4.5px;
}

#download_countdown_desc { font-size: 14px; float: right; margin-top: 8px; padding-left: 6px; }
#download_periodic_countdown_desc { font-size: 16px; }

#why_tooltip {
    position: relative;
    transition: 200ms;
    display: none;
    font-size: 12px;
    border-bottom: 1px dotted black;
    cursor: pointer;
}

#footer {
    color: #666666;
    margin-top: 10px;
    font-size: 11px;
}

small { color: #9e9e9e; }

#footer a { color: #666666; }

#footer a:hover { text-decoration: none; }

.twitter-follow-button { margin: 5px 0 0 0; }

#map_container {
    position: fixed;
    top: 40px;
    bottom: 0;
    z-index: 1;
    margin-left: 380px;
    background-image: url("../img/grid.png");
    background-repeat: repeat;
    width: calc(100vw - 380px);
}

#about, #pregen, #why, #format {
    position: absolute;
    width: 920px;
    height: 660px;
    margin-left: -460px;
    margin-top: -330px;
    left: 50%;
    top: 50%;
    z-index: 5;
    text-align: center;
    opacity: 0.9;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"; /* IE8 */
    filter: alpha(opacity=90); /* IE5-7 */
    display: none;
}

#about_container, #pregen_container, #why_container, #format_container {
    width: 780px;
    height: 660px;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0 auto 0 auto;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    padding: 25px;
    background-color: #fff;
    border-top: 6px solid #d8d8d8;
    border-bottom: 6px solid #d8d8d8;
    display: none;
    font-size: 13px;
    text-align: justify;
}

/* Modal vertical centering */
/*.modal:before {
    display: inline-block;
    vertical-align: middle;
    content: " ";
    height: 100%;
}

.modal-dialog {
    display: inline-block;
    text-align: left;
    vertical-align: middle;
}*/

.modal-content {
    font-size: 13px;
    text-align: justify;
    border-radius: 0px;
    background-color: #fff;
    border: none;
    border-top: 6px solid #d8d8d8;
    border-bottom: 6px solid #d8d8d8;
    opacity: 0.9;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)";
    filter: alpha(opacity=90);
}

.modal-backdrop {
    opacity:0.7 !important;
}

.modal-body {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 90vh;
}

.modal-content .close_popup {
    margin: 0 auto 0 -65px;
    color: #fff;
}

@media(min-width: 768px) {
    .modal-dialog {
        width: 780px;
    }
}

#why_container {
    height: 320px;
}

#why {
    height: 320px;
    margin-top: -150px;
}

.faq li {
    padding-bottom: 5px;
}

.format-title {
    display: inline-block;
}

#installationSteps .panel, #installationDeviceType .panel, #formatSelectionDeviceType .panel, #formatProposal .panel {
    -webkit-box-shadow: none;
    box-shadow: none;
    margin-bottom: 0;
}

.close_popup {
    margin: 0 auto 0 auto;
    color: #fff;
    position: absolute;
    font-weight: bold;
    padding: 0;
    cursor: pointer;
}

h3 { margin: 10px 0 10px 0; }

#order_validation, #notification {
    position: absolute;
    top: 50%;
    height: 450px;
    margin-top: -225px;
    left: 50%;
    width: 566px;
    margin-left: -283px;
    z-index: 5;
    opacity: 0.9;
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=90)"; /* IE8 */
    filter: alpha(opacity=90); /* IE5-7 */
    display: none;
}

#notification {
    height: 120px;
    margin-top: -60px;
}

#validate_order {
    width: 150px;
    transition: all 0.3s ease 0s;
    padding: 2px 0 3px 0;
}

#error, #success {
    height: 120px;
    width: 420px;
    margin: 0 auto 0 auto;
    text-align: center;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    padding: 25px;
    background-color: #fff;
    border-top: 6px solid #d8d8d8;
    border-bottom: 6px solid #d8d8d8;
    display: none;
}

#test-dialog.modal-dialog {
    max-width: 500px;
}

#test { 
    display: block;
    width: auto;
    height: auto; 
    margin: 0 auto 0 auto;
    text-align: center;
    position: relative;
}

.checkbox {
    margin: 0;
    border: 1px solid #e3e3e3;
    padding: 13px;
    border-radius: 5px;
    margin-bottom: 10px;
    max-width: 325px;
    margin: 0 auto 5px auto;
}

/*input[type="checkbox"][name*="consentment"] label {
    padding: 0 5px;
    font-weight: 700;
}*/

#test .glyphicon, #error .glyphicon, #success .glyphicon {
    font-size: 28px;
    margin-bottom: 12px;
}

#test p { margin-top: 10px; }

#error .glyphicon { color: #cc4b4b; }

#success .glyphicon { color: #6ca66c; }

#discard_error, #discard_success {
    margin-top: 15px;
    width: 220px;
    padding: 2px 0 3px 0;
    transition: all 0.3s ease 0s;
}

#curtains {
    position: absolute;
    left: 0;
    top: 0;
    background: #000;
    z-index: 4;
    display: none;
}

#search_results {
    border: 1px solid #ccc;
    border-top: 0;
    width: 450px;
    position: absolute;
    margin-left: 80px;
    text-align: left;
    top: 192px;
    z-index: 4;
    background-color: #fff;
    display: none;
    -webkit-border-bottom-right-radius: 5px;
    -webkit-border-bottom-left-radius: 5px;
    -webkit-border-top-right-radius: 5px;
    -moz-border-radius-bottomright: 5px;
    -moz-border-radius-bottomleft: 5px;
    -moz-border-radius-topright: 5px;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
    border-top-right-radius: 5px;
    border-color: #78b1e3;
    box-shadow: 0 0 6px rgba(120, 177, 227, 1);
}

#search_results ul {
    padding-left: 12px;
    margin: 4px 0 6px 0;
    list-style-type: none;
}

#search_results li {
    cursor: pointer;
    z-index: 3;
}

#search_results li:hover { color: #337ab7; }

#location_popup {
    transition: 300ms ease-in;
    color: #666666;
    text-align: center;
    background-color: #fff9;
    padding: 15px;
    width: 215px;
    opacity: 0.7;
    border-top: 4px solid #d8d8d8;
    border-bottom: 4px solid #d8d8d8;
    display: none;
    margin-top: 82px;
}

#location_popup:hover {
    background-color: #fff;
    opacity: 0.9;
}

.game_format li a {
    height: 28px !important;
}

.game_format li a:hover .text-muted {
    color: #fff;
}

.game_format li a:hover {
    background-color: red;
}

.bootstrap-select.btn-group.disabled, .bootstrap-select.btn-group > .disabled {
    background-color: #eee;
    color: #999;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
    opacity: 1;
}

.bootstrap-select.btn-group.disabled:hover, .bootstrap-select.btn-group > .disabled:hover {
    color: #999;
}

.input-group-addon-small {
    font-size: 13px;
    padding: 6px 6px;
}

.input-group-addon-smallest {
    font-size: 13px;
    padding: 6px 0px;
}

.location_popup_unsupported {
    background-color: #ffe7e7 !important;
}

#location_popup .glyphicon {
    font-size: 20px;
    padding-bottom: 10px;
}

a:hover { text-decoration: none; }

#splashscreen {
    position: absolute;
    width: 100%;
    height: 100%;
    position: fixed;
    background-color: #fff;
    z-index: 7;
    text-align: center;
}

#preloader, #maintenance {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

#preloader {
    width: 32px;
    height: 32px;
}

#mouse_position {
    margin-top: 5px;
    font-size: 12px;
    color: #858585;
}

#captcha_container {
    margin: 0 auto 5px auto;
    border: 1px solid #e3e3e3;
    width: 260px;
    padding: 15px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

#captcha { margin: 25px 0 5px 0; }

#captcha_response {
    margin-left: 25px;
    width: 180px;
}

#generate_map_form .glyphicon {
    font-size: 12px;
    vertical-align: top;
    margin: 25px 0 0 5px;
    color: #a7a7a7;
}

#generate_map_form .glyphicon:hover { cursor: pointer; }

#spam_message {
    font-size: 11px;
    margin-top: 10px;
    color: #9e9e9e;
}

#wrong_captcha {
    color: #ff0000;
    margin-top: 10px;
    font-size: 13px;
    visibility: hidden;
}

#beta_banner {
    position: fixed;
    left: -10px;
    top: 0;
    z-index: 2;
    width: 120px;
}

.navbar {
    position: absolute;
    min-height: 40px;
    margin-bottom: 0px;
    border-bottom: 0px;
    /*z-index: inherit;*/
    z-index: 3;
}

.navbar-nav > li > a {
    height: 40px;
    line-height: 40px;
    padding-top: 0px;
    text-transform: uppercase;
    font-size: 14px;
    color: #71777a;
}

.navbar-nav > li > span {
    padding: 5px;
    color: #71777A;
}

.navbar-toggle {
    margin-top: 3px;
}

.navbar-default .navbar-brand {
    height: 40px;
    padding-top: 10px;
    padding-left: 38px;
    padding-right: 38px;
    background-color: #71777A;
    color: #F7F8F4;
    font-weight: 300;
    font-size: 14px;
    text-transform: uppercase;
    text-align: center;
    width: calc(100% + 15px);
}

.navbar-ign-primary .navbar-brand {
    border-right: 1px solid rgba(255, 255, 255, 0.3);
}
  
.navbar-default .navbar-brand:hover {
    background-color: #666;
    color: #F7F8F4;
}
  
.navbar-container {
    padding: 0px;
}
  
.navbar-ign-primary {
  background-color: #71777A;
}
  
.navbar-ign-primary .container {
    max-width: 960px;
}

.dropdown-menu {
    margin: 0;
    border-radius: 0px;
    padding-top: 0px;
    padding-bottom: 0px;
    border: 0;
    margin-top: -1px;
}

.navbar-ign-primary .dropdown-menu {
    width: 560px;
    font-size: 11px;
    background-color: #71777a;
    margin-top: -10px;
}

.dropdown-menu > li > a:hover {
    color: #F7F8F4;
    background-color: #71777A;
}

.navbar-ign-primary .dropdown-menu  li a:hover {
    background-color: #666;
    text-decoration: none;
}

.navbar-ign-primary .dropdown-menu div {
    padding: 0px;
}
  
.dropdown-menu  li a,
.dropdown-menu button {
    color: #71777A;
    font-weight: 300;
    font-size: 13px;
    height: 39px;
    display: block;
    text-transform: uppercase;
}

.game_format .dropdown-menu li a, 
.game_format .dropdown-menu li a {
    text-transform: initial;
}

.navbar-ign-primary .dropdown-menu li a {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding: 11px 20px 11px 25px;
    white-space: nowrap;
}

.navbar-nav > .open > a {
    background-color: transparent;
}

.navbar-default.navbar-ign-primary .navbar-nav > li > a {
    color: #F7F8F4;
}

.navbar-default.navbar-ign-primary .navbar-nav > li > a:hover {
    color: #F7F8F4;
}
  
.navbar-ign-primary .dropdown  a {
    color: #F7F8F4;
    padding-right: 38px;
    padding-left: 38px;
}
  
#chevron {
    padding-left: 5px;
}

#piwik {
    border: 0;
    border-top: 1px solid #c7c7c7;
    width: 732px;
    margin: 10px 0 0 0;
    height: 130px;
}

#pregen_maps img {
    margin-bottom: 5px;
    /*width: 665px;*/
    width: 92%;
    -webkit-box-shadow: 7px 7px 5px -2px rgba(0,0,0,0.2);
    -moz-box-shadow: 7px 7px 5px -2px rgba(0,0,0,0.2);
    box-shadow: 7px 7px 5px -2px rgba(0,0,0,0.2);
}

#pregen_maps small { font-size: 13px; }

#ign_toggle {
    position: fixed;
    top: 3px;
    right: 16px;
    display: none;
    z-index: 4;
}

#ign_toggle > .btn {
    border-radius:0;
}

.competition-header {
    position: fixed;
    /*top: 3px;*/
    top: 0px;
    right: 25px;
    z-index: 4;
}

.competition-header > .btn {
    /*background-color: #ea0c73;*/
    padding: 0; /**/
    color: #fff;
    border-radius: 0;
    text-transform: uppercase;
}

.competition-header > .btn > img {
    width: 86px;
}

.competition-header > .btn:hover {
    background-color: #666;
}

.corner-ribbon{
    width: 200px;
    position: fixed;
    text-align: center;
    line-height: 30px;
    color: #fff;
    background-color: #B3B3B3;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
    z-index: 3;
}

.corner-ribbon.top-left{
    top: 25px;
    left: -50px;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

.corner-ribbon.top-right{
    top: 25px;
    right: -50px;
    left: auto;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}

.corner-ribbon.bottom-left{
    top: auto;
    bottom: 25px;
    left: -50px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
}

.corner-ribbon.bottom-right{
    top: auto;
    right: -50px;
    bottom: 25px;
    left: auto;
    transform: rotate(-45deg);
    -webkit-transform: rotate(-45deg);
}

#disclaimer {
    color: #b5b5b5;
    margin-bottom: 20px;
    border: 1px solid #e8e8e8;
    padding: 15px;
    text-align: center;
}

#disclaimer .glyphicon { font-size: 20px; }

/* Customizing Bootstrap. */
.btn:hover {
    color: #fff;
    background-color: #666666;
}

.btn:hover.dropdown-toggle {
    color: #333;
    background-color: #fff;
}

.btn:disabled:hover { color: #555; }
.btn.disabled:hover.dropdown-toggle { background-color: #eee; }

/*.btn-group { margin: 35px 0 0 0; }*/

.btn-xs {
    padding: 1px 10px;
    display: table-cell;
    float: none;
    width: 1%;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 3px;
    color: #333;
}

.input-group-addon { width: 75px; }

.input-group {
    width: 320px;
    margin: 5px auto 0 auto;
}

.input-group-addon.input-show-options:hover {
    cursor: pointer;
}

.snow-group {
    display: none;
}

.snow-group-show {
    display: table;
}

.relief-group {
    display: none;
}

.relief-group-show {
    display:table;
}

.relief-hypso {
    margin-left: 40px !important;
}

.nav-tabs {
    font-size: 13px;
}

#geo {
    padding: 11px 0px;
}

.slider, .pretty {
    margin-left: 20px;
}

.form-control:focus {
    border-color: #78b1e3;
    box-shadow: 0 0 6px rgba(120, 177, 227, 1);
}

.placeholder { color: #999; }

/* Customizing OpenLayers. */
.ol-scale-line {
    left: 7px;
    bottom: 6px;
}

.ol-zoom {
    top: 6px;
    left: 7px;
}

.input-show-options {
    border-radius: 4px !important;
    border: 1px solid #ccc !important;
    width: 100%;
}

/* jsPanel CSS modifications */
.jsPanel-theme-default {
    background-color: #71777a;
    border-color: #71777a;
}

.jsPanel-theme-default>.jsPanel-hdr * {
    color: #fff;
}

.jsPanel-titlebar .jsPanel-title {
    font-size: 1.5rem;
}

@media (max-width: 767px) {
    #ui_container {
        display: none;
    }

    .navbar-ign-primary .navbar-header {
        display: none;
    }
    
    .navbar-ign-primary .navbar-collapse {
        text-align: center;
    }

    .navbar-nav {
        float: left !important;
        margin: 0px;
    }

    .navbar-ign-primary {
        margin-top: -1px;
    }

    .corner-ribbon.top-left {
        top: 13px;
        left: -30px;
    }

    .corner-ribbon {
        width: 100px;
        font-size: 10px;
        line-height: 22px;
    }

    #map_container:not(.active) {
        margin-left:0;
        width: 100vw;
    }

    #map_container.active {
        margin-left:380px;
        width: calc(100vw - 380px);
    }

    #ign_toggle {
        display: block;
    }

    .competition-header {
        right: 60px;
    }

    .modal-content .close_popup {
        margin: -25px auto 0 15px !important;
    }

    .modal.in .modal-dialog {
        -webkit-transform: translate(0,15px);
        -ms-transform: translate(0,15px);
        -o-transform: translate(0,15px);
        transform: translate(0,15px);
    }

    .modal-body {
        max-height: calc(90vh - 10px);
    }
}

@media (min-width: 480px) {
    .dropdown:hover .dropdown-menu {
      display: block;
    }
}