body#index {
    font-family: Arial, sans-serif;
    background-color: #f0f5f9;
    color: #333;
    background: -webkit-linear-gradient(left, #7289da , rgba(44, 62, 80, 0.9)); /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(right, #7289da , rgba(44, 62, 80, 0.9)); /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(right, #7289da , rgba(44, 62, 80, 0.9)); /* For Firefox 3.6 to 15 */
    background: linear-gradient(to right, #7289da , rgba(44, 62, 80, 0.9)); /* Standard syntax */
    margin: 0; /* Remove default margin */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body#terms {
    font-family: Arial, sans-serif;
    background-color: #f0f5f9;
    color: #333;
    background: -webkit-linear-gradient(left, #7289da , rgba(44, 62, 80, 0.9)); /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(right, #7289da , rgba(44, 62, 80, 0.9)); /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(right, #7289da , rgba(44, 62, 80, 0.9)); /* For Firefox 3.6 to 15 */
    background: linear-gradient(to right, #7289da , rgba(44, 62, 80, 0.9)); /* Standard syntax */
    margin: 0; /* Remove default margin */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body#privacy {
    font-family: Arial, sans-serif;
    background-color: #f0f5f9;
    color: #333;
    background: -webkit-linear-gradient(left, #7289da , rgba(44, 62, 80, 0.9)); /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(right, #7289da , rgba(44, 62, 80, 0.9)); /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(right, #7289da , rgba(44, 62, 80, 0.9)); /* For Firefox 3.6 to 15 */
    background: linear-gradient(to right, #7289da , rgba(44, 62, 80, 0.9)); /* Standard syntax */
    margin: 0; /* Remove default margin */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body#features {
    font-family: Arial, sans-serif;
    background-color: #f0f5f9;
    color: #333;
    background: -webkit-linear-gradient(left, #7289da , rgba(44, 62, 80, 0.9)); /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(right, #7289da , rgba(44, 62, 80, 0.9)); /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(right, #7289da , rgba(44, 62, 80, 0.9)); /* For Firefox 3.6 to 15 */
    background: linear-gradient(to right, #7289da , rgba(44, 62, 80, 0.9)); /* Standard syntax */
    margin: 0; /* Remove default margin */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body#stats {
    font-family: Arial, sans-serif;
    background-color: #f0f5f9;
    color: #333;
    background: -webkit-linear-gradient(left, #7289da , rgba(44, 62, 80, 0.9)); /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(right, #7289da , rgba(44, 62, 80, 0.9)); /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(right, #7289da , rgba(44, 62, 80, 0.9)); /* For Firefox 3.6 to 15 */
    background: linear-gradient(to right, #7289da , rgba(44, 62, 80, 0.9)); /* Standard syntax */
    margin: 0; /* Remove default margin */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body#farming {
    font-family: Arial, sans-serif;
    background-color: #f0f5f9;
    color: #333;
    background: -webkit-linear-gradient(left, #7289da , rgba(44, 62, 80, 0.9)); /* For Safari 5.1 to 6.0 */
    background: -o-linear-gradient(right, #7289da , rgba(44, 62, 80, 0.9)); /* For Opera 11.1 to 12.0 */
    background: -moz-linear-gradient(right, #7289da , rgba(44, 62, 80, 0.9)); /* For Firefox 3.6 to 15 */
    background: linear-gradient(to right, #7289da , rgba(44, 62, 80, 0.9)); /* Standard syntax */
    margin: 0; /* Remove default margin */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.discord-button {
    display: inline-flex;
    align-items: center;
    padding: 10px;
    background-color: #7289da; /* Discord blue color */
    color: #ffffff; /* White text */
    text-decoration: none;
    border: none;
    border-radius: 5px;
}

.discord-button img {
    width: 30px; /* Adjust the size of the Discord logo */
    margin-right: 10px;
}

.header-content {
    padding: 10px auto;
    position: relative;
}

.login-button {
    position: absolute;
    top: 0;
    right: 0;
    margin: 20px;
    padding: 10px 20px;
    background-color: #7289da;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

.login-button:hover {
    background-color: #4358a3;
}

header {
    background-color: rgba(44, 62, 80, 0.9);
    color: #fff;
    text-align: center;
    padding: 1em 0; /* Added padding */
    height: 150px; /* Added height */
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav li {
    display: inline;
    margin-right: 1em;
}

nav a {
    color: #fff;
    text-decoration: none;
}

section {
    padding: 2em;
    background-color: rgba(236, 240, 241, 0.9);
    border-radius: 10px;
    margin-bottom: 2em;
}

section#about, section#features, section#satistics, section#contact {
    background-color: rgba(236, 240, 241, 0.9);
}

form label,
form textarea,
form input[type="text"],
form input[type="email"] {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 1em;
}

form textarea {
    height: 100px;
}

form input[type="submit"] {
    background-color: #2c3e50;
    color: #fff;
    border: none;
    padding: 0.5em 1em;
    cursor: pointer;
}

form input[type="submit"]:hover {
    background-color: #34495e;
}

/* Add styling for the new section */
section#terms {
    background-color: rgba(236, 240, 241, 0.9);
    padding: 2em;
    border-radius: 10px;
    margin-bottom: 2em;
}

/* Add styling for the "Terms of Service" link */
nav a#terms {
    color: #fff;
    text-decoration: none;
}

.containerM {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: space-around;
    margin: 30px auto;
    max-width: 1200px;
}

.containerS {
    display: grid;
    justify-content: center;
    align-items: center;
    align-content: space-around;
    margin: 30px auto;
    max-width: 1200px;
    justify-content: space-between;
}


footer {
    background-color: rgba(44, 62, 80, 0.9);
    color: #fff;
    text-align: center;
    margin-top: auto;
    min-width: 100%;
    /*padding: 1em 0; /* Add some padding to the footer for spacing */
}

#reload-timer {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.8); /* Adjust background color and opacity as needed */
    padding: 5px 10px;
    border-radius: 5px;
    z-index: 1000; /* Ensure it's above other content */
}

/* Login page styles */
#loginForm {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 50px;
}

#loginForm label {
    display: block;
    margin-bottom: 10px;
}

#loginForm input[type="email"],
#loginForm input[type="password"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#loginForm button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#loginForm button[type="submit"]:hover {
    background-color: #0056b3;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-family: "Arial Black", Arial, sans-serif; /* Updated font-family */
}

/* Styling for the welcome message */
#welcomeMessage {
    text-align: center;
    margin-top: 50px;
}

#welcomeMessage h2 {
    color: #007bff;
}

#welcomeMessage p {
    margin-bottom: 20px;
}

/* Styling for forms */
form {
    margin-bottom: 20px;
}

form label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

form input[type="email"],
form input[type="text"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

form button[type="submit"] {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Styling for upload form */
#uploadForm {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

#uploadForm label {
    display: block;
    margin-bottom: 5px;
    color: #333;
}

#uploadForm input[type="file"] {
    margin-bottom: 15px;
}

#status {
    display: block;
    margin-top: 10px;
    color: #333;
}

/* Styling for folder buttons */
#folderButtons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.folder-button {
    padding: 10px 20px;
    margin: 5px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.folder-button:hover {
    background-color: #0056b3;
}

/* Styling for file list */
#fileList {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

#fileList ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#fileList li {
    margin-bottom: 5px;
}

#fileList h3 {
    margin-bottom: 10px;
    color: #333;
}

#progressBarContainer {
    width: 100%;
    background-color: #f3f3f3;
    border-radius: 4px;
    margin-top: 10px;
    display: none; /* Initially hidden */
}

#progressBar {
    height: 20px;
    background-color: #4caf50;
    width: 0%;
    border-radius: 4px;
    text-align: center;
    line-height: 20px;
    color: white;
}

/* Farming Calculator styles */
.farming-form {
    width: 100%;
}

.farming-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 1em;
}

.farming-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 1em;
}

.farming-field label {
    margin-bottom: 6px;
    font-weight: bold;
    color: #2c3e50;
}

.farming-field input,
.farming-field select {
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
}

.farming-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.farming-btn {
    background-color: #7289da;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.3s ease;
}

.farming-btn:hover {
    background-color: #4358a3;
}

.farming-btn-secondary {
    background-color: #95a5a6;
}

.farming-btn-secondary:hover {
    background-color: #7f8c8d;
}

.farming-btn-small {
    padding: 5px 10px;
    font-size: 13px;
}

.farming-btn-danger {
    background-color: #c0392b;
}

.farming-btn-danger:hover {
    background-color: #922b21;
}

.farming-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin-top: 1.5em;
}

.farming-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.farming-table th,
.farming-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.farming-table th {
    background-color: #2c3e50;
    color: #fff;
}

.farming-table-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.farming-empty {
    text-align: center;
    color: #666;
    margin-top: 1em;
}

.farming-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
}

.farming-badge-yes {
    background-color: #e67e22;
}

.farming-badge-no {
    background-color: #27ae60;
}

.farming-result {
    margin-top: 2em;
    padding-top: 1.5em;
    border-top: 2px solid #ddd;
}

.farming-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.farming-result-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 12px 15px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.farming-result-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.farming-result-value {
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

.farming-result-highlight {
    background-color: rgba(114, 137, 218, 0.15);
    border: 1px solid #7289da;
}

.farming-note {
    margin-top: 1.5em;
    font-style: italic;
    color: #555;
}

#progressPercent {
    margin-top: 5px;
}