body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.container {
    text-align: center;
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.header {
    position: relative;
    width: 100%;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    height: 150px;
    width: auto;
}

.main-content {
    display: flex;
    width: 100%;
    height: calc(100% - 40px);
}

.card-slider {
    width: 100%;
    transition: width 0.3s ease;
    overflow: hidden;
    position: relative;
}

.card-slider.collapsed {
    width: 50px;
}

.cards-handle {
    width: 50px;
    height: 50px;
    background: #333;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 24px;
    border: 1px solid #555;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    width: 100%;
    transition: transform 0.3s ease;
}

.card {
    width: 117px;
    height: 169px;
    background-color: #333;
    border: 1px solid #555;
    border-radius: 3px;
    position: relative;
    transition: transform 0.3s ease, width 0.3s ease, height 0.3s ease;
    cursor: pointer;
    overflow: hidden;
    display: inline-block;
}

.card:hover {
    transform: scale(1.2);
    z-index: 1;
}

.card-image {
    width: 100%;
    height: 70%;
    object-fit: cover;
    border-bottom: 1px solid #ccc;
}

.card-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    padding: 6.5px 0;
}

.card-content p {
    margin: 0;
    font-size: 15.6px;
    font-weight: bold;
    font-family: 'Georgia', serif;
    letter-spacing: 0.5px;
}

.pdf-view {
    width: 0;
    height: 100%;
    overflow: hidden;
    transition: width 0.3s ease;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
}

.pdf-view.active {
    width: calc(100% - 50px);
}

.pdf-buttons {
    display: flex;
    gap: 10px;
    margin: 10px;
}

.download-btn, .shopping-list-btn {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

.download-btn:hover, .shopping-list-btn:hover {
    background-color: #45a049;
}

#pdfIframe {
    width: 100%;
    height: 100%;
    border: none;
}

.shopping-list {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 200px;
    background-color: #fff9a8;
    padding: 10px;
    box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3);
    transform: rotate(2deg);
    border: 1px solid #ccc;
    z-index: 1000;
    cursor: move;
}

.shopping-list h3 {
    margin: 0 0 10px;
    font-size: 16px;
    text-align: center;
    font-family: 'Georgia', serif;
    color: #333;
}

.shopping-list ul {
    list-style-type: disc;
    padding-left: 20px;
    margin: 0 0 10px;
    font-size: 14px;
    color: #333;
    max-height: 200px;
    overflow-y: auto;
}

.save-btn {
    display: block;
    width: 100%;
    padding: 5px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

.save-btn:hover {
    background-color: #45a049;
}

.footer {
    text-align: center;
    padding: 10px 0;
    width: 100%;
}

.footer p {
    margin: 0;
    font-size: 14px;
    color: #fff;
}

@media (max-width: 600px) {
    .logo {
        height: 100px;
    }

    .card {
        width: 91px;
        height: 130px;
    }

    .card:hover {
        transform: scale(1.1);
    }

    .card-content p {
        font-size: 13px;
    }

    .card-image {
        height: 65%;
    }

    .pdf-view.active {
        width: calc(100% - 50px);
    }

    .shopping-list {
        width: 150px;
    }

    .shopping-list h3 {
        font-size: 14px;
    }

    .shopping-list ul {
        font-size: 12px;
        max-height: 150px;
    }
}