
*, *::before, *::after {
    margin: 0;
    box-sizing: border-box;
}
body {
    position: relative;
    min-height: 100vh;
    color: white;
    padding-block: 1rem;
    text-align: center;
    max-width: 100%;
    font-family: Garamond, serif;
}

nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    a {
        color: gold;
        font-size: 1.5em;
        text-decoration: none;
        &:hover {
            text-decoration: underline;
        }
    }
}
.header {
    background: url(/static/images/wood.svg);
    margin-inline: 0;
    padding-bottom: 0.69rem;
    margin-bottom: 1.5rem;
}
main {
    max-width: 900px;
    margin: auto;
    padding: 1rem;
    background: hsl(120 10% 20% / .3);
}
h1 {
    font-size: 4em;
    font-family: 'Comic Sans MS';
}
h2 {
    font-size: 2rem;
    font-family: 'Comic Sans MS';
    margin-bottom: 0.5em;
}
p {
    font-size: 1.25rem;
}
.sub-header-text {
    font-size: 1.25rem;
}


.joke-container {
    display: grid;
    justify-content: center;
    gap: 1rem;
}
#random {
    display: grid;
    place-content: center;
    margin-block: 1em;
}
button {
    background: rgb(179 49 85);
    color: gold;
    border-radius: 2.5px;
    padding: 0.25em 0.5em;
    cursor: pointer;
}
/* Joke box layout */
.joke {
    border: 0.5px solid hsl(100 100% 100% / .3);
    box-shadow: 0px 0px 12px #666;
    padding: 1rem;
    background: url(/static/images/wood.svg);
    /* border-radius: 1rem; */
    max-width: 69ch;
    color: white;
    font-weight: bold;
    position: relative;


    background-size: 100px 100px;
    & > * {
        padding: 0.5rem;
        z-index: 200;
    }
    .joke-text {
        font-size: 1rem;
        margin-top: 0.5em;
    }
}
#clipboard {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 25px;
    height: 25px;
    cursor: pointer;
    g {
      transition: transform 300ms ease;
      vector-effect: non-scaling-stroke;
    }
    &:hover g {
      transform: scale(1.4, 1.1) translate(-20px, 0px);
    }
}
.note {
    font-size: 0.75rem;
    line-height: 0.5;
}
