/* html {
        scroll-behavior: smooth;
} */

test *
{
        transition: all 100ms ease-in;
}


test a {
        color: black;
        padding: 12px;
        /* background: rgb(223, 223, 223); */
        /* border-radius: 10px; */
        /* margin: 2px; */
        border-right: 2px solid rgba(201, 201, 201, 0.15);
        min-width: 40px;
        /* max-width: 40px; */
        display: flex;
        justify-content: center;
        text-decoration: none;
}

status {
line-height: 1vh;
/* display: flex; */
display: none !important;
border-radius: 1vh 1vh 0 0;
border-bottom: 0.1vh solid rgba(125, 125, 125, 0.15);
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
padding: 3vh 0;}

status wrong,
status right,
status time {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-right: 1vh;
        border-right: 0.1vh solid rgb(232, 232, 232);
        padding: 0.5vh 0;
}

status wrong::after,
status right::after,
status time::after
        {
                content: attr(value);
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 0.5vh 1vh;

}

status time {
        display: flex;
        justify-content: center;
        align-items: center;
}




[hide] {
        /* display: none; */
        opacity: 0%;
  transition: opacity 1s;
        visibility: hidden;
        /* z-index: 9999; */
}

test * {
        box-sizing: border-box;

        -webkit-user-select: none;
        /* Safari */
        -ms-user-select: none;
        /* IE 10 and IE 11 */
        user-select: none;
        /* Standard syntax */
        cursor: default;

}

test {
        font-family: "narrow";
}

/* test
        container
                labels
                asks
                answers */

/* test:text                 */
test[data-test="text"] container,
test[data-test="image"] container
{
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5vh;
        background: none !important;
}

test[data-test="text"] labels,
test[data-test="text"] asks,
test[data-test="text"] answers
{
        display: grid;
        gap: 5pt;
}

test[data-test="image"] labels,
test[data-test="image"] asks,
test[data-test="image"] answers
{
        display: grid;
        gap: 1.5vh;
}

test[data-test="text"] label,
test[data-test="text"] ask,
test[data-test="text"] answer
{
        border: 0.2vh dotted white;
        display: flex;
        justify-items: center;
        align-self: center;
        width: -webkit-fit-content;
        height: -webkit-fit-content;
        min-width: 100px;
        min-height: 47px;
        justify-self: center;
        justify-content: center;
        align-items: center;
        line-height: 1;
}

test[data-test="image"] label,
test[data-test="image"] ask,
test[data-test="image"] answer
{
        /* border: 0.2vh dotted white; */
        display: flex;
        justify-items: center;
        align-self: center;
        width: -webkit-fit-content;
        height: -webkit-fit-content;
        min-width: 100px;
        min-height: 100px;
        justify-self: center;
        justify-content: center;
        align-items: center;
}

label,
ask,
answer
{
        font-size: 3vh
}

ask 
{
        background-color: none;
        border: 0.2vh dotted #a6a6a658 !important;
        padding: 0px 1vh;
        border-radius: 1vh;
}

answer 
{
padding: 0px 1vh;
border-radius: 1vh;
}

[data-over] 
{
        background-color: #dad9d9 !important;
        border: none;
        box-shadow: none;
        transition: all 250ms ease-in;
        min-width: 90px;
        
}

[data-right]
{
        /* border: 5px solid limegreen;
        border: 0.2vh dotted white;
        box-shadow: 0.015625px 0.020843505859375px 11px limegreen,0.015625px 0.020843505859375px 12px limegreen,0.015625px 0.020843505859375px 12px limegreen,0.015625px 0.020843505859375px 12px limegreen,0.015625px 0.020843505859375px 12px limegreen,0.015625px 0.020843505859375px 12px limegreen,0.015625px 0.020843505859375px 12px limegreen ,0.015625px 0.020843505859375px 12px limegreen inset,0.015625px 0.020843505859375px 12px limegreen inset,0.015625px 0.020843505859375px 39px limegreen inset,0.015625px 0.020843505859375px 32px limegreen inset,0.015625px 0.020843505859375px 22px limegreen inset;
        border-radius: 25px; */
}

[data-wrong] 
{
        /* border: 4px solid orangered;
        border: 0.2vh dotted white;
        box-shadow: 0.015625px 0.020843505859375px 12px orangered,0.015625px 0.020843505859375px 12px orangered,0.015625px 0.020843505859375px 12px orangered,0.015625px 0.020843505859375px 12px orangered,0.015625px 0.020843505859375px 12px orangered,0.015625px 0.020843505859375px 12px orangered inset,0.015625px 0.020843505859375px 12px orangered inset,0.015625px 0.020843505859375px 42px orangered inset ,0.015625px 0.020843505859375px 37px orangered inset,0.015625px 0.020843505859375px 33px orangered inset,0.015625px 0.020843505859375px 26px orangered;
        border-radius: 25px; */
}

[data-empty] 
{
        border: 2px dotted #a6a6a658;
        box-shadow: none;
        /* border-radius: 25px; */
}


[draggable] 
{
        user-select: none;
}


status errors::before 
{
        content: attr(label);
}

status time::before 
{
        content: attr(label);
}

status reload::before
{
        content: "↺";
        font-size: 27px;
        border-radius: 50vh;
        padding: 0.6vh 0.5vh 1vh 0.6vh;
        top: 0px;
        position: relative;
        font-weight: 200;
        font-size: 150%;
        color: white;
        background: rgb(255, 161, 8);
        line-height: 1.5vh;
        /* margin-left: 10px; */
        display: block;
}


test_list
{
        display: none;
}

status time::before
{
border-radius: 5vh;
content: "◷";
top: -0.3vh;
position: relative;
font-weight: 200;
font-size: 155%;
}

status wrong::before {
        background: red;
        border-radius: 5vh;
        /* width: 1px; */
        /* height: 1px; */
        padding: 1vh;
        content: " ";
}

status right::before {
        background: green;
        border-radius: 5vh;
        /* width: 1px; */
        /* height: 1px; */
        padding: 1vh;
        content: " ";
}




/* test {
        display: flex;
        overflow: auto;
        flex: none;
        flex-flow: column nowrap;
}

 test {
        font-family: "Benton Sans", "Helvetica Neue", helvetica, arial, sans-serif;
        text-align: center;
        flex: none;
        overflow: hidden;
} */

[data-drag]
{
       background-color: rgba(129, 129, 129, 0.494) !important;
       /* transition: all 250ms ease-in; */
}




status [time_is_up]
{
        border-radius: 1.5vh;
        background: color(display-p3 0.9216 0.3333 0.1569);
        padding: 0.5vh 1vh;
        color: white;
        padding-right: 0px;
        color: white;
}

[exam] ask
{
        background-color: white !important;
}




meta[data-type="image"],
meta[data-type="image"]
{
	background: var(--url);
	display: flex;
        width: 100px;
        height: 100px;
        background-repeat: no-repeat;
        background-position: center;
       background-size: contain;
}

main:not([language="egypet"]) meta[data-value]
{
display: block;
text-shadow: 1.3px 1.3px 0px white;
font-size: 90%;
min-width: 78px;
justify-content: center;
display: flex;
line-height: 34pt;
}

meta[data-value]
{
display: block;
text-shadow: 1.3px 1.3px 0px white;
font-size: 90%;
min-width: 78px;
justify-content: center;
display: flex;
}



answer meta[data-value]::before,
ask meta[data-value]::before
{
        content: attr(data-value);
        width: initial;
        height: initial;
        line-height: 25px;
            text-align: center;
}

[data-test="image"] container ask,
[data-test="image"] container answer,
[data-test="image"] container label
{
        padding: 0;
        max-height: 100px;
        min-height: 100px;
}


[data-test="image"] container
{
        grid-template-columns: 50% 100px 100px;
}

[data-test="sentence"] container
{
        display: flex;
        flex-direction: row;
        width: 100%;
        flex-wrap: wrap;
}

[data-test="image"] container labels,
[data-test="image"] container asks,
[data-test="image"] container answers
{
        display: flex;
        flex-direction: column;
        width: 100%;
}

[data-test="image"] container meta
{
        border-radius: 10px;
        background-color: gainsboro;
        padding: 5px 10px;
}

/*  test: square */

test[data-test="square"]
{
        display: flex;
justify-content: center;
}

test[data-test="square"] container
{
        display: grid;
        grid: auto / repeat(8, 1fr);
        gap: 10px;
        width: 100%;
        min-width: 320px;
        max-width: 720px;
        /* background-color: var(--h14-background-color); */
        border-radius: 25px;
        justify-content: center;
        align-items: center;
        padding: 10px;
}

[data-test="square"] meta
    {
    /* aspect-ratio: 1/1; */
    justify-content: center;
align-items: center;
  font-size: 30px;
  text-align: center;
  grid-column: span 2;
  /* grid-column: span 8; */
  /* background: orange; */
  display: flex;
  border-radius: 10px;

  display: flex;
  background-color: var(--test-square-element-background)
  /* background-color: rgba(16, 79, 147, 0.2); */


    }

[data-test="square"] meta[img]
    {
        background: var(--url);
        
        background-size: cover;
}
    


[data-test="square"]    [data-selected]::after
    {
        transition: 0.2s;
        box-shadow: 0 0 14px 0 orange,
0 0 10px 0px orange,0 0 5px 0 orange !important;
    }

[data-test="square"] meta[data-right]::after
    {
        transition: 0.2s;
        box-shadow: 0 0 3px 10px hsla(123.11, 100%, 41.25%, 0.74),
0 0 3px 15px hsla(130.57, 100%, 39.25%, 0.46) !important;
    }

 

[data-test="square"] meta[data-wrong]::after
    {
        transition: 0.2s;
        box-shadow: 0.015625px 0.020843505859375px 12px orangered,0.015625px 0.020843505859375px 12px orangered,0.015625px 0.020843505859375px 12px orangered,0.015625px 0.020843505859375px 12px orangered,0.015625px 0.020843505859375px 12px orangered,0.015625px 0.020843505859375px 12px orangered inset,0.015625px 0.020843505859375px 12px orangered inset,0.015625px 0.020843505859375px 42px orangered inset ,0.015625px 0.020843505859375px 37px orangered inset,0.015625px 0.020843505859375px 33px orangered inset,0.015625px 0.020843505859375px 26px orangered !important;
    }

    *
    {
        box-sizing: border-box;
    }

[data-test="square"] meta[data-ask]::after
{
        content: attr(data-value);
        color: black;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 5px 26px;
        text-decoration: none;
        pointer-events: none;
        cursor: grab;
        /* background-color: rgba(16, 79, 147, 0.29);
        line-height: 7vh;
        border-radius: 20px; */
}

[data-test="square"] meta[data-answer]::after
{
        content: attr(data-value);
        color: black;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 5px 26px;
        text-decoration: none;
        pointer-events: none;
        cursor: grab;
        /* background-color: rgba(16, 79, 147, 0.29);
        line-height: 7vh;
        border-radius: 20px; */
}

[data-test="square"] meta[data-ask]
{

}

[data-test="square"] meta[data-answer]
{

}

[data-test="square"] [data-complete]::after
{
    background-color: rgba(252, 252, 252, 0) !important;
    color: rgba(129, 129, 129, 0.69)  !important;
}


[data-test="square"] container
{
        /* border: 9px solid rgba(166, 188, 218, 0.39); */
}

[data-test="square"]  meta
{
        /* transition: all 150ms ease;; */
}

[data-test="square"]  meta[selected]:not(meta[data-image])
{
        background:orange;
}

[data-test="square"]  meta[selected][data-image]:not(meta[complete][data-image])
{
        border:orange 4px solid;
}

[data-test="square"] meta:not([selected]):hover:not([right],[wrong],[complete],[data-image])
{
        background: orange;
}

[data-test="square"] meta[data-image]:not([selected],[complete]):hover
{
        border:orange 4px solid;
}

[data-test="square"] [data-ask]:not([selected],[complete]):not(:hover)
{
        background-color: rgba(33, 85, 134, 0.28) ;
}


[data-test="square"] [data-answer]:not([selected],[complete]):not(:hover)
{
        background-color: rgba(33, 85, 134, 0.1) ;
}


/* meta[selected]:has( + *:not([selected]):hover)
{
                background: orange;
}  */

[data-test="square"]  meta[right]:not([data-image])
{
        background: rgba(110, 254, 0, 0.836);;
}

[data-test="square"]  meta[data-image][right]
{
        border: 4px solid rgba(110, 254, 0, 0.836);;
}

[data-test="square"]  meta[wrong]:not([data-image])
{
        background: red;
}

[data-test="square"]  meta[data-image][wrong]
{
        border: 4px solid red;
}

[data-test="square"]  meta[complete]:not(meta[data-image])
{
        background-color: rgba(255, 255, 255, 0);
        /* background-color: rgba(255, 255, 255, 0); */
        opacity: 0;
        visibility: hidden;
}

[data-test="square"]  meta[complete][data-image]
{
        filter: grayscale();
        background: var(--url), rgba(210, 210, 210, 0.48);
background-size: cover;
background-blend-mode: color;
}

[data-test="square"]  meta[complete]::after
{
        /* color: gray !important; */
        color: rgba(210, 210, 210, 0.0) !important;
        opacity: 0;
}

[data-test="square"] [data-image] 
{
background: var(--url);
background-size: cover;
}


/* memory */
[data-test="memory"]
{
        display: flex;
justify-content: center;
}
      
[data-test="memory"] container
      {
        /* display: grid;
      grid: auto / repeat(8, 1fr);
      gap: 5px;
      width: 100%;
      min-width: 320px;
      max-width: 720px; */
      display: grid;
grid: auto / repeat(8, 1fr);
gap: 10px;
width: 100%;
min-width: 320px;
max-width: 720px;
/* background-color: var(--h14-background-color); */
border-radius: 25px;
justify-content: center;
align-items: center;
padding: 10px;
border: 9px solid rgba(166, 188, 218, 0.39);
      }
      
      
      [data-test="memory"] [no-event]
      {
        pointer-events: none;
      }
      
      
      [data-test="memory"]  meta
      {
      aspect-ratio: 2/1;
      justify-content: center;
      align-items: center;
      font-size: 30px;
      text-align: center;
      grid-column: span 2;
      border-radius: 10px;
      display: flex;
      perspective: 700px;
      }
      
      
      [data-test="memory"] meta[flipped], 
      [data-test="memory"] meta[has-match]
       {
        pointer-events: none;
      }
      
      [data-test="memory"] meta[flipped]::before, 
      [data-test="memory"] meta[has-match]::before
      {
        transform: rotateY(180deg);
      }
      
      
      [data-test="memory"] meta[flipped]::after, 
      [data-test="memory"] meta[has-match]::after
      {
        transform: rotateY(360deg);
      }
      
      [data-test="memory"]  meta::before,
      [data-test="memory"]  meta::after
       {
        content: "?";
        font-size: 100%;
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        left: 0;
        background: rgba(16, 79, 147, 0.2);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        -webkit-backface-visibility: hidden;
                backface-visibility: hidden;
        transition: transform 400ms;
      }
      
      
      [data-test="memory"]  meta::before
      {
      
        z-index: 1;
      }
      
      
      [data-test="memory"]  meta::after {
        transform: rotateY(180deg);
        font-size: 100%;

      }

      [data-test="memory"] meta:not([data-image])::after {

      background: rgba(184, 201, 226, 0.1);
        border: 2px solid --color-yellow;
      }
      
      
      [data-test="memory"]  meta[data-value]::after {
      content: attr(data-value);
      }
      
      [data-test="memory"]  meta[data-image]::after 
      {
        content: " ";
      background-image:  var(--url);
      background-size: contain;
      
      }


      /* ++++++++ */

      [data-test="words"]  labels,
      [data-test="audition"]  labels
      {
        display: flex;
        justify-content: center;
        width: 90%;
      }


      [data-test="words"]  labels::before,
      [data-test="audition"]  labels::before  
      {
content: attr(data-value);
font-family: "narrow";
font-weight: 600;
font-size: 22pt;
      }

      [data-test="audition"]  labels::before 
      {
        filter: blur(7px);
      }

      [data-test="words"] asks,
      [data-test="audition"] asks
      {
        display: flex;
        width: 90%;
        justify-content: center;

        min-height: 60px;
        padding: 10px;

        background-image: linear-gradient(to right, black 33%, rgba(255,255,255,0) 0%);
background-position: bottom;
background-size: 4px 1px;
background-repeat: repeat-x;

      }

      [data-test="words"] answers,
      [data-test="audition"] answers
      {
        display: flex;
        justify-content: center;
        width: 90%;
        padding: 10px;
      }

      [data-test="words"] answer, 
      [data-test="words"] ask,
      [data-test="audition"] answer, 
      [data-test="audition"] ask
      {
        display: flex;
        min-width: 70px;
        min-height: 50px;
        background-color: rgb(245, 245, 245);;
        border-radius: 10px;
        /* padding: 27px 35px; */
        margin: 5px;
        border: none !important;
        
      }

      

      [data-test="words"] answer meta::before,
      [data-test="audition"] answer meta::before
      {
        justify-content: center;
        display: flex;
        content: attr(data-value);
        min-width: 70px;
        background-color: rgb(245, 245, 245);
        border-radius: 10px;
        padding: 0 5px;
        /* min-height: 60px; */
      }

      [data-test="words"] answer,
      [data-test="audition"] answer
      {
        min-width: 70px;
        background-color: rgb(245, 245, 245);
        border-radius: 10px;
        padding: 0;
        min-height: 50px;
      }

      [data-test="words"] ask,
      [data-test="audition"] ask
      {
        padding: 0;
      }
        

      
      [data-wrong]
{
        box-shadow: none;
        background-color: red;
 
}

[data-right]
{
        box-shadow: none;
        background-color: limegreen;
 
}

[data-wrong] meta::before
      {
        box-shadow: none;
        background-color: none;
        /* background-color: red; */

      }

[data-right] meta::before
{
box-shadow: none;
background-color: none;
/* background-color: limegreen; */

}

main:not([language="egypet"]) [data-wrong] meta::before,
main:not([language="egypet"]) [data-right] meta::before
{
        color: white;
        text-shadow: 1.5px 1.5px 1px black !important;
}

play
{
background-image: url(audition.svg);
width: 46px;
height: 46px;
background-repeat: no-repeat;
}


test
{
        display: block;
}

[data-test="selection"] asks word[data-type="word"]::before
{
        content: attr(data-value);
}

[data-test="selection"]  asks > *
{
        margin: 5px;
        text-shadow: 1.3px 1.3px 0px white;
        font-size: 90%;
        /* min-width: 78px; */
        justify-content: center;
        align-items: center;
        display: flex;
        /* line-height: 34pt; */
}


[data-test="selection"] asks,
[data-test="selection"] answers
{
        display: flex;
        justify-content: center;

}

[data-test="selection"] *
{font-size: 22pt !important;}

[data-test="selection"] [data-placeholder]::placeholder
{
        content: attr(data-placeholder);
        color: lightgray;
}


[data-test="selection"] answer meta
{
        border-radius: 15px;
        /* border: 0.2vh dotted #a6a6a658 !important; */
        /* background: rgb(242, 242, 242); */
}

[data-test="selection"] asks
{
        border-bottom: 1px solid lightgray;
}

[data-test="selection"] asks,
[data-test="selection"] answers
{
        padding: 10px;
}

[data-test="selection"] answer
{
        margin: 5px;
}

/* Убедитесь, что complete элементы скрыты */
[data-test="square"] meta[complete] {
    opacity: 0 !important;
    pointer-events: none !important; /* Не даем кликать */
}

/* Для image элементов - делаем прозрачными */
[data-test="square"] meta[complete][data-image] {
    opacity: 0 !important;
    filter: grayscale(100%);
    background-blend-mode: color;
}


[complete] {
    opacity: 0 !important;
    display: block !important; /* meta по умолчанию display: none */
    background: red !important;
    color: green !important;
    visibility: hidden !important;
}