* {
	margin: 0;
	padding: 0;
	
}
/* 消除 WebKit 内核浏览器的点击高亮 */
* {
    -webkit-tap-highlight-color: transparent;
}

/* 防止一些 Android 浏览器的点击背景高亮 */
*:focus {
    outline: none;
}

/* 对 iOS Safari 的按钮点击闪烁问题 */
button, input, textarea {
    -webkit-appearance: none; /* 重置样式 */
}

html {
	background-color: #f0f0f0;
}
body {
	width: 100%;
	height: 100vh;
	max-width: 400px;
	margin: 0 auto;
	background-color: #ffffff;
	font-family: Arial, sans-serif;
	overflow-x: hidden;
	position: relative;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.buttons {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-block;
    gap: 10px;
	user-select: none;
}

.buttons svg {
    cursor: pointer;
    width: 20px;
    height: 20px;
	margin-left: 10px;
    fill: #555;
    transition: fill 0.3s ease;
}

.buttons svg:hover {
    fill: #000;
}

.input-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 150px;
    width: 100%;
}

.input-box {
    margin-bottom: 20px;
    text-align: center;
}

#inputData {
    width: 250px;
    height: 45px;  
    resize: none; 
    box-sizing: border-box;
    outline: none;
    padding: 10px;
    font-size: 14px;
    transition: height 0.3s ease;
    user-select: text;
	border-radius: 4px;
}
#inputData::placeholder {
    user-select: none;
}
#startButton {
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    background-color: grey;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#startButton:hover {
    background-color: black;
    color:white;
}


.container, .bottle-container {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center; 
    align-items: flex-start; 
    gap: 10px; 
	  padding-top: 50px;
}


.bottle-wrapper {
    text-align: center;
    width: 90px; 
    min-width: 90px;  
    height: 80px;
    margin-bottom: 20px;
    margin-right: 10px; 
    border-radius: 10px;
    box-sizing: border-box;
}

.hidden {
    display: none;
}

.label {
	user-select: none;
}

/* setting */

#settingsModal {
	user-select: none;
	display: none; 
	position: fixed;
	top: -300px;
	left: 50%;
	transform: translateX(-50%);
	width: 300px;
	min-height: 200px;
	background-color: #fff;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	padding: 20px;
	box-sizing: border-box;
	z-index: 1000; 
	border-radius: 15px; 
	opacity: 0; 
	transition: top 0.5s ease, opacity 0.5s ease; 
}

#settingsModal .modal-header {
	text-align: center;
	font-size: 18px;
	font-weight: bold;
	margin-bottom: 20px;
}

#settingsModal .modal-content {
	font-size: 14px;
}


#overlay {
	display: none; 
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 999; 
}


.setOptBox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  /* border: 1px solid #ccc; */
  border-radius: 8px;
/*  background-color: #f9f9f9; */
  max-width: 500px;
  margin: 10px auto;
}

.setOptCaption {
  font-size: 14px;
  color: #333;
  font-weight: bold;
  flex-shrink: 0; /* 防止被压缩 */
  margin-right: 20px;
}

.themeColorOptGroup {
  display: flex;
  gap: 10px; /* 每个圆之间的间距 */
}

.themeColorOpt {
  width: 12px;
  height: 12px;
  border-radius: 50%; /* 圆形 */
  cursor: pointer;
  border: 2px solid transparent; /* 初始无边框 */
  transition: transform 0.2s, border-color 0.2s;
}

.themeColorOpt:hover {
  transform: scale(1.05); /* 悬停放大效果 */
}

.themeColorOpt.selected {
	transition: .5s;
    box-shadow: 0 0 0 3px rgba(187, 187, 187, 0.5);
}

/* 针对 Chrome、Edge、Safari (WebKit 内核) 浏览器 */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 针对 Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

/* 防止其他未知浏览器出现步进控件 */
input[type="number"] {
    appearance: none;
}



.maxLevelInput {
    width: 60px;
    text-align: center;
    font-size: 16px;
    border: none;
    outline: none;
    box-sizing: border-box;
    background: linear-gradient(to right, var(--focus-color, #007bff), var(--focus-color, #007bff)) no-repeat;
    background-position: left bottom;
    background-size: 0% 2px;
    background-repeat: no-repeat;
    transition: background-size 0.5s ease, box-shadow 0.5s ease;
    box-shadow: inset 0 -2px 0 0 #ccc; /* 模拟默认边框 */
}

.maxLevelInput:focus {
    background-size: 100% 2px; /* 焦点时展开背景 */
    box-shadow: none; /* 隐藏默认阴影 */
}


