/* Root variables */
:root {
    --bun-color: rgba(215, 170, 90, 0.85);
    --patty-color: #5a3825;
    --tomato-color: #d32f2f;
    --lettuce-color: #4caf50;
    --cheese-color: #FFD632;
    --shadow-color: rgba(0, 0, 0, 0.2);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

button,
a,
input,
textarea {
    outline: none;
    text-decoration: none;
}

body {
    font-family: 'Noto Sans', sans-serif;
    background: linear-gradient(135deg, #1e1e2e, #12121a);
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 1em;
    height: 100%;
}

/* Typography */
h2 {
    color: #bb9553;
    margin: 1em 0;
}

/* Layout: Cards & Containers */
.card {
    padding: 0 .5em;
    background: transparent;
    width: 100%;
    max-width: 500px;
    text-align: center;
    position: relative;
    border-radius: 80px;
    user-select: none;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

/* Buns */
.bun-top,
.bun-bottom {
    width: 100%;
    max-width: 500px;
    text-align: center;
    position: relative;
    border-radius: 80px;
    box-shadow: 0 10px 30px var(--shadow-color), inset 0 -12px 0px 0px rgb(90 56 37 / 33%);
}

.bun-top {
    padding: 1em;
    background: var(--bun-color);
    height: 125px;
    margin-bottom: 0.5em;
    border-radius: 120px 120px 10px 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.bun-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background: radial-gradient(circle, white 5%, transparent 10%) 15px 15px / 40px 40px,
        radial-gradient(circle, white 5%, transparent 10%) 30px 10px / 50px 50px,
        radial-gradient(circle, white 5%, transparent 10%) 10px 25px / 45px 45px;
    pointer-events: none;
    animation: sesameSeeds 3s ease-out infinite;
}

.bun-bottom {
    background: var(--bun-color);
    height: 68px;
    margin-top: 0.5em;
    border-radius: 12px 12px 20px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* Mayo Search */
.mayo-search {
    display: block;
    text-decoration: none;
    font-weight: 400;
    text-align: center;
    transition: all 0.115s ease-out;
    position: relative;
    background: white;
    padding: 0 .5em;
    width: 100%;
    max-width: 500px;
    border-radius: 80px;
    margin-bottom: 0.5em;
}

.mayo-search input {
    width: 100%;
    padding: 0.5em;
    border: none;
    border-radius: 80px;
    background: transparent;
    color: #000000;
    font-size: 0.95rem;
    font-weight: 400;
}

.mayo-search input::placeholder {
    color: #00000099;
}

.mayo-search input:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.mayo-search input:focus::placeholder {
    color: #000000;
}

/* Burger Link Styles */
.link-item {
    display: block;
    padding: 4px;
    text-decoration: none;
    color: white;
    font-weight: 400;
    text-align: center;
    border-bottom: 1px solid #00000038;
    transition: transform 0.115s ease-out;
    position: relative;
    font-size: 15px;
}

.link-item-dark {
    color: #000000;
}

.link-item-light {
    color: #FFFFFF;
}

.text-dark,
.text-light {
    font-size: 0.9rem;
    padding: 2px 0;
    user-select: none;
}

.text-dark {
    color: #00000099;
}

.text-light {
    color: #FFFFFF99;
}

.burger-wrapper {
    border-radius: 15px;
}

#burger-layers>div {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    will-change: transform;
    transform-origin: center;
    cursor: pointer;
}

#burger-layers>div:hover {
    transform: translateY(-5px) scale(1.02) rotate(-2deg);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
    /*filter: brightness(1.15) saturate(1.05) contrast(1.05);*/
    z-index: 2;
}

#burger-layers>div:active {
    transform: scale(0.96) translateY(1px);
    /*filter: brightness(0.95) saturate(0.9);*/
}


/* Button Styles */
#near-me-btn {
    background-color: var(--bun-color);
    color: white;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25), inset 0 -2px 4px rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 1em;
    user-select: none;
}

#near-me-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transform: skewX(-25deg);
    transition: all 0.45s ease;
    pointer-events: none;
}

#near-me-btn:hover::before {
    left: 125%;
}

#near-me-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    filter: brightness(1.1) saturate(1.2);
}

#near-me-btn:active {
    transform: translateY(1px) scale(0.97);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) inset;
    filter: brightness(0.95) saturate(0.9);
}

#near-me-btn i {
    margin-right: 8px;
}


/* Modal Styles */
.error-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-out;
    backdrop-filter: blur(5px);
}

.modal-content {
    font-family: 'VT323', monospace;
    background-color: #fff;
    border-radius: 2px;
    padding: 20px;
    width: 100%;
    max-width: 333px;
    margin: 0 auto;
    top: 2em;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.close-modal {
    position: absolute;
    top: 0;
    right: 7px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: red;
}

#error-message {
    font-family: 'VT323', monospace;
    font-size: 1.2em;
    /* margin-top: 1em; */
    text-align: left;
    white-space: pre-wrap;
    width: 100%;
}

.receipt-line {
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px dashed #444;
    font-size: 1rem;
    color: #333;
}

.receipt-total {
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 1rem;
    color: #333;
}

.receipt-total .dots,
.receipt-line .dots {
    flex-grow: 1;
    border-bottom: 2px dotted #333;
    margin: 0 0.5rem;
}

.receipt-line span:last-child {
    /*color: rgb(107, 40, 40);*/
}

.receipt-total.total {
    font-weight: bold;
    border-top: 2px solid #000;
    margin-top: 0.6rem;
    padding-top: 0.6rem;
    width: 80%;
    margin-left: auto;
}

.receipt-footer {
    text-align: center;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    padding-top: 0.8rem;
    color: #333;
    opacity: 0.9;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

#barcode {
    font-family: 'Libre Barcode 39', cursive;
    font-size: 60px;
    user-select: none;
}

.receipt-header {
    font-family: 'VT323', 'Courier New', monospace;
    text-align: center;
    margin-bottom: 1em;
}

/* Keyframes */
@keyframes sesameSeeds {

    0%,
    100% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Media Queries */
@media (max-width: 768px) {}