*
{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root
{
    font-size: 16px;
    --main-bg-color: #111116;
    --main-header-color: #08080D;
    --main-accent-color: #FF3939;
    --main-text-color: #eeeeee;
    --main-task-color: #252525;
    --main-task-header-bg: #ffffff15;
    --main-task-done-bg: #558860aa;
    --main-task-time-over-bg: #885555aa;

    --secondary-bg-color: #222226;
}

body
{
    font-family: 'Open Sans', sans-serif;
    background: var(--main-bg-color);
    color: var(--main-text-color);
    min-height: 100vh;

    position: relative;
}

a
{
    text-decoration: none;
}

img
{
    display: block;
    max-width: 100%;
}

button
{
    display: block;
}

input, textarea
{
    font-family: inherit;
    font-size: 100%;
    appearance: none;
}

.header
{
    background: var(--main-header-color);
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

.header__title
{
    display: none;
}

.header__img
{
    width: 80px;
}

.options
{
    display: flex;
    width: 50%;
    max-width: 200px;
    justify-content: space-between;
}

.options__button
{
    appearance: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background-color: var(--main-accent-color);
    background-position: 6px 6px;
    background-size: 30px 30px;
    background-repeat: no-repeat;
}

.options__button:active
{
    background-color: #fc5b5b;
}

.options__button span
{
    display: none;
}

@media screen and (min-width: 768px) {

    .options
    {
        max-width: 400px;
    }
    .options__button
    {
        width: auto;
        height: 40px;
        border-radius: 2px;
        padding: 10px;
        padding-left: 40px;
        background-position: 7.5px 7.5px;
        background-size: 25px 25px;
        color: var(--main-text-color);

        display: flex;
    }

   .options__button span
   {
    display: block;
   } 

   form, .datetime, .tasks
   {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
   }
}

.options__button--add
{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z' fill='rgba(255,255,255,1)'/%3E%3C/svg%3E");
}

.options__button--download
{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M3 19h18v2H3v-2zM13 9h7l-8 8-8-8h7V1h2v8z' fill='rgba(255,255,255,1)'/%3E%3C/svg%3E");
}

.options__button--history
{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0H24V24H0z'/%3E%3Cpath d='M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12h2c0 4.418 3.582 8 8 8s8-3.582 8-8-3.582-8-8-8C9.536 4 7.332 5.114 5.865 6.865L8 9H2V3l2.447 2.446C6.28 3.336 8.984 2 12 2zm1 5v4.585l3.243 3.243-1.415 1.415L11 12.413V7h2z' fill='rgba(255,255,255,1)'/%3E%3C/svg%3E");
}
.add_task_form
{
    padding: 10px;
    display: none;
    flex-flow: column wrap;
}

textarea,input
{
    margin-bottom: 5px;
    border: 0;
    padding: 8px;
    background-color: var(--secondary-bg-color);
    color: var(--main-text-color);
}
input:focus, textarea:focus
{
    outline: 1px solid var(--main-accent-color);
}

.form__description
{
    resize: vertical;
    min-height: 80px;
}

.datetime
{
    padding: 10px;
}

.datetime__date, .datetime__time
{
    text-align: left;
}

.datetime__date
{
    margin-bottom: 5px;
}

.date__history
{
    display: none;
}
/* history form */

.history_form
{
   display: none; 
   padding: 10px;
}
.history__text
{
    margin-bottom: 10px;
}

.tasks
{
    padding: 10px;
}

.tasks__options
{
    display: flex;
    justify-content: flex-end;
    background-color: var(--main-task-header-bg);
    padding: 5px;
}
.tasks__options.task-done-true
{
    background-color: var(--main-task-done-bg)
}

.tasks__option--text
{
    display: none;
}

.tasks__option
{
    display: block;
    width: 34px;
    height: 34px;

    border: 0;

    background-size: 24px 24px;
    background-position: 5px 5px;
    background-repeat: no-repeat;
    background-color: transparent;
}
.tasks__option:hover
{
    background-color: rgba(255, 255, 255, 0.144);;
}


.tasks__option:nth-child(1)
{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M11.602 13.76l1.412 1.412 8.466-8.466 1.414 1.414-9.88 9.88-6.364-6.364 1.414-1.414 2.125 2.125 1.413 1.412zm.002-2.828l4.952-4.953 1.41 1.41-4.952 4.953-1.41-1.41zm-2.827 5.655L7.364 18 1 11.636l1.414-1.414 1.413 1.413-.001.001 4.951 4.951z' fill='rgba(255,255,255,1)'/%3E%3C/svg%3E");
}
.tasks__option:nth-child(3)
{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M17 6h5v2h-2v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V8H2V6h5V3a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v3zm-8 5v6h2v-6H9zm4 0v6h2v-6h-2zM9 4v2h6V4H9z' fill='rgba(255,255,255,1)'/%3E%3C/svg%3E");
}

.tasks__option:nth-child(2)
{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='none' d='M0 0h24v24H0z'/%3E%3Cpath d='M9.243 19H21v2H3v-4.243l9.9-9.9 4.242 4.244L9.242 19zm5.07-13.556l2.122-2.122a1 1 0 0 1 1.414 0l2.829 2.829a1 1 0 0 1 0 1.414l-2.122 2.121-4.242-4.242z' fill='rgba(255,255,255,1)'/%3E%3C/svg%3E");
}

.tasks__task
{
    background-color: var(--main-task-color);

    margin-bottom: 20px;
    padding: 0;
    border-radius: 2px;
}

.tasks__info
{
    display: flex;;
    flex-flow: column;

    padding: 5px 10px;
}

.tasks__name--input, .tasks__description--input, .tasks__done_time--content--input
{
    background-color: var(--main-task-header-bg);
    color: white;

    border: 0;

    padding: 8px;
}

.tasks__add_time, .tasks__done_time
{
    font-size: 0.7rem;
}

.tasks__done_time--content--input
{
    padding: 5px;
}


.tasks__description
{
    margin-top: 5px;
}

.tasks__description--input
{
    margin-top: 10px;
}

.tasks__add_time
{
    margin-top: 20px;
}

.tasks__submit
{
    margin-top: 10px;
    background-color: var(--main-task-header-bg);
}

.footer
{
    padding: 5px;
}
.footer__copy
{
    font-size: 0.7rem;
    position: absolute;
    bottom: 10px;
    left: 10px;
}

@media print
{
    .options
    {
        display: none;
    }

    .add_task_form
    {
        display: none !important;
    }
}