/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

body {
  margin: 0;
  overflow-x: hidden;
}

main {
  display: block;
}

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

a {
  background-color: transparent;
}

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

b,
strong {
  font-weight: bolder;
}

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

img {
  border-style: none;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

button,
input { /* 1 */
  overflow: visible;
}

button,
select { /* 1 */
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

progress {
  vertical-align: baseline;
}

textarea {
  overflow: auto;
}

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

details {
  display: block;
}

summary {
  display: list-item;
}

template {
  display: none;
}

[hidden] {
  display: none;
}

/*-----------------------------------------------------------------------*/

@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');

html {

  font-family: 'Open Sans', sans-serif;
  font-size: 20px;
}

* {

  -webkit-tap-highlight-color: transparent;
  }
  
  button {
  
    cursor: pointer;
  }
  
  input {
  
    max-width: 100%;
  }

/*----------------------------------------------------------------------*/

:root {
  --trans-left:#84fab0; /* Levá část přechodu */
  --trans-right:#8fd3f4; /* Pravá část přechodu */
  --background: #fff;
  --color: #222;
}

body, button, input {
  color: var(--color);
  background: var(--background);
  transition: all 1s;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #000;
    --color: #fff;
  }
}

/* Stránka */

.page {
  display: none;
  margin-bottom: 5rem;
}

/* šablona na úkoly
      NEMAZAT */

.template {

  display: none;
}

section {

  width: 100vw;
}

input {

  box-shadow: inset 0 3px 7px -3px black;
  border: none;
  line-height: 2rem;
  -webkit-appearance: none; /* Nesprávné vyobrazování na safari iOS */
}

button {

  padding: 9px;
  border: none;
  box-shadow: 7px 7px 9px -10px var(--color), inset 0 0 15px -12px var(--color);
  border-radius: 6px;
}

.entry {

  display: flex;
  align-items: flex-end;

  background-image: linear-gradient(120deg, var(--trans-left) 0%, var(--trans-right) 100%);
}

form {

  display: flex;
  flex-wrap: wrap;

  max-width: 36rem;

  justify-content: center;
  margin: 0 auto;
}

form > * {

  max-height: 100%;
}

form > div {

  display: flex;
}

form input {

  margin: 0.5rem;
  box-shadow: inset 0px 3px 9px -4px #000000;
  border-radius: 6px;
}

.text-input {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

label {
  position: absolute;
  transform: translateX(1rem);
  opacity: 0.5;
  transition: 0.3s;
  pointer-events: none;
}

.text-input > input:focus ~ label,
.text-input > input:not(:placeholder-shown) ~ label{
  opacity: 0;
}

.second-item {

  flex-wrap: wrap;
  justify-content: center;
}

.second-item > * {

  margin: 0.5rem;
  box-shadow: 4px 4px 8px -6px #000000, -4px -4px 10px -3px #FFFFFF;
  border-radius: 6px;
}

.dropdown-wrap > *:first-child {
  box-shadow: 4px 4px 8px -6px #000000, -4px -4px 10px -3px #FFFFFF;
border-radius: 6px;
}

.btn.dropdown {

  transition: 0.3s ease;
}

.btn.dropdown.low {

  background-color: #84fab0;
}

.btn.dropdown.high {

  background-color: #ffa0a0;
}

.dropdown-menu {

  z-index: 2;
  position: absolute;

  margin-top: 9px;

  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;

  background: linear-gradient(0deg, rgba(132,250,176,1) 0%, rgba(132,250,176,1) 33%, rgba(255,255,255,1) 33%, rgba(255,255,255,1) 50%, rgba(255,255,255,1) 66%, rgba(255,160,160,1) 66%, rgba(255,160,160,1) 100%); 
  color: #000;
  box-shadow: 1px 1px 20px -9px black;
  border-radius: 9px;

  pointer-events: none;
  opacity: 0;

  transition: 0.3s ease;
}

.dropdown-menu > li {

  padding: 0.4rem;
  cursor: pointer;
}

.dropdown-menu.show {

  pointer-events: all;
  opacity: 1;
}

.task, .note {

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  box-shadow: 0 6px 9px -9px var(--color);
  transition: transform 0.5s, box-shadow 0.3s;
}

.task > *, .note > * {

  margin: 1rem;
}

.task.slideaway, .note.slideaway {
  transform: translate(100%);
  box-shadow: 0px 0px;
}

.priority {

  align-self: center;

  height: 1rem;
  width: 1rem;

  background: linear-gradient(120deg, var(--trans-left) 0%, var(--trans-right) 100%);
  clip-path: polygon(0% 0%, 0% 100%, 25% 100%, 25% 25%, 75% 25%, 75% 75%, 25% 75%, 25% 100%, 100% 100%, 100% 0%);
}

.priority.high {

  background: #ffa0a0;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.priority.low {

  background: #84fab0;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.priority.done {

  width: 1.5rem;
  clip-path: polygon(21% 68%, 100% 0, 19% 100%, 0 46%);
}

.task .text, .note .text {
  width: 366px;
  align-self: center;
}

.text-items > p {
    max-inline-size: calc(100% - 2rem);
    margin: 0.5rem auto;
}

.text-items > .text.done {

  text-decoration: line-through;
}

.text-items .time{

  font-size: 0.7rem;
}

.time > span {

  font-weight: bold;
}

@media screen and (max-width: 702px) {

  .task > .text-items,
  .note > p {

    text-align: center;
  }
}

@media screen and (max-width: 425px) {

  .task .text {

    width: 100vw;
  }
}

.button-list {

  align-self: center;
}

.completion-date {

  display: block;
    z-index: 10;
    position: fixed;
    top: -125%;
    left: calc(50% - 121px);
    min-width: max-content;
    padding: 1rem;
    border-radius: 0.5rem;
    background: var(--background);
    text-align: center;
    box-shadow: 0 0 18px -6px var(--color);
    transition: 0.3s;
    visibility: hidden;
}

.completion-date.active {

  top: calc(50% - 264px);
  visibility: visible;
}

.completion-date div {

    margin: 0.25rem;
}

.completion-date > div {

    display: flex;
    flex-wrap: no-wrap;
    flex-direction: column;
    max-width: 36rem;
    min-width: max-content;
    margin: 0 auto;
}

.completion-date > div > div{

    display: flex;
}

.completion-date button {

    margin: 0 6px;
}

.completion-date input {

  width: 2rem;
  height: 2rem;
  align-self: center;
  text-align: center;
  border-radius: 5px;
}

.completion-date div > button {

  width: 1.5rem;
  margin: auto 3px;
  box-shadow: none;
  font-weight: bold;
}

#set-datetime-inp {
  width: 192px;
  font-size: 80%;
  background: var(--background);
}

#set-datetime-inp::-webkit-calendar-picker-indicator {
  filter: contrast(0);
}

/* Hlavní menu */
.main-menu{
  z-index: 10;
  position: fixed;
  top: calc(100% - 4rem);
  width: 100%;
  height: 100vh;
  text-align: center;
  transition: 0.3s ease;
}

.main-menu.active {
  top: 0;
}

.main-menu > .hamburger {
  cursor: pointer;
  width: 4rem;
  height: 4rem;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0.5rem 0;
  border-radius: 1rem 1rem 0 0;
  box-shadow: 0 0 8px -4px var(--color);
  background: var(--background);
  transition: 0.3s ease;
}

.main-menu > .hamburger > p {
  margin-block-start: 0;
  margin-block-end: 0;
}

.main-menu > .options {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: calc(100vh - 4rem);
  background: var(--background);
  box-sizing: border-box;
  padding: 1rem;
  transition-delay: 0.3s;
}

.main-menu > .options .item {
  display: flex;
  justify-content: center;
  flex-direction: row;
  opacity: 0;
  transition: 0.3s ease;
}


.main-menu.active > .options .item {
  opacity: 1;
}

.main-menu > .options .item > p{
  font-size: 1.2rem;
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.main-menu > .options .item > img{
  margin: 0 1rem;
  width: 1rem;
  height: 1rem;
  align-self: center;
}

.main-menu > .hamburger > .line {
  position: relative;
  background: var(--color);
  height: 3px;
  width: 2rem;
  margin: 9px auto;
  border-radius: 3px;
  top: inherit;
  bottom: inherit;
  opacity: 1;
  transition: 1s;
}

.main-menu.active > .hamburger {
  width: 100%;
  border-radius: 0;
}

.main-menu.active >.hamburger > .line {
  background: red;
}

.main-menu.active >.hamburger > .line.\31 {
  transform: rotate(45deg);
  top: 20%;
}

.main-menu.active >.hamburger > .line.\32 {
  opacity: 0;
}

.main-menu.active >.hamburger > .line.\33 {
  transform: rotate(-45deg);
  bottom: 20%;
}

/* Nastavení */

.page#settings {
  max-width: 20rem;
  margin: 1rem auto 4rem;
  padding: 1rem;
}

.page#settings .item{
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.page#settings .item > p{
  align-self: center;
}

.page#settings .item button{
  margin: 1rem 0.1rem;
}

.page#settings .color-inputs img{
  display: none;
}

.page#settings .color-inputs input{
  height: 2rem;
  width: 2rem;
}
