body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    background-color: #ECE9E6;
    color: #4A4A4A;
    line-height: 1.6rem;
    padding-bottom: 80px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: bold;
    text-transform: uppercase;
    color: #4A4A4A;
}

.hidden {
    display: none !important;
}


.landing-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    background-color: #ECE9E6;
}

.landing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.landing-container .logo img {
    width: 175px;
}

.landing-container h1 {
    font-family: "Nanum Pen Script", cursive;
    font-weight: 400;
    font-style: normal;
    text-transform: lowercase;
    margin: 15px 0 30px;
    font-size: 2.5rem;
}

.go-to-list-button {
    display: inline-block;
    background-color: #584848;
    color: #ECE9E6;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.go-to-list-button:hover,
.go-to-list-button:focus {
    background-color: #7a6a6a;
}


.app-page {
    padding-top: 60px;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #584848;
    color: #ECE9E6;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-sizing: border-box;
}

header .logomark img {
    width: 30px;
    height: 30px;
}

header .favourites-icon {
    font-size: 1.5em;
    cursor: pointer;
    color: #ECE9E6;
}

.favourites-icon img {
    height: 25px;
}

.grocery-list-container {
    padding: 20px;
}

.empty-list-message {
    text-align: center;
    font-size: 1.2em;
    color: rgba(74, 74, 74, 0.7);
    margin-top: 50px;
}

.category-section {
    margin-bottom: 20px;
    padding: 0;
    background-color: rgba(88, 72, 72, 0.05);
    border: 1px solid rgba(88, 72, 72, 0.1);
    border-radius: 8px;
}

.item-list {
    list-style: none;
    padding: 10px;
    margin: 0;
}

.grocery-item {
    display: flex;
    align-items: flex-start;
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid #D8D5D2;
    color: #4A4A4A;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 8px;
}

.item-checkbox {
    margin-right: 10px;
    margin-top: 5px;
    transform: scale(1.2);
}

.item-details {
    flex-grow: 1;
}

.item-name {
    font-weight: bold;
    display: block;
    margin-bottom: 3px;
}

.item-quantity {
    font-size: 0.9em;
    color: rgba(74, 74, 74, 0.8);
}

.item-notes {
    font-size: 0.9em;
    color: rgba(74, 74, 74, 0.6);
    margin-top: 5px;
    margin-bottom: 0;
}

button {
    font-family: "Poppins", sans-serif;
    text-transform: uppercase;
    font-weight: 400;
}

.grocery-item.checked .item-name,
.grocery-item.checked .item-quantity,
.grocery-item.checked .item-notes {
    text-decoration: line-through;
    color: rgba(74, 74, 74, 0.4);
    text-decoration-color: rgba(74, 74, 74, 0.4);
}

.checked-items-section {
    margin-top: 30px;
    padding: 0;
    background-color: #7a6a6a;
    border-radius: 8px;
}


.category-section h2,
.checked-items-section h2,
.modal-content h2 {
    color: #ECE9E6;
    background-color: #584848;
    padding: 8px 12px;
    margin: 0;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.checked-items-list {
     padding: 10px;
}


.checked-items-buttons {
    text-align: center;
    margin-top: 5px;
    padding: 10px;
}

.checked-items-buttons button {
    background-color: #584848;
    color: #ECE9E6;
    border: none;
    padding: 8px 15px;
    margin: 0 5px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.checked-items-buttons button:hover,
.checked-items-buttons button:focus {
    background-color: #7a6a6a;
    font-weight: 600;
}

.checked-items-buttons button:last-of-type {
    background-color: #c55b5b;
}

.checked-items-buttons button:last-of-type:hover,
.checked-items-buttons button:last-of-type:focus {
    background-color: #d97979;
}

.add-item-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #584848;
    color: #ECE9E6;
    border: none;
    border-radius: 50%;
    font-size: 2em;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.add-item-button:hover,
.add-item-button:focus {
    background-color: #7a6a6a;
}


.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    padding-top: 60px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}


.modal-content {
    background-color: #F8F8F8;
    color: #4A4A4A;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #D8D5D2;
    width: 85%;
    max-width: 400px;
    border-radius: 10px;
    position: relative;
}

.modal-content h2 {
    margin-bottom: 0;
    border-radius: 10px 10px 0 0;
}

.close-button {
    color: #ECE9E6;
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.close-button:hover,
.close-button:focus {
    color: #FFFFFF;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    padding: 20px;
}

.modal-content form {
    padding: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9em;
    color: #4A4A4A;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #CCCCCC;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #FFFFFF;
    color: #4A4A4A;
    font-size: 1rem;
}

.form-buttons {
    text-align: right;
    margin-top: 20px;
}

.form-buttons button {
    background-color: #584848;
    color: #ECE9E6;
    border: none;
    padding: 10px 20px;
    margin-left: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.form-buttons button:hover,
.form-buttons button:focus {
    background-color: #7a6a6a;
}

#cancel-add-item {
    background-color: #CCCCCC;
    color: #333333;
}

#cancel-add-item:hover,
#cancel-add-item:focus {
     background-color: #BBBBBB;
}

#favourites-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#favourites-list li {
    background-color: rgba(88, 72, 72, 0.1);
    color: #4A4A4A;
    padding: 10px;
    margin-bottom: 5px;
    border-radius: 4px;
}

.favourite-toggle {
    cursor: pointer;
    padding-left: 10px;
    display: flex;
    align-items: center;
}

.favourite-toggle img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}