﻿@import "./vars.scss";

em {
    font-style: italic;
}

.columns {
    display: flex;
    flex-direction: row;
    // flex-wrap: wrap;
    // gap: 10px;
}

.button {
    padding: 5px 15px;
    border-radius: 5px;
    background-color: $button-bg;
    cursor: pointer;
    transition: background-color 0.1s;
    flex-wrap: wrap;
    flex-shrink: 0;

    &:hover {
        background-color: darken($button-bg, 10%);
        sound-in: "ui.button.over";
    }
    
    &:active {
        background-color: darken($button-bg, 20%);
        sound-in: "button-click";
    }

    &.fullwidth {
        width: 100%;
    }

    h1, h2, h3, h4, h5, h6 {
        width: 100%;
        font-weight: 800;
    }
}

.table {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-shrink: 1;
    width: 100%;

    color: #fff;
    // border: 1px solid red;

    thead {
        display: flex;
        flex-direction: row;
        width: 100%;

        tr {
            display: flex;
            flex-direction: row;
            width: 100%;

            background-color: rgba(255, 224, 0, 0.1);

            th {
                display: flex;
                flex-direction: row;
                flex-grow: 1;
                flex-shrink: 1;
                flex-basis: 0;

                font-weight: 800;
                text-align: left;
                padding: 10px;
                // border: 1px solid red;
            }
        }
    }

    tbody {
        display: flex;
        flex-direction: column;
        width: 100%;

        tr {
            display: flex;
            flex-direction: row;
            width: 100%;

            &:nth-child(even) {
                background-color: rgba(255, 224, 0, 0.03);
            }

            td {
                display: flex;
                flex-direction: row;
                flex-grow: 1;
                flex-shrink: 1;
                flex-basis: 0;
                align-items: center;

                padding: 5px;
                // border: 1px solid red;
            }
        }
    }
}

ul.list {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-shrink: 1;
    width: 100%;
}

.small {
    font-size: 20px;
}

.slider-container {
    
    .slider-bar {
        width: 100%;
        height: 35px;
        background-color: $field-bg;
        border-radius: 5px;
        overflow: hidden;
        cursor: pointer;
        
        &:hover {
            .fill {
                background-color: darken($button-bg, 10%);
            }
        }
        
        &:active {
            .fill {
                background-color: darken($button-bg, 20%);
            }
            sound-in: "button-click";
        }
    }
    
    gap: 5px;
    
    .fill {
        height: 100%;
        background-color: $button-bg;
        pointer-events: none;
    }
    .value {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #fff;
        pointer-events: none;
    }
    
    .slider-reset {
        padding: 5px;
    }
}