body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: white; /* White background */
    color: #5a7a1a; /* Stronger green text color */
}

.header {
    background-color: white;
    text-align: center;
    padding: 10px 0;
    border-bottom: 2px solid #e0e0e0;
}

.header h1 {
    margin: 0;
    font-size: 36px;
    color: #5a7a1a;
}

.header p {
    font-size: 18px;
    color: #5a7a1a;
}

.header img {
    width: 100%;
    height: auto;
}

.container {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: white;
}

.column {
    padding: 10px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.center-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers items horizontally within the column */
}

.column:nth-child(1) {
    width: 25%;
}

.column:nth-child(2) {
    width: 50%;
}

.column:nth-child(3) {
    width: 25%;
}

.column h2 {
    font-size: 24px;
    color: #5a7a1a;
}

.leftcolumn,
.middlecolumn,
.rightcolumn {
    display: flex;
    align-items: center; /* Vertically align text in the middle */
    justify-content: center; /* Center text horizontally */
    width: calc((100% - 40px) / 3); /* Adjusted width for columns with padding */
    padding-left: 20px;
    box-sizing: border-box; /* Include padding in width calculation */
}

.leftcolumn {
    width: 60%; /* First column width */
    justify-content: flex-start; /* Align items to the left */
    padding-left: 20px;
}

.middlecolumn,
.rightcolumn {
    width: 20%; /* Adjusted width for columns */
    justify-content: center; /* Center text horizontally */
}
/* Alternate row background colors */
.form-group:nth-child(odd) {
    background-color: #f2f2f2; /* Light gray */
}

/* Style paragraphs inside columns */
.leftcolumn p,
.middlecolumn p,
.rightcolumn p {
    margin: 0; /* Remove default margin */
    height: 40px;
    display: flex;
    align-items: center; /* Vertically align text in the middle */
    justify-content: center; /* Center text horizontally */
}
.leftcolumn p {
    justify-content: flex-start; /* Align text to the left */
}

.middlecolumn p,
.rightcolumn p {
    justify-content: center; /* Center text horizontally */
}

nav {
    text-align: center;
    padding: 1px;
    background-color: white;
    color: #5a7a1a;
}

nav a {
    color: #5a7a1a;
    text-decoration: none;
    margin: 0 10px;
}

/* Inverse styles for the selected navigation item */
nav a.selected {
    font-weight: bold; /* Makes the text bold */
    font-style: italic; /* Makes the text italic */
    text-decoration: underline; /* Underlines the text */
}

nav a:hover {
    text-decoration: underline;
}


footer {
    text-align: center;
    padding: 10px;
    background-color: white;
    color: #5a7a1a;
    border-top: 2px solid #e0e0e0;
}

footer a {
    color: #5a7a1a;
    text-decoration: none;
    margin: 0 10px;
}

footer a:hover {
    text-decoration: underline;
}

/* Add a card effect for sections */
.card {
    background-color: white;
    padding: 20px;
    margin-top: 20px;
}
.card button {
    align-self: flex-end; /* Align the button to the right */
    padding: 10px 20px;
    background: #ff0040; /* Red background */
    color: #fff; /* White font */
    border: none;
    border-radius: 10px; /* Round edges */
    font-size: 18px; /* Large font */
    cursor: pointer;
    margin-top: 10px;
}

.card button:hover {
    background: #c10030; /* Darker green background on hover */
}
.form-group {
    overflow: hidden; /* Clear float */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 10px;
    position: relative;
}

.form-group .input-row {
    display: flex;
    width: 100%;
    align-items: center;
}

.form-group label,
.form-group input {
    display: inline-block;
    vertical-align: middle;
}

.form-group label {
    flex: 3;
    width: 75%;
    text-align: left;
    color: #5a7a1a; /* Green text color */
    margin-right: 10px;
}

.form-group input {
    flex: 1;
    width: 25%;
    box-sizing: border-box;
    padding: 5px;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
}

.form-group span {
    width: 100%;
    text-align: right;
}

#form-group button {
    align-self: flex-end; /* Align the button to the right */
    padding: 10px 20px;
    background: #5a7a1a; /* Green background */
    color: #fff; /* White font */
    border: none;
    border-radius: 10px; /* Round edges */
    font-size: 18px; /* Large font */
    cursor: pointer;
    margin-top: 10px;
}

#form-group button:hover {
    background: #3d5610; /* Darker green background on hover */
}

.form-group-results {
    overflow: hidden; /* Clear float */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 10px;
}

.form-group-results-inverse {
    background-color: #e0ecc6;
    color: #5a7a1a;
    border-radius: 10px;

    overflow: hidden; /* Clear float */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 10px;
}

/* Hide the confession_person2 field by default */
#container_confession_person2 {
    display: none;
    justify-content: flex-end; /* Align items to the right */
}

.error {
    border-color: red;
}

input.error {
    border-width: 1px; /* border width */
    border-style: solid; /* border style */
    border-color: red;
}
.error-message {
    color: red;
    font-size: 12px;
}