.controlFrame {
    position: absolute;

    top: 0;
    left: 0;

    width: 100svw;
    height: 100svh;

    padding: 75px;
    box-sizing: border-box;

    z-index: 300;
    pointer-events: none;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
}

.control_message {
    position: relative;

    height: 65px;

    padding: 15px 25px;
    box-sizing: border-box;

    background-color: rgba(50,50,50,0.75);
    backdrop-filter: blur(10px);
    border-radius: 5px;

    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    gap: 10px;

    overflow: hidden;
}

.control_message.visible {
    display: flex;
}

.control_message.error {
    background-color: rgba(255,0,0,0.25);
}

.control_message.success {
    background-color: rgba(0,180,0,0.4);
}

.control_timeout {
    position: absolute;
    bottom: 0px;
    left: 0px;

    width: 100%;
    height: 2px;

    background-color: rgba(255,255,255,0.25);

    display: none;
}

.control_timeout.visible {
    display: flex;
}

.control_timeout_progress {
    position: relative;

    width: 0%;
    height: 100%;

    background-color: rgba(255,255,255,0.4);
}

.ctrl_icon {
    position: relative;

    width: 35px;
    height: 35px;

    fill: rgb(255,255,255);

    display: none;
}

.ctrl_icon.error {
    fill: rgb(255,0,0);
}

.ctrl_icon.success {
    fill: rgb(0, 180, 0);
}

.ctrl_icon.visible {
    display: flex;
}

.ctrl_message{
    position: relative;

    font-family: "Gabarito";
    font-weight: 400;
    font-size: 20px;
    color: rgb(255,255,255);
}



.loadInd {
    position: relative;

    width: 35px;
    height: 35px;

    border: 3px solid rgba(255,255,255,0.5);
    border-radius: 50%;
    box-sizing: border-box;

    display: none;
}

.loadInd.visible {
    display: flex;
}

.loadInd_spinner {
    position: absolute;

    top: -3px;
    left: -3px;

    width: 35px;
    height: 35px;

    border: 3px solid rgb(255,255,255);
    border-radius: 50%;
    box-sizing: border-box;

    -webkit-mask-image: conic-gradient(#000 var(--progress), transparent var(--progress));
    mask-image: conic-gradient(#000 var(--progress), transparent var(--progress));

    animation:
        loadInd_spinner 1.5s linear infinite,
        loadInd_spinner2 3s ease-in-out infinite;
}

@property --progress {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}

@keyframes loadInd_spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes loadInd_spinner2 {
    0% {
        --progress: 40%;
    }
    33% {
        --progress: 25%;
    }
    66% {
        --progress: 75%;
    }
    100% {
        --progress: 40%;
    }
}


















.fullscreen {
    position: absolute;
    top: 0;
    left: 0;

    width: 100svw;
    height: 100svh;

    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.fullscreen.visible {
    display: flex;
}











/* -- FS -- BLANK ---------------------------------------------------------------------------------------------- */

.blank {
    position: absolute;
    top: 0px;
    left: 0px;

    width: 100%;
    height: 100%;

    background-color: rgb(0,0,0);
}










/* -- FS -- TEST SCREEN ---------------------------------------------------------------------------------------------- */

.test_label {
    position: relative;

    font-family: "Gabarito";
    font-weight: 900;
    font-size: 80px;
    color: rgb(255,255,255);
}

.test_techLabel {
    position: relative;

    margin-top: 10px;

    font-family: "Gabarito";
    font-weight: 400;
    font-size: 20px;
    color: rgba(255,255,255, 0.5);
}


.test_grid {
    position: absolute;
    top: 0;
    left: 0;
    
    width: 100%;
    height: 100%;
  
    background-image: 
        linear-gradient(to right, rgb(25, 25, 25) 2px, transparent 2px),
        linear-gradient(to bottom, rgb(25, 25, 25) 2px, transparent 2px);
    background-size: 50px 50px;

    border: 5px solid rgb(255, 255, 255);
    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;
}

.test_circle {
    position: relative;

    height: 100%;
    aspect-ratio: 1/1;

    border: 2px solid rgb(40,40,40);
    border-radius: 50%;
    box-sizing: border-box;
}

.test_swipe_hort {
    position: absolute;

    top: 0%;
    left: -50%;

    width: 50%;
    height: 100%;
    background: linear-gradient(-90deg, rgba(255, 255, 255, 0.5), rgba(0, 0, 0, 0));

    animation: test_swipe_hort 10s linear infinite;
}

@keyframes test_swipe_hort {
    0% {
        left: -50%;
    }
    50% {
        left: 150%;
    }
    100% {
        left: 150%;
    }
}

.test_swipe_vert {
    position: absolute;

    top: -50%;
    left: 0%;

    width: 100%;
    height: 50%;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0.5), rgba(0, 0, 0, 0));

    animation: test_swipe_vert 10s linear infinite;
}

@keyframes test_swipe_vert {
    0% {
        top: -50%;
    }
    50% {
        top: -50%;
    }
    100% {
        top: 150%;
    }
}








/* -- FS -- MEMORY ---------------------------------------------------------------------------------------------- */

.memoryFrame {
    position: absolute;
    top: 0px;
    left: 0px;

    width: 100%;
    height: 100%;

    background-color: rgb(9, 1, 1);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.memoryBoard {
    position: relative;

    padding: 50px;
    box-sizing: border-box;

    background-color: rgba(82, 14, 14, 0.279);
    border-radius: 20px;

    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.memRow {
    position: relative;

    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: start;
}

.memCard {
    position: relative;

    width: 250px;
    height: 250px;
    perspective: 1000px;

    border-radius: 10px;

    transition: opacity 1s linear;

    display: flex;
    align-items: center;
    justify-content: center;
}

.memCard.flipped .card {
    transform: rotateX(180deg);
}

.memCard.correct {
    opacity: 0.5;
}

.memCard.correct .card {
    outline: 5px solid rgba(0, 255, 115, 0.772);
    border-radius: 10px;
}

.memCard.probe .card .back .mC_backIMG {
    display: none;
}

.memCard .card .back .mC_backIMG_probe {
    display: none;
}

.memCard.probe .card .back .mC_backIMG_probe {
    display: block;
}

.mC_id {
    position: relative;

    padding: 5px 10px;
    box-sizing: border-box;

    background-color: rgb(255,255,255);
    border-radius: 5px;

    font-family: "Gabarito";
    font-weight: 900;
    font-size: 40px;
    color: rgb(0,0,0);
}


.card {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 1s;
  transform-style: preserve-3d;
}

.front, .back {
  position: absolute;
  width: 100%;
  height: 100%;

  backface-visibility: hidden;
  border-radius: 10px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.front {
  background-image: url("/assets/png/PlayingCard.png");
}

.back {
  background-color: rgb(255,255,255);
  transform: rotateX(180deg);

  overflow: hidden;
}

.card.correct .back {
    opacity: 0.25;
}

.mC_backIMG,
.mC_backIMG_probe {
    position: relative;

    width: 100%;
    height: auto;
    
    display: block;
}



.logoFrame {
    position: absolute;

    top: 0px;
    left: 0px;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.logoFrame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}