* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    --gap: 20px;
    --black: #282727;
    --brown: #767063;
    --bg: #dad5c8;
    --bg2: hsl(29, 21%, 73%);
}

body {
    font-family: 'Roboto';
    background: var(--bg2);
    background-image: url("data:image/svg+xml,<svg id='patternId' width='100%' height='100%' xmlns='http://www.w3.org/2000/svg'><defs><pattern id='a' patternUnits='userSpaceOnUse' width='20' height='20' patternTransform='scale(1) rotate(0)'><rect x='0' y='0' width='100%' height='100%' fill='hsla(29, 21%, 73%, 1)'/><path d='M 10,-2.55e-7 V 20 Z M -1.1677362e-8,10 H 20 Z'  stroke-width='1' stroke='hsla(29, 21%, 76%, 1)' fill='none'/></pattern></defs><rect width='800%' height='800%' transform='translate(0,-2)' fill='url(%23a)'/></svg>");
    color: var(--black);
}

h1 {
    text-align: center;
    margin: 35px 0 45px;
    font-size: 35px;
    font-weight: 900;
}

@media (max-width: 800px) {
    h1 {
        font-size: 30px;
    }
}

#mainWrap {
    display: flex;
    justify-content: center;
    padding: var(--gap);
}

#content {
    width: 100%;
    max-width: 600px;
}

#input {
    margin-bottom: var(--gap);
    position: relative;
}

#input p {
    font-size: 20px;
    font-weight: 700;
    /* text-align: center; */
    margin-bottom: calc(var(--gap) / 5);
    margin-left: 40px;
    transform: rotate(-1deg);
}

.pointerL {
    transition: .25s;
    width: 35px;
    position: absolute;
    top: 4px;
    left: 7px;
    transform: rotate(-8deg);
}

.pointerR {
    display: none;
    transition: .45s;
    width: 38px;
    position: absolute;
    top: 2px;
    right: 97px;
    transform: rotate(10deg);
}

@media (max-width: 500px) {
    .pointerL {
        left: 40px
    }

    .pointerR {
        /* display: block; */
        right: 45px;
    }
}

textarea {
    width: 100%;
    height: 200px;
    padding: calc(var(--gap)* 1.5);
    font-size: 23px;
    border-radius: 4px;
    border: 0;
    margin-bottom: calc(var(--gap));
    font-family: Courier New;
}

textarea:focus {
    outline: 2px solid #625c5c;
}

button {
    padding: 12px 24px;
    font-size: 18px;
    border: 0;
    background: hsl(36, 16%, 89%);
    border-radius: 4px;
    color: rgb(93, 89, 74);
    transition: .23s;
}

button:hover {
    cursor: pointer;
    transform: scale(1.05);
}

#output {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--gap)*2);
}

#results {
    width: 100%;
    text-align: center;
    font-size: 55px;
    margin-bottom: var(--gap);
}

@media (max-width: 500px) {
    #input {
        text-align: center;
    }

    #input p {
        margin-left: 0;
    }

    #results {
        font-size: 30px !important;
        margin-top: var(--gap);
    }
}

#output.card {
    animation: .65s cardify forwards;
    margin-bottom: 40px;
}

@keyframes cardify {
    100% {
        background: #fafafa;
        border-radius: 4px;
        box-shadow: 0px 5px 8px rgba(0, 0, 0, 0.25);
    }
}

#output img {
    display: none;
    width: 90px;
    /* height: 0; */
}

#output p {
    opacity: 0;
    color: #a6a4a4;
}

.card p {
    animation: .3s showDomain forwards;
}

@keyframes showDomain {
    100% {
        opacity: 1;
    }
}

#output.card img.show {
    display: block;
    animation: 1.4s popIn forwards;
}

@keyframes popIn {
    30% {
        transform: scale(1.2);
    }

    90% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

/* Footer */

footer {
    padding-bottom: 40px;
}

footer a {
    display: flex;
    justify-content: center;
    color: var(--brown);
}

footer svg {
    margin: 0 5px 0;
}

footer a:is(:link, :hover, :active, :visited) {
    color: var(--brown);
    text-decoration: none;
}