@font-face {
    font-family: aller;
    src: url(aller.ttf);
}

html {
    scroll-behavior: smooth;
}

:root{
    --pink: #FF6EAB;
    --pink-darker: #FF3F8C; 
    --bg-black: #171A1C;
    --black: #22282A;
    --gray: #454F54;
    --gray-lighter: #5E676B;
    --white: #FFF;
}

/* Pour Firefox */
::-moz-selection {
    color: var(--bg-black);
    background: var(--pink);
}

/* Pour les autres Navigateurs */
::selection {
    color: var(--bg-black);
    background: var(--pink) !important;
}

p, h4, h3{
    margin: 0;
}

b{
    color: var(--pink);
}

a:link, a:visited{
    color: var(--pink);
}

a:hover{
    color: var(--pink-darker);
}

button{
    background: none;
    border: none;
    outline: none;
    display: flex;
    padding: 0;
}

.button_hover{
    background-color: var(--pink) !important;
    transition-duration: .3s;
}

body{
    color: var(--white);
    display: flex;
    flex-direction: column;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    min-height: 100vh;
    background-color: var(--bg-black);
    color: var(--white);
    font-family: aller;
}

header{
    display: flex;
    position: fixed;
    font-family: aller;
    width: 100%;
    height: 8vh;
    justify-content: space-evenly;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(3.9px);
    -webkit-backdrop-filter: blur(3.9px);
    border-bottom: 2px solid var(--black);
}

header a{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 5px;
}

header a div{
    display: flex;
    justify-content: center;
    align-items: center;
}

.icons{
    display: flex;
    justify-content: center;
    align-items: center;
}

header span{
    display: block;
    margin-top: 3px;
    background-color: rgba(0, 0, 0, 0);
    height: 3px;
    width: 10%;
    border-radius: 100px;
    transition: ease;
    transition-duration: 0.3s;
}

header a:hover span{
    background-color: var(--pink);
    transition-duration: 0.3s;
    width: 100%;
}

header span#active-link{
    background-color: var(--pink-darker);
    width: 100%;
}

header a:link,header a:visited{
    color: var(--white);
    text-decoration: none;
}

main{
    display: flex;
    text-align: justify;
    background-color: var(--black);
    border-radius: 20px;
}

main#main_home{
    flex-direction: column;
}

main#main_home div.osu_explanation{
    background-color: var(--gray);
    margin: 25px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 10px var(--bg-black);
}

main#main_home div.osu_explanation img{
    display: flex;
    margin: 20px auto;
    height: 250px;
    aspect-ratio: 16/9;
    border-radius: 20px;
    box-shadow: 0 4px 10px var(--bg-black);
}

main#main_home div.osu_explanation h1{
    margin: 1rem 10px;
}

main#main_home div.osu_explanation p{
    margin: 20px 30px;
    font-size: medium;
}

#listing_body_page{
    display: flex;
    justify-content: space-between;
}

main#main_listing{
    justify-content: space-around;
    flex-wrap: wrap;
    height: 100%;
    row-gap: 30px;
    padding: 30px 0;
}

article#map_article{
    display: flex;
    width: 400px;
    background-color: var(--gray);
    border-radius: 20px;
    flex-direction: column;
    box-shadow: 0 4px 10px var(--bg-black);
}

article#map_article div.article_img{
    width: 100%;
    height: 100px;
    background-position: center;
    background-size: 100%;
    background-repeat: no-repeat;
    border-radius: 20px 20px 0 0;
    transition-duration: .5s;
}

article#map_article:hover div.article_img{
    background-size: 110%;
    transition-duration: .5s;
}

article#map_article div.article_content{
    margin: 10px;
    justify-content: space-between;
}

article#map_article div.article_content div.content_header{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

article#map_article div.article_content div.content_header #map_name{
    display: flex;
    flex-wrap: wrap;
}

article#map_article div.article_content div.content_header button{
    border-radius: 100px;
    display: flex;
}

article#map_article div.article_content div.content_header img{
    padding: 5px;
}

article#map_article div.article_content div.content_header #header_buttons{
    display: flex;
    justify-content: space-between;
    width: 75px;
}

article#map_article div.article_content div.content_header a{
    display: flex;
    border-radius: 100px;
}

article#map_article div.article_content div.content_header a img{
    height: 30px;
    aspect-ratio: 1;
    padding: 2px;
    border-radius: 100px;
}

div.content_stats{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.stat{
    display: flex;
    align-items: center;
    margin: 5px 5px 5px 0;
}

.stat img{
    margin-right: 3px;
}

.spacer{
    margin: 0 5px;
    color: var(--pink);
}

.stat_label{
    display: flex;
    width: clamp(0px, 100px, 100px);
}

img#star{
    filter: invert(8%) sepia(92%) saturate(7467%) hue-rotate(18deg) brightness(123%) contrast(133%);
}

img#heart{
    filter: invert(100%) sepia(88%) saturate(7447%) hue-rotate(1deg) brightness(97%) contrast(113%);
}

article#map_article div.article_content div.content_footer{
    display: flex;
    align-items: center;
    justify-content: end;
}

.search_pannel{
    display: none;
    width: 35vw;
    height: 100%;
    background-color: var(--black);
    margin: 16vh 0 8vh 20px;
    border-radius: 20px 0 0 20px;
}

.search_pannel #mapper_name{
    color: white;
}

.search_pannel .search_pannel_banner{
    width: 100%;
    height: 100px;
    border-top-left-radius: 20px;
    background-color: var(--pink);
    display: flex;
    justify-content: space-between;
    background-position: center;
    background-size: cover;
}

.search_pannel .search_pannel_banner h3{
    display: flex;
    margin: auto 20px;
    padding: 10px 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 90%;
    background-color: var(--gray);
    border-radius: 100px;
    font-size: large;
}

.search_pannel .search_pannel_banner div{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
}

.search_pannel .search_pannel_banner div button{
    display: flex;
    border-radius: 100px;
    padding: 5px;
    height: 40px;
    margin: 5px;
}

.search_pannel .search_pannel_banner div p#map_id{
    color: var(--pink);
    margin: 7px;
}

.search_pannel .search_pannel_banner img{
    width: 30px;
    height: 30px;
}

#article_map_header{
    display: flex;
    justify-content: space-between;
}


#search_pannel_body{
    display: flex;
    flex-direction: column;
    min-height: 100px;
    margin: 10px;
}

#search_pannel_body #back_button{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    padding: 3px;
    aspect-ratio: 1;
    border-radius: 100px;
}

#search_pannel_body #back_button img{
    width: 100%;
    aspect-ratio: 1;
}

.search_pannel_article{
    display: flex;
    flex-direction: column;
    width: 90%;
    margin: 10px auto;
    padding: 15px;
    background-color: var(--gray);
    border-radius: 20px;
    box-shadow: 0 4px 10px var(--bg-black);
}

.search_pannel_article h4.infos_title{
    margin: 3px 0;
}

.search_pannel_article .stat img{
    margin-left: 5px;
}

.info_container{
    display: flex;
    flex-wrap: wrap;
    margin: 10px 0 15px 0;
    background-color: var(--gray-lighter);
    padding: 10px;
    border-radius: 10px;
}

.info_container .stat{
    margin-left: 20px;
}

#map_music{
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 10px;
}

.article_title{
    display: flex;
    justify-content: space-between;
}

.article_title div{
    display: flex;
    align-items: center;
}

.article_title #mapper_id{
    color: #AAAEB1;
}

.article_title img#profile_pic{
    height: 75px;
    border-radius: 10px;
    aspect-ratio: 1;
    margin-right: 10px;
    box-shadow: 0 1px 5px var(--black);
}

.article_title div#name_container{
    display: flex;
    flex-direction: column;
}

.article_title img#flag{
    height: 25px;
    margin: 5px;
    aspect-ratio: 4/3;
    border-radius: 5px;
}

#main_research form{
    display: flex;
    width: 100%;
    margin: 5vh;
}

#main_research form button, form input{
    display: flex;
    font-family: aller;
    font-size: medium;
    appearance: none;
    border: none;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

#main_research form input{
    width: 100%;
    background-color: var(--gray);
    color: #fff;
}

#main_research form button{
    color: var(--black);
    font-size: large;
    z-index: 10;
}

#main_research form button img{
    filter: invert(14%) sepia(10%) saturate(628%) hue-rotate(149deg) brightness(89%) contrast(92%);
}

#main_research form button{
    background-color: rgba(255, 110, 171, 1);
}

#main_research form button:hover{
    cursor: pointer;
}

#main_research form button#l_button{
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

#main_research form button#r_button{
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

#main_research_reponse{
    flex-direction: column;
}

#research_header{
    margin: 20px;
}

#research_header #links{
    display: flex;
    margin-bottom: 10px;
}

#research_body{
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    row-gap: 40px;
    justify-content: space-around;
    margin: 40px 0;
}

#main_admin {
    flex-direction: column;
}

#main_admin form div{
    display: flex;
    align-items: center;
    margin: 5px;
}

#main_admin form .update_label{
    width: clamp(0px, 120px, 150px);
}

#main_admin form .label_spacer{
    margin: 0 5px;
}

#main_admin form input{
    border-radius: 5px;
    padding: 2px;
    width: 60%;
    background-color: var(--gray);
    color: white;
}

#main_admin form #button{
    width: 100%;
    border-radius: 100px;
    height: 30px;
    margin: 20px 0;
}

#country_cell{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#DynamicFlag{
    width: 30px;
    aspect-ratio: 4/3;
    border-radius: 5px;
}

#main_admin #admin_body, #main_admin_table #admin_body{
    margin: 20px;
}

#main_admin h4, #main_admin_table h4{
    margin: 5px 0;
}

#main_admin_table #links{
    display: flex;
    position: fixed;
}   

#main_admin_table{
    flex-direction: column;
    overflow-x: scroll;
    margin: 0;
    margin-bottom: 100px;
    padding-bottom: 30px;
    width: 100%;
    border-radius: 0;
}

#main_admin_table td{
    font-size: small;
}

#main_admin_table .background_img_cell{
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    text-shadow: var(--bg-black) 1px 1px 1px;
    min-width: 100px;
}

#main_admin_table h2{
    margin-top: 30px;
}

#main_admin_table table{
    margin: 20px;
    border-collapse: collapse;
}

#main_admin_table table a{
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    padding: 5px 7px;
    color: var(--white);
    text-decoration: none;
}

#main_admin_table table a img{
    height: 100%;
}

#main_admin_table table img.flags{
    height: 30px;
    margin: 5px 7px;
    border-radius: 5px;
}

#main_admin_table thead tr{
    border-bottom: 3px solid var(--pink);
    border-collapse: collapse;
    border-radius: 20px 20px 0 0;
}

#main_admin_table tr{
    border-bottom: 1px solid var(--pink);
    border-collapse: collapse;
    transition-duration: .2s;
}

#main_admin_table thead {
    background-color: rgba(255, 63, 140, 0.15);
}

#main_admin_table tbody tr:hover{
    background-color: rgba(255, 0, 102, 0.15);
    transition-duration: .2s;
}

#main_admin_table td{
    padding: 5px;
    border-collapse: collapse;
}

#main_admin_table td:nth-child(even) {
    background-color: rgba(255, 63, 140, 0.15);
}

#main_admin_table tr:nth-child(even) {
    background-color: rgba(255, 63, 140, 0.05);
}

#main_admin_table thead td:nth-child(even) {
    background-color: rgba(255, 63, 140, 0.2);
}

#main_admin_table #music_text{
    font-size: x-small;
}


footer{
    display: flex;
    margin-top: auto;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 5vh;
    background-color: var(--black);
}

#footer_container{
    display: flex;
    width: 95%;
    justify-content: space-between;
}

/* Computer */
@media screen and (min-width: 577px){

    .button_hover:hover{
        background-color: var(--pink-darker) !important;
        transition-duration: .3s;
        cursor: pointer;
    }
    
    header .header_img{
        position: absolute;
        top: 5px;
        width: 100px;
        aspect-ratio: 1;
        transition: ease;
        transition-duration: 0.3s;
    }

    header a#header_logo{
        width: 100px;
    }

    header a#header_logo div{
        width: 100px;
    }

    header #header_img_small{
        display: none;
    }

    header #header_img_big{
        visibility: visible;
        position: absolute;
    }

    header .header_img:hover{
        scale: 110%;
        transition-duration: 0.2s;
    }

    header img.icons{
        display: none;
    }

    main{
        display: flex;
        margin: 0 auto;
        margin-top: 16vh;
        margin-bottom: 8vh;
        width: 1000px;
    }

    .search_pannel{
        min-width: 500px;
    }

    #main_research{
        border-radius: 20px;
    }

}


/* Phone */
@media screen and (max-width: 576px){
    header a#header_logo{
        order: 1;
    }

    header img.header_img{
        height: 7vh;
        aspect-ratio: 1;
    }

    header #header_img_small{
        visibility: visible;
    }
    
    header #header_img_big{
        display: none;
    }

    header div p{
        display: none;
    }

    main{
        margin: 0 auto;
        margin-top: 12vh;
        margin-bottom: 6vh;
    }
    
    main#main_home div.osu_explanation img{
        height: 100%;
        width: 90%;
        aspect-ratio: 16/9;
    }
    
    main#main_listing article{
        margin: 0 10px;
    }
    
    main#main_listing article div.article_img{
        background-size: cover;
    }
    
    main#main_listing article:hover div.article_img{
        background-size: 100%;
    }
    
    .stat .stat_label, .stat .stat_label_spacer{
        display: none;
    }

    form input{
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
    }

    form button#l_button:hover{
        background-color: var(--pink-darker);
    }

    form button#r_button.button_hover{
        display: none;
    }
}


@media screen and (max-width: 1000px){
    main{
        width: 100%;
        border-radius: 0px !important;
    }

    #main_listing{
        margin: 16vh 0 8vh 0;
    }

    #main_research{
        border-radius: 0px;
    }

    .search_pannel{
        position: fixed;
        width: 100%;
        height: 80vh;
        bottom: 0;
        margin: 0;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -4px 10px var(--bg-black);
    }

    .search_pannel .search_pannel_banner{
        border-radius: 20px 20px 0 0;
        background-position: top;
    }

    #search_pannel_body{
        overflow-y: scroll;
        height: 60vh;
    }

    #back_button{
        display: none !important;
    }
}