body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    width: 100%;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    border-radius: 12px;
}

.link-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    border: 1.5px solid #141414;
    border-radius: 12px;
    box-shadow: #0f1f89 6px 6px 0px 0px;
    background-color: #fff;
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.link-item:hover {
    transform: scale(1.02);
    box-shadow: #0f1f89 8px 8px 0px 0px;
}

.counter {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #141414;
    position: relative;
}

.link-image {
    width: 48px;
    height: 48px;
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

.link-content {
    margin-left: 15px;
}

.link-title {
    display: block;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
    color: black;
}

.link-url {
    display: none;
}

.action-buttons {
    margin-left: auto;
    display: flex;
    gap: 10px;
}

.edit-button,
.delete-button {
    background-color: #0f1f89;
    color: white;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.edit-button:hover,
.delete-button:hover {
    background-color: #141414;
}

@media (min-width: 600px) {
    .container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .link-item {
        flex: 1 1 calc(50% - 20px); /* Two items per row */
    }
}

@media (min-width: 900px) {
    .link-item {
        flex: 1 1 calc(33.333% - 20px); /* Three items per row */
    }
}
