@font-face {
    font-family: 'muli';
    src: url('../fonts/7Auwp_0qiz-afTLGLQ.woff2');
}

:root {
    /* Colors */
    --background: #e0e0e0;
    --background-task: #e0e0e0;

    --negative: #ff5a5a;
    --positive: #5aff78;

    --foreground: #253449;

    /* Fonts */
    --font-size: 22px;
    --font-size-i: 25px;
    --font-family-0: muli, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


* {
    margin: 0;
    padding: 0;
    font-family: var(--font-family-0);
}

html {
    background-color: var(--background);
    color: var(--foreground);
    font-size: var(--font-size);
    overflow-x: none;
    height: 100vh;
    padding-bottom: 10%;
}

h2 {
    margin-top: 30px;
}

footer {
    margin: auto;
    padding: 5%;
    text-align: center;
}

a {
    color: #326fb0;
    text-decoration: none;
    transition: all .6s;
}

a:hover {
    color: #52a6ff;
}

input.neu {
    font-size: 22px;
    color: val(--foreground);

    padding: 10px;

    outline: none;
    overflow: hidden;

    border-color: white;
    border-width: 0;
    border-radius: 10px;
    background: #ebebeb;
    box-shadow: inset 5px 5px 10px #cacaca,
        inset -5px -5px 10px #ffffff;
}

button {
    font-size: calc(var(--font-size) - 4px);
}

div.kbmain {
    text-align: left;
}

div.neu.taskelem:hover {
    box-shadow: 2px 2px 4px #cacaca,
        -2px -2px 4px #ffffff;
}

button.kbbutton {
    background-color: #00000000;
    color: var(--foreground);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 10px;
    transition: all .4s;

    font-size: calc(var(--font-size) - 4px);
}

button.kbbutton:hover {
    background: #ebebeb;
    box-shadow: 3.5px 3.5px 10px #cacaca,
        -3.5px -3.5px 10px #ffffff;
}

button.kbbutton:active {
    background: #ebebeb;
    box-shadow: inset 3.5px 3.5px 10px #cacaca,
        inset -3.5px -3.5px 10px #ffffff;
}

button.neu {
    border-width: 0;
    cursor: pointer;
    box-shadow: 5px 5px 7px #cacaca,
        -5px -5px 7px #ffffff;
}

button.neu:hover {
    box-shadow: 3.5px 3.5px 10px #cacaca,
        -3.5px -3.5px 10px #ffffff;
}

button.neu:active {
    background: #ebebeb;
    box-shadow: inset 5px 5px 10px #cacaca,
        inset -5px -5px 10px #ffffff;
}


/* Идентификация по id */

#input-field {
    margin: 7px;
    display: flexbox;
    z-index: 1;

    position: relative;
    display: inline-block;
    width: auto;
    justify-content: center;
}

#input-field input {
    padding: 10px 20px;
    width: 70vmin;
}

#input-field button {
    position: absolute;
    top: 0;
    right: 0;
    margin: 5px 0;

    border-color: none;
    border-radius: 10px;
    border-width: 0;
    background-color: #00000000;
    font-size: calc(var(--font-size) + 4px);

    min-width: 15%;
    cursor: pointer;
}

#input-field button:active {
    box-shadow: inset 5px 5px 10px #cacaca,
        inset -5px -5px 10px #ffffff;
}


#all-tasks {
    margin: auto;
    width: 90%;
}

/* Идентификация по class */
.m-0 {
    margin: 0;
}

.neu {
    margin: 17px;
    padding: 15px;

    transition: all 0.25s ease-in-out;

    border-radius: 10px;
    background: #ebebeb;
    box-shadow: 5px 5px 10px #cacaca,
        -5px -5px 10px #ffffff;
}

.neu.m0 {
    margin: 0;
}

.h2-task-type {
    text-align: center;
    color: grey;
    margin: 3%;
}

.taskelem {
    height: 80px;
    padding: 25px;

    opacity: .75;
    transition: all 0.2s ease-out;
    position: relative;
}

.taskelem.show1 {
    padding: 25px;

    height: 300px;
    min-height: fit-content;
    opacity: 1;
    cursor: auto;
}

.taskelem.scale {
    transform: scale(1.1);
}


.task-keyboard {
    padding: 0 0px;
    top: 0;
    right: 0;
    opacity: 0;
    position: absolute;
    transition: all .2s;
}

.task-keyboard button {
    padding: 25px 20px;
}

.task-keyboard button.keyboard_delete:hover {
    background-color: var(--negative);
}

.task-keyboard button.keyboard_complete:hover {
    background-color: var(--positive);
}

.task-keyboard.show {
    opacity: 1;
}


.task-text {
    opacity: .9;
    max-height: 6.1vh;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;

    overflow: hidden;
    transition: max-height 0.4s ease-in-out, 
        opacity 0.4s ease-out,
        font-weight 0.2s ease-in-out;
}

.task-text.show {
    white-space: normal;
    overflow: visible;
    text-overflow: inherit;

    font-weight: 500;

    max-height: 15vh;
    opacity: 1;
}

.line-through {
    text-decoration: line-through;
    font-weight: 100;
}

div.taskelem.selection {
    transform: scale3d(1.1, 1.1, 1.1);
}

.i {
    font-weight: 900;
}

.center-container {
    text-align: center;
}