* {
    /* --foreground-color: rgb(21, 31, 46); */
    --foreground-color: rgb(24 35 52);
    --text-color: rgb(159, 173, 189);
    --background-color: rgb(11, 22, 34);
}

body {
    font-family: 'Overpass', 'Ubuntu', sans-serif;
}

body:has(.dialog-container) {
    overflow: hidden;
}

.main-app {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}

.light-scroll::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
  
  /* Track */
.light-scroll::-webkit-scrollbar-track {
    background: transparent;
}
  
  /* Handle */
.light-scroll::-webkit-scrollbar-thumb {
    background: rgb(114, 138, 161);
    cursor: pointer;
}

.light-scroll::-webkit-scrollbar-thumb:hover {
    background: rgb(179, 203, 226);
}

.image-back {
    width: 100%;
    padding: 0 5%;
    height: 30vh;
    display: flex;
    align-items: flex-end;
    color: white;
    background-image: url(/img/banner.png);
    background-size: cover;
    position: relative;
}

.image-shadow {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(180deg, rgba(6, 13, 34, 0) 40%, rgba(6, 13, 34, 0.75));
}

.player-info-name {
    margin: 0;
    border: none;
    outline: none;
    background: none;
    color: white;
    border-bottom: 2px solid transparent;
    font-weight: bold;
    font-size: 1.5rem;
    padding: 13px 20px;
}

.player-info-name:focus {
    border-bottom: 2px solid white;
}

.container {
    padding-left: 10%;
    padding-right: 10%;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: end;
    position: relative;
}

.account-list {
    background: rgb(21, 31, 46);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.account-chooser {
    display: flex;
    max-width: 95%;
}

.account-chooser > span {
    color: rgb(114, 138, 161);
    padding: 10px 15px;
    margin: 0 10px;
    height: 100%;
    cursor: pointer;
    font-size: 0.85em;
    font-weight: 600;
}

.account-chooser > span:hover {
    color: white;
}

.account-chooser > span.selected {
    color: rgb(61, 180, 242);
}

.player-info-thumb {
    border-radius: 10px 10px 0 0;
    width: 128px;
    height: 128px;
    object-fit: cover;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.player-info-thumb > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-info-thumb:hover > .player-thumb-add {
    opacity: 1;
}

.player-thumb-add {
    transition: .3s;
    position: absolute;
    content: '+';
    top: 0;
    left: 0;
    background-color: rgb(0 0 0 / 50%);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 5em;
    opacity: 0;
    flex-direction: column;
}

.player-thumb-add > span {
    font-size: 0.8rem;
}

.player-info-banner {
    display: flex;
    overflow: hidden;
    align-items: end;
}

.main-content {
    min-height: 40vh;
    background-color: rgb(11, 22, 34);
    width: 100%;
    display: flex;
    justify-content: center;
}

/* ********** RANKING ********** */

.rotation-ranking {
    width: 60%;
    height: 100%;
}

.rotation-ranking > div > h2 {
    color: rgb(159, 173, 189);
    font-weight: normal;
}

.rotation-ranking-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rotation-ranking-list {
    background: var(--foreground-color);
    border-radius: 5px;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 20px;
}

.rotation-ranking-head, .rotation-ranking-row {
    display: grid;
    grid-template-columns: 1fr 3fr 5fr 4fr 4fr;
    align-items: center;
    color: rgb(159, 173, 189);
}

.rotation-ranking-head {
    padding: 10px 20px;
    border: 2px solid rgb(71 101 146 / 30%);
    border-radius: 50px;
    font-weight: bold;
    background: rgb(34 49 71);
    margin-bottom: 10px;
}

.rotation-ranking-row {
    color: rgb(195 209 224);
    padding: 10px 20px;
}

.rotation-ranking-row:nth-child(odd) {
    background: rgb(0 0 0 / 20%);
    border-radius: 20px;
}

.rotation-rank {
    font-size: 1.1em;
    font-weight: bold;
}

.rotation-ranking-team-compo {
    display: flex;
}

.rotation-ranking-team-compo > .ranking-team-member-slot {
    height: 3em;
    aspect-ratio: 1/1;
    margin: 0 5px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.ranking-team-member-slot > img {
    height: 100%;
}

.slot-thumb {
    z-index: 2;
    position: relative;
}

.slot-back-template {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.ranking-first { color: gold; }
.ranking-second { color: silver; }
.ranking-third { color: sienna; }

/* ********** EDITOR ********** */

.rotations-editor {
    height: 100%;
    width: 100%;
    flex-shrink: 0;
    transition: .3s;
}

.editor-filter {
    display: flex;
    justify-content: center;
    margin: 20px;
}

.editor-filter > input {
    background: rgb(21, 31, 46);
    border: none;
    outline: none;
    font-size: 1.1em;
    padding: 5px 10px;
    border-radius: 5px 0 0 5px;
    color: lightgray;
    width: 50%;
}

.editor-filter > input::placeholder {
    color: rgb(57 69 83);
    font-style: italic;
}

.editor-filter > select {
    border-radius: 0 5px 5px 0;
    border: none;
    outline: none;
    background: rgb(21, 31, 46);
    color: lightgray;
    border-left: 1px solid rgb(159 173 189 / 30%);
    padding-left: 10px;
    padding-right: 5px;
    font-size: 1em;
}

.team-editor-difficulty {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    color: var(--text-color);
}

.team-editor-difficulty > span {
    text-align: center;
    padding: 5px 20px;
    position: relative;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    text-transform: capitalize;
}

.team-editor-difficulty > span.difficulty-selected, .team-editor-difficulty > span:hover{
    border-color: var(--text-color);
}

.team-editor-difficulty > span:not(:last-child):after {
    content: "";
    display: inline-block;
    width: 1px;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, 0) 100%);
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
}

.editor-section {
    margin: 20px 0;
}

.editor-section > h3 {
    color: rgb(159, 173, 189);
    font-weight: normal;
    margin: 0;
    margin-bottom: 1em;
}

.team-list-section {
    background-color: var(--foreground-color);
    border-radius: 5px;
    color: rgb(159, 173, 189);
    padding: 10px 0;
}

.team-list-head {
    padding: 10px;
    font-weight: bold;
}

.team-list-head, .team-row {
    display: grid;
    grid-template-columns: 60px 3fr 2fr 2fr 1fr;
}

.team-row {
    cursor: pointer;
    align-items: center;
    padding: 0 10px;
    position: relative;
}

.team-row:hover > .team-row-back {
    opacity: 1;
}

.team-row-old > .team-row-back > .team-row-arrow {
    opacity: 0;
}

.team-row:hover > .team-row-score {
    font-weight: bold;
    text-shadow: 0 0 10px black, 0 0 5px black;
}


.team-row-logo {
    font-size: 0;
    min-height: 40px;
    height: 40px;
}

.team-row-logo > img {
    max-height: 100%;
    height: 40px;
}

.team-row:hover {
    background-color: rgb(26 38 56);
}

.team-row-back {
    position: absolute;
    height: 100%;
    width: 29%;
    right: 0;
    top: 0;
    opacity: 0;
}

.team-row-backfilter {
    background: rgb(21, 31, 46);
    background: linear-gradient(90deg, rgb(26 38 56) 0%, rgba(0, 0, 0, 0.5) 100%);
    height: 100%;
    width: 100%;
    position: absolute;
}

.team-row-back > img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.team-row-score {
    position: relative;
    z-index: 5;
}

.team-row-arrow {
    position: absolute;
    right: 10px;
    height: 100%;
    padding: 10px 0;
    z-index: 5;
}

.team-row-arrow > svg {
    height: 100%;
    transform: rotate(90deg);
    stroke: rgb(159, 173, 189);
    fill: rgb(159, 173, 189);
    z-index: 5;
}

.rotation-list-team-compo {
    display: flex;
    margin: 5px 0;
}

.rotation-list-team-compo > .ranking-team-member-slot {
    height: 2.5em;
    aspect-ratio: 1/1;
    margin: 0 5px;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

/* ********** OVERVIEW ********** */

.overview-content {
    margin-top: 20px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    width: 75%;
}

.principal-content {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 20px;
}

.player-overview {
    background: var(--foreground-color);
    border-radius: 5px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.player-overview-footer {
    position: relative;
    width: 100%;
    height: 20%;
    background: var(--foreground-color);
    right: 0;
    z-index: 5;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 20px;
    justify-content: space-between;
}

.player-overview-footer > button {
    cursor: pointer;
}

.player-overview-back {
    width: 100%;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.25);
}

.player-overview-footer > button {
    padding: 5px 15px;
    border-radius: 20px;
    border: none;
    margin: 0 5px;
    flex-shrink: 0;
}

.player-list-selector {
    max-width: 100%;
    overflow-x: auto;
    display: flex;
    align-items: center;
    height: 100%;
    margin-right: 1em;
}

.player-list-selector > button, .player-list-selector > select {
    padding: 5px 15px;
    border-radius: 20px;
    margin: 0 5px;
    background: rgb(0 0 0 / 30%);
    color: gray;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.player-list-selector > select {
    display: none;
}

.player-list-selector > button:hover, .player-list-selector > .account-button-selected {
    border-color: lightgray;
    color: lightgray;
}

#delete-account-button {
    background: #712020;
    color: white;
}

.player-overview-thumb {
    height: 6em;
    width: 6em;
    margin-top: 1em;
    border-radius: 50%;
    border: 2px solid rgb(255 255 255);
    object-fit: cover;
}

.player-rank {
    border: none;
    height: 4em;
    margin: 0;
    margin-right: 1em;
    align-self: center;
    margin-top: 2em;
}

.player-overview-content {
    display: flex;
    z-index: 3;
    position: relative;
    height: 80%;
    padding: 10px;
}

#player-overview-radar {
    max-width: 230px;
}

.guild-quest-stats {
    background: var(--foreground-color);
    border-radius: 5px;
    overflow: hidden;
}

.stats {
    width: 100%;
    padding: 20px;
    padding-top: 10px;
    display: flex;
}

.stats-difficulty {
    color: darkgray;
    font-size: 0.8em;
    padding: .5em 1em;
    padding-bottom: 0;
    display: inline-block;
}

.gq-stat {
    text-align: center;
    margin: 0 20px;
    color: lightgray;
    flex: 1;
}

.stat-value {
    margin-bottom: 5px;
    font-size: .9em;
    font-weight: bold;
}

.stat-name {
    font-size: 0.8em;
    white-space: nowrap;
}

.secret-stat-name {
    font-weight: bold;
    font-size: 0.7em;
}

.progress-bar {
    height: 0.7em;
    background: rgb(11 13 19);
}

.progress-bar > div {
    background: linear-gradient(45deg, red, orange);
    height: 100%;
    border-radius: 0 10px 10px 0;
    width: 30%;
    transition: width .3s;
    overflow:hidden;
}

.bar-diff-normal > div {
    background: rgb(23,80,247);
    background: linear-gradient(90deg, rgba(23,80,247,1) 0%, rgba(115,185,254,1) 100%);
}

.bar-diff-hard > div {
    background: linear-gradient(45deg, red, orange);
}

.bar-diff-very_hard> div {
    background: rgb(127,77,183);
    background: linear-gradient(90deg, rgba(127,77,183,1) 0%, rgba(219,123,176,1) 100%);
}

.bar-diff-nightmare > div {
    background: rgb(89,60,32);
    background: linear-gradient(90deg, rgba(89,60,32,1) 0%, rgba(219,176,123,1) 100%);
}

.progress-bar-overlay { 
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 40%, rgb(250 250 250 / 40%) 50%, transparent 60%);
    background-size: 200%;
    display: none;
}

.bar-animated {
    display: block;
    animation: gradient 5s linear infinite;
}

.bar-complete {
    border-radius: 0;
}

.player-diff-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
}

.rotations-state-overview {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 20px;
}

.strength-weakness-title {
    display: flex;
    align-items: center;
    /* margin-bottom: 1em; */
}

.strength-weakness-title > h3 {
    color: rgb(159, 173, 189);
    font-weight: normal;
    margin: 0;
}

#strength-arrow {
    stroke: green;
    height: 2em;
    width: 2em;
}

#weakness-arrow {
    stroke: brown;
    height: 2em;
    width: 2em;
    transform: scaleY(-1);
}

/* ********** TEAM EDITOR ********** */

.team-edition {
    /* width: 65%; */
    width: 100%;
    flex-shrink: 0;
    height: 100%;
    /* margin: 20px; */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.team-edition-head {
    width: 100%;
    display: flex;
    align-items: center;
}

.team-edition-head > h2 {
    width: 100%;    
    color: rgb(194 199 205);
    text-transform: capitalize;
}

.team-edition-head > h2::after {
    content: "";
    display: inline-block;
    margin-left: 1em;
    height: 1px;
    background: linear-gradient(90deg, rgb(194 199 205) 0%, rgb(194 199 205 / 0%) 100%);
    width: 50%;
    vertical-align: middle;
}

.team-edition-head > button {
    padding: 5px 15px;
    border-radius: 20px;
    margin: 0 5px;
    font-size: 1.1em;
    color: white;
    background: rgb(0 0 0 / 30%);
    border: 1px solid;
    transition: .1s;
    cursor: pointer;
}

.team-edition-head > button:hover {
    background: rgba(255, 255, 255, .2);
}

.team-edition-panels {
    width: 100%;
    flex-shrink: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    position: relative;
    padding-bottom: 20px;
}

.hidden {
    margin-left: -100%;
    max-height: 0;
}

.edition-section {
    background-color: var(--foreground-color);
    border-radius: 5px;
    color: rgb(159, 173, 189);
    padding: 10px;
    width: 50%;
    margin: 10px 0;
    flex-shrink: 0;
}

.edition-section-header {
    display: flex;
    align-items: center;
    padding: 5px 20px;
}

.edition-section-header > svg {
    height: 1.5em;
    width: 2.5em;
    padding: 0 .5em;
    stroke: rgb(159, 173, 189);
    fill: rgb(159, 173, 189);
}

.edition-section-header > h3 { margin: 0; font-size: 1.1em; }

.team-composition-slot {
    border-radius: 45px;
    border: 1px solid rgb(255 255 255 / 30%);
    display: flex;
    overflow: hidden;
    background: rgb(0 0 0 / 30%);
    margin: 10px 0;
    transition: .3s;
    cursor: pointer;
}

.team-composition-slot:hover {    
    border: 1px solid rgb(255 255 255 / 50%);
}

.team-composition-main {
    border: 1px solid rgb(182 99 2 / 50%);
    background: rgb(61 33 1 / 30%);
}

.team-composition-main:hover {
    border: 1px solid rgb(182 99 2 / 70%);
}

.team-composition-slot-thumb {
    font-size: 0;
    height: 4rem;
    width: 4rem;
    border-radius: 50%;
    overflow: hidden;
}

.team-composition-slot-thumb > img, .team-composition-slot-thumb > svg {
    height: 100%;
    width: 100%;
    border-radius: 50%;
    border: 1px solid rgb(255 255 255 / 30%);
    transition: .3s;
    cursor: pointer;
}

.team-composition-slot-thumb > img:hover {
    background-color: rgb(0 0 0 / 30%);
}

.team-composition-info {
    display: flex;
    flex-direction: column;
    padding: 10px;
}

.team-composition-info > .slot-name {
    color: white;
    font-weight: bold;
}

.scoring-input > input {
    background: rgb(11, 22, 34);
    border: none;
    width: 100%;
    border-radius: 5px;
    font-size: 1.3em;
    color: rgb(159, 173, 189);
    padding: 7px 10px;
    outline: none;
}

.diff-score-group {
    width: 24%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 10px 0;
}

.diff-score-group > div {
    width: 100%;
    margin: 0;
}

button.difficulty-selector {
    width: 100%;
    margin: 5px 0;
    /* background: rgb(127, 77, 183);
    border: 2px solid #673AB7; */
    background: rgb(61, 180, 242);
    border: 2px solid rgb(0 98 149);
    border-radius: 5px;
    filter: brightness(.5);
    cursor: pointer;
}

/* button.difficulty-selector.hard {
    background: #fc4c4c;
    border: 2px solid hsl(0 72% 43% / 1);
}

button.difficulty-selector.very_hard {
    background: #955ac4;
    border-color: hsl(273 47% 37% / 1);
}

button.difficulty-selector.nightmare {
    background: #835150;
    border-color: hsl(1 24% 25% / 1);
} */

button.difficulty-selector:hover, button.difficulty-selected {
    filter: none;
    color: white;
    font-weight: bold;
}

.timer-section {
    width: 24%;
    display: flex;
    flex-direction: column;
}

.timer-container {
    height: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 70%;
    aspect-ratio: 1 / 1;
}

.timer > input {
    position: absolute;
    font-size: 1.75em;
    color: rgb(157, 184, 122);
    border: none;
    background: none;
    width: 70%;
    text-align: center;
    outline: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.timer > input:hover {
    border-bottom: 2px solid;
}

.notes-section {
    display: flex;
    flex-direction: column;
}

.notes-container {
    height: 100%;
    max-height: 100%;
}

.notes-container > textarea {
    width: 100%;
    height: 100%;
    background: rgb(11, 22, 34);
    border: none;
    border-radius: 5px;
    color: rgb(159, 173, 189);
    padding: 7px 10px;
    outline: none;
    max-width: 100%;
    min-height: 20vh;
}

.warning-section {
    display: flex;
    flex-direction: column;
    width: 49%;
}

.warning-container {
    background: rgb(11, 22, 34);
    border: none;
    width: 100%;
    border-radius: 5px;
    color: rgb(159, 173, 189);
    padding: 7px 10px;
    outline: none;
    height: 100%;
}

.team-composition-spe {
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-composition-spe:hover > .spe-level-modifier {
    opacity: 1;
}

.team-composition-spe > span.spe-level-limit {
    padding-top: .3em;
    font-size: .9em;
}

.spe-level-indicator {
    font-weight: bold;
    color: white;
    font-size: 1.2em;
    padding: 0 10px;
}

.spe-level-modifier {
    padding: 0 7px;
    opacity: 0;
}

.spe-level-button {
    border: none;
    background: none;
    width: 15px;
    padding: 0;
    display: block;
    height: 100%;
    font-size: 0;
    margin: 5px 0;
}

.spe-level-button > svg {
    width: 100%;
    height: 100%;
    fill: gray;
    cursor: pointer;
}

.spe-level-decrement > svg {
    transform: scaleY(-1);
}

.spe-level-button > svg:hover {
    width: 100%;
    height: 100%;
    fill: lightgray;
}

.team-editor-wrapper {
    display: flex;
    width: 65%;
    overflow: hidden;
}

.player-account-info {
    display: flex;
    width: 100%;
    border-radius: 5px;
    flex-direction: column;
    padding: 0 10px;
}

.info-field-name {
    color: rgb(159, 173, 189);
    font-size: 0.8em;
}

.account-name {
    display: flex;
    align-items: center;
    font-weight: bold;
    padding: 5px;
    border-radius: 5px;
    color: lightgray;
}

.account-uid {
    font-size: 0.9em;
    border-radius: 15px;
    padding: 0 5px;
    border: 1px solid rgb(255 255 255 / 50%);
    color: lightgray;
    display: inline-block;
    margin-top: 10px;
    white-space: nowrap;
}

.account-name {
    font-size: 1.5em;
    color: white;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
    border-radius: 5px;
}

.account-guild {
    padding: 0 5px;
    margin: 5px 0;
    color: lightgray;
    font-size: 1.2em;
    font-weight: normal;
    padding: 0 5px;
}

.player-overview-pres {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ********** CARD EDITOR ********** */

.card-editor {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 4em;
}

.back-selector {
    width: 100%;
    background: var(--foreground-color);
    user-select: none;
    min-height: 6em;
    align-items: center;
    display: flex;
    justify-content: center;
    margin-bottom: 2em;
    flex-direction: column;
}

.back-options-list {
    display: flex;
    height: 6em;
    min-height: 6em;
    max-width: 65%;
}

.back-character-option, .back-character-option-button {
    height: 100%;
    margin: 0 10px;
    display: flex;
    align-items: center;
    border-bottom: 3px solid transparent;
    cursor: pointer;
}

.back-character-option > img {
    border-radius: 50%;
    border: 2px solid rgb(114, 138, 161);
    aspect-ratio: 1 / 1;
    height: 4em;
}

.back-character-option:hover, .back-character-selected {
    border-color: lightgray;
}

.back-character-option:hover > img, .back-character-selected > img {
    border: 2px solid rgb(179, 203, 226);
}

.back-character-option-button > div {
    border-radius: 50%;
    border: 2px solid rgb(114, 138, 161);
    aspect-ratio: 1 / 1;
    height: 4em;
    width: 4em;
    display: flex;
    justify-content: center;
    align-items: center;
}

.back-character-option-button > div:hover {
    border: 2px solid rgb(179, 203, 226);
    background-color: rgb(255 255 255 / 20%);
    cursor: pointer;
}

.back-character-option-button > div > svg {
    height: 40%;
    width: 40%;
    fill: lightgray;
    stroke: lightgray;
}

.card-editor-buttons {
    margin: 10px 0;
}

.card-editor-buttons > button {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 4px;
    padding: .5em 1.3em;
    font-size: .9em;
    margin-right: 1em;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, .3);
    cursor: pointer;
}

.card-editor-buttons > button:hover {
    background: rgba(255, 255, 255, .2);
}

.back-selector-input {
    display: flex;
    margin: 1em 0;
}

.back-selector-input > input {
    color: #fff;
    border: 1px solid rgb(114, 138, 161);
    border-radius: 5px 0 0 5px;
    padding: .5em 1.3em;
    font-size: .9em;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, .3);
    cursor: pointer;
    border-right: 0;
    outline: none;
    color: lightgray;
}

.back-selector-input > button {
    color: #fff;
    border: 1px solid rgb(114, 138, 161);
    border-radius: 0 5px 5px 0;
    padding: .5em 1.3em;
    font-size: .9em;
    margin: 0;
    letter-spacing: 1px;
    background: rgba(0, 0, 0, .3);
    cursor: pointer;
    color: lightgray;
}

.back-selector-input > button:hover {
    background: rgba(255, 255, 255, .2);
    border-color: rgb(179, 203, 226);
}

.back-char-option {
    display: flex;
    width: 100%;
    overflow-x: auto;
}

.card-editor-category-section {
    border-radius: 5px;
    padding: 10px 0;
}

.card-editor-category-section > h2 {
    padding: 5px 10px;
    margin: 0;
}

.card-editor-category-section > h2::after {
    content: "";
    display: inline-block;
    margin-left: 1em;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, 0) 100%);
    width: 50%;
    vertical-align: middle;
}

.border-option-list {
    display: flex;
}

.border-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    width: 6em;
    position: relative;
    border-bottom: 2px solid transparent;
    cursor: pointer;
}

.border-option:hover {
    border-bottom: 2px solid lightgray;
}

.border-option:not(:last-child):after {
    content: "";
    display: inline-block;
    width: 1px;
    background: linear-gradient(0deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .2) 50%, rgba(255, 255, 255, 0) 100%);
    height: 80%;
    position: absolute;
    right: 0;
    top: 0;
}

.border-option > .border-option-thumb {
    width: 2em;
    height: 2em;
    display: block;
    background: orange;
    border-radius: 50%;
    margin-bottom: .5em;
}

.border-option > .border-option-thumb > input {
    opacity: 0;
    cursor: pointer;
}

.border-option > .border-option-name {
    font-size: 0.8em;
    color: lightgray;
}

/* DIALOG CHOOSER */

.dialog-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background: rgb(0 0 0 / 50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chooser-proposition-list-container {
    height: 100%;
    max-width: 80%;
    overflow-y: scroll;
}

.chooser-proposition-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.choose-character-dialog {
    height: 75%;
    width: 60%;
    background: rgb(33 49 73);
    color: lightgray;
    border: 2px solid rgb(54 75 121);
    border-radius: 15px;
    display: flex;
    flex-direction: column; 
    align-items: center;
}

.character-proposition {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0.5em 1em;
}

.char-proposition-thumb {
    height: 4.5em;
    width: 4.5em;
    border-radius: 50%;
    border: 2px solid;
    overflow: hidden;
    cursor: pointer;
}

.char-proposition-thumb:hover {
    box-shadow: 0 0 .5em;
}

.char-proposition-thumb > img {
    height: 100%;
}

.character-proposition > span {
    font-weight: bold;
    font-size: .8em;
    padding: .5em 0;
}

.chooser-head-section {
    height: 7em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-shrink: 0;
    width: 100%;
}

.chooser-head-section > input {
    background: var(--foreground-color);
    border-radius: 20px;
    font-size: 1.1em;
    padding: 10px;
    border: none;
    color: lightgray;
}

.chooser-section-selector > span {
    padding: 10px;
    margin: 0 5px;
    cursor: pointer;
}

.chooser-section-selector > span:hover {
    border-bottom: 2px solid;
}

.selector-current-team {
    display: flex;
}

.selector-current-team-slot {
    margin: 0 10px;
    height: 4em;
    width: 4em;
    border-radius: 50%;
    border: 2px solid;
    overflow: hidden;
    background-color: rgb(0 0 0 / 20%);
}

.selector-current-team-slot > img, .selector-current-team-slot > svg {
    height: 100%;
    width: 100%;
}

.selector-target-slot {
    border-color: rgb(149 167 208);
    box-shadow: 0 0 5px rgb(149 167 208);
    transition: .3s;
    animation: target-slot 2s linear infinite;
}

.selector-target-slot > svg {
    stroke: rgb(149 167 208);
}

/* Account Row Container */

.account-editor {
    width: 50%;
    margin-bottom: 20px;
}

.account-editor > h2 {
    color: hsl(212 19% 75% / 1);
}

.account-row-container {
    background: var(--foreground-color);
    padding: 10px;
    border-radius: 10px;
    border: 2px solid hsl(216 37% 25% / 1);
    color: rgb(159, 173, 189);
    margin: 20px 0;
}

.account-row-container > h2 {
    font-size: 1.25em;
    margin: 0.5em;
}

.account-row-container > h2::after {
    content: "";
    display: inline-block;
    margin-left: 1em;
    height: 1px;
    background: linear-gradient(90deg, rgba(159, 173, 189, 0.7) 0%, rgba(255, 255, 255, 0) 100%);
    width: 70%;
    vertical-align: middle;
}

.account-row-content {
    display: flex;
}

.account-row-content > img {
    border: 2px solid hsl(216 37% 25% / 1);
    border-radius: 50%;
    height: 5.5em;
    width: 5.5em;
}

.account-editor-field-list {
    padding: 0 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 10px;
    width: 100%;
}

.account-editor-field > label {
    font-size: 0.8em;
    margin-bottom: 5px;
    padding: 0 0.5em;
}

.account-editor-field > input {
    background: rgb(11, 22, 34);
    border: none;
    border-radius: 5px;
    outline: none;
    font-size: 1em;
    padding: 5px 10px;
    width: 100%;
    margin-top: 5px;
    color: lightgray;
}

.account-editor-buttons {
    display: flex;
    justify-content: end;
}

.account-editor-buttons > button {
    padding: 3px 15px;
    border-radius: 20px;
    border: 2px solid transparent;
    margin: 0 5px;
    cursor: pointer;
}

.account-editor-buttons > button:hover {
    border: 2px solid rgb(250 250 250 / 20%);
}

.account-editor-buttons > button:disabled {
    pointer-events: none;
}

.account-editor-delete-button {
    background-color: #712020;
    color: white;
}

.account-editor-delete-button:disabled {
    color: rgba(1240, 240, 240, 0.3);
    background: hsl(0deg 55.86% 20%);
}

.add-account-button-container {
    display: flex;
    justify-content: center;
}

.add-account-button-container > button {
    color: lightgray;
    margin: 0 .6em 0 0;
    padding: .4em .7em;
    cursor: pointer;
    transition: .1s ease;
    user-select: none;
    background: none;
    border: none;
    font-size: 1.15em;
    border-bottom: 2px solid transparent;
}

.add-account-button-container > button:hover {
    border-color: lightgray;
}

@keyframes target-slot {
    0% {
        box-shadow: 0 0 5px rgb(149 167 208);
    }
    50% {
        box-shadow: 0 0 10px rgb(149 167 208);
    }
    100% {
        box-shadow: 0 0 5px rgb(149 167 208);
    }
}

/* CONFIRM DIALOG */

.confirm-dialog {
    width: 40%;
    min-width: 30%;
    max-width: 40%;
    background: rgb(33 49 73);
    color: lightgray;
    border: 2px solid rgb(54 75 121);
    border-radius: 15px;
    padding: 15px;
    animation: fade_in 0.25s ease;
}

@keyframes fade_in {
    0% {
        opacity: 0;
        transform: scale(.95);
    }
    60% {
        opacity: 1;
    }
    100% {
        transform: none;
    }
}

.confirm-dialog > h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgb(255 255 255 / 20%);
}

.confirm-dialog-text {
    margin: 1em 0;
}

.confirm-dialog-buttons {
    display: flex;
    justify-content: end;
}

.confirm-dialog-buttons > button {
    padding: 5px 15px;
    border-radius: 20px;
    border: 2px solid transparent;
    margin: 0 5px;
    cursor: pointer;
}

.confirm-dialog-buttons > button:hover {
    border-color: rgb(250 250 250 / 20%);
}

.confirm-dialog-dangerous-button {
    background-color: #712020;
    color: white;
}

.confirm-dialog-warning-button {
    background-color: darkgoldenrod;
    color: white;
}

/* PLAYER ACCOUNT EDITOR */

.player-account-editor {
    padding: 20px;
    background: var(--foreground-color);
    border-radius: 5px;
}

.player-account-editor-section {
    margin-bottom: 1em;
    padding-bottom: 1em;
}

.player-account-editor-section > h3 {
    margin: 0;
    margin-bottom: 8px;
    color: var(--text-color);
}

.editor-section-description {
    font-size: 0.9em;
    color: rgb(114 138 161);
    line-height: 1.35em;
    margin-bottom: 0.5em;
}

.player-account-pfp-editor {
    display: flex;
}

.profile-picture-dropbox {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    color: var(--text-color);
    background: var(--background-color);
    font-size: 1.1rem;
    height: 150px;
    width: 150px;
    line-height: 2rem;
    margin-right: 20px;
    outline-offset: -12px;
    outline: 2px dashed rgb(159, 173, 189, 0.25);
    padding: 20px;
    position: relative;
}

.profile-picture-view {
    display: inline-block;
    border-radius: 5px;
    overflow: hidden;
    color: var(--text-color);
    height: 150px;
    width: 150px;
    border-radius: 5px;
    background: var(--background-color);
    object-fit: cover;
}

.profile-picture-dropbox > input {
    cursor: pointer;
    height: 200px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    width: 100%;
}

.editor-section-button {
    text-align: center;
    background: rgb(61 180 242);
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    border: 2px solid transparent;
    margin: 0 5px;
    cursor: pointer;
    margin-top: 1em;
}

.editor-section-secure-button {
    background: rgb(61 180 242);
    color: white;
}

.editor-section-dangereous-button {
    background-color: #712020;
    color: white;
}

@media screen and (max-width: 768px) {
    .player-info-thumb {
        flex-shrink: 0;
    }

    .account-chooser {
        display: flex;
        max-width: 95%;
        overflow-x: auto;
    }
        
    .overview-content {
        width: 90%;
    }

    .player-list-selector > select {
        display: inline-block;
    }

    .player-list-selector > button {
        display: none;
    }

    .principal-content {
        grid-template-columns: 1fr;
    }

    .player-diff-stats {
        grid-template-columns: 1fr;
        margin: 15px 0px;
    }

    .stats {
        justify-content: space-around;
    }

    .rotations-state-overview {
        grid-template-columns: 1fr;
    }

    .rotation-ranking {
        width: 95%;
    }

    .rotation-ranking-list {
        padding: 20px 10px;
        margin: 20px 0;
    }

    .rotation-ranking-title {
        flex-direction: column;
    }

    .rotation-ranking-head > span {
        text-align: center;
    }

    .rotation-ranking-head, .rotation-ranking-row {
        grid-template-columns: 1fr 3fr 5fr 2fr;
    }

    .rotation-ranking-team-compo {
        justify-content: center;
    }

    .rotation-ranking-team-compo > .ranking-team-member-slot {
        margin: 0 1px;
    }
    
    .rotation-ranking-game-score {
        display: none;
    }

    .ranking-team-member-slot:not(:first-child) {
        display: none;
    }

    .team-list-head, .team-row {
        display: grid;
        grid-template-columns: 60px 3fr 2fr;
    }

    .rotation-list-difficulty, .rotation-list-composition, .rotation-list-team-compo {
        display: none;
    }

    .team-editor-wrapper {
        width: 95%;
    }

    .timer-section, .diff-score-group {
        width: 48%;
    }

    .team-composition-edition, .notes-section, .warning-section {
        width: 100%;
    }

    .player-overview {
        height: 13em;
    }

    .player-overview-thumb {
        height: 5em;
        width: 5em;
    }

    .account-uid {
        font-size: 0.8em;
    }

    .account-name {
        font-size: 1.25em;
    }

    .back-options-list {
        max-width: 100%;
    }

    .card-editor-container {
        width: 100%;
    }

    .border-option-list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .choose-character-dialog {
        width: 100%;
        height: 80%;
        align-self: flex-end;
        border-radius: 15px 15px 0 0;
        border-bottom: none;
    }

    .chooser-proposition-list-container {
        max-width: 100%;
    }

    .chooser-head-section {
        flex-wrap: wrap;
        border-bottom: 1px solid rgb(250 250 250 / 10%);
        margin-top: 10px;   
        justify-content: center;
        height: auto;
    }

    .selector-current-team {
        margin-bottom: .5em;
    }

    .chooser-section-selector {
        order: 1;
        width: 100%;
        display: flex;
        justify-content: space-around;
        height: 3em;
        align-items: center;
    }
    
    .selector-current-team-slot {
        margin: 0 5px;
        height: 3.5em;
        width: 3.5em;
    }

    .account-editor {
        width: 95%;
        margin-bottom: 20px;
    }

    .confirm-dialog {
        width: 90%;
        min-width: 90%;
    }
}