/*
 * core-utils.css — utilitários de layout do core 36.1.3, extraídos do bundle
 * (bloco que começa em `:root { --active-color… }`). O `:root` foi retirado:
 * a cor de acento do MM59 vem do ui.css do jogo (#ff8904).
 *
 * Carregado antes de ui.css/game.css para que os overrides do porte vençam.
 */

[hidden] {
    display: none !important;
}

.m-2 {
    margin: 2px;
}

.mt-2 {
    margin-top: 2px;
}

.mr-2 {
    margin-right: 2px;
}

.ml-2 {
    margin-left: 2px;
}

.mb-2 {
    margin-bottom: 2px;
}

.mt-4 {
    margin-top: 4px;
}

.mr-4 {
    margin-right: 4px;
}

.ml-4 {
    margin-left: 4px;
}

.mb-4 {
    margin-bottom: 4px;
}

.m-8 {
    margin: 8px;
}

.mt-8 {
    margin-top: 8px;
}

.mr-8 {
    margin-right: 8px;
}

.ml-8 {
    margin-left: 8px;
}

.mb-8 {
    margin-bottom: 8px;
}

.mr-10 {
    margin-right: 10px;
}

.ml-10 {
    margin-left: 10px;
}

.m-16 {
    margin: 16px;
}

.mt-16 {
    margin-top: 16px;
}

.ml-16 {
    margin-left: 16px;
}

.mr-16 {
    margin-right: 16px;
}

.mb-16 {
    margin-bottom: 16px;
}

.m-0 {
    margin: 0 auto;
}

.p-1 {
    padding: 1px;
}

.flex {
    display: flex;
}

.flex-row {
    flex-direction: row;
}

.flex-column {
    flex-direction: column;
}

.flex-1 {
    flex: 1;
}

.flex-3 {
    flex: 3;
}

.flex-15 {
    flex: 15;
}

.flex-70 {
    flex: 70;
}

.align-center {
    align-self: center;
}

.align-items-center {
    align-items: center;
}

.text-align-center {
    text-align: center;
}

.br-8 {
    border-radius: 8px;
}

.br-8-l {
    border-radius: 8px 0 0 8px;
}

.br-8-r {
    border-radius: 0 8px 8px 0;
}

.br-16-l {
    border-radius: 16px 0 0 16px;
}

.br-16-r {
    border-radius: 0 16px 16px 0;
}

.jc-center {
    justify-content: center;
}

.js-flex-end {
    justify-content: flex-end;
}

.jc-space-between {
    justify-content: space-between;
}

.w-100 {
    width: 100%;
}

.w-70 {
    width: 70%;
}

.w-15 {
    width: 15%;
}

.tc-white {
    color: white;
}

.tc-black {
    color: black;
}

.tc-active {
    color: var(--active-color);
}

.bg-color {
    background-color: var(--inactive-color);
}

.bg-color-active {
    background-color: var(--active-color);
}

.bg-transparent {
    background: transparent;
}

.border-none {
    border: none;
}

.button:hover:enabled {
    cursor: pointer;
}

.bold {
    font-weight: bold;
}

.text-align-end {
    text-align: end;
}

.text-align-left {
    text-align: left;
}

.opaque-text {
    opacity: 0.44;
}

.jc-content-end {
    justify-content: end;
}

.align-items-start {
    align-items: flex-start;
}

.p-16 {
    padding: 16px;
}

.p-8 {
    padding: 8px;
}

.pt-8 {
    padding-top: 8px;
}

.mb-12 {
    margin-bottom: 12px;
}

.mb-32 {
    margin-bottom: 32px;
}

/* Slider */
.slidecontainer {
    width: 100%; /* Width of the outside container */
}

.slider {
    -webkit-appearance: none;
    width: 100%;
    border-radius: 5px;
    background: linear-gradient(to right, var(--active-color) 0%, var(--active-color) 50%, #fff 50%, #fff 100%);
    height: 5px;
    opacity: 0.7;
    -webkit-transition: 0.2s;
    transition: opacity 0.2s;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--active-color);
    cursor: pointer;
}

.slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--active-color);
    cursor: pointer;
}

@media (min-width: 640px) and (min-height: 960px) {
    .slider {
        min-width: unset;
    }
}

/* Slider Ends */

/* Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

input:checked + .switch-slider {
    background-color: var(--active-color);
}

input:focus + .switch-slider {
    box-shadow: 0 0 1px var(--active-color);
}

input:checked + .switch-slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.switch-slider.round {
    border-radius: 34px;
}

.switch-slider.round:before {
    border-radius: 50%;
}

/* Switch ends */

/* Checkbox */

.checkbox {
    height: 20px;
    width: 20px;
}

/* Checkbox ends */

.nowrap {
    white-space: nowrap;
}
