
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #f6eddb;
    color: #354438;
    font-family: Arial, sans-serif;
}

.top-bar {
    background: #3b5946;
    color: white;
    text-align: center;
    padding: 9px;
    font-size: 10px;
    letter-spacing: 2px;
}

.navbar {
    padding: 20px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 17px;
    font-weight: bold;
}

.logo span {
    color: #df806c;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #354438;
    font-size: 12px;
    font-weight: bold;
}

.nav-links a:hover {
    color: #df806c;
}

main {
    max-width: 1100px;
    margin: auto;
    padding: 45px 6% 70px;
}

.heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.heading small {
    color: #8d8976;
    font-size: 10px;
    letter-spacing: 3px;
}

.heading h1 {
    font-size: 48px;
    margin-top: 12px;
}

.heading-note {
    background: #e9bd61;
    padding: 12px 17px;
    transform: rotate(3deg);
    font-family: cursive;
    line-height: 1.5;
    box-shadow: 3px 4px 0 #b89b62;
}

.intro-note {
    background: #fff9ec;
    border: 1px dashed #d9d0b9;
    border-radius: 14px;
    padding: 20px 23px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 17px;
}

.intro-icon {
    width: 38px;
    height: 38px;
    border: 2px solid #df806c;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 23px;
    font-weight: bold;
    color: #df806c;
}

.intro-note h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.intro-note p {
    font-size: 13px;
    color: #7d806c;
    line-height: 1.6;
}

.summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
    margin-bottom: 38px;
}

.summary-card {
    padding: 17px 20px;
    border-radius: 13px;
    background: #fff9ec;
    border: 1px solid #d9d0b9;
}

.summary-card:nth-child(1) {
    background: #f5dcd0;
}

.summary-card:nth-child(2) {
    background: #f3e4b9;
}

.summary-card:nth-child(3) {
    background: #d5d9b8;
}

.summary-card small {
    font-size: 10px;
    letter-spacing: 1px;
}

.summary-card strong {
    display: block;
    font-size: 32px;
    margin-top: 5px;
}

.food-section {
    margin-bottom: 42px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 12px;
}

.section-heading h2 {
    font-size: 25px;
}

.section-heading span {
    font-family: cursive;
    color: #7d806c;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
    gap: 15px;
}

.food-card {
    background: #fff9ec;
    border: 1px solid #d9d0b9;
    border-radius: 14px;
    padding: 13px;
    position: relative;
    box-shadow: 2px 4px 0 #00000010;
}

.food-card img {
    width: 100%;
    height: 145px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
}

.food-picture {
    height: 145px;
    background: #f0ebdd;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    font-weight: bold;
    color: #82967b;
    margin-bottom: 12px;
}

.food-name {
    font-size: 19px;
    margin-bottom: 5px;
}

.food-date {
    font-size: 10px;
    color: #7d806c;
}

.food-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 9px;
    border-radius: 6px;
    font-size: 10px;
}

.soon {
    background: #f5dcc9;
    color: #995a43;
}

.good {
    background: #dce8d4;
    color: #526f4b;
}

.expired {
    background: #f3d4cd;
    color: #a54f40;
}

.warning-section {
    background: #f1ddd1;
    border: 2px dashed #d6a08e;
    border-radius: 18px;
    padding: 23px;
    margin-bottom: 42px;
}

.warning-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.warning-heading span {
    width: 30px;
    height: 30px;
    border: 2px solid #a15e46;
    border-radius: 50%;
    text-align: center;
    line-height: 26px;
    font-weight: bold;
    color: #a15e46;
}

.warning-heading h2 {
    font-size: 24px;
}

.warning-description {
    color: #805f54;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.warning-section .food-card {
    background: #fff8ef;
}

.check-message {
    background: #fff0dd;
    border-radius: 9px;
    padding: 10px;
    margin-top: 12px;
    font-size: 11px;
    line-height: 1.6;
    color: #865b43;
}

.check-button {
    width: 100%;
    border: 0;
    background: #354438;
    color: white;
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
}

.check-button:hover {
    background: #df806c;
}

.empty-message {
    background: #fff9ec;
    border: 1px dashed #d9d0b9;
    border-radius: 12px;
    padding: 30px 15px;
    text-align: center;
    color: #7d806c;
    font-size: 13px;
}

footer {
    background: #3b5946;
    color: white;
    text-align: center;
    padding: 25px;
    font-size: 12px;
}

@media (max-width: 650px) {

    .navbar {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .heading h1 {
        font-size: 35px;
    }

    .heading-note {
        align-self: flex-end;
    }

    .summary {
        gap: 7px;
    }

    .summary-card {
        padding: 12px;
    }

    .summary-card small {
        font-size: 8px;
    }

    .summary-card strong {
        font-size: 25px;
    }

    .food-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .food-card img,
    .food-picture {
        height: 115px;
    }

    .section-heading h2 {
        font-size: 19px;
    }
}
