p {
    text-align: center;
    margin: 0 auto;
    width: fit-content;
}

.header-container {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.header-image {
    width: 100px;
    height: 100px;
}

.button-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    padding: 10px;
}

.pebble-button {
    width: 50px;
    height: 50px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
    text-decoration: none;
}

.social-icon {
    width: 24px;
    height: 24px;
}

.pebble-button:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-color: #bbb;
}

.pebble-button:focus {
    outline: 3px solid black;
    outline-offset: 2px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    border-color: #999;
}

.pebble-button[data-tooltip] {
    position: relative;
}

.pebble-button[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000000;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    margin-bottom: 5px;
}

.pebble-button:hover::after,
.pebble-button[data-tooltip]:hover::after {
    opacity: 1;
}

.pebble-button:focus::after {
    opacity: 0;
}

@media (prefers-color-scheme: dark) {
    .pebble-button:hover {
        border-color: #888;
        box-shadow: 0 4px 8px rgba(255, 255, 255, 0.3);
    }

    .pebble-button:focus {
        outline: 3px solid white;
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
        border-color: #ccc;
    }

    .pebble-button[data-tooltip]::after {
        background-color: #ffffff;
        color: #000000;
    }
}

@media (max-width: 600px) {
    .header-container {
        gap: 8px;
    }

    .header-image {
        width: 75px;
        height: 75px;
    }

    h1 {
        font-size: 1.5rem;
    }

    p {
        font-size: 0.9rem;
    }

    .button-container {
        gap: 10px;
        padding: 15px;
    }

    .pebble-button {
        width: 45px;
        height: 45px;
    }

    .social-icon {
        width: 20px;
        height: 20px;
    }

    .pebble-button[data-tooltip]::after {
        font-size: 10px;
        padding: 4px 8px;
    }
}

