body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f7f7f7;
    margin: 0;
    padding: 0;
}

header {
    background-color: #4CAF50;
    color: white;
    padding: 0.5rem 0;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
}

#semar-logo {
    max-width: 120px;
    border-radius: 50%;
    margin-bottom: 10px; /* Add bottom margin */
}

header h1 {
    margin: 0;
    font-size: 3.0em; /* Increased font size */
    text-align: center; /* Center the text */
    font-family: 'Arial', sans-serif; /* Changed font family */
}

header p {
    margin: 0.2em 0 0 0; /* Remove right margin */
    font-size: 1.4em; /* Increased font size */
    text-align: center; /* Align text to the center */
    font-family: 'Arial', sans-serif; /* Changed font family */
}

nav {
    background-color: #f0f0f0;
    padding: 0.5rem 0;
    border-bottom: 2px solid #ddd;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

nav li {
    display: inline;
    margin: 0 1rem;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 1.1em;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav a:hover {
    background-color: #ddd;
}

main {
    flex: 1;
    padding: 20px;
    display: flex; /* Use flexbox for layout */
    flex-direction: column; /* Stack sections vertically */
    align-items: center; /* Center content horizontally */

}

section {
     width: 80%; /* Control section width */
    margin-bottom: 20px; /* Add spacing between sections */
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    color: #4CAF50;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.input-group {
    margin-bottom: 10px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="number"], input[type="radio"] {
    width: auto;
    padding: 10px; /* Increased padding */
    border: 1px solid #ccc;
    border-radius: 5px; /* Rounded corners */
    box-sizing: border-box;
    font-size: 1em; /* Larger font */
    margin-right: 10px;
}
.radio-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px; /* Increased padding */
    border: none;
    border-radius: 5px; /* Rounded corners */
    cursor: pointer;
    width: 100%;
    font-size: 1.1em; /* Larger font */
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #45a049;
}

.result {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #ccc;
}

#detect-location {
    background-color: #388e3c;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 10px;
}

#location-info, #food-recommendation {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    min-height: 20px; /* Ensure it takes up some space even when empty */
}
#imt-result, #imt-interpretation {
    margin-top: 5px;
    padding: 5px;
    font-size:1.1em;
}

footer {
    text-align: center;
    padding: 1rem 0;
    background-color: #333;
    color: white;
}

#nutrition-analysis-section a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-family: Arial, sans-serif;
  font-size: 16px;
}

#nutrition-analysis-section a:hover {
  background-color: #3e8e41;
  background-color: #3e8e41;
}
