.Toaster_Control_Area{
    background-color: black;
    color: white;
    border: 2px solid lightgray;
    padding: 5px;
    font-family: sans-serif;
}

.Toaster_Control_Holder{
    margin-left: 10px;
    margin-right: 10px;
    border: 5px solid white;
    background-color: black
}

.Toaster_Control_Title{
    font-size: clamp(1.25rem, 2vw + 0.25rem, 1.75rem);  /* ~20px to 28px */
    font-family: 'Orbitron', sans-serif;

}

.locked{
    color: lightgray;
    background-color: gray;
    border: 2px solid lightgray;
    background-image: url("/MagictwinsWorld/files/img/lock.webp");
    background-size: 50px 50px;
    background-position: center;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 160px; /* Adjust overall size as you like */
    gap: 0;
}

.color-grid input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 40px;
    height: 40px;
    margin: 0;
    border: 3px solid #ccc;
    border-radius: 0; /* makes them squares, not circles */
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-grid input[type="radio"]:checked {
    border-color: darkred;
}




.TC_Grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    white-space: nowrap;
    width: 150px; /* Adjust overall size as you like */
    gap: 15px;
}


.TC_Grid_Extern{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    white-space: nowrap;
    gap: 15px;
}

.FaceMain_Control{
    color:white
}


.FaceGrid_Visual{
    background-color: black;
    border: 5px solid white;
}
.exportgrid{
    margin-top: -5px;
    margin-left: 5px;
    margin-bottom: 5px;
    width: 90%;
    max-width: 90%;
    box-sizing: border-box; /* prevents overflow from padding/border */
    height: 130px; /* or auto */
    resize: vertical; /* allow vertical resize only */
}


.FaceGrid_ExportArea{
    margin-right: 5px;
    padding-bottom: 5px;
}


/* === MAIN LAYOUT (CENTER EVERYTHING) === */
.FaceMain_Container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;             /* space between the two grids */
    height: 100vh;
    width: 100%;
}

/* === WRAPPER: ALLOWS ROTATION WITHOUT BREAKING SIZE === */
.FaceGrid_Wrapper {
    display: inline-block;
    transform-origin: center;
}

/* Opposite angles */
.rotate-left {
    transform: rotate(15deg);
}

.rotate-right {
    transform: rotate(-15deg);
}

/* === CONTAINER AROUND THE GRID === */
.FaceGrid_Container {
    background-color: lightgray;

    display: inline-flex;
    justify-content: center;
    align-items: center;

    padding: 10px;
}

/* === AUTO-SCALING === */
.FaceGrid_Container,
.FaceGrid_Holder {
    transform-origin: center;
}


/* === GRID ITSELF === */
.FaceGrid_Holder {
    display: grid;
    grid-template-columns: repeat(64, min(10px, 1vw)); /* auto-fit width */
    grid-auto-rows: min(10px, 1vw);                    /* auto-fit height */
    gap: 0;
}

/* === CHECKBOXES === */
.TC_FaceGrid {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: black;
}

.TC_FaceGrid:checked {
    background: white;
}
/* Make the entire grid scale to fit the screen */
@media screen and (max-width: 1500px) {
    .FaceMain_Container {
        transform: scale(0.8);
    }
}

@media screen and (max-width: 1155px) {
    .FaceMain_Container {
        transform: scale(0.7);
    }
}

@media screen and (max-width: 1000px) {
    .FaceMain_Container {
        transform: scale(0.65);
    }
}



.RowButton{
    min-width: 180px;
}





@media screen and (max-width: 768px) {
    .TC_Grid {
        grid-template-columns: repeat(2, 1fr);
        white-space: none;
    }
    .RowButton{
        min-width: 150px;
    }

}



.locked_button{
    background-color: gray !important;
    color: white  !important;
    border-color: lightgray  !important;
    cursor: not-allowed;
}
.locked_button:hover{
    background-color: gray  !important;
    color: white  !important;
    border-color: lightgray  !important;
}


.TC_Selection{
    width: 150px;
}

.TC_InputFiled{
    width: 145px;
}

.TC_ColorFild{
    width: 150px;
}

.TC_Range{
    width: 150px;
}


.Toaster_Control_Table{
    border: 5px solid white;
    padding: 10px;
}



th{
    font-weight: bold;
    background-color: aqua;
    color: black;
}

td,th{
    padding: 3px;
    padding-left: 5px;
    padding-bottom: 2px;
}

.TC_S_Notfound{
    color: gray;
    background-color: gray;
}


.Rotating_Mobile {
    display: none;
}

/* Show ONLY on mobile (max-width can be adjusted) */
@media screen and (max-width: 768px) {
    .Rotating_Mobile {
        display: block;
    }
}





.active:not(.locked_button){
    color:red !important;
}


.HideMobile{

}

@media screen and (max-width: 768px) {
    .HideMobile {
        display: none;
        color:red;
    }
}