:root {
    --bg-end: rgb(16, 32, 16);
    --bg-mid: rgb(22, 120, 50);
    --bg-start: rgb(29, 185, 84);
    --accent: rgb(30, 215, 96);
    --border: rgb(48, 80, 48);
    --card-bg: rgb(24, 36, 24);
    --text: #ffffff;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-end);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    width: 100%;
    background-color: var(--bg-start);
    border-radius: 0 0 10px 10px;
    border-bottom: 1px solid var(--border);
    padding: 24px 20px 16px;
    text-align: center;
}

header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

header p.tagline {
    font-size: 1rem;
    font-style: italic;
    color: rgba(255,255,255,0.75);
    margin-top: 6px;
    font-weight: 500;
}

.main-content {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 40px 20px;
    max-width: 900px;
    width: 100%;
}

.info-card {
    align-self: center;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    width: 340px;
    max-width: 340px;
    height:360px;
    flex: 1 1 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: left;
}

.info-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--accent);
    text-align: left;
}

.info-card p {
    margin: 10px 0;
    font-size: 0.97rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.87);
}

.info-card a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-card a:hover {
    color: rgb(128, 220, 160);
    text-decoration: underline;
}

.book-card {
    align-self: center;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    width: 340px;
    max-width: 340px;
    height:360px;
    flex: 1 1 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.book-card img.book-cover {
    width: 100%;
    max-width: 220px;
    border-radius: 8px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.book-card img.book-cover:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.book-card img.amazon-badge {
    width: 120px;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.book-card img.amazon-badge:hover {
    opacity: 0.85;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border);
    color: var(--text);
    text-align: center;
    padding: 12px 20px;
    font-size: 0.9rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-banner p {
    margin: 0;
}

.cookie-banner button {
    background-color: var(--bg-start);
    color: var(--text);
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.cookie-banner button:hover {
    background-color: var(--accent);
}

.cookie-banner a {
    color: #1e90ff;
    text-decoration: underline;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        gap: 10px; /* Adjust gap for smaller screens */
    }

    .left-container,
    .container {
        max-width: 90%; /* Adjust width for better fit */
        margin: 0 auto; /* Center the containers */
    }

    body {
        font-size: 0.9rem; /* Reduce font size for better fit */
    }

    h1 {
        font-size: 3rem; /* Adjust heading size */
    }

    .left-container p,
    .left-container a {
        font-size: 1.5rem; /* Adjust text size in the left container */
    }

    a {
        font-size: 1rem; /* Adjust link font size */
    }
}