body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

main {
    flex: 1;
}

#cards .card {
    scale: .9;
    transition: transform 0.3s;
}

#cards .card:hover,
.txtreset:hover, .keep:hover {
    transform: scale(1.1);
}


input[type='file'] {
    max-width: 0px;
    opacity: 0;
}

.txtedit {
    white-space: pre-wrap;
    max-height: 500px;
    overflow-y: scroll;
}

[data-bs-theme=light] .added {
    background-color: #d4fcbc;
}

[data-bs-theme=light] .removed {
    color: grey;
    background-color: #fbb;
    text-decoration: line-through;
}

[data-bs-theme=light] .updated {
    background-color: yellow;
}

[data-bs-theme=dark] .added {
    background-color: #198754;
}

[data-bs-theme=dark] .removed {
    color: #abb5bd;
    background-color: #dc3545;
    text-decoration: line-through;
}

[data-bs-theme=dark] .updated {
    background-color: blue;
}

/* The device with borders */
.tablet {
    position: relative;
    margin: auto;
    background-color: silver;
    border: 16px silver solid;
    border-top-width: 60px;
    border-bottom-width: 60px;
    border-radius: 36px;
}


/* The horizontal line on the top of the device */
.tablet:before {
    content: '';
    display: block;
    width: 60px;
    height: 5px;
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #333;
    border-radius: 10px;
}

/* The circle on the bottom of the device */
.tablet:after {
    content: '';
    display: block;
    width: 35px;
    height: 35px;
    position: absolute;
    left: 50%;
    bottom: -65px;
    transform: translate(-50%, -50%);
    background: #333;
    border-radius: 50%;
}

@media (max-width: 576px) {
    .tablet {
        border: 12px silver solid;
        border-top-width: 30px;
        border-bottom-width: 30px;
        border-radius: 18px;
    }
    .tablet:before {
        width: 30px;
        top: -15px;
    }
    .tablet:after {
        width: 16px;
        height: 16px;
        bottom: -30px;
    }
}
