/* @tailwind base; */
@tailwind components;
@tailwind utilities; 

.g5 dialog[open]::backdrop{
    background-color: rgba(97, 97, 97, 0.6);
}

.g5 label:has(input[type=checkbox]:checked) {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    border: 4px solid #17bc91;
    background: transparent;
    margin: 0px;
    transform: scale(0.9);
}


@keyframes slideaway {
    from { display: block; }
    to { transform: translateY(40px); opacity: 0;}
}
  


.g5-gallery dialog{
    animation: vanish 1s forwards;
    -webkit-animation: vanish 1s forwards;
}

.g5-gallery dialog:not([open]){
    animation: vanish 1s forwards;
    -webkit-animation: vanish 1s forwards;
}
.g5-gallery dialog[open]{
    animation: appear 1s forwards;
    -webkit-animation: appear 1s forwards;
}

#g5-dark-modal dialog[open]::backdrop{
    background-color: rgba(0, 0, 0, 0.9);
}

#g5-lightbox-modal dialog[open]::backdrop{
    background-color: rgb(240, 240, 240, 50%);
}

.g5-gallery dialog.hide{
    animation: vanish 1s forwards;
    -webkit-animation: vanish 1s forwards;
}

.g5-hide{
    animation: vanish 1s forwards;
    -webkit-animation: vanish 1s forwards;
}

.g5-aspect-custom-square{
    aspect-ratio: 1;
}


@keyframes appear {
    from{
        display:none;
        opacity: 0;
    }

    to{
        display:block;
        opacity: 1;
    }
}

@-webkit-keyframes appear {
    from{             
        display:none;              
        opacity: 0;
    }

    to{
        display:block;
        opacity: 1;
    }
}

@-webkit-keyframes vanish{
    from{
        display:block;
        opacity: 1;
    }
    to{
        display:none;              
        opacity: 0;
    }
}


@keyframes vanish{
    from{
        display:block;
        opacity: 1;
    }
    to{
        display:none;    
        opacity: 0;
    }
}

.g5-loader {
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 8px solid #514b82;
    animation:
      l20-1 0.8s infinite linear alternate,
      l20-2 1.6s infinite linear;
}
@keyframes l20-1{
    0%    {clip-path: polygon(50% 50%,0       0,  50%   0%,  50%    0%, 50%    0%, 50%    0%, 50%    0% )}
    12.5% {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100%   0%, 100%   0%, 100%   0% )}
    25%   {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100% 100%, 100% 100%, 100% 100% )}
    50%   {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100% 100%, 50%  100%, 0%   100% )}
    62.5% {clip-path: polygon(50% 50%,100%    0, 100%   0%,  100%   0%, 100% 100%, 50%  100%, 0%   100% )}
    75%   {clip-path: polygon(50% 50%,100% 100%, 100% 100%,  100% 100%, 100% 100%, 50%  100%, 0%   100% )}
    100%  {clip-path: polygon(50% 50%,50%  100%,  50% 100%,   50% 100%,  50% 100%, 50%  100%, 0%   100% )}
}
    @keyframes l20-2{ 
    0%    {transform:scaleY(1)  rotate(0deg)}
    49.99%{transform:scaleY(1)  rotate(135deg)}
    50%   {transform:scaleY(-1) rotate(0deg)}
    100%  {transform:scaleY(-1) rotate(-135deg)}
}

.g5-rotate-45{
    transform: rotate(45deg);
}
.g5-rotate-135{
    transform: rotate(135deg);
}
.g5-rotate-180{
    transform: rotate(180deg);
}

#g5-close-dialog{
    border: 2px solid #000000;
}

.g5-button{

    text-decoration: none;
    border: 1px solid black;
    padding: 12px 8px;
    font-size:18px;
    background: rgb(246, 255, 230);
    color: black;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    text-align: center;
    font-weight: 500;
    cursor: pointer;
}

.g5-button:hover{
    color: black !important;
}

.g5-card-backend{
    border: 2px solid transparent;
}


.g5-card-backend:hover{
    transform:scale(1.02);
    border: 1px solid rgb(95, 94, 94);
}

.g5-card-backend div {
    text-decoration: none;
    word-break: break-all;
}

.g5-image-injection iframe{
    width: 100%;
    aspect-ratio: 16/9;
    min-width: 80vw;
}

.inform-user-change{
    color: white !important;
    background-color:  rgb(165, 0, 0) !important;
    font-weight: bolder !important;
    /* background-cosasaclor: red; */
}
.g5-drag-drop-element:hover div{
    display: flex;
}