﻿body {
    display: flex;
    justify-content: inherit;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
    background-color: teal;
}

p {
    font-size: 24px;
    color: black;
    text-align: center;
    max-width: 600px;
    margin: 20px;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

button {
    align-items: center;
    justify-content: center;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    text-align: center;
    font-weight: bold;
    padding: 0.7em 2em;
    border: 2px solid #0094ff;
    border-radius: 25px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.1);
    color: #0094ff;
    text-decoration: inherit;
    transition: 0.3s ease all;
    z-index: 1;
    width: 220px;
    box-sizing: inherit;
    margin: 0 auto;
}

button::before {
    border-radius: inherit;
    transition: all 0.5s ease;
    position: absolute;
    top: 0;
    left: 50%;
    right: 50%;
    bottom: 0;
    opacity: 0;
    content: '';
    background-color: #0094ff;
    z-index: -1;
}

button:hover, button:focus {
    color: white;
}

button:hover::before, button:focus::before {
    transition: 0.5s all ease;
    left: 0;
    right: 0;
    opacity: 1;
}

button:active {
    transform: scale(0.9);
}

.button-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: inherit;
    justify-content: inherit;
}

footer {
    position: absolute;
    bottom: 10px;
    color: black;
    font-size: 24px;
    text-align: center;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

@media (max-width: 600px) {
    button {
        width: 100%;
        font-size: 14px;
        padding: 0.5em 1em;
    }
    .button-stack {
        gap: 6px;
    }
    p {
        font-size: 18px;
    }
}
