@import url('https://fonts.googleapis.com/css2?family=Julius+Sans+One&display=swap');

:root {
    --textColor: #FFFFFF;
    --linkColor: #c9c9c9;
    --backgroundColor: #061637;
    --fontFamily: 'Julius Sans One', sans-serif;
}

html {
    font-family: var(--fontFamily);
    color: var(--textColor);
    scroll-behavior: smooth;
}

html:not(.homepage) {
    --textColor: #000000;
    --backgroundColor: #FFFFFF;
}

body {
    background: var(--backgroundColor);
}

main {
    max-width: 1400px;
    margin-inline: auto;
}

header {
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;

    img {
        width: 50vh;
        padding: 2rem;
        box-sizing: border-box;
    }

    nav {
        margin-top: 2rem;

        a {
            display: block;
        }
    }
}

a {
    color: var(--textColor);
    font-size: 24px;
}

h2 {
    width: 100%;
    font-size: 30px;
    margin-top: 5rem;
}

#pictures {
    display: grid;
    gap: 1rem;

    h2 {
        grid-column: 1 / -1;
    }

    @media (min-width: 800px) {
        grid-template-columns: repeat(2, 1fr);
    }
    @media (min-width: 1000px) {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

#brewers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;

    > *:not(article) {
        grid-column: 1 / -1;
    }

    article:nth-child(even) {
        background: rgba(255, 255, 255, .1);
    }

    article {
        border: solid var(--linkColor) 1px;

        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;

        h3 {
            width: 100%;
            padding-left: 1rem;
            font-size: 20px;
            color: #E30C13;

            small {
                color: var(--linkColor);
            }
        }

        > img {
            max-width: calc(100% - 4rem);
            max-height: 300px;
            box-sizing: border-box;

            &.white-background {
                background: white;
            }
        }
    }
}

nav {
    a {
        padding: 1rem;
        display: inline-block;
    }
}

img {
    max-width: 100%;
}

footer {
    margin-top: 5rem;
    text-align: center;
    padding: 5rem;
}

html.sell_choice, html.sell_history, .sell_add {
    main {
        table {
            width: 100%;
        }

        label {
            display: none;
        }

        ul {
            display: flex;
            flex-direction: column;
            gap: 1rem;
            padding: 0;
            list-style: none;

            a {
                box-sizing: border-box;
                padding: 1rem;
                width: 100%;
                display: inline-block;
                border: solid black 1px;
            }
        }

        button, input {
            padding: 1rem;
            margin-bottom: 1rem;
            font-size: 2rem;
            box-sizing: border-box;
            max-width: 100%;
            width: 100%;
        }
    }
}

.deleted {
    text-decoration: line-through;
}

#infos {
    div {
        padding-left: 1rem;
    }

    a {
        font-size: 1rem;
    }
}

#map {
    width: 100%;
}
