@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

:root {
    --font-family: 'Roboto', Verdana, sans-serif;
    --bg-color: #f4f4f9;
    --primary-color: #6a5acd;
    --accent-color: #9b59b6;
    --text-color: #3e4a89;
    --footer-color: #666;
    --transition-speed: 0.3s;
    --max-width: 1000px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;

    margin: 0;
    padding: 0;
    width: 100%;
    background: var(--bg-color);
    font-family: var(--font-family);
    color: var(--text-color);
    text-align: center;
    overflow-x: hidden;
    font-size: 18px;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.social-items {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-items-header {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.social-items a {
    display: inline-block;
    position: relative;
    transition: transform var(--transition-speed, 0.3s);
}

.social-items img {
    width: 52px;
    height: 52px;
    transition: transform var(--transition-speed, 0.3s);
}

.social-items img:hover {
    transform: scale(1.15);
}

.social-items-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* Tooltip */
.social-items-container a::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(50, 50, 50, 0.85);
    color: #fff;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity var(--transition-speed, 0.3s),
        transform var(--transition-speed, 0.3s);
    z-index: 100;
}

.social-items-container a:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px);
}

.footer {
    max-width: var(--max-width);
    margin-top: 25px;
    padding: 0 20px;
    color: var(--footer-color);
    line-height: 1.4;
}

.footer p {
    margin: 6px 0;
}

/* === Animation fadeIn === */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Mobile adaptive === */
@media (max-width: 768px) {
    .social-items-header {
        font-size: 1rem;
    }

    .social-items img {
        width: 44px;
        height: 44px;
    }

    .footer {
        font-size: 0.75rem;
    }

    .footer p {
        margin: 5px 0;
    }
}
