/* Adjusted styles.css content */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
}

.calculator {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    max-width: 400px;
    margin: 50px auto;
    display: none; /* Hide all calculators by default */
}

.calculator-info {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
    max-width: 400px;
    margin: 20px auto;
    display: none; /* Initially hidden */
}

.calculator-info h2 {
    color: #333;
    font-size: 20px;
    margin-bottom: 10px;
}

.calculator-info p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
}

.calculator-description {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    padding: 20px;
    max-width: 400px;
    margin: 20px auto;
    display: none;
}

.calculator-description h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 20px;
}

.calculator-description p {
    color: #666;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 0; /* Adjust margin to align text properly */
}


.input-group input[type="number"],
.input-group input[type="text"] {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #cccccc;
    font-size: 16px;
    box-sizing: border-box;
}

.result-input,
textarea.result-input {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #cccccc;
    font-size: 16px;
    box-sizing: border-box;
    background-color: #f2f2f2; /* Adjusted background color for result boxes */
}

#cellSeedingCalculator .result-input {
    height: 150px;
}

h1 {
    margin: 0;
    color: #333333;
}

h1 a {
    text-decoration: none;
    color: #333333;
}

h1 a:hover {
    color: #1877f2;
}

h2 {
    margin-bottom: 20px;
    color: #333333;
    font-size: 24px;
    font-weight: bold;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555555;
    font-size: 16px;
}

.unit-buttons {
    display: flex;
    justify-content: flex-start;
}

.unit-buttons label {
    margin-right: 20px;
    font-size: 14px;
    color: #666666;
}

button {
    background-color: #1877f2;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    padding: 14px 28px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;

    /* Center text within button */
    display: flex;
    justify-content: center;
    align-items: center;
}

button:hover {
    background-color: #216fdb;
}

/* Styles for the header and dropdown */
header {
    background-color: #ffffff;
    padding: 20px;
    border-bottom: 1px solid #cccccc;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: #ffffff;
    color: #333333;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.dropdown-content a {
    color: #333333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f9f9f9;
}

.dropdown:hover .dropdown-content {
    display: block;
}

#homepageTextbox {
    display: block; /* Add or uncomment this line */
  }

.button-container {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap onto new lines */
  justify-content: center;
  margin-top: 20px; /* Adjust margin as needed */
}

.button-container button {
  margin: 0 3px; /* Adjust margin between buttons */
  margin-bottom: 10px; /* Add margin below each button */
  flex: 1 0 30%; /* Each button takes up 30% of the container width */
  max-width: calc(100% / 3 - 10px); /* Limit each button to one-third of the container width minus margins */
}
