.all {
    padding-bottom: 420px;
}

/* .no-scroll {
    overflow-y: hidden !important;
    height: 100vh !important;
} */

.top-bar {
    background-color: #0E4CA5;
    height: 70px;
    box-sizing: border-box;
    padding: 15px;
    padding-bottom: 20px;

    position: absolute;
}

.absolute-centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    margin: 0;
}

.content {
    padding-top: 100px;
}

.vertical {
    display: grid;
    grid-auto-flow: row;

    justify-content: right;
}

.ghost-text {
    opacity: .4;
}

.small {
    font-size: 70%;
}

.no-display {
    display: none;
}

.general-row {
    max-height: fit-content;

    display: flex;
    justify-content: space-between;
}

.value-changer {
    align-items: baseline;
    justify-content: right;
}

.pop-up-wrapper {
    max-height: 100px;
    margin-left: 10px;

    position: relative;

    display: flex;
    align-items: center;
}

.value-changer span {
    max-height: 80%;
}
.value-changer h2 {
    margin-left: 30px;
}

.pop-up-right {
    width: 100px;

    position: absolute;
    right: 100%;
    top: 50%;
    transform: translate(0, -50%);

    z-index: 1;
}

.adjust-container {
    width: 100%;
}

.adjust-container * {
    width: 100%;
}

.adjust-container button:disabled {
    filter: grayscale(100%);
    cursor: default !important;
}

.adjust-input {
    margin-top: 5px;
    margin-bottom: 5px;
}

.general-row button h1 {
    margin: 0;
    margin-top: 5px;
    margin-bottom: 5px;
}

.tables {
    gap: 1em;
    padding: .5em;
    box-sizing: border-box;
}

.tables table {
    width: 100%;

    background-color: rgba(250, 235, 215, 0.873);
    padding: 10px;
    border: 3px solid burlywood;
    border-collapse: collapse;
}

.tables table tr, 
.tables table td,
.tables table th {
    border: 3px solid burlywood;
    border-bottom: none;
    border-right: none;
    
    padding: 4px;
}
.tables table th:hover,
.tables table td:hover,
.tables th:nth-child(n):hover + td:nth-child(n) {
    background-color: rgb(230, 214, 194);
}

.tables th:nth-child(n):active,
.tables th:nth-child(n):active + td:nth-child(n) {
    background-color: rgb(209, 194, 176);
    transition: all .1s;
}

.tables table th {
    text-align: left;
    border-right: none;
    padding-left: 20px;
    cursor: pointer;
}

.tables table td {
    text-align: center;
    cursor: pointer;
}

.table-edit {
    width: 40px;
    height: 52px;
}

.picked {
    background-color: transparent !important;
    z-index: 1;
    overflow:hidden;
    border: 3px solid rgb(255, 255, 255) !important;
    transform: scale(1.05);
}

.centered {
    text-align: center;
}

.transition {
    transition: all .2s;
}

.stat-lists {
    gap: 10px;
    grid-template-columns: 1fr 1fr 1fr;
}

.dice-screen {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.591);

    z-index: 2;

    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    padding-top: 100px;
}

.all {
    position: relative;
}

.pick-dice-menu .center-horizontally {
    gap: 100px;
}

.dice-button-wrapper {
    position: relative;

    transform: translateY(50%);
}

.dice-button-wrapper h1 {
    width: 100%;
    text-align: center;
    color: white;

    margin: 0;
    margin-top: 5px;
}

.dice-amount-icons {
    width: 100%;

    display: flex;
    justify-content: center;

    gap: 6px;
}

.dice-amount-icons .d6 {
    width: 10px !important;
}

.throw-type-container div {
    margin-bottom: 30px;
    padding: 70px;
    padding-bottom: 0;
    padding-top: 0;
}

.advantage-button {
    text-align: center;
    width: 200px;

    justify-self: center;

    color: #0E4CA5;

    display: grid;
    align-items: center;

    padding: 20px;
    padding-top: 0;
    padding-bottom: 0;

    transition: all .05s;
}

.advantage-button:not(.active) {
    filter: brightness(70%);
    transform: scale(95%);
}
.advantage-button:not(.active):not(:hover) {
    filter: brightness(50%);
    transform: scale(90%);
}

@media only screen and (max-width: 800px) {
    .throw-type-container {
        grid-auto-flow: row;
    }
    .advantage-button {
        margin: 0;
    }
    #throw-type-text {
        margin: 0;
    }
}

.popup-dropdown {
    position: absolute;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
.popup-dropdown > div {
    width: 50%;
    height: 30%;
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 30px;
}


.dice-holder {
    width: 500px;
    margin-bottom: 50px;
    margin-top: 10px;
}

.dice-info {
    margin: 30px;
}

.success-spend {
    margin-top: 30px;

    position: relative;
}


.success-spend.disabled {
    filter: brightness(80%);
    opacity: 0;
    transform: scaleY(0);
    max-height: 0;
    transition: all .2s;
}

.success-spend li {
    overflow-y: auto;
}

#success-points-container {
    position: absolute;
    top: -50px;
    right: 50%;
    transform: translate(50%);

    background-color: #FF8532;
    padding: 20px;
    padding-bottom: 10px;
    padding-top: 10px;

    border: 2px solid black;
    border-radius: 5px;

    color: white;   
    text-wrap: nowrap;
}

.dice-screen img {
    margin-top: -300%;
    width: 10em;
    aspect-ratio: 1;
}

.hidden {
    display: none !important;
}

.dice {
    width: 5em;
    aspect-ratio: 1;

    border-radius: 5px;
    text-align: center;
    color: white;
    font-family: Zedou;

    --boost-amount: 0;
    filter: drop-shadow(0px 0px calc((1 / (0.01 - var(--boost-amount)) + 2) * 10px) rgba(255, 255, 255, var(--boost-amount)));
}

.dice:hover {
    filter: drop-shadow(0px 0px calc((1 / (0.01 - var(--boost-amount)) + 2) * 10px) rgba(255, 255, 255, var(--boost-amount)));
}

.partial-success-dice {
    filter: drop-shadow(0px 0px 10px rgb(241, 255, 169)) ;
}
.some-success-dice {
    filter: drop-shadow(0px 0px 10px rgb(169, 255, 169)) ;
}
.success-dice {
    filter: drop-shadow(0px 0px 10px rgb(169, 255, 169)) drop-shadow(0px 0px 10px rgb(169, 255, 169)) !important;
}

.d6 {
    border: 4px solid #a5570e;
    background-color: #FF8532;
}

#d6-holder .close-button {
    top: -10px;
    right: -10px
}

.d8,
.d20 {
    border: none;
    background-color: transparent;

    margin-left: 20px;
}

.d8 {
    transform: scale(1.2);
}
.d20 {
    transform: scale(1.4);
}

.d20 h1,
.d8 h1 {
    position: absolute;
    bottom: 50%;
    right: 50%;
    transform: translate(50%, 50%);

    font-size: 2em;

    margin: 0;
}

.dice.next-page-button {
    transform: scale(1.4);
    margin: 0;

    position: absolute;
    right: 50%;
    transform: translate(50%) scale(1.4);
    bottom: 120px;
}
.d20.next-page-button {
    transform: translate(50%) scale(2);
}

.next-page-button.d20:hover,
.next-page-button.d8:hover {
    filter: drop-shadow(0px 0px 10px white);
}

.d20 svg path {
    fill-rule: nonzero;
    stroke-linecap: round;
    stroke: rgb(23, 95, 23);
    fill: rgb(102, 197, 151);
    stroke-linejoin: round;
    stroke-width: 10px;
    paint-order: fill markers;
}

.d8 svg path {
    stroke-linejoin: round;
    stroke-width: 10px;
    stroke: rgb(14, 76, 165);
    fill: rgb(92, 136, 198);
}

.d8 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.super-header {
    color: white; text-align: center; margin: 0;
}

li {
    list-style-type: none; 
}

.button-list ul {
    --times-used: 0;
    --start: 0;
    --end: 100;

    font-size: 1.25em;

    padding: 6px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 1px;

    background-color: antiquewhite;
    border: 3px solid rgba(177, 151, 140, 1);

    position: relative;
}
.button-list ul:not(.disabled) {
    animation: 3s linear calc(-1s * var(--times-used)) paused button-list-colors;
    animation-fill-mode: forwards;
}


.edit-button {
    position: absolute;
    right: 0;
    height: 100%;
    top: 0;
    transform: scale(90%);

    box-sizing: border-box;
}

.edit-button.active {
    filter: brightness(90%);
}


.button-list .close-button {
	right: -10px;
	top: -10px;
}

.button-list .amount-change-button {
	position: absolute;

    display: flex;
    justify-content: center;
    align-items: center;

    width: 30px;
    height: 30px;

    border: 2px solid var(--style);
    background-color: antiquewhite;
    border-radius: 15px;

    color: var(--skill)
}

.button-list .increase-button {
	right: -10px;
	top: 10%;
}
.button-list .decrease-button {
	right: -10px;
	top: calc(10% + 40px);
}

.button-list ul:not(.disabled) {
    cursor: pointer;
}

.button-list:not(.editing) .close-button {
    display: none;
}


@keyframes button-list-colors {
    from {
      background-color: antiquewhite;
      border: 3px solid var(--style);
    }
   
    to {
      background-color: rgb(170, 212, 165);
      border: 3px solid var(--style);
    }
}

.button-list ul:not(.disabled):hover {
    animation: 3s linear calc(-1s * var(--times-used)) paused button-list-colors-hover;
    animation-fill-mode: forwards;
}

@keyframes button-list-colors-hover {
    from {
      background-color: rgb(228, 210, 203);
      border: 3px solid rgba(130, 108, 99, 1);
    }
   
    to {
      background-color: rgb(163, 202, 158);
      border: 3px solid rgba(48, 73, 51, 1);
    }
}

.trained-element {
    
    position: relative;
}

.train-div {
    display: grid;
    grid-auto-flow: column;

    box-sizing: border-box;

    top: 0;

    padding: 10px;

    gap: 10px;

    position: absolute;
    height: 100%;
    width: 100%;
}

.train-div div {
    background-color: var(--skill);
    border-radius: 5px;
    transition: all .05s;
    opacity: 100%;
}
.train-div div:not(.learned) {
    opacity: 40%;
}

#tables {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.stat-lists {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.value-changers {
    display: flex;
}

#range-text {
    text-wrap: nowrap;
    text-align: right;
}

.last-page-button {
    z-index: 1;
}

.ingredient-list .increase-button {
    right: 50px;
    top: 10%;
}
.ingredient-list .decrease-button {
    right: 90px;
    top: 10%;
}

.close-button {
    z-index: 0 !important;
}

.amount-label {
    position: absolute;
    margin: 0;
    right: 10px;
    top: 10%;  
    width: 30px;
    height: 30px;
    text-align: center;
    vertical-align: middle;
}

.technique-training {
    color: var(--style);
    outline: 2px white;
    text-shadow: 2px 2px 5px var(--skill-dark);

    text-align: center;
    pointer-events: none;

    width: 90%;
}

@media only screen and (max-width: 1500px){
    .stat-lists {
        grid-template-columns: 1fr 1fr;
    }
}

@media only screen and (max-width: 1100px) {
    #range-text {
        text-wrap: wrap;
    }
    #ingredient-boxes {
        grid-template-columns: 1fr !important;
    }
}

@media only screen and (max-width: 800px) {
    .stat-lists {
        grid-template-columns: 1fr;
    }
    #tables {
        grid-template-columns: 1fr;
        justify-content: center;
    }
    #tables #styles-table {
        width: 80%;
        margin: auto;
    }

    .success-spend li {
        max-width: 80vw; 
    }

    .general-row {
        display: grid;
        grid-template-columns: 1fr;
    }
    .value-changers {
        justify-content: space-between;
    }
    .value-changer {
        justify-content: space-between;
    }
    .value-changers > .horizontal:first-child {
        padding-left: 20px;
    }
    .value-changers > .horizontal:last-child {
        padding-right: 20px;
    }

    #range-text {
        margin-left: 0;
    }

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

    #d6-holder {
        grid-template-columns: 1fr 1fr;
        grid-auto-flow: row;
        justify-content: center;
        align-items: center;
    }
    .value-changer h2 {
        margin-left: 0 !important;
    }
}
@media only screen and (max-width: 700px) {
    .value-changers {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: center;
    }
    .value-changer {
        justify-content: center;
    }
}

.dice-content {
    height: 80vh;
    align-items: center;
    display: grid;
}

@media only screen and (max-height: 700px) {
    .dice-content {
        position: relative;
        top: 70px;
    }
}

.button-horizontal {
    display: grid;
    gap: 10px;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}