@font-face {
	font-family: police;
	src: url('@police.ttf');
}

*{
    margin: 0px;
    max-width: 100%;
    transition: 0.2s;
    /* border-radius: 5px; */
    /* border : 1px solid rgb(255, 255, 255); */
}

/* ===== Scrollbar CSS ===== */
  /* Firefox */
  * {
    scrollbar-width: auto;
    scrollbar-color: #d1d1d1 #ffffff;
  }

  /* Chrome, Edge, and Safari */
  *::-webkit-scrollbar {
    width: 13px;
  }

  *::-webkit-scrollbar-thumb {
    background-color: #868686;
    border-radius: 10px;
    /* border: 3px solid #c49797; */
  }

html, body{
	font-family: police;
	background-color: rgb(43, 43, 43);
	color: white;
    font-size: medium;
}

h1, h2, h3 {
	margin: 0px;
	padding: 0px;
	font-weight: 400;
}

h1 {
    color: rgb(255, 238, 218);
}

h2 {
    color: rgb(255, 238, 218);
}


/*header*/
header{
    background-color: rgba(17, 17, 17, 0.84);
    position: sticky;
    top: 0px;
    padding: 1em;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    z-index: 10000;
}
header div{
    margin: 5px;
}
header #logo{
    width: 50px;
}
header .accountName{
    padding: 5px;
    font-size: 20px;
    font-weight: 500;
    border-radius: 5px;
    background-color: rgba(255, 242, 169, 0.137);
}
header .accountName:hover{
    background-color: rgba(250, 240, 186, 0.178);
}
header .accountNone{
    display : none;
    padding: 5px;
    font-size: 20px;
    font-weight: 500;
    border-radius: 5px;
    background-color: rgba(255, 242, 169, 0.137);
}
header .accountNone:hover{
    background-color: rgba(250, 240, 186, 0.178);
}
header div a{
    text-decoration: none;
    color: white;
    padding: 5px;
    font-size: 20px;
    font-weight: 500;
}
header div a:hover{
    color: bisque;
}
header div a:active{
    color: rgb(255, 147, 97);
}
header div .active {
    color: rgb(255, 147, 97);
}

.fullscreen{
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.5);
}

#main {
    margin-right: 1em;
    margin-left: 1em;
    margin-bottom: 20px;
}

#main img, #main video{
    border-radius: 5px;
}

table, th, td {
    border: none;
}

table {
    width: 100%;
    display: table;
    border-collapse: collapse;
    border-spacing: 0;
}
table.striped tr {
    border-bottom: none;
}
  
table.striped > tbody > tr:nth-child(odd) {
    background-color: rgba(153, 153, 153, 0.177);
}
  
table.striped > tbody > tr > td {
    border-radius: 0;
}

tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.205);
}

table tbody tr td {
    padding: 10px;
    text-align: center;
    font-size: 16px;
    border-radius: 2px;
}

select {
    background-color: rgba(255, 255, 255, 0.205);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px;
    font-size: 16px;
}
select:focus{
    color:black;
}

.grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    grid-gap: 1em;
    grid-auto-rows: minmax(100px, auto);
}

.datatable-pagination-list-item-link{
    color: rgb(255, 219, 203) !important;
}
.datatable-pagination-list-item-link:hover, .datatable-active .datatable-pagination-list-item-link{
    color: rgb(32, 31, 31) !important;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

label {
    font-size: 20px;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    box-sizing: border-box;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.205);
    color: white;
    font-size: 16px;
}
textarea {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    box-sizing: border-box;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.205);
    color: white;
    font-size: 16px;
}

.scrollable {
    /* afficher la barre de défilement uniquement au survol */
    overflow-y: auto;
    
    max-height: 200px;
}

.img-profile {
    width: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.205);
}

.img-small {
    width: 100px;
    border: 2px solid rgba(255, 255, 255, 0.205);
}

.img-medium {
    width: 200px;
    border: 2px solid rgba(255, 255, 255, 0.205);
}

.img-large {
    width: 300px;
    border: 2px solid rgba(255, 255, 255, 0.205);
}

.img-xlarge {
    width: 400px;
    border: 2px solid rgba(255, 255, 255, 0.205);
}

.video-small {
    width: 100px;
    border: 2px solid rgba(255, 255, 255, 0.205);
}

.video-medium {
    width: 200px;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.205);
}

.video-large {
    width: 300px;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.205);
}

.btn {
    background-color: rgba(255, 255, 255, 0.205);
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 5px;
    border: none;
    transition: 0.2s;
}

.btn:hover {
    background-color: rgba(255, 255, 255, 0.205);
    color: white;
}

.btn:active {
    background-color: rgba(255, 255, 255, 0.205);
    color: white;
}

.btn[disabled] {
    background-color: rgba(255, 255, 255, 0.205);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.205);
}

.btn-success {
    background-color: rgba(39, 255, 39, 0.205);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.205);
}

.btn-success:hover {
    background-color: rgba(39, 255, 39, 0.308);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.205);
}

.btn-primary {
    background-color: rgba(215, 255, 39, 0.205);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.205);
}

.btn-primary:hover {
    background-color: rgba(215, 255, 39, 0.308);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.205);
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-danger {
    background-color: rgba(255, 74, 74, 0.295);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.205);
}

.btn-danger:hover {
    background-color: rgba(255, 74, 74, 0.397);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.205);
}

.btn-danger:active {
    transform: scale(0.95);
}  

.nodispo{
    background-color: rgba(255, 74, 74, 0.295);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.205);
    padding: 10px 20px;
    text-align: center;
}
@media screen and (max-width: 500px){
    header{
        flex-direction: column;
        align-items: center;
    }    
    header div{
        margin: 2px;
    }
    header a:not(#aLogo) {
        padding: 10px;
    }
    header .accountName{
        display: none;
    }
    header .accountNone{
        display: initial;
    }
}

footer{
    display: flex;
    background-color: rgba(17, 17, 17, 0.726);
    position: fixed;
    width: fit-content;
    margin: auto;
    bottom: 0;
    padding: 5px;
    padding-right: 20px;
    align-items : center;
    text-align: center;
    margin-top: 30px;
    border-radius: 5px;
    z-index: 3;
}
footer img {
    width: 30px;
    margin-left: 10px;
}