.sub-units-chosable-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 200px;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.main-data-wrap {
    padding-bottom: 75px;
}

table td {
    text-wrap: wrap;
    word-break: break-all;
}

.tools-calc-btn {
    width: 65px;
    background-color: #001a2b;
    color: #9caeb8;
    height: auto;
    font-size: 0.8em;
    padding: 5px;
    border-radius: 15px;
    word-break: break-word;
    overflow-wrap: break-word;
    overflow-y: hidden;
    cursor: pointer;
}

.result-calculation-container-lngth {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    justify-content: center;
    justify-items: center;
    padding-bottom: 75px;
}

.lres-from-res {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 320px;
    gap: 3px;
    justify-content: center;
    justify-items: center;
    padding: 3px;
    margin: 3px;
    box-shadow: 2px 2px 4px 2px rgba(135, 206, 250, 0.829);
    background: linear-gradient(35deg, rgb(30, 58, 30), black);
    border-radius: 8px;
}

.res-lngth-table-from,
.res-lngth-table-to {
    border-collapse: collapse;
    /* remove double borders */
    width: 150px;
    /* table width */
    table-layout: fixed;
}

.res-lngth-table-to caption {
    padding: 5px;
    background: linear-gradient(155deg, black, red);
    color: #dbe0ab;
}

.res-lngth-table-to th {
    border: 1px solid grey;
    background: linear-gradient(35deg, rgb(78, 78, 78), black);
    text-align: center;
    color: #9caeb8;
    font-weight: normal;
    font-size: 0.8em;
    overflow: hidden;
    /* hide overflow text */


}

.res-lngth-table-to td {
    font-size: 0.8em;
    text-align: center;
    color: #22dd22;
    font-weight: normal;
    background-color: #130909;
}

.res-lngth-table-from th {
    font-size: 0.8em;
    text-align: center;
    color: #b5d4d8;
    font-weight: normal;
    background-color: #0e1309;
    overflow: hidden;
    /* hide overflow text */

}

.res-lngth-table-from td {
    font-size: 0.8em;
    text-align: center;
    color: #b5d4d8;
    font-weight: normal;
    background-color: #130909;
}

.res-lngth-table-from caption {
    padding: 5px;
    background: linear-gradient(35deg, red, black);
    color: #dbe0ab;
}

.to-calculate-lengths {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    width: 300px;
    justify-content: center;
    justify-items: center;
    gap: 5px;
}

.tools-go-red {
    width: 65px;
    background-color: #660000;
    color: #faeaa5;
    height: auto;
    font-size: 0.8em;
    padding: 5px;
    border-radius: 15px;
    word-break: break-word;
    overflow-wrap: break-word;
    overflow-y: hidden;
    cursor: pointer;
}

.tools-go-green {
    width: 100px;
    background-color: #0e3614;
    color: #9caeb8;
    height: 25px;
    font-size: 0.8em;
    padding: 5px;
    border-radius: 15px;
    word-break: break-word;
    overflow-wrap: break-word;
    overflow-y: hidden;
    cursor: pointer;
    margin-top: 12px;
}

.from-units {
    max-width: 250px;
    height: fit-content;
    background: linear-gradient(35deg, red, black);
    padding: 7px;
    border-radius: 8px;
    padding: 5px;
    margin: 5px;
    display: flex;
    flex-wrap: wrap;
    /* allow items to go to next row */
    justify-content: center;

}

.units {
    max-width: 250px;
    background: linear-gradient(35deg, rgb(61, 94, 18), black);
    padding: 7px;
    border-radius: 8px;
    padding: 5px;
    margin: 5px;
    display: flex;
    flex-wrap: wrap;
    /* allow items to go to next row */
    justify-content: center;
}

.grid-columns-2 {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    justify-content: center;
    justify-items: center;
    gap: 5px;
    background-color: black;
    border: solid 1px rgb(109, 109, 109);
    border-radius: 5px;
    max-width: 100%;
    padding-bottom: 7px;
    padding-top: 7px;
}

.operational-container-lengths {
    font-size: 1em;
}

.length-coverter-machine {
    background: linear-gradient(35deg, rgb(61, 94, 18), black);
    padding: 7px;
    border-radius: 8px;
    padding: 5px;
    margin: 5px;
    display: flex;
    flex-wrap: wrap;
    /* allow items to go to next row */
    justify-content: center;
}

.length-coverter-machine input {
    width: 75px;
    background-color: #001a2b;
    color: #9caeb8;
    border: #660000 1px solid;
    border-radius: 5px;
}

.length-coverter-machine select {
    width: 75px;
    background-color: #001a2b;
    color: #9caeb8;
    border: #660000 1px solid;
    border-radius: 5px;
}

.local-chosing-to-uni-lngtht {
    max-width: 170px;
    min-width: 135px;
    background-color: #050708;
    border: #0e3614 1px solid;
    border-radius: 7px;
    padding-bottom: 15px;
    margin: 3px;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    align-items: center;
    justify-items: center;
}

.local-chosing-from-unit-lngth {
    max-width: 170px;
    margin: 3px;
    background-color: #050708;
    border: #0e3614 1px solid;
    border-radius: 7px;
    padding-bottom: 20px;
}

.empty-alert-lngths {
    width: 250px;
    background-color: black;
    padding: 7px;
    border-radius: 8px;
    border: 1px red solid;
    position: fixed;
    z-index: +1;
}

.choose-units-container {
    background-color: black;
    border: solid 1px red;
    border-radius: 5px;
    margin: 3px;
}

.nodata-lngths {
    width: 25px;
    /* spinner size */
    height: 25x;
    border: 5px solid #f3f3f3;
    /* light gray background */
    border-top: 5px solid #3498db;
    /* color of the spinning part */
    border-radius: 50%;
    /* make it circular */
    animation: spin-lngths 3s linear infinite;
    /* infinite rotation */
    margin: 20px center;
    /* center if needed */
}

@keyframes spin-lngths {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}