:root {
  --color-good: rgb(56, 146, 131);
  --color-bad: rgb(206, 101, 102);
}


.center {
    text-align: center;
}

.right {
    text-align: right;
}

.light {
    color: #888;
}

hr {
    margin: 2rem 0;
}

.ellipsis {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.hidden {
    display: none ;
}

input[type="text"].larger {
    min-width:40rem;
}

button.disabled, button.light, button:disabled, input:disabled, textarea:disabled, select:disabled {
    color: #bbb;
    background: #ddd;
}

button.rounded {
    border-radius: 0.5rem;
}

button.bad {
    background: var(--color-bad);
    color; #fff;
}
button.good {
    background: var(--color-good);
    color; #fff;
}

.flag-icon {
    width: 1.5rem;
}

/*
Tabs
*/

.tabs {
    display: inline-block;
}
.tabs button {
    margin: 0;
    background-color: #bbb;
    border: none;
    border-right: 1px solid #aaa; }
    .tabs button.active {
        margin: 0;
        background-color: var(--accent); }
    .tabs button:first-child {
        border-top-left-radius: 0.5rem;
        border-bottom-left-radius: 0.5rem;
        border: none; }
    .tabs button:last-child {
        border-top-right-radius: 0.5rem;
        border-bottom-right-radius: 0.5rem;
        border: none; }


/*
Toggle switch
    ---------
    |   |###|
    ---------
*/

.switch {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    width: 6rem;
    height: 3.4rem; }

    /* Hide default HTML checkbox */
    .switch input {
        opacity: 0;
        width: 0;
        height: 0; }

    /* The slider */
    .switch .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        -webkit-transition: .4s;
        transition: .4s;
        border-radius: 3.4rem; }

    .switch .slider:before {
        position: absolute;
        content: "";
        height: 2.6rem;
        width: 2.6rem;
        left: 0.4rem;
        bottom: 0.4rem;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
        border-radius: 50%; }

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

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

    input:checked + .slider:before {
        -webkit-transform: translateX(2.6rem);
        -ms-transform: translateX(2.6rem);
        transform: translateX(2.6rem); }

