/* styles.css */
body {
    font-family: Arial, sans-serif;
    text-align: center;
}

.menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #333;
    display: flex;  /*这两行保障按钮居中*/
    justify-content: center; 
}

.menu li {
    /*  float: left; */
	  display: inline-block;
}

.menu li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.menu li a:hover,
.menu li a.active {
    background-color: blue;
}

#controlsContainer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
}

.control-group {
    display: flex;
    align-items: center;
    justify-content: center; /* Changed from flex-start to center */
    margin-top: 20px;
}

.control-group label {
    margin-right: 10px;
}

#height, #weight {
    /* Keep the size of the input fields the same */
}

#calculateButton {
       margin-top: 40px;	
	   background-color: #89D961;
	    border:none;
	     width: 250px;
        height: 50px;
}
 
#result {
    margin-top: 40px;
}

canvas {
    border: 1px solid black;
}

#imagePreview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

.previewImage {
    margin: 5px;
    max-width: 100px;
    max-height: 100px;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.previewImage.dragging {
    border-color: #ccc;
}

#dragHint {
    margin-top: 20px;
    text-align: left;
    display: none;
}

.hint-text {
    font-size: 0.9em;
    padding: 10px;
    background-color: #f9f9f9;
    border-left: 4px solid #ccc;
    display: inline-block;
}

  /* Paragraph styling */
	p {
		max-width: 600px; /* Set the maximum width of paragraphs */
		margin-left: auto; /* Center the paragraph */
		margin-right: auto; /* Center the paragraph */
		font-size: 16px; /* Optional: Set font size */
		line-height: 1.6; /* Optional: Set line height for better readability */
	   text-align: left;
	}

 /* 设置 footer 的样式，使其固定在页面底部 */
footer {
    background-color: #f8f9fa;
    text-align: center;
    padding: 1rem;
}
