body {
    background: rgba(0, 0, 0, 0.9);
    margin: 0;
    font-family:  Helvetica, Arial, sans-serif;
}

*, *::after, *::before {
    box-sizing: border-box;
}

h1, h2, h3, h4, p, ul {
    margin: 0;
    padding: 0;
}

.container {
    max-width: 100%;
    padding: 40px 20px 100px 20px;
    width: 360px;
    margin: 0 auto;
}

.todo { 
    display: flex;
    flex-direction: column;
    gap: 1.5em;
}

.todo__item {
    display: flex;
    align-items: center;
    margin-right: 0px;
    color: white;
}

.todo__label {
    font-weight: 400;
    font-size: 18px;
    width: 100%;
    display: flex;
    align-items: center;
}

.todo__label input {
    display: none;
}

.todo__item form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    width: 100%;
}

.todo__item input[type="text"] {
    background: none;
    border: none;
    font-size: 18px;
    color: white;
    outline: none;
    border: 1px solid white;
    border-radius: 10px;
    padding: 10px;
    width: 100%;
}

.todo__add {
    background: none;
    border: none;
    font-size: 18px;
    color: white;
    border: 1px solid white;    
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
}

.todo__delete {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}
.todo__delete svg { 
    width: 30px;
    height: 30px;
}

.todo__label input:checked+span::before {
    background: #16a085;
    background-size: contain;
}

.todo__label input+span::before {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    flex-grow: 0;
    border: 1px solid #16a085;
    margin-right: 0.5em;
    margin-bottom: -3px;
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 50%;
}


.header {
    padding: 10px 15px;
    color: #FFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    border: 1px solid #16a085;
    border-radius: 10px;
}

.header__img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.header__h2 {
    font-size: 18px;
    max-width: 10ch;
    overflow: hidden;
    text-decoration: none;
    color: #FFF;
}

.header_btn {
    background: #16a085;
    color: #FFF;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 8px;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid__card {
    padding: 10px;
    border: 1px solid #16a085;
    color: #FFF;
    text-decoration: none;
    border-radius: 10px;
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.rekblock {
    margin-top: 80px;
    max-height: 200px;
}

.delete_list {
    display: flex;
    align-items: center;
    background: #C01B04;
    color: #C01B04;
    /* color: #FFF;  */
    width: 100%;
    border-radius: 10px;  
    border: none;
    justify-content: space-between;
    padding: 10px 15px;
    margin-top: 20px;
    background: none;
    border: 1.5px solid #C01B04;
    cursor: pointer;
    font-size: 16px;
}

.delete_list svg{
    width: 20px;
    height: 20px;
}

.open_list, .copy_link {
    width: 100%;
    border-radius: 10px;  
    border: none;
    padding: 10px 15px;
    margin-top: 20px;
    background: none;
    cursor: pointer;
    color: #FFF;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.copy_link {
    border: 1.5px solid #FFF;
}

.open_list svg {
    width: 22px;
    height: 22px;
}

/* .open_list span.open {
    color: #164ad9;
}

.open_list span.close {
    color: #C01B04;
} */

.open_list.close {
    background: #C01B04;
}

.open_list.close .open {
    display: none;
}

.open_list.open {
    background: #16a085;
}

.open_list.open .lock {
    display: none;
}

.hint {
    position: fixed;
    top: 0;
    left: 0;
    color: #FFF;
    font-weight: bold;
    background: #16a085;
    padding: 7px 10px;
    border-bottom-right-radius: 10px;
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.active_hint {
    opacity: 1;
}

.sub {
    color: #FFF;
}

.sub__title {
    margin-bottom: 16px;
}

.sub__text {
    margin-bottom: 16px;
}

.sub__list {
    margin-bottom: 16px;
}

.sub__item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.sub__item:last-child {
    margin-bottom: 0;
}

.sub__item svg {
    width: 1.5em;
    height: 1.5em;
}

.sub__link {
    display: block;
    border-radius: 10px;
    padding: 8px 12px;
    background: #16a085;
    color: #FFF;
    text-align: center;
    text-decoration: none;
    margin-bottom: 16px;
}

.sub__link:last-child {
    margin-bottom: 0;
}

.sub__link--red {
    background: #C01B04;
}