@font-face {
    font-family: 'BlackChancery';
    src: local('BlackChancery'), url('../fonts/blackchancery.ttf') format('truetype');
}

@font-face {
    font-family: 'MinionPro-Regular';
    src: local('MinionPro-Regular'), url('../fonts/MinionPro-Regular.woff') format('woff');
}

@font-face {
    font-family: 'FootlightMTLight';
    src: local('FootlightMTLight'), url('../fonts/Footlight.woff') format('woff');
}

* {
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
    background-color: #75a3b1;
}

text:hover{
    cursor: pointer;
}

/* Loader */
#controls, #compass, #meters, #echelle, #legend, #logo-aquilon-world, #TRACES, #TEXTES, #PNG{
    display: none;
}

#loader{
    /* background: url('../map/map-background-3.webp') no-repeat;
    background-size: cover; */
    width: 100%;
    height: 100vh;
    display: flex;
    position: absolute;
    z-index: 3;
}

#loader-image{
    background: url('../map/map-background-3.jpg') no-repeat;
    background-size: cover;
    width: 100%;
    height: 100vh;
    position: absolute;
    z-index: 1;
    filter: blur(5px);
}

#loader-background{
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1;
}

#loader-logo{
    margin: auto;
    width: 100%;
    margin-top: 8%;
    margin-bottom: 8%;
}

#loader-top{
    color: #f6d262;
    font-size: 30px;
    font-family: 'arial';
}

#loader-content{
    margin: auto;
    text-align: center;
    z-index: 2;
    position: relative;
    width: 30%;
}

progress{
    width: 100%;
    background-color: rgba(0,0,0,0);
    border: solid 1px #f6d262;
    padding: 3px;
    height: 25px;
    -webkit-appearance: none;
    appearance: none;
}

progress::-moz-progress-bar { 
    background: #f6d262; 
}

progress::-webkit-progress-value {
    background: #f6d262; 
}

progress[value]::-webkit-progress-bar {
    background-color: rgba(0,0,0,0);
}

/* Panneau description */ 
.panel{
    position: relative;
    display: none;
    padding: 30px;
    background-color: #f7f7f7;
    box-shadow: 3px 3px 5px 0px rgba(0,0,0,0.5);
    border-radius: 3px;
    position: absolute;
    max-width: 400px;
    top: 0;
    height: 100%;
    right: 0;
    animation: .5s ease-in-out swingViewport;
}
.active{
    right: 0;
    display: block;
}

#exit-panel{
    position: absolute;
    top: 5px;
    left: -51px;
    background-color: #0c0c0c;
    height: 100px;
    width: 50px;
    border: solid 1px #FFC300 ;
    display: flex;
    cursor: pointer;
}

#contain-exit-panel{
    color: #FFC300;
    margin-top: auto;
    margin-bottom: auto;
    text-align: center;
    width: 100%;
}

@keyframes swingViewport {
    from {
        transform: translateX(470px);
    }
    to {
        transform: translateX(calc(0px));
    }
}

/* Label des villes */
.select{
    font-weight: 500 !important;
    fill: white;
}

/* Path */
path{
    fill: rgba(0,0,0,0) !important;
    transition: transform .5s, fill .5s;
}

path:hover, path.active{
    transform: translateY(-1px);
    fill: rgba(255, 255, 255, 0.1) !important;
    filter: drop-shadow(5px 5px 3px rgb(255, 255, 255));
    stroke: rgb(255, 255, 255) !important;
    stroke-width: 3px !important;
}

/* Controls */
#controls{
    position: fixed;
    top: 0;
    right: 20px;
    width: 50px;
}

/* Compass */
#compass{
    position: fixed;
    bottom: 0px;
    right: 20px;
    width: 125px;    
}

/* Meters */
#meters{
    position: fixed;
    bottom: 50px;
    right: 190px;
    font-size: 20px;
    color: white;
}

#echelle{
    position: fixed;
    bottom: -79px;
    right: 135px;
    width: 125px;
}

/* Légende */
#legend{
    position: fixed;
    bottom: 40px;
    left: 40px;
    width: 16em;
}

#label-legend{
    text-decoration: underline;
    color: white;
    cursor: pointer;
    font-family: 'MinionPro-Regular';
    font-size: 20px;
    letter-spacing: 2px;
}

#panel-legend{
    padding: 25px;
    background-color: #f6f1cd;
    line-height: 24px;
    display: none;
}

#exit-legend{
    position: absolute;
    top: 5px;
    right: 7px;
    cursor: pointer;
}

.border_top{
    border: 1px solid black;
}

.border_bottom{
    margin-top: 1px;
    border: 2px solid black;
    margin-bottom: 15px;
}

.title_content_legend{
    font-family: 'BlackChancery';
    font-size: 24px;
    margin-bottom: -20px;
}

.content_legend{
    font-size: 19px;
    font-family: 'FootlightMTLight';
}

.country_legend{
    font-family: 'BlackChancery' !important;
}

.label-region, .label-frontiere-region{
    color: #365d4a;
}

/* Logo */
#logo-aquilon-world{
    position: fixed;
    top: 45px;
    left: 45px;
    width: 10%;
    height: 10%;
}
