@font-face {
    font-family: JetBrainsMono;
    src: url(assets/font/JetBrainsMono-Regular.woff2) format(woff2);
}

* {
    font-family: JetBrainsMono;
    margin: 0;
    padding: 0;
    --color-text: #f8f8f2;
    --color-background: #282a36;
    --color-current-line: #44475a;
    --color-purple: #bd93f9;
}

a {
    text-decoration: none;
    color: var(--color-text);
}

p,
ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

ul {
    & > li {
        padding-left: 20px;
        &::marker {
            content: none;
            display: none;
        }
        &::before {
            content: "—";
            padding-left: 10px;
        }
    }
}

hr {
    margin: 1rem 0;
    border: none;
    border-top: solid 1px var(--color-text);
    min-width: 80px;
    width: 80%;
}

body {
    color: var(--color-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    background-color: var(--color-background);
    flex-direction: column;
    & > :not(header, main, footer) {
        display: none;
    }
}

header {
    display: flex;
    background-color: var(--color-current-line);
    border-radius: 20px;
    margin: 1rem 1rem 20px 1rem;
    padding: 10px;
    overflow: hidden;
    & > .links {
        display: flex;
        justify-content: space-between;
    }
}

@media screen and (min-width: 740px) {
    header > .links {
        flex-direction: row;
        gap: 30px;
    }
    #display_header_links {
        display: none;
    }
}
@media screen and (max-width: 739px) {
    header {
        gap: 10px;
        align-items: baseline;
        & > .links {
            flex-direction: column;
            gap: 10px;
            overlay: hidden;
            transition: max-height 300ms ease-out;
            max-height: 41px;
            &.display_links {
                max-height: 270px;
            }
        }
        & > button {
            padding: 8px 12px;
            cursor: pointer;
        }
    }
}

.header_button {
    color: black;
    padding: 10px 8px;
    border-radius: 10px;
    background-color: var(--color-purple);
    text-decoration: none !important;
    text-align: center;
    transition: transform 0.3s ease-out;
    &:hover {
        transform: scale(1.06);
        background-color: var(--color-purple);
    }
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    max-width: 80%;
    gap: 1rem;
}

footer {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    justify-content: space-evenly;
    background-color: var(--color-current-line);
    border-radius: 20px;
    padding: 12px;
    margin: 20px 1rem 1rem 1rem;
}

.box {
    background-color: var(--color-current-line);
    padding: 12px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    &.horizontal {
        flex-direction: row;
    }
    &:is(a) {
        transition: transform 0.3s ease-out;
        &:hover {
            transform: scale(1.06);
        }
    }
}
@media screen and (max-width: 739px) {
    .box.horizontal.warp-on-small-screen {
        flex-wrap: wrap;
    }
}

#pokemon_team {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#grocery_list {
    display: flex;
    flex-direction: column;
}

button {
    color: black;
    padding: 10px;
    border-radius: 10px;
    background-color: var(--color-purple);
    border: none;
    text-decoration: none !important;
}

button:hover {
    background-color: var(--color-purple);
}

.project_box {
    flex-direction: row;
    display: flex;
    gap: 1rem;
}

.project_box_thumbnail {
    width: 20rem;
    height: 20rem;
}

.hidden {
    display: none;
}

input {
    color: var(--color-text);
    border-radius: 30px;
    border: none;
    padding: 10px;
    background-color: var(--color-current-line);
    margin: 10px;
}

select {
    color: var(--color-text);
    border-radius: 30px;
    border: none;
    padding: 10px;
    background-color: var(--color-current-line);
    margin: 10px;
}

#pokemon_frame {
    width: 200px;
    height: 200px;
}

.grocery_item {
    margin: 15px;
}

.grocery_item_name {
    padding: 10px;
    background-color: var(--color-current-line);
    border-color: var(--color-purple);
    border-radius: 10px;
    margin: 10px;
}

.spinNumber {
    margin: 2px;
    padding: 2px;
    border: 1px solid var(--color-purple);
    border-radius: 5px;
}

#lastSpins {
    display: flex;
    flex-direction: row;
    gap: 4px;
}

#maxSpinInput {
    width: 7rem;
}
