:root{
    --bg-color:#2B2B2B;
    --font-color:#E0E0E0;
}
body {
    font-family: Arial, sans-serif;
    margin: 0 auto;
    padding: 1em;
    font-size: 1em;
    background-color: var(--bg-color);
    color:var(--font-color);
  }

  a{
    color: var(--font-color);
  }

  main{
    display: flex;
  }

  .col1{
    flex-grow:1;
  }

  .col2{
    flex-grow:2;
  }
  
  form {
    margin-bottom: 1em;
  }
  
  form input, form textarea, form button {
    display: block;
    margin-bottom: 0.5em;
    padding: 0.5em;
  }
  
  #linkList {

  }
  .link-item{
    margin-bottom: 20px;
  }

  .link-item > div{
    display: inline-block;
  }

.link-item .thumbnail{
    width:200px;
    height:200px;
}

.link-item .thumbnail img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link-item .content{
    width:70%;
}


  .link-item nav{
    display: flex;
    justify-content: space-between;
  }


  #pasteArea {
    border: 1px solid var(--font-color);
    padding: 1em;
    margin-bottom: 0.5em;
    min-height: 100px;
    background-color: var(--bg-color);
    overflow: auto;
    width: 80%;
  }
  #pasteArea img {
    max-width: 300px;
    max-height: 300px;
    object-fit: contain;
    display: block;
    margin-top: 10px;
  }
  #pasteArea[placeholder]:empty::before {
    content: attr(placeholder);
    color: var(--font-color);
  }
  
  #tagList {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .tag-item {
    padding: 5px 10px;
    border-radius: 20px;
    border:1px solid var(--font-color);
    font-size: 14px;
    cursor: pointer;
  }
  
  .tag-item:hover {
    background-color: var(--font-color);
    color:var(--bg-color);
  }
  
  .tag-item.active {
    background-color: var(--font-color); /* Couleur différente pour indiquer qu'il est activé */
    color:var(--bg-color);
  }

  .link-item button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    color:var(--font-color);
  }
  
  .favorite-icon {
    font-size: 20px;
  }
  
  .favorite-icon.active {
    color: white;
  }
  
  .column li img{
    min-width: 100px;
    max-width: 100px;
    height: 100px;
    object-fit: cover;
    margin-right: 10px;
  }

  .column li{
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    background-color: #333;
  }

  .column li span.empty{
    color: #666;
    min-width: 100px;
    max-width: 100px;
    height: 100px;
    line-height: 100px;
    text-align: center;
    margin-right: 10px;
    display: block;
    background: repeating-radial-gradient(circle at 100% center, currentcolor, currentcolor 1px, transparent 1px, transparent 6px);
  }

  .column li small{
    color: #999;  
  }

  .column{
    width: 50%;
  }

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

#container{
    display: flex;
    justify-content: space-between;
    gap:20px;
}

#global-tags span{
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    border:1px solid var(--font-color);
    font-size: 14px;
    cursor: pointer;
    margin-right:5px;
    margin-bottom: 5px;
}

#global-tags span:hover,.selected{
    background-color: var(--font-color);
    color:var(--bg-color);
}

#loader{
    background-color: var(--font-color);
    color:var(--bg-color);
    padding: 5px 10px;
    border-radius: 20px;
    opacity: 0;
    position: fixed;
    top: 10px;
    left:calc(100vw/2 - 50px);
    transition: all 0.5s;
}

#loader.active{
    opacity: 1;
}

/* responsive */
@media (max-width: 768px) {
    #container{
        flex-direction: column;
    }
    .column{
        width: 100%;
    }
    .link-item .thumbnail{
        width:100%;
        height:200px;
    }
    .link-item .content{
        width:100%;
    }
}

