
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

::-webkit-scrollbar {
    width: 7px;
}

::-webkit-scrollbar-track {
    background-color: #005e27;
}

::-webkit-scrollbar-thumb {
    background: #00ff6a;
    border-radius: 10px;
}

body {
    background: #fb00ff;
    background: linear-gradient(135deg,rgba(251, 0, 255, 1) 0%, rgba(153, 0, 255, 1) 100%);
    background-attachment: fixed;
    background-size: auto;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
}

main {
    display: grid;
    grid-template-areas: 
    "article article aside"
    "article article aside";
}

article {
    grid-area: article;
    flex: 1;
    min-width: 0;
}

aside {
    grid-area: aside;
}

header {
    grid-area: header;
    display: none;
}

.todo {
    border-radius: 20px;
    border-color: chartreuse;
    background-color: rgba(255, 255, 255, 0.158);
}

a {
    color: white;
    text-decoration: none;
}

.deletebtn {
    background-color: crimson;
    color: rgb(0, 0, 0);
    border-radius: 100px;
    font-size: 20px;
    transition: 0.2s;
    border: 2px solid #ff000000;
    display: flex;
    flex-wrap: nowrap;
}

.deletebtn:hover {
    background-color: rgb(0, 0, 0);
    color: crimson;
    border-radius: 100px;
    
}

.editbtn {
    background-color: rgb(60, 255, 0);
    color: rgb(252, 88, 255);
    border-radius: 100px;
    font-size: 20px;
    transition: 0.2s;
    border: 2px solid #ff000000;
}

.editbtn:hover {
    background-color: rgb(0, 0, 0);
    color: rgb(60, 255, 0);
    border-radius: 100px;
    
}

input,
textarea {
    border: solid #ffffff;
    background-color: rgb(252, 88, 255);
    color: white;
    border-radius: 10px;
}

div[popover] {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fb00ff;
    background: linear-gradient(135deg,rgba(251, 0, 255, 1) 0%, rgba(153, 0, 255, 1) 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
  }

  div[popover][data-show] {
    display: block;
  }

  div[popover] .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #888;
  }

  div[popover] .close-btn:hover {
    color: white;
  }


.categories-container {
    column-count: 3;       
    column-gap: 20px;      
}

@media (min-width: 1600px) {
    .categories-container {
        column-count: 5;
    }
}

@media (max-width: 768px) {
    .categories-container {
        column-count: 1;
    }

    main {
    display: grid;
    grid-template-areas: 
    "article"
    "aside";
}
}

.categories {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
}


button {
    background-color: rgb(252, 88, 255);
    color: white;
    border: solid #ffffff;
    border-radius: 10px;
    transition: 0.2s;
}

button:hover {
    background-color: rgb(146, 33, 148);
    color: white;
    border: solid #ffffff;
    border-radius: 10px;
}


.general-grid input[type="number"] {
    width: 7ch; /* ch = šířka znaku, 3ch se vejde 2 čísla + trochu prostoru */
    padding: 2px 4px;
    font-size: 0.9rem;
    text-align: center;
}

.general-grid {
    display: flex;       /* položky vedle sebe */
    flex-wrap: wrap;     /* pokud je jich víc, zalomí se řádek */
    gap: 4px;            /* mezery mezi inputy */
    align-items: center; /* vertikální zarovnání */
}