:root {
    --primary-color: #c2472e; /*color from logo: #de4625*/
    --primary-color-dark: hsl(from var(--primary-color) h s calc(l * 0.5));
    --primary-color-light: hsl(from var(--primary-color) h calc(s * 1.2) calc(l * 1.3));
    --secondary-color: #ffcd85;
    --secondary-color-dark: hsl(from var(--secondary-color) h calc(s * 0.2) calc(l * 0.7));
    --secondary-color-light: hsl(from var(--secondary-color) h s calc(l * 1.1));
    --tertiary-color: #c8e5f8;

    --primary-color-filter: invert(37%) sepia(48%) saturate(1540%) hue-rotate(335deg) brightness(83%) contrast(93%); /*for color from logo: invert(43%) sepia(50%) saturate(1874%) hue-rotate(338deg) brightness(83%) contrast(111%);*/
    --secondary-color-filter: brightness(0) saturate(100%) invert(85%) sepia(24%) saturate(912%) hue-rotate(329deg) brightness(102%) contrast(102%);
    --tertiary-color-filter: invert(95%) sepia(9%) saturate(1082%) hue-rotate(320deg) brightness(101%) contrast(95%);

    --content-max-width: 800px;
}
html {
    min-height: 100vh;
}
body {
    margin: 0rem;
    min-height: 100vh;
    position: relative;

}
body::after {
    content: "";

    /* Fix the pseudo-element to the viewport so it covers the scrolling page */
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    
    /* Image setup */
    background-image: url("/pizzahawk_background.png");
    
    /* Force width to 100% of the screen, scale height automatically */
    background-size: 400px auto;
    
    /* Repeat the image only down the Y-axis */
    background-repeat: repeat;
    background-position: top center;
    
    /* Subtle opacity for a nice contrast overlay */
    opacity: 0.1;
    
    /* Prevent the pseudo-element from intercepting clicks on the page */
    pointer-events: none; 
}
* {
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}
body.unscrollable {
    overflow: hidden;
    scrollbar-gutter: stable;
}
/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-hidden::-webkit-scrollbar {
    display: none;
  }
/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-hidden {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.button-primary {
    background-color: var(--primary-color);
    color: white;
    border-color: black;
}
.button-primary:enabled:hover {
    cursor: pointer;
    background-color: var(--primary-color-dark);
    color: white;   
}
.button-secondary {
    background-color: var(--secondary-color);
    color: black;
    border-color: black;
}
.button-secondary:enabled:hover {
    cursor: pointer;
    background-color: var(--secondary-color-light);
}
.button-secondary:disabled {
    background-color: var(--secondary-color-dark);
}
.button-submit {
    width: 100%;
    text-align: center;
    border-radius: .5rem;
    padding: .5rem;
    font: sans-serif;
    font-size: 1.5rem;
    margin-block-start: 1rem;
}
.button-large {
    width: 100%;
    height: 3rem;
    font-size: 1.5rem;

    border-style: solid;
    border-width: 2px;
    border-radius: 0.5rem;
}
.button-large > img {
    height: 1.5rem;
}
.button-circle-large {
    height: 3rem;
    width: 3rem;
    font-size: 1.5rem;
    
    border-style: solid;
    border-width: 2px;
    border-radius: 50%;

    padding: 0rem;
}
.button-circle-large > img {
    height: 100%;
    width: 100%;
}
.button-bottom-banner {
    position: sticky;
    bottom: 0;
    
    width: 100%;
    border-block-start: 2px solid black;
    border-inline: none;
    border-block-end: none;
    height: 3rem;
    font-size: 1.5rem;
    flex-shrink: 0;
}

header {
    background-color: var(--primary-color);
    width: 100%;
    top: 0px;
}
#header-content {
    --header-logo-size: 3rem;
    margin: auto;
    padding: 0.5rem;
    display: flex;
    gap: 1rem;
    height: min-content;
    align-items: center;
    justify-content: center;
    max-width: var(--content-max-width);
    position: relative;
}

#header-content>h1 {
    margin: 0;
}
#header-logo {
    height: var(--header-logo-size);
}



.detail-field {
    display: flex;
    flex-direction: column;
    position: relative;
    border: none;
    margin-inline: 0;
    padding-inline: 0;
}
.detail-field > * {
    font-size: 1.5rem;
    border-radius: 0.3rem;
}
.detail-field > label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: gray;
    transform: none;
    transition: 200ms ease-in-out;
}
.detail-field > label.minimized-label {
    font-size: 1rem;
    transform: translate(0rem, -0.5rem);
}
.detail-field > input {
    height: 3rem;
    padding-block-start: 1rem;
    padding-inline: 1rem;
    width: 100%;
}
.detail-field > textarea {
    padding-block-start: 1rem;
    padding-inline: 1rem;
    width: 100%;
}
input:user-invalid:not(:focus), input[type="date"]:invalid:not(:focus) {
    background-color: rgb(100% 0 0 / 30%);
    font-style: italic;
}
.detail-field:has(:required) > label::before {
    content: "*";
    color: red;
}
