@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&family=Orbitron:wght@400;700&display=swap");

/**************
 *   GLOBAL   *
 **************/

:root {
    --desc-color: grey;
    --title-color: black;
    --imp-color: red;
    --imp-color-hover: darkred;
    --certfr-color: #1d3d57;
}

html, body {
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    font-size:0.8em;
}

h1, h2 {
    color: #333;
    font-family: 'Orbitron';
    font-size: 1em;
}

p {
    margin-bottom: 0;
}

.logo{
    height:2.3rem;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    background: #fff;
    margin: 10px 0;
    padding: 2px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.nocolor , .nocolor:hover{
    color: var(--title-color);
}

.description, .description:hover {
    color: var(--desc-color);
}

a {
    color: #007BFF;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

.container-fluid {
    height: calc(100% - 2rem); 
}

.container-main {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    height: calc(100% - 7rem); 
}

.container {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}


/*********************
 *   BLOC ARTICLES   *
 *********************/

.scrollable-section {
    overflow-y: auto;
    height: 0;
}

.flex-grow-1 {
    flex-grow: 1;
}

.subcategory-block {
    border: 1px solid #dee2e6;
    padding: 10px;
    margin-bottom: 20px;
    flex: 0 0 200px;
    box-sizing: border-box;
}

.attaquant {
    color: var(--imp-color);
}

.attaquant:hover {
    color: var(--imp-color-hover);
}

.cert-fr-title, .cert-fr-title:hover {
    font-weight: bold;
    color: var(--certfr-color);
}

.cisa-title {
    font-weight: bold;
}


/**************
 *   NAVBAR   *
 **************/

.nav-item {
    margin: 0 20px;
}


/*********************
 *   NOTIFICATIONS   *
 *********************/

 #notification-banner {
    width: 50%;
    text-align: center;
    margin: auto;
}

.notification-button {
    background-color: var(--imp-color);
    width: 0.5rem !important;
    height: 0.5rem !important;
    border: none !important;
    border-radius: 50%;
}


/***************
 *   FAVORIS   *
 ***************/

.icon {
    max-height: 1.2rem;
}

.icon-favorite-slash {
    filter: invert(24%) sepia(94%) saturate(4537%) brightness(80%);
}
.icon-container:hover .icon-favorite-slash {
    filter: invert(24%) sepia(94%) saturate(4537%);
}

.empty-bookmark {
    color: #007bff;
}

.fa-bell-slash, .fa-trash {
    filter: invert(50%);
}
.icon-container:hover .fa-bell-slash, .icon-container:hover .fa-trash{
    filter: invert(50%) sepia(100%) saturate(500%) hue-rotate(180deg);
}

.rtl-dropdown {
    direction: rtl;
}

.custom-select-container {
    margin-left: auto;
    width: auto;
}

.select-selected {
    position: absolute;
    background-color: white;
    border: 1px solid #007bff;
    border-radius: .2rem;
    width: auto;
    z-index: 99;
    display: flex;
    flex-direction: row-reverse;
    padding: 10px;
    cursor: pointer;
}

.select-items {
    position: absolute;
    background-color: white;
    border: 1px solid #007bff;
    border-radius: .2rem;
    width: auto;
    z-index: 99;
    display: none;
    flex-direction: row-reverse;
}

.select-items div {
    padding: 10px;
    cursor: pointer;
    text-align: right;
}

.select-items div:hover {
    background-color: #e1e1e1;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}

.align-items-center {
    align-items: center;
}

.active {
    border-width: 0.2rem;
    border-color: rgb(255, 255, 255);
}

/******************
*   Theme toggle  *
******************/

/* The switch - the box around the slider */
.switch {
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 3.5em;
    height: 2em;
  }
  
  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #555;
    transition: .4s;
    border-radius: 30px;
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 1.4em;
    width: 1.4em;
    border-radius: 20px;
    left: 0.3em;
    bottom: 0.3em;
    background-color: #555;
    box-shadow: inset 2px -2px 0 1.8px #fff;
    transition: .4s;
    animation: anima1 0.3s linear;
  }
  
  @keyframes anima1 {
    0% {
      transform: translateX(1.5em);
    }
  
    80% {
      transform: translateX(-0.3em);
    }
  
    100% {
      transform: translateX(0em);
    }
  }
  
  .switch input:checked + .slider:before {
    background-color: rgb(255, 255, 255);
    box-shadow: none;
    transform: translateX(1.5em);
    animation: anima 0.3s linear;
 
  }
  
  @keyframes anima {
    0% {
      transform: translateX(0px)
    }
  
    80% {
      transform: translateX(1.6em)
    }
  
    100% {
      transform: translateX(1.4em)
    }
  }