/* flags styles */

.flags
{
    position: absolute;
    display: block;
    top: 20px;
    right: -300px;

    width: calc(220px - 20px);
    height: calc(100px - 20px);
    padding: 15px;
    padding-top: 15px;
    padding-bottom: 15px;
    background-color: var(--bg); 
    box-sizing: border-box;
    z-index: 99999999;

    opacity: 0;
    
}

.flags_inner
{
    position: relative;
    width: 100%;
    height: calc(100% - 4px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--red);
    border-radius: 10px;
    line-height: 20px;
    font-size: 20px;
    box-sizing: border-box; 

    opacity: 0;
}


.flags_inner b
{
    margin-bottom: -3px;
    word-spacing: 9999999px;   
}


.flags.greenflag .flags_inner
{
    background-color: var(--green);
}


.flags .border-gradient {
    width: calc(100% + 10px);
    height: calc(100% + 10px);
    top: -5px;
    border-radius: 5px;

    transition: none;
  }

  .flags .border-gradient.left {
    left: -6px;
    border-left-width: 4px;    
  }

  .flags .border-gradient.right {
    right: -6px;
    border-right-width: 4px;    
  }  

  .flags .border-gradient.left::before,
  .flags .border-gradient.left::after,
  .flags .border-gradient.right::before,
  .flags .border-gradient.right::after{
    height: 3px;
    border-radius: 5px;
  }

  .flags .border-gradient.left::before,
  .flags .border-gradient.left::after {
    left: -1px; 
  }



  .flags .border-gradient.right::before,
  .flags .border-gradient.right::after {
    right: -1px;
  }


  .flags  .border-gradient.left::before,
  .flags  .border-gradient.left::after,
  .flags  .border-gradient.right::before,
  .flags  .border-gradient.right::after{
    
    width: 25%;
  }    


/* GREEN FLAG */

.green_flag .flags_inner
{
    background-color: rgba(var(--flag_green),1);
}

  .flags.green_flag .border-gradient.left {
    border-left-color: rgba(var(--flag_green),1);
  
  }

  .flags.green_flag .border-gradient.right {
    border-right-color: rgba(var(--flag_green),1);;
  }  

  .flags.green_flag .border-gradient.left::before,
  .flags.green_flag .border-gradient.left::after {
    left: 0px; 
    background: linear-gradient(90deg, rgba(var(--flag_green),1), rgba(var(--flag_green),0));
  }



  .flags.green_flag .border-gradient.right::before,
  .flags.green_flag .border-gradient.right::after {
    right: 0px;
    background: linear-gradient(270deg, rgba(var(--flag_green),1), rgba(var(--flag_green),0));
  }




  /* YELLOW FLAG */

.yellow_flag .flags_inner
{
    background-color: rgba(var(--flag_yellow),1);
}

.yellow_flag .flags_inner b
{
    color: black;
}

  .flags.yellow_flag .border-gradient.left {
    border-left-color: rgba(var(--flag_yellow),1);
  
  }

  .flags.yellow_flag .border-gradient.right {
    border-right-color: rgba(var(--flag_yellow),1);;
  }  

  .flags.yellow_flag .border-gradient.left::before,
  .flags.yellow_flag .border-gradient.left::after {
    left: 0px; 
    background: linear-gradient(90deg, rgba(var(--flag_yellow),1), rgba(var(--flag_yellow),0));
  }



  .flags.yellow_flag .border-gradient.right::before,
  .flags.yellow_flag .border-gradient.right::after {
    right: 0px;
    background: linear-gradient(270deg, rgba(var(--flag_yellow),1), rgba(var(--flag_yellow),0));
  }
