/* 
    BROWSER RESET
*/

*,
*::before,
*::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif
}

/* main */
main {
    padding: 1rem;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background-color: thistle;
}

header {
    max-width: 60%;
    margin-inline: auto;
    text-align: center;

    & h1 {
        margin-bottom: 1rem;
        color: darkslategray;
    }

    & p {
        color: rgba(139, 0, 139, 0.5);
    }
}

.keys {
    width: 50%;
    margin-inline: auto;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

button {
    display: block;
    width: 80px;
    height: 80px;
    cursor: pointer;
    background-color: darkseagreen;
    border: solid 3px darkslategray;
    /* transition: all 250ms ease-in-out; */
}

button kbd {
    display: block;
    font-family: monospace;
    font-size: 2rem;
    font-weight: bold;
    color: darkslategray;
}

button .sound {
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    color: darkolivegreen;
}

button:hover {
    border-width: 5px;
    animation: animateBtn 200ms ease-in-out;
}

button:hover kbd {
    font-size: 2.2rem;
}

@keyframes animateBtn {
    0% {
        border-width: 3px;
    }

    100% {
        border-width: 5px;
    }
}