*,::before{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background-color: rgb(8, 47, 73);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: system-ui;
    flex-direction: column;
}
button,
[type="button"],
[type="reset"],
[type="submit"] {
    appearance: none;
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
    text-align: inherit;
    font: inherit;
    color: inherit;
    line-height: inherit;
    cursor: pointer;
}

nav {
    display: flex;
    gap: 1rem;
    align-items: center;
    color: white;
}


nav > button {
    gap: 1rem;
    position: relative;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    display: grid;
    place-content: center;
    width: 4.5rem;
    height: 4.5rem;
    padding: 0.25rem;
}

nav > button::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid rgb(3, 105, 161);
    border-radius: 9999px;
    transition: all 0.3s;
    z-index: 10;
    display: grid;
    place-content: center;
}

nav > button:hover::before {
    inset: 35% -0.5rem 35% -0.5rem;
    background-color: rgb(3, 105, 161);
    opacity: 0.7;
}
nav > button::after {
    content: attr(title);
    position: absolute;
    inset: 0;
    transition: opacity 0.3s  150ms;
    z-index: 10;
    display: grid;
    place-content: center;
    opacity: 0;
    font-size: 0.9rem;
    text-wrap: nowrap;
}
nav > button:hover::after {
    opacity: 1;
}

nav > button > svg {
    width: 3rem;
    color: rgb(226, 232, 240);
}