@import "~bootstrap/scss/bootstrap";
html {
  height: 100%;
}

body {
    background-color: #1c87c9;
    font-family: Palatino Linotype;
    min-height: 100%;
    height: 100%;
    min-width: 100%;
    width: 100%;
}

p{
    word-wrap: break-word;
    display: inline;
    margin-block-end: 0;
}

.container-fluid {
    background-color: #1c87c9;
    min-height: 100%;
}

:root {
    --link-color: #ecf0f1;
    --link-active-color: #f1c40f;
}

nav {
    position: fixed;
    top:0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 10px 10px;
    backdrop-filter: blur(8px);
    background-color: rgba(119, 119, 119, 0.8);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

nav ul {
    list-style: none;
    padding-left: 0;
    margin: 0 0 0 0;
}

a {
    color: rgb(49, 96, 184);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

nav ul li {
    display: inline-block;
    text-align: left;
        margin-right: 20px;
}

nav a {
    display: block;
    padding: 0 16px;
    transition: color 0.2s;
    color: var(--link-color);
    font-size: 18px;
    line-height: 2;
    color:white;
    text-decoration: none;
}

nav ul ul li a {
    color: var(--link-color);
}
nav ul ul li a:focus,
nav ul ul li a:active {
    color: var(--link-active-color);
}
nav a:hover,
nav a:focus,
nav a:active,
nav a:focus:hover,
nav a:active:hover {
    color: var(--link-active-color);
}

nav ul ul {
    display: none;
    position: absolute;
    background: #929495;
    padding: 8px 0 8px 0;
    box-shadow: rgba(0, 0, 0, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
}
nav ul ul li {
    display: list-item;
    position: relative;
}

nav ul li:focus > ul,
nav ul li:active > ul {
    display: inherit;
}

nav a:focus + ul,
nav a:active + ul {
    display: inherit;
}

.site {
    background-color: #1c87c9;
    font-family: Palatino Linotype;
}

.admin {
    background-color: #1c87c9;
    font-family: Palatino Linotype;
    height: 100%;
    min-height: 100%;
}

#content{
    padding-top:70px;
    padding-bottom: 50px;
    padding-left: 40px;
    padding-right: 40px;
}

a:hover{
    text-decoration: underline;
}

.series{
    color: antiquewhite;
    text-shadow: 3px 3px 8px black;
}

.R_color{
    color:#800000;
}

.NS_color, .Q_color, .NP_color, .W_color{
    color: #808080;
}

.flag {
    width: 25px;
    height: 17px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
    margin-bottom: 2px;
    border: 1px solid #000000;
}
.event_flag {
    width: 60px;
    height: 40px;
    display: inline-block;
    vertical-align: middle;
    border: 1px solid #000000;
}


.description_btn{
    background-color: rgb(159, 151, 151);
    width:80%;
    margin:auto;
    margin-top: 20px;
    color: white;
    font-weight: bold;
    padding:2px;
    padding-left: 10px;
    border:1px solid black;
}
.description_btn:hover{
    text-decoration: underline;
    cursor: pointer;
}

.description{
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    max-height: 0;
    background-color: white;
    width:80%;
    margin:auto;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 16px;
    border-width: 1px;
    border-style: solid;
    border-image: initial;
    border-color: rgb(28, 135, 201);
}

.title{
    margin-left:25px;
    width:95%;
    border-bottom:1px solid #4d4c4c;

    .title_text{
        font-size:25px;
        font-weight:bold;
    }
}

.content{
    margin-left:25px;
    width:95%;
    margin-top:10px;
}

.event_desc{
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    max-height: 0;
}
.titre_event_desc:hover{
    text-decoration: underline;
    cursor: pointer;
}

.course_desc{
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    max-height: 0;
}
.titre_course_desc:hover{
    text-decoration: underline;
    cursor: pointer;
}

.resultats{
    background-color: beige;
    border: 1px solid black;
    border-collapse: collapse;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;

    th {
        background-color: #e6e6e6;
        border: 1px solid #808080;
        border-color: #1c87c9;
        padding-top: 2px;
        padding-bottom: 2px;
        padding-left: 10px;
        padding-right: 10px;
        font-size: 16px;
    }

    .abandon{
        background-color: rgb(232, 232, 209);
    }
    .non_partant{
        background-color: rgb(219, 219, 197);
    }

    tr{
        background-color: beige;
    }

    /* tr:hover{
         filter: brightness(97%);
         td {
         filter: brightness(97%);
         }
         th {
         filter: brightness(97%);
         }
    } */

    td {
        border: 1px solid #808080;
        border-color: #1c87c9;
        padding-top: 2px;
        padding-bottom: 2px;
        padding-left: 10px;
        padding-right: 10px;
        font-size: 15px;
    }

    .resultats_annee{
        background-color: #a6cbf0;
        height: 25px;

        a {
            color:black;
            font-weight: bold;
            font-size: 18px;
        }
    }
}

.button_encours {
    background-color: #1e06a1;
    color: white;
    cursor: default;
    border: none;
    border-radius: 10px;
    padding: 10px 12px;
    height: 40px;
    width: 130px;
    font-size: 14px;
    font-weight: bold;
}

.button{
    background-color: white;
    color: #1e06a1;
    border: none;
    border-radius: 10px;
    padding: 10px 12px;
    height: 40px;
    width: 130px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.resultats_header{
    border: 1px solid black;
    background-color: #e6e6e6;
    border-collapse: collapse;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    font-size: 17px;

    td {
        border: 1px solid #808080;
        border-color: #1c87c9;
        padding-top: 10px;
        padding-bottom: 10px;
        padding-left: 10px;
        padding-right: 10px;
        font-size: 17px;
    }
}

.resultats_footer{
    background-color: #e6e6e6;
    border: 1px solid black;
    border-collapse: collapse;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    padding-bottom: 20px;

    td
    {
        border: 1px solid #808080;
        border-color: #1c87c9;
        padding-top: 5px;
        padding-bottom: 5px;
        padding-left: 20px;
        padding-right: 20px;
        font-size: 16px;
    }
}

.new{
    color:wheat;
    text-decoration: none;
}

#liste_lettres{

    font-size: 33px;

    a {
        color:rgb(13, 20, 49);
        text-decoration: none;
        display: inline-block;
        padding: 5px;
    }

    a:hover{
        text-decoration: underline;
    }
}

#rider{
    margin-top: 15px;
    border: 1px solid black;
    background-color: #fbfbfb;
    padding:15px;
}

.lien_pilote{
    text-decoration: none;
    color:#000000;
}

.lien_stats{
    text-decoration: underline;
    font-weight: bold;
    color:#2239ce;
}

.lien_pilote:hover{
    text-decoration: underline;
}

.stats{
    border: 1px solid black;
    background-color: #e6e6e6;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 17px;

    th {
        border: 1px solid #000000;
        padding: 2px;
        width: 70px;
        text-align: center;
    }

    td {
        border: 1px solid #000000;
        padding: 1px;
        text-align: center;
    }

    .stats_results{
        background-color: #fcfcf3;
    }
    
    .stats_annee{
        background-color: #a6cbf0;
        font-size: 20px;
    }
}

.block_circuit{
    display: inline-block;
    width: 33%;
}

#circuits{
    margin-top: 15px;
    border: 1px solid black;
    background-color: #fbfbfb;
    padding:15px;
}

#courses_circuit{
    border: 1px solid black;
    margin-left:20px;
    width: 95%;

    tr{
        border: 1px solid black;
    }
    td{
        border: 1px solid black;
        padding-left: 15px;
    }
}

#form_stats{

    select {
        display: inline-block;
        width: 70%;
        margin-left: 10px;
    }
}

.resultat_victoire{
    background-color: #e2d073;
    font-weight: bold;
}
.resultat_2eme{
    background-color: #d4d2d2;
    font-weight: bold;
}
.resultat_3eme{
    background-color: #e2c6a5;
    font-weight: bold;
}
.resultat_nonFinisseur{
    background-color: rgb(244, 242, 238);
    font-style: italic;
}
.resultat_finisseur{
    font-weight: bold;
}
.resultat_absent{
    background-color: #ffffff;
}