.compact-card {
    border: 2px solid transparent;
    text-align: center;
    cursor: pointer;
    position: relative;
    margin: 0.3em;
    background-color: #191920;
    color: gray;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    user-select: none;
    display: flex;
    height: 55px;
}

.role-category-button {
    background-color: transparent;
    color: #c9c9c9;
    border: 1px solid #c9c9c9;
    border-radius: 25px;
    font-size: 16px;
    padding: 5px 10px;
    margin: 5px;
    font-family: 'signika-negative', sans-serif !important;
    cursor: pointer;
}

.role-category-button-selected {
    color: black;
    background-color: #c9c9c9;
}

#role-category-buttons {
    margin-top: 10px;
    display: flex;
}

.compact-card h1 {
    display: flex;
    align-items: center;
    font-size: 14px;
    margin: 0 10px 0 10px;
}

.compact-card .card-role {
    color: #bfb8b8;
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.selected-card {
    border: 2px solid #c5c5c5;
}

.card-role {
    font-weight: bold;
    pointer-events: none;
}

.compact-card-right p {
    font-size: 40px;
    margin: 0 10px 0 0;
    display: flex;
    justify-content: flex-end;
}

.compact-card-left p {
    font-size: 40px;
    margin: 0 0 0 10px;
    display: flex;
    justify-content: flex-start;
}

.compact-card-left, .compact-card-right {
    width: 50%;
}

.compact-card .card-quantity {
    text-align: center;
    margin: 0;
    font-size: 25px;
}

.compact-card-header {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    display: flex;
    top: 0;
    pointer-events: none;
    text-align: center;
}

#deck-container, #deck, #custom-roles-container {
    width: fit-content;
}

.template-option {
    background-color: #5555555c;
    border: 1px solid #55555599;
    color: #d7d7d7;
    display: flex;
    justify-content: space-between;
    padding: 5px;
    border-radius: 5px;
    font-size: 16px;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    height: 4em;
    margin: 10px 0;
}

#deck-template-container {
    margin: 1em 0;
    max-height: 59vh;
    overflow-y: auto;
    padding: 0 0.5em;
}

.template-option-name {
    font-size: 20px;
}

.template-option:hover, .template-option:active {
    border: 1px solid #e7e7e7;
    cursor: pointer;
}

#deck-template-modal h2 {
    font-size: 20px;
}

#custom-roles-container {
    width: 95%;
    max-width: 25em;
}

.deck-role {
    border-radius: 5px;
    margin: 0.25em 0;
    padding: 0 5px;
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#custom-roles-container, #deck-status-container {
    color: #d7d7d7;
    margin: 1em 0.5em;
    background-color: #1e1e1e;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #4b4b4b;
    position: relative;
}

#deck-status-container {
    width: 25em;
    max-width: 95%;
    height: 20em;
    overflow-y: auto;
    position: relative;
}

#deck-count {
    font-size: 30px;
    background-color: #4b4b4b;
    width: fit-content;
    padding: 0 5px;
    border-radius: 5px;
}

#deck-status-header {
    position: sticky;
    z-index: 25;
    top: 0;
    display: flex;
    justify-content: space-between;
}

#deck-list {
    margin-top: 0.5em;
}

#deck-list-placeholder, #custom-role-placeholder {
    margin: auto;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: fit-content;
    height: 50px;
    font-size: 20px;
    text-align: center;
}

#custom-role-hamburger .hamburger-inner, #custom-role-hamburger .hamburger-inner::before, #custom-role-hamburger .hamburger-inner::after {
    background-color: #e7e7e7;
    width: 28px;
    height: 3px;
}

#custom-roles-container .hamburger-box {
    width: 28px;
    height: 20px;
}

#custom-role-hamburger {
    position: absolute;
    top: 0;
    right: 0;
}

#custom-role-hamburger .hamburger-inner::before {
    top: -8px;
}

#custom-role-hamburger .hamburger-inner::after {
    top: -16px;
}

#custom-role-actions {
    background-color: #1e1e1e;
    border-radius: 5px;
    border: 2px solid #4b4b4b;
    display: none;
    color: #e7e7e7;
    position: absolute;
    z-index: 25;
    top: 38px;
    width: 150px;
    right: 9px;
    box-shadow: -3px -3px 6px rgb(0 0 0 / 60%);
}

#custom-role-actions div:nth-child(1) {
    border-bottom: 2px solid #4b4b4b;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

#custom-role-actions div:nth-child(2) {
    border-top-right-radius: 0;
    border-top-left-radius: 0;
}

.custom-role-action {
    display: flex;
    width: 100%;
    padding: 10px 0;
    background-color: #1e1e1e;
    border-radius: 5px;
    text-align: center;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.custom-role-action:hover {
    background-color: #57566a;
    cursor: pointer;
}

#deck-good, #deck-evil {
    padding: 0;
    border-radius: 5px;
    margin: 0.5em;
    display: flex;
    flex-wrap: wrap;
    overflow: auto;
    max-height: 20em;
}

#deck-container {
    display: flex;
    flex-wrap: wrap;
    margin: 0 auto;
    justify-content: center;
    flex-direction: column;
    width: 95%;
    max-width: 38em;
}

#deck-container label {
    margin: 0.5em;
    display: block;
}

#step-3 {
    display: flex;
    padding: 10px;
    justify-content: center;
    align-items: center;
    width: fit-content;
    border-radius: 5px;
    margin: 0 auto;
}

option {
    background-color: #191920;
    cursor: pointer;
}

#step-5 > div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    justify-content: center;
    margin: 0 auto;
    width: 25em;
    max-width: 95%;
}

#step-4 {
    width: 95%;
    max-width: 25em;
    margin: 0 auto;
}

#step-4 > div {
    width: 100%;
}

#step-4 div:nth-child(2) {
    margin-top: 25px;
}

#step-4 label[for="test-game"] {
    display: block;
    margin-bottom: 10px;
}

#step-4 input {
    padding: 15px 5px;
    width: 95%;
    font-size: 20px;
}

#step-5 > div label {
    width: 100%;
}

#moderation-self span {
    color: gray;
    font-size: 18px;
}

form {
    width: 100%;
}

select {
    padding: 10px;
    font-size: 16px;
    font-family: 'signika-negative', sans-serif;
    background-color: transparent;
    color: #d7d7d7;
    border-radius: 5px;
    min-width: 10em;
    cursor: pointer;
}

#game-form > div {
    background-color: #191920;
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-radius: 5px;
    width: fit-content;
    margin: 1em 0;
}

#game-form > div > label {
    display: flex;
}

#creation-step-container #game-time {
    display: flex;
    flex-wrap: wrap;
    border-radius: 5px;
    background-color: #1e1e1e;
    border: 1px solid #4b4b4b;
}

.step {
    margin-bottom: 2em;
}

#step-2 {
    max-width: 70em;
    margin: 0 auto;
    justify-content: center;
}

#game-time label, #game-time input {
    margin-right: 10px;
    font-size: 25px;
}

#game-time label {
    display: block;
    width: 6em;
    text-align: center;
}

#game-time div {
    margin: 0.5em;
    display: flex;
    align-items: center;
}

#role-alignment {
    max-width: 10em;
}

label[for="game-time"], label[for="add-card-to-deck-form"], label[for="deck"] {
    color: #e7e7e7;
    font-size: 20px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-weight: bold;
}

input[type="number"] {
    width: 3em;
    font-size: 40px;
}

#add-card-to-deck-form {
    margin: 1em 0;
}

#create-game {
    background-color: #1c8a36;
    color: #e7e7e7;
    font-size: 30px;
    padding: 10px 50px;
    width: 100px;
}

#create-game:hover {
    background-color: #326243;
    border: 2px solid #1c8a36;
}

#role-select {
    margin: 0.5em 0;
    overflow-y: auto;
    height: 22em;
}

.default-role, .custom-role, .added-role {
    display: flex;
    justify-content: space-between;
    background-color: black;
    align-items: center;
    padding: 5px;
    margin: 0.25em 0.25em 0 0;
    border-radius: 5px;
    border: 1px solid transparent;
    font-size: 16px;
}

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

.role-quantity {
    color: #00a718;
}

.default-role:hover, .custom-role:hover, .added-role:hover {
    border: 1px solid #d7d7d7;
}

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

#role-select img, #deck-status-container img {
    height: 25px;
    margin: 0 10px;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid transparent;
}

#role-select img:active, #deck-status-container img:active {
    border: 1px solid whitesmoke;
}

#role-select img:nth-child(4) {
    height: 25px;
}

#role-select img:hover, #deck-status-container img:hover {
    filter: brightness(1.5);
    background-color: #8080804d;
}

.dropdown {
    margin: 0.5em;
}

.creation-step {
    width: 20px;
    height: 20px;
    background-color: transparent;
    border-radius: 50%;
    border: 2px solid #e7e7e7;
    margin: 0 0.5em;
}

.creation-step-filled {
    background-color: #e7e7e7;
}

#creation-step-container {
    margin-top: 2em;
    width: 100%;
    min-height: 16em;
}

#creation-step-container > div:nth-child(2) {
    animation: fade-in 0.5s ease-in-out;
}

#step-title {
    margin: 0 auto 1em auto;
    text-align: center;
}

#creation-step-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2em;
    position: relative;
    margin-bottom: 8em;
}

#game-creation-container {
    width: 95%;
    position: relative;
    margin-bottom: 4em;
}

#step-2 .app-button {
    padding: 5px;
}

#tracker-container {
    display: flex;
    align-items: center;
    margin-top: 1em;
    justify-content: center;
    width: 100%;
    height: 50px;
    position: relative;
    max-width: 28em;
}

#upload-custom-roles-modal input[type='file'] {
    margin: 2em 0;
}

#creation-step-tracker {
    display: flex;
    justify-content: center;
    margin: 0 20px;
    position: absolute;
}

#step-forward-button, #step-back-button, #create-game {
    font-family: sans-serif;
    font-size: 20px;
    padding: 10px 20px;
}

#step-forward-button img, #step-back-button img {
    height: 40px;
    filter: drop-shadow(-2px 3px 2px rgb(0 0 0 / 60%));
}

#step-forward-button, #step-back-button {
    padding: 0 !important;
    width: 65px;
    height: 50px;
    user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    background-color: #1e1e1e;
    border: 1px solid #4b4b4b;
    position: absolute;
}

#step-forward-button:hover, #step-back-button:hover {
    background-color: #545454 !important;
    border: 2px solid #646464 !important;
}

.tracker-placeholder {
    width: 50px;
    height: 44px;
    background-color: transparent;
    border: none;
}

#step-forward-button {
    right: 12px;
}

#create-game {
    right: -5px;
    position: absolute;
    font-size: 20px;
    height: 50px;
}

#step-back-button {
    left: 12px;
}

#step-1 div {
    background-color: #1e1e1e;
    color: #e7e7e7;
    padding: 1em;
    max-width: 20em;
    margin: 0.5em;
    cursor: pointer;
    border: 1px solid #4b4b4b;
    border-radius: 5px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
}

#step-1 div.option-selected {
    border: 1px solid #e7e7e7;
    background-color: #494949;
}

#step-1 div > strong {
    color: #00a718;
}

#step-1 div:hover {
    border: 1px solid #e7e7e7;
}

.review-option {
    background-color: #191920;
    border: 1px solid #4b4b4b;
    color: #e7e7e7;
    padding: 10px;
    font-size: 18px;
    width: fit-content;
    border-radius: 5px;
    margin: 0.5em 0;
    align-self: flex-start;
}

@keyframes fade-in {
    from {
        opacity: 0;
    } to {
        opacity: 1;
    }
}

@media(max-width: 550px) {
    #custom-roles-container, #deck-status-container {
        min-width: 90%;
    }
    h1 {
        font-size: 32px;
    }

    #step-1 div {
        font-size: 20px;
    }

    .creation-step {
        width: 13px;
        height: 13px;
    }

    #step-forward-button, #step-back-button {
        padding: 10px 15px;
        font-size: 16px;
    }

    #create-game {
        width: 80px;
        right: 5px;
    }

    .role-name {
        font-size: 16px;
        font-weight: bold;
    }

    .compact-card .card-role {
        max-width: 9em;
        font-size: 13px;
    }

    .compact-card {
        min-width: 130px;
    }

    #step-title {
        font-size: 20px;
    }
}

@media(min-width: 551px) {
    h1 {
        font-size: 50px;
    }

    #step-1 div {
        font-size: 25px;
    }

    .compact-card .card-role {
        max-width: 10em;
        font-size: 15px;
    }

    .compact-card {
        min-width: 155px;
    }
}
