/* #region Main */
html,
body {
    scroll-behavior: smooth;
    text-align: center;
    height: 100%;
    margin: 0;
}

body {
    font-family: bebasBold, Verdana, Geneva, Tahoma, sans-serif;
    color: #ffffff;
    background-color: #555555;
    background-repeat: no-repeat;
    background-size: cover;

    -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
    -webkit-user-drag: none;
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}

.options-modal::-webkit-scrollbar,
.options-modal-content-scroll-wrapper::-webkit-scrollbar,
.reroll-options-wrapper::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 1vmax;
    height: 1vmax;
    background-color: #444;
    scroll-behavior: smooth;
}
.options-modal::-webkit-scrollbar-thumb,
.options-modal-content-scroll-wrapper::-webkit-scrollbar-thumb,
.reroll-options-wrapper::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background-color: #2b2b2b;
}
.options-modal::-webkit-scrollbar-track,
.options-modal-content-scroll-wrapper::-webkit-scrollbar-track,
.reroll-options-wrapper::-webkit-scrollbar-track,
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background-color: #444;
    scroll-behavior: smooth;
}

@font-face {
    font-family: bebasBold;
    src: url(../fonts/BebasNeue-Bold.otf);
}

.main-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-width: fit-content;
}

.nav-bar button,
.select-all-button,
.filter-modal-content table tr td div,
.group-select,
.options div div,
.options-modal table tbody tr td section div div,
.avoid-select-all-button,
.exit-options,
.reroll-buttons div {
    cursor: pointer;
}

.exit-options {
    height: 4.5vmax;
    line-height: 5vmax;
    font-size: 10vmax;
    align-items: center;
    margin: 1.5vmax 1.5vmax 0 0;
}
.exit-options-container {
    display: flex;
    justify-content: right;
    align-content: right;
    width: 100%;
    position: fixed;
    top: 0;
}

.reroll-options-wrapper {
    position: fixed;
    width: 100%;
    right: 0;
    top: 0;
    bottom: 0;
    overflow: auto;
}
.reroll-options-container {
    display: flex;
    align-items: end;
    justify-content: center;
    flex-direction: column;
    height: fit-content;
    min-height: 100%;
    width: 100%;
}

.options div {
    display: flex;
    align-items: start;
    justify-content: end;
    width: 100%;
    height: 100%;
}
.options div div {
    background-size: contain;
    background-repeat: no-repeat;
    height: 4.5vmax;
    width: 4.5vmax;
    font-size: 5vmax;
    margin: 1.5vmax 1.5vmax 0 0;
}

.reroll-container {
    flex-grow: 1;
    display: flex;
    align-items: end;
    justify-content: center;
    flex-direction: column;
    min-height: fit-content;
    width: 100%;
    overflow: hidden;
}
.reroll-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: fit-content;
    width: fit-content;
    /* overflow: hidden; */
}
.reroll-buttons div {
    height: fit-content;
    width: fit-content;
}
.reroll-buttons div img {
    height: 10vmax;
    width: 10vmax;
}

.dice {
    width: 5vmax;
    height: 5vmax;
    rotate: -45deg;
    margin: 1vmax 0 1vmax 0;
}

.icon-container {
    width: 100%;
    height: 15vmax;
    display: flex;
    justify-content: end;
    align-items: center;
}

.weapons-container,
.attachments,
.op-modal,
.op-modal-content,
.weapon-section,
.equipment-image,
.equipment-wrapper,
.op-modal-info,
.attachment-section-data,
.options,
.attachment-section-data-wrapper {
    display: flex;
    align-items: center;
}
.attachments,
.op-modal-content,
.weapon-section,
.equipment-image,
.op-modal,
.attachment-section-data,
.options,
.attachment-section-data-wrapper {
    justify-content: center;
}
.weapons-container,
.op-modal-info {
    justify-content: center;
}
.weapons-container,
.op-modal-content,
.op-modal-info {
    flex-wrap: wrap;
}
.icon-container,
.weapon-section,
.equipment-image,
.attachments,
.attachment-section-data,
.attachment-section-data-wrapper {
    flex-direction: column;
}

.op-modal,
.op-modal-content {
    min-width: fit-content;
}
.op-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: fit-content;
    min-height: 100%;
}
.op-modal-content {
    margin-top: auto;
    margin-bottom: auto;
    min-height: fit-content;
}
.weapons-container {
    height: fit-content;
    width: fit-content;
}

.op-modal-info,
.weapons-container {
    flex-grow: 1;
}
.op-data {
    background-color: #333333;
    margin: 1vmax 1vmax 3vmax 1vmax;
}
.op-image {
    background-size: cover;
    background-repeat: no-repeat;
    min-width: 14.7vmax;
    min-height: fit-content;
    overflow: hidden;
}

.weapon-content {
    max-width: fit-content;
    max-height: fit-content;
    padding: 1vmax;
    margin: 1vmax;
    font-size: 2vmax;
}
.attachment-section-data {
    width: 10vmax;
    font-size: 2vmax;
    margin-left: 1vmax;
    margin-right: 1vmax;
    margin-top: 1vmax;
}
.attachment-section-data-wrapper,
.weapon-data {
    font-size: 0.7lh;
    height: 5em;
    background-color: #333333;
    padding: 0.5vmax;
}
.attachment-image,
.weapon-image {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}
.weapon-image {
    height: 3lh;
    width: 7lh;
}

.attachment-section {
    display: flex;
    align-items: baseline;
    justify-content: center;
}
.attachment-image {
    height: 6lh;
    width: 6lh;
}
.attachments {
    width: 100%;
    height: fit-content;
}
.attachment-name {
    /* width: 2em; */
    height: fit-content;
    font-size: 1.2em;
    text-align: center;
}

.equipment-image {
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    height: 4.8em;
    width: 7.2em;
}
.equipment-content {
    max-width: fit-content;
    max-height: fit-content;
    font-size: 2.5vmax;
    text-align: center;
}
.equipment-data {
    background-color: #333333;
    margin: 1vmax;
    font-size: 0.7lh;
}

.scrollable-wrapper {
    height: 30vmax;
    width: fit-content;
    overflow-x: auto;
    background-color: #333333;
}
.scrollable-wrapper table {
    height: 35vmax;
    width: 35vmax;
}
.scrollable-wrapper table tbody tr td button {
    height: 3.25vmax;
    width: 6.5vmax;
}

.options-modal-content-scroll-wrapper {
    width: fit-content;
    height: fit-content;
    overflow: auto;
    background: #333333;
}
.avoid-select-all-button-container,
.select-all-button-container {
    position: sticky;
    left: 0;
}

.avoid-select-all-button,
.select-all-button {
    margin-top: 2vmax;
    margin-left: auto;
    margin-right: auto;
    background: transparent;
    padding: 1.4vmax;
    color: white;
    font-size: 2.5vmax;
    height: fit-content;
    width: fit-content;
    text-align: center;
    text-wrap: nowrap;
}

.options-modal {
    display: block;
    background: #444444;
    width: 100%;
    min-width: fit-content;
    height: fit-content;
    padding-bottom: 2vmax;
}
.options-modal-content,
.group-modal {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    min-width: fit-content;
    height: fit-content;
}
.options-modal h1 {
    padding-top: 1.5vmax;
    margin: 1vmax 0;
    font-size: 5vmax;
    color: #ffffff;
}
.options-modal p {
    padding: 0;
    margin: 0;
    font-size: 1.7vmax;
    color: #ffffff;
}
.options-modal table tbody tr td h2 {
    margin: 10px 0;
    font-size: 3vmax;
    color: #ffffff;
}
.avoid-modal {
    display: flex;
    align-items: center;
    justify-content: center;
    height: fit-content;
    width: fit-content;
    background: #333333;
    padding-top: 3%;
    padding-bottom: 3%;
}
.avoid-modal div div {
    background: transparent;
    line-height: 2em;
    height: 2em;
    width: 9em;
    font-size: 2vmax;
    font-family: inherit;
    text-align: center;
}

.nav-bar {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    min-width: fit-content;
    height: fit-content;
}
.nav-bar button {
    color: white;
    background: transparent;
    width: 100%;
    min-width: fit-content;
    font-size: 3vmax;
    font-family: inherit;
    border: none;
    outline: none;
    padding: 1vmax 1.5vmax;
}

.filter-modal {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: fit-content;
    width: fit-content;
}
.filter-modal-content {
    width: fit-content;
    height: fit-content;
    overflow: none;
}

.filter-modal-content h1 {
    position: sticky;
    left: 0;
    margin: 2.5vmax 0 2vmax;
    font-size: 4vmax;
}

.group-select-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.group-select {
    text-wrap: nowrap;
    line-height: 1vmax;
    height: 1vmax;
    width: 100%;
    padding: 2vmax;
    font-size: 2vmax;
}

.filter-modal-content table tbody tr td {
    padding: 0 0.3em;
    text-align: center;
    vertical-align: top;
}
.filter-button {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 4.5em;
    font-size: 1.5vmax;
    line-height: normal;
}
.filter-button img {
    width: 100%;
    height: 100%;
    margin: auto;
    display: block;
}

.group-button {
    height: 100%;
    width: 100%;
    background-color: transparent;
    border-color: transparent;
    object-fit: contain;
}

.filter-button,
.group-select,
.avoid-modal div div,
.avoid-select-all-button,
.select-all-button,
.options-modal-content-scroll-wrapper,
.equipment-data,
.weapon-data,
.op-data,
.attachment-section-data-wrapper {
    border: solid 0.4vmax;
    border-bottom-color: #222222;
    border-right-color: #222222;
    border-top-color: #838383;
    border-left-color: #838383;
}

img {
    overflow-clip-margin: content-box;
    overflow: clip;
}

footer {
    z-index: 4;
    padding: 1vmax;
    height: fit-content;
    text-align: center;
    color: white;
    font-size: 1vmax;
    overflow: hidden;
}

#title {
    text-wrap: nowrap;
    width: 100%;
    min-width: fit-content;
    font-size: 5vmax;
    color: white;
}

@media screen and (min-width: 80vmax) {
    .op-modal-info {
        flex-direction: column;
    }
}
/* #endregion */
