:root {
    --text: #000000;
    --text-highlight: #002B7F;
    --accent: #CE1126;
    --contrast: #FCD116;
    --background: #FF4C4C;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    
    background-color: var(--background);
    background-image: repeating-conic-gradient(rgba(255, 255, 255, 1) 0% 25%, transparent 0% 50%);
    background-size: 200px 200px;
    background-position: 0 0;
    background-repeat: repeat;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.fadeOut {
    animation-name: fadeIn;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

.fadeOut {
    animation-name: fadeOut;
    animation-duration: 1s;
    animation-fill-mode: forwards;
}

#receipt {
    max-width: 40ch;
    text-align: center;

    background-color: #ffffff;
    border-radius: 2px;
    box-shadow: 0 1px 1px;

    padding: 10px;

    z-index: 2;
}

table {
    margin-left: auto;
    margin-right: auto;
}

#tlist {
    font-family: monospace;
}

ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-size: 1.2rem;
}

ul hr {
    border: none;
    border-top: dashed;
    height: 1px;
}

li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.dot {
    /*border-bottom: dotted 3px var(--text, #000000);*/
    width: 100%;
    position: relative;
    display: block;
    height: 12px;
    margin: 0 5px;
}

li:nth-child(1) {
    margin-right: auto;
}

li:nth-child(2) {
    margin-left: auto;
}

form input[type="text"], form input[type="email"] {
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    border: none;
    border-bottom: 3px solid black;
}

.field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.field label {
    flex: 0 0 auto;
}

.field input {
    flex: 1 1 0;
    min-width: 0;
    box-sizing: border-box;
}

form input[type="submit"] {
    width: 100%;
    border: none;
    padding: 16px;
    background-color: rgba(0, 0, 0, 0);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

form input[type="submit"]:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

code {
    display: inline-block;
    text-align: left;
}

body img {
    position: absolute;

    z-index: 0;
}

#receipt img {
    position: relative;
    object-fit: cover;
    width: 100%;
    text-align: center;
}

th {
    position: relative;
}

.centered {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

p.centered {
    color: var(--background);
    font-size: 3rem;
    margin: 0;
    text-shadow: -2px -2px 0 white, 2px -2px 0 white, -2px 2px 0 white, 2px 2px 0 white;
    -webkit-text-stroke: 2px white;
}

#start {
    color: white;
    background-color: black;
}

#end {
    color: white;
    background-color: black;

}

.pulsate {
    -webkit-animation: pulsate 3s ease-out;
    -webkit-animation-iteration-count: infinite; 
    opacity: 0.5;
    color: var(--background);
    font-size: 2rem;
}

@-webkit-keyframes pulsate {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 1.0;
    }
    100% {
        opacity: 0.5;
    }
}
