main {
    background: transparent;
}

main {
    --color1: #d0ffb3;
    --color2: #9affdc;
    --color3: #a2c5ff;
}

/* main{
    --color1: #d8edff;
    --color2: #bfe3ff;
    --color3: #cacdff;
} */

main::after {
    content: '';
    top: 0;
    left: 0;
    z-index: -1;
    height: 100%;
    width: 200%;
    background: linear-gradient(45deg, var(--color1) 0%, var(--color2) 50%, var(--color3) 100%);
    transition: var(--normal);
    animation: alternate infinite 15s;
    animation-name: moving;
}


html.darkmode main::after {
    background: linear-gradient(45deg, #00272d 0%, #00071f 50%, #1e0033 100%);
}

@keyframes moving {
    from {
        left: 0%;
    }

    to {
        left: -100%;
    }
}

/* UTILITY */

.big-p {
    font-size: 3rem;
}

/* BUTTON */

button {
    display: inline-block;
    height: 5rem;
    width: 100%;
    padding: 0;
    color: var(--h-color);
    text-align: center;
    background: transparent;
    border: solid var(--h-color) .5rem;
}

button:hover {
    background: var(--translucent);
}



button:disabled {
    cursor: not-allowed;
    opacity: .25;
}

/* OTHER */

.combine {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.combine>* {
    flex-grow: 0;
    flex-shrink: 0;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="datetime"],
input[type="color"] {
    color: var(--h-color);
    font-weight: 300;
    border-radius: 0;
    border-bottom: solid var(--h-color) .5rem;
}

label {
    color: var(--h-color);
    font-weight: 300;
}

.code {
    font-family: monospace;
    text-transform: uppercase;
}

/* Elements */

.tag,
.addTag {
    cursor: pointer;
    display: inline-block;
    padding: .0rem 1.5rem;
    min-width: 3rem;
    text-align: center;
    margin: 0;
    margin: .3rem;
    font-size: calc(var(--btn-size) * 1rem);
    font-weight: var(--btn-fontweight);
    border: solid .5rem var(--h-color);
    border-radius: var(--radius);
    transition: var(--quick);
    /* order: 0; */
    user-select: none;
}

.tag:focus-visible {
    outline: none;
}

.tag[contenteditable="true"] {
    cursor: text;
}

.tag:hover {
    opacity: .75;
}

.tag[set="false"] {
    /* color: var(--lightcolor); */
    color: #bbb;
    background: var(--translucent);
    border-color: transparent;
}

.addTag {
    color: var(--lightcolor);
    background: var(--h-color);
}

.addTag>i {
    padding: 0;
    margin: 0;
}

.combine>button {
    border-radius: 0;
    border-right: .25rem solid var(--h-color);
    border-left: .25rem solid var(--h-color);
}

.combine>button:first-child {
    border-radius: var(--radius) 0 0 var(--radius);
    border-right: .25rem solid var(--h-color);
    border-left: .5rem solid var(--h-color);
}

.combine>button:last-child {
    border-radius: 0 var(--radius) var(--radius) 0;
    border-right: .5rem solid var(--h-color);
    border-left: .25rem solid var(--h-color);
}


#playerList,
#tagList,
#newQuest {
    position: absolute;
    display: flex;
    overflow: auto;
    flex-flow: row wrap;
    bottom: 0;
    left: 50%;
    z-index: 110;
    transform: translate(-50%, 100%);
    width: 70rem;
    max-width: 100vw;
    max-height: 100vh;
    background: var(--lightcolor);
    border-radius: var(--radius) var(--radius) 0 0;
    box-shadow: 0 -.5rem 5rem #0001;
    transition: var(--normal);
    padding: calc(var(--space) / 2);
    padding-bottom: calc(var(--space) * 2);
}


#tagList.show,
#newQuest.show,
#playerList.show {
    transform: translate(-50%, 0%);
}

#bottomButtons > button {
    width: var(--space);
    height: var(--space);
    border-radius: var(--radius-big);
    border: none;
    background: var(--darkcolor);
    color: var(--lightcolor);
}

#bottomButtons > button:first-child{
    border-radius: var(--radius-big) var(--radius-big) 0 0;
}

#bottomButtons > button:nth-child(2){
    border-radius: 0 0 var(--radius-big) var(--radius-big);
    margin-bottom: 2rem;
}

#bottomButtons > button > i {
    opacity: 1;
}

#bottomButtons > button:hover {
    background: var(--lightcolor);
}

#bottomButtons > button:hover > i {
    color: var(--darkcolor);
}

/* #playerList{
    bottom: 50%;
    display: flex;
    position: fixed;
    width: 30rem;
    max-width: 80vw;
    left: 0;
    transform: translate(-100%,50%);
    height: auto;
    flex-direction: column;
    flex-wrap: nowrap;
} */

#addPlayerWindow{
    position: fixed;
    top: 50%;
    background: var(--lightcolor);
    padding: var(--space);
}

/* #playerList.show{
    transform: translate(0%, 50%);
} */

/* [remote].active {
    background: var(--h-color);
    color: var(--lightcolor);
} */


#bottomButtons {
    position: fixed;
    display: flex;
    bottom: 50%;
    right: var(--space);
    transform: translate(0%, 50%);
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
}

#bottomButtons.show {
    /* bottom: var(--space); */
}

#bottomButtons button {
    margin: 0;
    /* border-bottom: none */
}

/* BTN SET */
#btnSet>button {
    width: 50%;
}

/* STATE 0 & 1 */
#btnSet[state="0"]>button:first-child,
#btnSet[state="1"]>button:first-child {
    width: 0%;
    border: none;
    opacity: 0;
}

#btnSet[state="0"]>button:last-child,
#btnSet[state="1"]>button:last-child {
    width: 100%;
    border-radius: var(--radius);
    border-left: var(--h-color) solid .5rem;
}


/* STATE 3 */
#btnSet[state="3"]>button:first-child {
    width: 10%;
    border-right: none;
}

#btnSet[state="3"]>button:last-child {
    width: 90%;
    border-left: var(--h-color) solid .5rem;
}

/* NAMEOUTPUT */
.nameOutput {
    font-size: 4rem;
}



.counter {
    position: absolute;
    top: -1rem;
    left: -1rem;
    height: 2rem;
    width: 2rem;
    padding: 0;
    margin: 0;
    color: var(--lightcolor);
    font-size: 1.4rem;
    text-align: center;
    background: var(--h-color);
    border-radius: 1rem;
    transition: var(--quick);
}

.hideCounter>.counter {
    opacity: 0;
}

/* ADD QUEST */

textarea {
    background: var(--translucent);
    border: var(--h-color) solid .5rem;
    border: none;
}

/* DISCLAIMER */
#disclaimer {
    position: fixed;
    bottom: calc(var(--space)/2);
    right: calc(var(--space)/2);
    z-index: 100;
    margin: 0;
    opacity: .25;
    transition: var(--quick);
}

#disclaimer:hover {
    opacity: 1;
}

#disclaimer>span {
    display: block;
    position: absolute;
    right: 0;
    top: -10rem;
    z-index: 100;
    transform: scale(.01);
    width: auto;
    padding: 1rem 1.5rem;
    text-align: center;
    background: var(--lightcolor);
    border-radius: var(--radius);
    opacity: 0;
    transition: var(--quick);
    white-space: nowrap;
    box-shadow: 0 -.5rem 5rem #0001;
}

#disclaimer:hover>span {
    transform: scale(1);
    opacity: 1;
}

/* #openNewQuest {
    position: fixed;
    top: calc(var(--navheight) + var(--space));
    right: var(--space);
    width: 5rem;
    height: 5rem;
    background: var(--h-color);
    border-radius: 3rem;
    color: var(--lightcolor);
}

#openNewQuest.active {
    background: var(--lightcolor);
    color: var(--h-color);
    border: transparent;
}

#openNewQuest>span {
    opacity: 0;
} */

/* QUEST OUTPUT */

#questOutput>span {
    display: inline-block;
    transition: var(--quick);
}

#questOutput>span:hover {
    transform: translate3d(0rem, -.5rem, 0);
}



button>.reload {
    position: relative;
    display: block;
    transition: var(--normal);
}

button:hover>.reload {
    transform: rotate(25deg);
}





/* TASKS */

#firstInfos>input:nth-child(2) {
    width: calc(40% - 1rem);
    margin-right: 1rem;
}

#firstInfos>input:nth-child(3) {
    width: calc(40% - 1rem);
    margin-right: 1rem;
}

#firstInfos>input:nth-child(4) {
    width: calc(20%);
}

/* BRIEFING TEXTAREA */

#textarea {
    font-size: calc(var(--p-size)*1rem);
    font-family: var(--paragraph);
    background: var(--translucent);
    width: 100%;
    height: 80rem;
    overflow-y: auto;
}

#textarea>p,
#textarea>div,
#textarea>li,
#textarea>ul,
#textarea>ol,
#textarea>a {
    border-radius: var(--radius);
    cursor: text;
    transition: var(--quick);
    border-radius: 0;
}

#textarea>a {
    cursor: pointer;
    display: inline-block;
    background: var(--darkcolor);
    border: none;
    color: var(--lightcolor);
    border-radius: var(--radius);
    padding: 1rem 2rem;
    transition: var(--quick);
}

#textarea li{
    cursor: text;
    margin: 3rem 0;
}

#textarea>ul, #textarea>ol {
    padding-left: 4rem;
    padding: 1rem 2rem 1rem 6rem;
    background: var(--lightcolor);
    border-radius: var(--radius);
    border: none;
}

#textarea>a:hover {
    color: var(--darkcolor);
    background: var(--lightcolor);
    border-radius: var(--radius);
}

#textControl {
    display: flex;
    flex-flow: row nowrap;
    width: 100%;
    left: 0;
    top: 0;
}

footer{display: none;}