@font-face {
    font-family: 'Arial Narrow';
    src: url(../fonts/ArialNarrow.ttf) format('truetype');
}

body {
    font-family: Arial, sans-serif;
    margin: .5em;
    font-size: 32px;
}

h1,
h2,
h4,
p,
label {
    font-weight: normal;
    line-height: .9em;
    hyphens: auto;
    text-transform: lowercase;
}

h1,
h2,
p,
label {
    font-family: Arial, sans-serif;
    margin: 0 0 1em 0;
    font-size: 1em;
    letter-spacing: -0.025em;
}

a {
    font-family: 'Times New Roman', serif;
}

h2 {
    margin-bottom: .5em;
}

h4,
.price {
    font-family: 'Arial Narrow', sans-serif;
    margin: 0 0 .5em 0;
    font-size: 4em;
    letter-spacing: -0.025em;
}

form {
    margin-bottom: .5rem;
}

label {
    display: inline-block;
    margin-right: .25em;
    margin-bottom: 0;
}

input[type="submit"] {
    background-color: transparent;
    border: none;
    font-family: 'Times New Roman', serif;
    font-size: 1em;
    letter-spacing: -0.025em;
    text-decoration: underline;
    color: blue;
    cursor: pointer;
}

img {
    width: 100%;
    margin-bottom: 1em;
}

header {
    position: sticky;
    top: .5em;
    display: flex;
    justify-content: space-between;
    margin-bottom: .5em;
}

header h1 {
    text-transform: lowercase;
    text-shadow: 0 0 .3em white, 0 0 .3em white;
}

header img {
    -webkit-filter: drop-shadow(0 0 .3em white);
    filter: drop-shadow(0 0 .3em white);
}

.logo * {
    font-family: Arial, sans-serif;
    text-decoration: none;
    color: black;
}

.blue {
    color: white;
    background-color: blue;
}

.blue a {
    color: white;
}

.btn-cart {
    width: 2em;
    height: 2em;
    cursor: pointer;
    margin-bottom: 0;
}

.btn-cart:hover {
    transform: rotate(10deg);
}

#cart {
    position: fixed;
    width: 360px;
    left: 100vw;
}

#cart.active {
    left: auto;
    right: .5em;
}

.layout {
    width: 100%;
}

@media (min-width: 975px) {

    h1,
    h2,
    h4,
    p {
        hyphens: manual !important;
    }

    .layout {
        display: flex;
        gap: .25em;
        flex-wrap: wrap;
    }

    .layout>.col {
        flex: var(--span);
        min-width: 24%;
        max-width: calc((100% - .75em) / (4 / var(--span)));
    }
}

.product:hover img {
    transform: rotate(5deg);
}

.price {
    margin-bottom: 1rem;
}

.wiggle {
    display: inline-block;
    animation: wiggle 0.5s infinite;
}

@keyframes wiggle {
    0% {
        transform: translate(1px, 1px) rotate(0deg);
    }

    10% {
        transform: translate(-1px, -2px) rotate(-1deg);
    }

    20% {
        transform: translate(-3px, 0px) rotate(1deg);
    }

    30% {
        transform: translate(3px, 2px) rotate(0deg);
    }

    40% {
        transform: translate(1px, -1px) rotate(1deg);
    }

    50% {
        transform: translate(-1px, 2px) rotate(-1deg);
    }

    60% {
        transform: translate(-3px, 1px) rotate(0deg);
    }

    70% {
        transform: translate(3px, 1px) rotate(-1deg);
    }

    80% {
        transform: translate(-1px, -1px) rotate(1deg);
    }

    90% {
        transform: translate(1px, 2px) rotate(0deg);
    }

    100% {
        transform: translate(1px, -2px) rotate(-1deg);
    }
}

footer {
    margin-top: 2rem;
}

footer p {
    margin-bottom: 0;
}

@media screen and (max-width: 512px) {
    body {
        font-size: 6.25vw;
    }

    #cart {
        width: calc(100vw - 1em);
    }
}