:root {
    /* Primary colors */
    --color-primary: hsl(204, 70%, 53%);
    --color-background: hsl(204, 70%, 37%);
    --color-footer: hsl(204, 70%, 24%);

    /* Text colors */
    --color-text-dark: hsl(0, 0%, 20%);
    --color-text-light: hsl(0, 0%, 100%);

    /* Accent colors */
    --color-danger: hsl(6, 63%, 46%);
    --color-danger-light: hsl(24, 100%, 41%);
    --color-highlight: hsl(48, 89%, 50%);

    /* Bottle cap colors */
    --color-cap-green: hsl(145, 63%, 42%);
    --color-cap-yellow: hsl(48, 89%, 50%);
    --color-cap-purple: hsl(283, 39%, 53%);
    --color-cap-red: hsl(6, 78%, 57%);

    /* Neutral colors */
    --color-white: hsl(0, 0%, 100%);
    --color-border: hsl(0, 0%, 83%);
    --color-border-light: hsl(0, 0%, 80%);

    /* Stats colors */
    --color-stats-value: hsl(204, 70%, 45%);
    --color-stats-label: hsl(0, 0%, 33%);
}

* {
    box-sizing: border-box;
}

html {
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--color-footer);
    font-family: "Verdana", "Geneva", sans-serif;
}

a.h1 {
    font-family: "Caprasimo", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 160%;
    text-decoration: none;
}

a.h1:hover, a.h1:active {
    text-decoration: none;
    color: inherit;
}

.loggedInAs {
    font-size: 0.7rem;
}

.main {
    /*
    background-color: var(--color-background);
    padding-top: 20px;
    color: var(--color-text-light);
*/
    padding-top: 20px;

}

.container-fluid {
    background: linear-gradient(
            color-mix(in srgb, var(--color-background) 50%, transparent),
            color-mix(in srgb, var(--color-background) 50%, transparent)
    ),
    url('/images/wynio/background-photo.jpg') center/cover no-repeat;
    color: var(--color-text-light);
}

header {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 10px;
    font-size: 36px;
}

footer {
    color: var(--color-text-light);
    padding: 10px;
    margin-top: 40px;
    text-align: center;
}

footer a {
    color: var(--color-danger);
}

.filters {
    float: left;
    background: var(--color-white);
    height: 50px;
    width: 100%;
}

.filters optgroup {
    font-size: 20px;
}

.filters select {
    margin: 10px;
    padding: 5px;
}

.filters option {
    font-size: 24px;
}

.shelf {

    background: var(--color-white);
    margin: 0 10px 16px 10px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;

}


.shelf:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.shelf-title {
    background-color: hsl(204, 70%, 88%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    font-weight: bold;
    color: var(--color-text-dark);
    font-size: 16px;
    border-left: 4px solid var(--color-primary);
}

.shelf-info-icon {
    cursor: help;
    opacity: 0.7;
    font-size: 14px;
}

.shelf-info-icon:hover {
    opacity: 1;
}

.shelf-body {
    padding: 5px 5px 5px 12px;
    color: var(--color-text-dark);
}

.shelf-footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 5px 5px 5px 12px;
    text-align: right;
}

.bottle {

    height: 90px;
    width: 100%;
    padding: 5px 0 0 10px;
    color: var(--color-text-dark);
    white-space: nowrap;
    background-repeat: no-repeat;
    background-position: 5px 5px;
    background-image: url(/images/wynio/bottle/black.png);
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
    background-color: white;
    transition: background-color 300ms ease, color 300ms ease;
    display: block;
}

.bottle-red {
    background-image: url(/images/wynio/bottle/red.png);
}

.bottle-white {
    background-image: url(/images/wynio/bottle/white.png);
}

.bottle-rose {
    background-image: url(/images/wynio/bottle/rose.png);
}

.bottle-sparkling {
    background-image: url(/images/wynio/bottle/sparkling.png);
}

.bottle-sweet {
    background-image: url(/images/wynio/bottle/sweet.png);
}

.bottle-highlight {
    background-color: var(--color-highlight);
    color: var(--color-text-dark);
}

.bottle .vintage {
    display: block;
    float: left;
    width: 60px;
    height: 20px;
    color: var(--color-text-light);
    position: relative;
    top: 14px;
    left: 15px;
}

.bottle .flag {
    display: block;
    float: left;
    width: 32px;
    height: 32px;
    background-repeat: no-repeat;
    background-position: 0 0;
    margin-top: 9px;
    margin-left: 15px;
}

.bottle .quantity {
    display: block;
    float: left;
    position: relative;
    top: 10px;
    left: 95px;
    font-size: 130%;
}

.bottle .bottle-label {
    display: block;
    float: left;
    clear: both;
    position: relative;
    top: 17px;
}

.bottle-sparkling .vintage {
    color: var(--color-text-dark);
}

.bottle-empty {
    background-image: none;
    width: 100%;
}

.bottle-cap-indicator {
    display: inline-block;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-left: 3px;
    vertical-align: middle;
    position: relative;
    top: 15px;
    left: 100px;
}


.btn-danger {
    background-image: linear-gradient(var(--color-danger-light), var(--color-danger));
    border: none; /* correct way to remove border */
    color: var(--color-text-light);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    cursor: pointer;
}

.btn-danger:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--color-danger) 40%, white);
}

.autocomplete-suggestion {
    padding: 3px;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border-light);
}

:focus-visible {
    outline: 3px solid rgba(0, 0, 0, 0.15);
    outline-offset: 2px;
}

a, button {
    text-decoration-skip-ink: auto;
}

.suggestion-section {
    margin-top: 20px;
}

.form-box {
    background-color: var(--color-white);
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: var(--color-text-dark);
}

.bottle-cap-apply-btn {
    margin-left: 10px;
}

.navigation {
    padding-top: 10px;
    padding-bottom: 10px;
}

.main .table {
    color: var(--color-text-dark);
}

.main .table th,
.main .table td {
    color: var(--color-text-dark);
}

.stat-card {
    background: var(--color-white);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--color-stats-value);
}

.stat-label {
    font-size: 14px;
    color: var(--color-stats-label);
    margin-top: 5px;
}
