body {
    font-family: sans-serif;
    margin: 0;
    background: #f4f6f8;
    color: #1a1a1a;
    padding: 3rem;
    box-sizing: border-box;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: hsl(210, 29%, 24%);
}

.main-logo {
    translate: 0 0.15em;
    margin-right: 0.4em;
    height: 1em;
}

.button {
    background-color: #2980b9;
    color: white;
    padding: 0.5em 1em;
    border-radius: 9999px;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.2s;
    cursor: pointer;
    user-select: none;
}

.button:hover {
    background-color: #226a99;
}

.instructions {
    max-width: 800px;
    margin: 0 auto 2rem;
    background: #ecf0f1;
    border-left: 5px solid #2980b9;
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

.bookmarklet-list {
    display: grid;
    gap: 2%;
    grid-template-columns: repeat(auto-fit, minmax(280px, 32%));

    .card {
        display: flex;
        flex-direction: column;
        background: #ffffff;
        border-radius: 1rem;
        padding: 1.5rem;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);

        &:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
        }

        .title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            color: #34495e;
        }

        .description {
            font-size: 0.95rem;
            opacity: 0.85;
            margin-bottom: 1rem;
            flex-grow: 1;
        }

        .button-wrapper {
            position: relative;
            display: inline-block;
        }

        .button-wrapper:hover .button {
            background-color: #226a99;
        }

        .button {
            transition: 0.5s;
            background-size: 200% auto;
            box-shadow: 0 0 20px #eee;
            background-image: linear-gradient(45deg, #20618d 0%, #2e8dcc 51%, #20618d 100%);
            background-position: right center;
        }

        &:hover .button,
        &:hover:active .button,
        &:hover:focus .button {
            background-position: left center;
            color: #fff;
            text-decoration: none;
        }

        .anchor {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 2;
            opacity: 0;
            text-decoration: none;
        }

    }

}

.spacer {
    flex-grow: 1;
}

footer {
    text-align: center;
    font-size: 0.9rem;
    color: #a2aaab;
    margin-top: 2rem;
}

.donate {
    zoom: 0.7;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }
    .bookmarklet-list {
        grid-template-columns: 1fr;
    }
}

.custom-dialog {
    background: #ffffff;
    border: none;
    border-bottom: 4px solid #2980b9;
    border-radius: 0.5rem;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeIn 0.5s forwards;
    outline: none;
}

.custom-dialog::backdrop {
    background-color: #00000080;
}

.consent-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.consent-buttons {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.consent-accept {
    transition: 0.4s;
    background-size: 200% auto;
    box-shadow: 0 0 20px #eee;
    background-image: linear-gradient(45deg, #20618d 0%, #2e8dcc 51%, #20618d 100%);
    background-position: right center;
    font-weight: bold;
    border: none;
}

.consent-accept:hover {
    background-position: left center;
    color: #fff;
    text-decoration: none;
}

.consent-decline {
    background-color: #ecf0f1;
    color: #2c3e50;
    padding: 0.5em 1em;
    border: none;
    border-radius: 9999px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.consent-decline:hover {
    background-color: #d0d7db;
}