/* styles.css */

:root {
    --primary-color: #a156c8;
    --secondary-color: #fef6e4;
    --accent-color: #54337a;
    --background-color: #FDF6E3;
    --alternate-row-color: #f1e8d0;
    --description-row-color: #e8dbba;
    --form-control-disabled: #999;
}

.container {
    max-width: 950px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.results-container {
    margin: auto;
    margin-top: 20px;
    padding: 20px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
}
.hide {
    display: none
}
.description-button,
th button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

body {
    background-color:black;
    font-family: 'Roboto', sans-serif;
    background-image: url('bg2_2-up.jpg');
    background-position: center top;
    background-size: 100% auto;
    background-repeat:no-repeat;
}

main h1 {
    text-align: center;
    font-family: 'Cinzel Decorative', sans-serif;
    color: var(--primary-color);
    font-size: 4em;
    text-shadow: -1px -1px 0 #ffeb81, 1px -1px 1px #ffeb81, -1px 1px 1px #ffeb81, 1px 1px 1px #ffeb81;
}

.input-group {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* Add margin to the form-group containing the number input */
.form-group.number-input {
    margin-right: 10px;
}

/* Style the form button */
.form-button {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.form-group input[type="checkbox"] {
    margin-right: 5px;
    color: var(--primary-color);
}

    .form-group input[type="checkbox"]:checked {
        color: var(--secondary-color);
    }



button:hover {
    background-color: var(--accent-color);
}

a.copy-icon:hover {
    color: var(--accent-color);
}

.form-group {
    margin-bottom: 20px;
    margin-right: 20px;
}

    .form-group label {
        font-weight: bold;
    }


    .form-group input[type="number"],
    .form-group select {
        width: 100%;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        box-sizing: content-box;
        height: 20px;
    }

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

    .categories label {
        display: flex;
        align-items: center;
    }

    .categories input[type="checkbox"] {
        margin-right: 5px;
    }

.slider-label {
    display: flex;
    justify-content: space-between;
}

h2 {
    font-size: 1.5rem;
    margin-top: 20px;
    color: #784e25;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th,
td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #9f7247;
}

th {
    background-color: var(--background-color);
}

tbody tr:nth-child(even) {
    background-color: var(--background-color);
}
tbody tr:nth-child(odd) {
    background-color: var(--alternate-row-color);
}
tbody tr.description-row
{
    background-color: var(--description-row-color);
}
/* Style the "Requires Attunement" cell */
.requires-attunement,
.small-content {
    text-align: center;
}

.fa-info-circle {
    color: var(--primary-color);
}

.permalink-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.copy-icon {
    cursor: pointer;
}

.permalink {
    display: flex;
    align-items: center;
    gap: 5px;
}

.message {
    color: green;
}


input[type="checkbox"] {
    /* Add if not using autoprefixer */
    -webkit-appearance: none;
    /* Remove most all native input styles */
    appearance: none;
    /* For iOS < 15 */
    background-color: var(--secondary-color);
    /* Not removed via appearance */
    margin: 0;
    font: inherit;
    color: var(--primary-color);
    width: 1.15em;
    height: 1.15em;
    border: 0.15em solid var(--primary-color);
    border-radius: 0.15em;
    transform: translateY(-0.075em);
    display: grid;
    place-content: center;
}

    input[type="checkbox"]::before {
        content: "";
        width: 0.65em;
        height: 0.65em;
        clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
        transform: scale(0);
        transform-origin: bottom left;
        transition: 120ms transform ease-in-out;
        box-shadow: inset 1em 1em var(--primary-color);
        /* Windows High Contrast Mode */
        background-color: CanvasText;
    }

    input[type="checkbox"]:checked::before {
        transform: scale(1);
    }

    input[type="checkbox"]:focus {
       # outline: max(2px, 0.15em) solid currentColor;
       # outline-offset: max(2px, 0.15em);
    }

    input[type="checkbox"]:disabled {
        --form-control-color: var(--form-control-disabled);
        color: var(--form-control-disabled);
        cursor: not-allowed;
    }


.form-group input[type="range"] {
    width: 100%;

    border-radius: 5px;
    box-sizing: content-box;

}

input[type="range"] {
    /* removing default appearance */
    -webkit-appearance: none;
    appearance: none;
    /* creating a custom design */
    width: 100%;
    cursor: pointer;
    outline: none;
    /*  slider progress trick  */
    overflow: hidden;
    border-radius: 16px;
}

    /* Track: webkit browsers */
    input[type="range"]::-webkit-slider-runnable-track {
        height: 15px;
        background: #ccc;
        border-radius: 16px;
    }

    /* Track: Mozilla Firefox */
    input[type="range"]::-moz-range-track {
        height: 15px;
        background: #ccc;
        border-radius: 16px;
    }

    /* Thumb: webkit */
    input[type="range"]::-webkit-slider-thumb {
        /* removing default appearance */
        -webkit-appearance: none;
        appearance: none;
        /* creating a custom design */
        height: 15px;
        width: 15px;
        background-color: #fff;
        border-radius: 50%;
        border: 2px solid var(--primary-color);
        /*  slider progress trick  */
        box-shadow: -407px 0 0 400px var(--primary-color);
    }


    /* Thumb: Firefox */
    input[type="range"]::-moz-range-thumb {
        height: 15px;
        width: 15px;
        background-color: #fff;
        border-radius: 50%;
        border: 1px solid var(--primary-color);
        /*  slider progress trick  */
        box-shadow: -407px 0 0 400px var(--primary-color);
    }

