@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100;200;700&display=swap');

:root {
    --logo-size: 100px;
    --font-size: 16px;

    --white-clr: #fff;
    --black-clr: #000;
    --logo-base-clr: #fff;
    --logo-emphasis-clr: #ff0090;
    --background-clr: #222;
    --input-bg-clr: #444;
    --muted-clr: #666;
    --clr: #fff;
    --anchor-clr: #00c8ff;
    --button-bg-clr: #ff0090;
    --button-clr: #fff;
    --button-hover-bg-clr: #ff0090;
    --hero-bg-clr: #f2a122;
    --hero-clr: #fff;
    --hero-button-bg-clr: #fff;
    --hero-button-clr: #000;
    --card-bg-clr: #333;
    --card-clr: #fff;
    --feature-bg-clr: #333;
    --feature-clr: #fff;
    --feature-font-size: 1rem;
    --feature-font-weight: 700;
    --splash-clr: #00ffcc;
    --emphasis-clr: #00ffcc;
    --card-bg-clr: #333;
    --card-clr: #fff;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-size: var(--font-size);
    line-height: 1.5;
    color: var(--clr);
    background-color: var(--background-clr);
    font-family: 'Lexend', sans-serif;
    font-weight: 200;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

h1 {
    font-size: 2rem;
    margin-top: 0;
}

h2 {
    font-size: 2rem;
    margin-top: 4rem;
}

a {
    color: var(--anchor-clr);
    word-wrap: break-word;
}

.wrapper,
#header,
#footer {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

#header {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 2rem;
}

#logo {
    width: var(--logo-size);
}

#logo .one {
    fill: var(--logo-base-clr);
}

#logo .two {
    fill: var(--logo-emphasis-clr);
}

#navigation {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
}

#navigation li a {
    text-align: center;
    display: block;
    padding: 1rem 0.3rem 0.3rem;
    text-decoration: none;
    color: var(--white-clr);
    font-weight: 700;
}

#navigation li a:hover {
    color: var(--white-clr);
    border-bottom: 3px solid var(--emphasis-clr);
}

.width-100 {
    width: 100%;
}

table {
    border-collapse: collapse;
    width:100%;
}

.scroll-table {
    width: 100%;
    overflow-x: auto;
}

td,
th {
    border-bottom: 1px solid var(--splash-clr);
    padding: 0.5rem;
    text-align: left;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

input,
textarea,
select {
    padding: 0.5rem;
    border: 1px solid var(--input-bg-clr);
    background-color: var(--input-bg-clr);
    color: var(--white-clr);
}

input[type='text'] {
    width: 100%;
}

textarea:focus,
input:focus,
select:focus {
    outline: none;
}

label {
    font-weight:bold;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 1rem;
    grid-auto-rows: minmax(100px, auto);
    margin: 0 -1rem;
}

.grid > * {
    flex: 1;
}

.feature {
    background-color: var(--feature-bg-clr);
    color: var(--feature-clr);
    padding: 1rem 2rem;
    font-size: var(--feature-font-size);
    font-weight: var(--feature-font-weight);
    border-top: 3px solid var(--emphasis-clr);
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--card-bg-clr);
    color: var(--card-clr);
    border-top: 3px solid var(--emphasis-clr);
}

.card-content {
    padding: 2rem;
}

.card-content h2 {
    margin-top: 0;
}

.card-action {
    margin-top: auto;
    padding: 2rem;
}

.button {
    text-align: center;
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    color: var(--button-clr);
    font-weight: 700;
    background-color: var(--button-bg-clr);
}

.hero .button {
    background-color: var(--hero-button-bg-clr);
    color: var(--hero-button-clr);
}

#disappearing-item {
    display: block;
}

#disappearing-item:target {
    display: none;
}

.fineprint {
    font-size: 0.8rem;
    color: var(--muted-clr);
}

.fineprint a {
    color: var(--muted-clr);
}

.padding-bottom {
    padding-bottom: 2rem;
}

#example-controls {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    flex-direction: column;
}

#example-controls .form-item input[type='text'] {
    /* max-width: 100px; */
}

#example-controls label {
    display: block;
}

#example-controls > * {
    flex: 1 1 100%;
}

/* pint */

.pint {
    height: 100vh;
}

.pint #header {
    display: none;
}

.pint .hero {
    overflow: hidden;
}

.pint {
    background-color: var(--hero-bg-clr);
    background-image: linear-gradient(
            180deg,
            rgba(37, 13, 7, 0.8),
            30%,
            rgba(187, 102, 17, 0)
        ),
        linear-gradient(
            90deg,
            rgba(37, 13, 7, 0.8),
            20%,
            rgba(187, 102, 17, 0.1)
        ),
        linear-gradient(
            270deg,
            rgba(37, 13, 7, 0.8),
            20%,
            rgba(187, 102, 17, 0.1)
        ),
        linear-gradient(to top left, #200d06, #bb7111, #bb7111, #ebac6a);
    color: var(--hero-clr);
    padding-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.beerfoam {
    height: 200px;
    position: absolute;
    top: -100px;
    left: -150px;
    right: -150px;
    background-color: rgb(253, 227, 184);
    background-image: linear-gradient(0deg, rgb(253, 227, 184), 30%, #fff);
    animation: swash 3s ease-in-out infinite;
}

@keyframes swash {
    0% {
        rotate: 0deg;
    }
    50% {
        rotate: -1deg;
    }
    100% {
        rotate: 0deg;
    }
}

.home #content {
    padding-top: 2rem;
}

.home #header {
    position: relative;
    z-index: 99;
}

.airbubble {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    position: absolute;
    bottom: -20px;
    left: 30px;
    animation: rise 3s ease-in infinite;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    border-right: 2px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
}

@keyframes rise {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(-450px);
        opacity: 0;
    }
}

.pint .airbubble {
    animation: risehigh 5s ease-in infinite;
}

@keyframes risehigh {
    0% {
        transform: translateY(0);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(-700px);
        opacity: 0;
    }
}

@media (min-width: 600px) {
    :root {
        --feature-font-size: 1.2rem;
    }

    #header {
        padding-top: 2rem;
    }

    h1 {
        font-size: 3rem;
    }

    #example-controls {
        flex-direction: row;
    }
}
