body{
	margin:0;
	font-family: 'Roboto Mono', monospace;
	display:flex;
	flex-direction:column;
	overflow:hidden;

    --done: #83d061;
    --almost: #ffd658;
    --started: #ffbe59;
    --preparing: #ff9696;
    --default: #faebd7;
}

body.light-theme {
   --bg-main:#f9f7f5;
  --accent-main:#EC685B;
  --accent-sec:#2acfff;
  --accent-inv:#1e1e1e;
  --bg-sec:#f9f7f5;
  --bg-contrast:#e9e9e9;
  --border:#dadada;

    background: white;
}

body.dark-theme {
    --bg-main:#1e1e1e;
    --accent-main:#EC685B;
    --accent-sec:#2acfff;
    --accent-inv:#f6f5f7;
    --bg-sec:#2c2c2c;
    --bg-contrast:#2c2c2c;
    --border:#444444;

    --done: #83d061;
    --almost: #ffe660;
    --started: #ffc14c;
    --preparing: #dd9090;
    --default: #dedddc;

    background: var(--bg-main);
}

header{
    display:flex;
    color:var(--accent-inv);
    width:100vw;
    height:7svh;
    background-color:var(--bg-sec);
    align-items: center;
    border-bottom:solid 1px var(--border);
    z-index: 10;
}

#workspace{
    width: 100vw;
    height: 91svh;
    display: grid;
    overflow: auto;
}

#workspace .container{
    max-width: 100vw;
    width: fit-content;
    height: fit-content;
    margin: 0 auto;
    padding: 1rem 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 0.3fr);
    grid-gap: 6px;
}

.item {
    background: var(--default);
    display: flex;
    flex-direction: row-reverse;
    min-height: 1.5rem;
    min-width: 12vw;
    border: 1px solid var(--border);
    border-radius: 0.3rem;
    height: 100%;
}

.item.\30{
background: var(--default);
}

.item.\31{
background: var(--preparing);
}

.item.\32{
background: var(--started);
}

.item.\33{
background: var(--almost);
}

.item.\34{
background: var(--done);
}

input{
    width: fit-content;
    height: 1.5rem;
    font-size: 0.9rem;
    text-align: center;
    background: transparent;
    border: none;
}
.item label{
    display: flex;
    justify-content: center;
    pointer-events: all;
}

.cont {
    height: 26px;
    width: 50px;
    background: var(--accent-inv);
    border-radius: 80px;
    overflow: hidden;
    cursor: pointer;

    transition: 0.3s;
    display: flex;
    align-items: center;
    margin-right:20px;
}

.accent{
background-color:var(--accent-main);
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
border-radius:8px;
}

#title{
    width: 60vw;
    text-align: center;
}

#params{
    display:flex;
    flex-direction: row-reverse;
    width:20vw;
}

#toolbox{
    display:flex;
    width:20vw;
}

.btn{
    height: 40px;
    padding: 0 10px;
    width: fit-content;
    text-align: center;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#params input {
    display: none;
}

.cont:before {
content: "";
margin: 0 3px;
height: 20px;
width: 20px;
background: var(--bg-sec);
border-radius: 80px;
transition: 0.5s;
}

.btn-toggle:checked ~ .cont:before {
    transform: translateX(125%);
    background: var(--bg-main);
}

.fm{
    position: absolute;
    flex-direction: column;
    background: var(--bg-main);
    padding: 1rem 0;
    border-radius: 1rem;
    z-index: 10;
    color: var(--accent-inv)
}

.fm > div{
    margin: 0;
    display: flex;
    align-items: center;
    padding: 5px 1rem;
}

.color {
width: 2rem;
height: 2rem;
border-radius: 1rem;
margin-right: 10px;
}

#fm > div.selected {
background: var(--bg-contrast);
}

h4{
    margin: 0;
}

.fm > div:hover{
background: var(--bg-contrast);
cursor: pointer;
}

#stats{
    display: flex;
    color: var(--accent-inv);
    width: calc(100% - 2px);
    background-color: var(--bg-sec);
    align-items: center;
    border: solid 1px var(--border);
    justify-content: space-around;
    border-radius: 0.4rem;
    user-select: none;
}

footer{
    height: 2svh;
    position: fixed;
    bottom: 0;
    width: 100vw;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    color: var(--accent-inv);
    background-color: var(--bg-sec);
    align-items: center;
    border-top:solid 1px var(--border);
}

#menu-wrapper{
    width: 68vw;
    height: 91svh;
    margin: 0 auto;
    overflow-y: auto;
}

#menu-projects{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.menu-project{
    border: 1px solid var(--border);
    width: 13vw;
    display: flex;
    justify-content: center;
    border-radius: 10px;
    padding: 1rem;
    background: var(--bg-sec);
    margin-right: 2vw;
    margin-bottom: 2vh;
    cursor: default;
    word-break: break-word;
    color: var(--accent-inv);
    align-items: baseline;
}

.menu-project:hover{
    background: var(--border);
}

.more {
    height: 0;
    display: flex;
    flex-direction: row-reverse;
}

.more i{
    margin: 0.45rem 0.2rem;
    font-size: 0.8rem;
    pointer-events: all;
    cursor: pointer;
}

.item-wrapper{
    --scrollY:0px;
    --scrollX:0px;

    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    pointer-events: none;
}

#titleElement{
    font-size: 1.5em;
    font-weight: bold;
    font-family: 'Roboto Mono', monospace;
    color:var(--accent-inv);
}

.add {
    height: calc(100% - 0.5rem);
    display: grid;
    width: 2px;
    background: #0066FF;
    justify-content: center;
    align-items: center;
    margin: 0 2px;
    user-select: none;
}

.add div {
    background: #0066FF;
    color: white;
    border-radius: 50%;
    display: flex;
    width: 1.4rem;
    height: 1.4rem;
    font-size: 1.2rem;
    justify-content: center;
    font-family: monospace;
    align-items: center;
}

#workspace-overlay {
    width: 100vw;
    height: 88svh;
    position: relative;
    top: calc(-2rem - 88svh);
    pointer-events: none;
}

.hitbox{
    opacity:0;
    width: fit-content;
    height: 100%;
    position: relative;
    transition: all 0.2s;
    pointer-events: all;
    cursor: pointer;
    left: 100%;
    display: flex;
    align-items: center;
}

.hitbox:hover{
    opacity:1;
    transition: all 0.2s;
}

h1{
    color: var(--accent-inv);
}

#sharing{
    height: 100svh;
    background: #0000009e;
    position: absolute;
    width: 100vw;
    z-index: 11;
    align-items: center;
    justify-content: center;
}

#sharing-menu{
    width: 400px;
    height: fit-content;
    background: var(--bg-main);
    border-radius: 1rem;
    padding: 2rem;
    padding-top: 1.2rem;
}

#sharing-menu .cont{
    margin-right: 0;
}

#sharing-menu h3{
    font-weight: 500;
    color: var(--accent-inv);
    opacity: 0.7;
    letter-spacing: -1px;
}

.inline{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

#sharing-menu input{
    background: var(--bg-contrast);
    border: 1px solid var(--border);
    padding: 5px 15px 5px 15px;
    font-size: 0.8rem;
    display: flex;
    height: 1.2rem;
    width: calc(100% - 31px);
    text-align: start;
    color: black;
    border-radius: 15px;
    align-items: center;
}

#public-link input{
    background: var(--bg-contrast);
    border: 1px solid var(--border);
    padding: 5px 10px;
    font-size: 0.8rem;
    width: 100%;
    height: 1.2rem;
    color: grey;
    border-radius: 15px 0 0 15px;
}

#copy-input{
    background: var(--bg-contrast);
    border: 1px solid var(--border);
    padding: 5px 9px 5px 5px;
    font-size: 0.8rem;
    display: flex;
    height: 1.2rem;
    border-left: 0;
    color: grey;
    border-radius: 0 15px 15px 0;
    align-items: center;
}

#notif {
    background: var(--bg-contrast);
    height: fit-content;
    width: fit-content;
    z-index: 20;
    padding: 1rem 1.2rem;
    line-height: 1.6rem;
    font-size: 1.2rem;
    border-radius: 10px;
    border-bottom: 5px solid var(--accent-main);
    position: absolute;
    top: 12vh;
    color: var(--accent-inv);
    text-align: center;
    justify-content: center;
    min-width: calc(400px - 2rem);
    box-shadow: 10px 10px 13px -11px rgb(0, 0, 0);
}

#paramIcon{
    margin-right: 20px;
    font-size: 1.6rem;
}

#menu-account{
    position: fixed;
    height: 91svh;
    top: 7svh;
    right: 0;
    background: var(--bg-main);
    border-left: 1px solid var(--border);
    width: 20vw;
    padding: 0 1rem;
    flex-direction: column;
}

.bigBtn {
    width: 90%;
    background-color: var(--accent-main);
    color: #ffffff;
    border-radius: 1.2rem;
    display: flex;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    min-height: 52px;
    font-size: 1rem;
    cursor: pointer;
    border: 0;
    transition: all 0.3s;
}

.bigBtn:hover {
    opacity: 0.8;

}

.drag-handle{
    cursor: grab;
    color: #333333;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}


.item[draggable="true"]:hover .drag-handle {
    opacity: 1;
    transition: opacity 0.2s ease;
}

.drag-handle {
    opacity: 0.5;
    transition: opacity 0.2s ease;
    cursor: grab;
}

.drag-handle:hover {
    opacity: 1;
}

.item.dragging {
    opacity: 0.5;
    transition: transform 0.1s ease;
}

.item[draggable="false"] .drag-handle {
    display: none;
}

.drop-preview {
    position: absolute;
    display: none;
    z-index: 1000;
    height: 3px;
    background: #0066FF;
    border-radius: 2px;
    box-shadow: 0 0 12px rgba(236, 104, 91, 0.7);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}


#workspace-overlay {
    pointer-events: none;
    z-index: 999;
}

@media only screen and (max-device-width: 480px)
and (orientation: portrait) {
    .btn{
        height: 70px;
        padding: 0 20px;
        margin-left: 20px;
        font-size: 2rem;
    }

    .accent{
        border-radius: 20px;
    }

    h1{
        font-size: 3rem;
    }

    .menu-project{
        width: 34vw;
        border-radius: 20px;
        font-size: 1.8rem;
        margin: 0 3vw;
        margin-bottom: 2rem;
        gap: 1rem;
    }

    #menu-wrapper {
        width: 87vw;
        height: 89svh;
    }

    #paramIcon {
        margin-right: 30px;
        font-size: 3rem;
    }

    .cont {
        height: 48px;
        width: 100px;
        border-radius: 80px;
        margin-right: 30px;
    }

    .cont:before {
        margin: 0 6px;
        height: 40px;
        width: 40px;
        border-radius: 160px;
    }

    h6 {
        font-size: 1.4rem;
    }

    footer{
        height: 4svh;
    }

    .bigBtn {
        margin-top: 2rem;
        min-height: 75px;
        font-size: 1.8rem;
    }

    #menu-account {
        width: 60vw;
    }

    #titleElement {
        font-size: 2.5em;
    }

    input{
        font-size: 1.8rem;
    }

    .item {
        min-height: 5.5rem;
        min-width: 30vw;
    }

    #workspace {
        max-width: 97vw;
    }

    p{
        font-size: 1.8rem;
    }
}
