:root {
    --primary-color: #418116;
    --secondary-color: #4E9A1C;
    --accent-color: #55A71E;
    --text-color: #333;
    --bg-color: #f4f4f4;
    --container-bg: #ffffff;
    --border-color: #ddd;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Playfair Display', sans-serif;
    background-color: var(--primary-color);
    background-image: url('../images/fat-stripes.gif'); /* Keep original bg if desired, or remove */
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 960px;
    margin: 20px auto;
    background-color: var(--container-bg);
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

header {
    background-color: var(--primary-color);
    padding: 20px;
    text-align: center;
}

header img {
    max-width: 100%;
    height: auto;
}

.main-wrapper {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
}

.content {
    flex: 3;
    padding-right: 20px;
}

.sidebar {
    flex: 1;
    min-width: 250px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}

.heading {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 15px;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.entry {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.entry strong {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.meaning {
    margin-left: 20px;
    font-style: italic;
    color: #555;
}

.usage {
    margin-top: 5px;
    margin-left: 20px;
    background-color: #eee;
    padding: 5px 10px;
    /* border-left: 3px solid var(--secondary-color); */
}

.from {
    font-size: 0.85rem;
    color: #888;
    display: block;
    margin-top: 5px;
    text-align: right;
}

.sidebar-section {
    margin-bottom: 20px;
}

.sidebar-heading {
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 3px;
    margin-bottom: 10px;
}

.sidebar-content {
    font-size: 0.9rem;
}

footer {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 20px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 10px;
}

.btn:hover {
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-wrapper {
        flex-direction: column;
    }
    
    .content {
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .container {
        margin: 0;
        border-radius: 0;
    }
}
