#checklist {
    text-align: center;
    justify-items: center;
    margin-bottom: 100px;
}

.container {
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    text-align: center;
    margin: auto;
    margin-top: 40px;
}

#addChecklistButton {
    font-size: large;
    margin-top: 40px;
}

.visually-hidden {
    visibility: hidden;
    font-size: smaller;
    margin: 0;
    padding: 0;
}

.checklist {
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.checklist-name {
    font-size: 18px;
    font-weight: bold;
    border: none;
    width: 100%;
    background-color: transparent;
}

.items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.items li {
    display: flex;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #eee;
    line-height: 1.5;
    text-align: left;

}


input[type=checkbox] {
    display: none;
    transition: background 0.3s ease;
}

input[type=checkbox]:checked+label {
    background-image: url('/assets/icons/check.svg');
    background-repeat: no-repeat;
    background-position: left center;
    padding-left: 24px;
    cursor: pointer;
    transition: background 0.3s ease;
}

label {
    display: inline-block;
    width: 100%;
}


.items li svg {
    width: 1em;
    height: 1em;
    margin-left: 10px;
    cursor: pointer;
    display: none;
    filter: drop-shadow(2px 2px 1px rgba(0, 0, 0, .1));
    vertical-align: middle;
}

input:focus,
input:hover {
    border: 1px dashed lightgrey;
}

.items li:hover svg {
    display: inline;
}

.items li svg:hover {
    transform: scale(1.2);
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.new-item {
    flex: 1;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: rgba(255, 255, 255, 0.8);
}

button {
    background-color: unset;
    border: unset;
    cursor: pointer;
}

button:hover {
    transform: scale(1.05);
}

button svg {
    filter: drop-shadow(2px 2px 1px rgba(0, 0, 0, .1));
}

.add-item {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 5px;
}

#print-footer {
    display: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.3s ease forwards;
}


@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

.fade-out {
    animation: fadeOut 0.5s ease forwards;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

.fade-in-active {
    opacity: 1;
}




@media print {
    body {
        background: none !important;
    }

    section.contacto,
    footer {
        display: none;
    }

    button,
    .button-container,
    .icon-svg,
    .actions,
    h1,
    .modal-container,
    p {
        display: none !important;
    }



    /* Solo la checklist que se imprimirá */
    #checklistContainer .checklist.print-only {
        display: block !important;
        background-color: inherit;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .hidden-checklist {
        display: none;
    }

    header,
    header * {
        display: block;
    }

    #print-footer {
        display: block !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        text-align: center;
        font-size: 12px;
    }
}