
:root {
    --color-primary: #588157; 
    --color-secondary: #a3b18a; 
    --color-tertiary: #dad7cd; 
    --color-header: #3a5a40; 
    --color-soil: #8d6262;
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Professional, clean font stack */
    background-color: var(--color-secondary);
    color: var(--color-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

h1 {
    font-size: 2.5rem;
    color: var(--color-tertiary);
}


header {
    width: 100%;
    padding: 20px 0;
    text-align: center;
    background-color: var(--color-header);
    color: var(--color-tertiary);
    box-shadow: var(--shadow-light);
}

header p {
    font-style: italic;
    color: var(--color-tertiary);
    margin-top: 5px;
}

main {
    width: 100%;
    max-width: 800px; 
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}


#EntrySection {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 10px;
}

input[type="text"],
textarea {
    padding: 12px;
    border: 1px solid var(--color-primary);
    border-radius: 8px;
    resize: none;
    font-size: 1rem;
}

#EntryContent {
    min-height: 100px; 
}

#submitEntry {
    align-self: flex-start; 
    margin-left: 10px;
    padding: 10px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-tertiary);
    background-color: var(--color-primary);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: var(--shadow-light);
}

#submitEntry:hover {
    background-color: #6a994e; 
    transform: translateY(-1px);
}


#tabs {
    display: flex;
    justify-content: flex-start;
    border-bottom: 2px solid var(--color-header);
}

.tablink {
    padding: 14px 20px;
    background-color: var(--color-tertiary);
    color: var(--color-text);
    border: none;
    border-radius: 8px 8px 0 0; 
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
    margin-right: 5px;
}

#viewingArea {
    background-color: var(--color-tertiary);
    border-radius: 0 8px 8px 8px; 
    padding: 20px;
    min-height: 300px;
}

#journalDiv, #gardenDiv {
    padding-top: 10px;
}

#gardenDiv {
    text-align: center;
    background-color: #f7f7f7;
    padding: 20px;
    border-radius: 8px;
    min-height: 250px;
}


#journal {
    list-style: none;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
}

.journalEntry {
    background-color: var(--color-soil);
    color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--shadow-light);
    overflow-wrap: break-word;
}


footer {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    margin-top: auto;
}

#ButtonRack {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    margin-bottom: 15px;
    align-items: center;
}

#clearJournal {
    background-color: #9c4940;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 0.9rem;
}

#clearJournal:hover {
    background-color: #b32b1c;
}

#entryCount, #streakCount {
    text-align: center;
    font-weight: bold;
    padding: 5px;
    margin-top: 5px;
}

.hidden {
    display: none !important; 
}

#gardenPlant {
    max-width: 100%; 
    height: auto;    
    display: block;  
    margin: 20px auto 0;
    max-height: 250px; 
}