body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgb(20,100,20);
    background-image: url(/img/background.webp);
    background-size: cover;
    background-position: center center;
    text-align: center;  /* 文字居中显示 */
    width: 100vw;  /* 网页宽度（相对于窗口宽度） */
    min-width: 430px;
    height: 100vh;  /* 网页高度（相对于窗口高度） */
    margin: 0 auto;
    font-family: 'PingFang SC', 'Helvetica Neue';
    overflow: hidden;  /* 隐藏滚动条 */
    transition: 1s;
}

.blur {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.redBody {
    background-color: rgb(250,128,128);
}
.greenBody {
    background-color: rgb(148,250,148);
}
.blueBody {
    background-color: rgb(148,250,250);
}

#info {
    width: calc(100vw - 40px);
    min-width: 400px;
    max-width: 800px;
    max-height: calc(100vh - 90px);
    background-color: rgba(30, 30, 30, 30%);
    color: rgba(255, 255, 255, 80%);
    border-radius: 20px;
    padding: 10px;
    display: block;
    position: fixed;
    top: 10px;
    right: 10px;
    transform-origin: top right;
    transition: transform 0.5s;
    z-index: 99;
    overflow-y: scroll;
}
#infoBotton {
    display: block;
    width: 32px;
    height: 32px;
    margin: 0;
    position: fixed;
    top: 15px;
    right: 15px;
    font-family: 'Courier New';
    font-size: 24px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0%);
    color: rgba(255, 255, 255, 80%);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 80%);
    border-radius: 20px;
    z-index: 100;
    transition: 0.3s;
    padding: 0;
}
#infoBotton:hover {
    scale: 1.2;
    color: rgba(255, 255, 255, 100%);
}

#info button {
    font-family: 'PingFang SC', 'Helvetica Neue';
    font-size: 16px;
    height: 32px;
    width: 80px;
    text-align: center;
    border: 1px solid #cccccc;
}
#info button[disabled] {
    background: linear-gradient(#777777, #bbbbbb);
    color: #ffffff;
    font-weight: bold;
}
#info button:not([disabled]) {
    background: linear-gradient(#cccccc, #ffffff, #cccccc);
    color: #555555;
    font-weight: normal;
}

#info button:first-of-type {
    border-radius: 20px 0px 0px 20px;
}
#info button:last-of-type {
    border-radius: 0px 20px 20px 0px;
}

#settings {
    width: 350px;
    max-height: calc(100vh - 80px);
    background-color: rgba(30, 30, 30, 30%);
    color: rgba(255, 255, 255, 80%);
    border-radius: 20px;
    padding: 5px;
    padding-bottom: 20px;
    display: block;
    position: fixed;
    top: 50px;
    right: 10px;
    transform: scale(0);
    transform-origin: top right;
    transition: transform 0.5s;
    z-index: 99;
    overflow-y: scroll;
}
#settingsBotton {
    display: block;
    width: 32px;
    height: 32px;
    margin: 0;
    position: fixed;
    top: 55px;
    right: 15px;
    font-family: 'Courier New';
    font-size: 24px;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0%);
    color: rgba(255, 255, 255, 80%);
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 80%);
    border-radius: 20px;
    z-index: 100;
    transition: 0.3s;
    padding: 0;
}
#settingsBotton:hover{
    scale: 1.2;
    color: rgba(255, 255, 255, 100%);
}

#settings > div {
    display: grid;
    grid-template-columns: 3fr 2fr;
    align-items: center;
    justify-content: center;
}

#settings > div > label {
    font-size: 20px;
    margin: 10px auto;
}

.colorRed {
    width: 20px;
    height: 20px;
    border-radius: 15px;
    border: 1px solid #dddddd;
    background-color: rgb(148,38,38);
    margin: auto 5px;
    transition: 0.3s;
    cursor: pointer;
    padding: 0;
}
.colorGreen {
    width: 20px;
    height: 20px;
    border-radius: 15px;
    border: 1px solid #dddddd;
    background-color: rgb(38,148,38);
    margin: auto 5px;
    transition: 0.3s;
    cursor: pointer;
    padding: 0;
}
.colorBlue {
    width: 20px;
    height: 20px;
    border-radius: 15px;
    border: 1px solid #dddddd;
    background-color: rgb(38,148,148);
    margin: auto 5px;
    transition: 0.3s;
    cursor: pointer;
    padding: 0;
}
.colorActive {
    scale: 1.4;
}

h1 {
    text-align: center;
    font-size: 32px;
}
li {
    text-align: left;
    font-size: 20px;
}
div > p {
    text-align: center;
    font-size: 18px;
}

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


/* 提示框 */

#alert {
    display: block;
    position: fixed;
    width: 400px; 
    background-color: rgba(0, 0, 0, 30%); 
    color: rgba(255, 255, 255, 90%);
    border-radius: 20px;
    justify-content: center;
    padding-bottom: 0px;
    transform: scale(0);
    transition: transform 0.3s;
    z-index: 101;
}

#alertTitle {
    font-size: 26px;
    height: 32px;
}

#alertContent {
    display: block;
    font-size: 20px;
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 10px;
    max-height: 400px;
    overflow-y: scroll;
}


#buttonSepH {
    width: 100%;
    height: 0px;
    border: 0.75px #cccccc solid;
    margin: 0px;
  }


#buttonSepV {
    display: inline-block;
    position: fixed;
    bottom: 0px;
    width: 0px;
    height: 50px;
    border: 0.75px #cccccc solid;
    margin: 0px;
}


#alert > button {
    display: inline-block;
    background-color: rgba(0, 0, 0, 0%); 
    color: rgba(255, 255, 255, 90%);
    font-size: 20px;
    height: 50px;
    width: 180px;
    padding: 0px;
    margin: 0px;
    border: 0px;
    cursor: pointer;
    transition: 0.3s;
}

#alert > button:hover {
    scale: 1.1;
    color: rgba(255, 255, 255, 100%);
}

textarea {
    height: 100px;
    min-height: 50px;
    max-height: 400px;
    width: 380px;
    font-size: 18px;
    resize: vertical;
    opacity: 80%;
    background-color: rgba(0, 0, 0, 30%);
    color: rgba(255, 255, 255, 90%);
}

#winners {
    max-height: calc(100vh - 60px);
    width: 95%;
    position: relative;
    top: -30px;
    overflow-y: scroll;
}
.winnerBox {
    display: inline-block;
    padding: 10px 40px;
    margin: 25px;
    border-radius: 25px;  /* 中奖人名字方框背景圆角半径 */
    font-size: 72px;  /* 中奖人名字方框字体大小 */
    font-family: 'PingFang SC', 'Helvetica Neue';
    background-color: rgba(255, 255, 255, 65%);  /* 中奖人名字方框背景颜色 */
}
.redWinner {
    color: rgba(158, 20, 20, 90%);  /* 中奖人名字字体颜色 */
}
.greenWinner {
    color: rgba(0, 108, 0, 90%);  /* 中奖人名字字体颜色 */
}
.blueWinner {
    color: rgba(0, 128, 128, 90%);  /* 中奖人名字字体颜色 */
}

footer{
    position: fixed;
    bottom: 0px;
    width: 100%;
    min-width: 430px;
    z-index: 97;
}

input[type=number] {
    width: 66px;
    height: 32px;
    font-size: 26px;
    font-family: 'PingFang SC', 'Helvetica Neue';
    border: 1px solid rgba(255, 255, 255, 50%);
    border-radius: 10px;
    padding: 5px;
    text-align: center;
    background-color: rgba(30, 30, 30, 50%);
    color: rgba(255, 255, 255, 90%);
}

footer > button {
    background-color: rgba(30, 30, 30, 30%); /* 底部按钮背景颜色 */
    color: rgba(255, 255, 255, 80%);/* 底部按钮字体颜色 */
    font-size: 24px; /* 底部按钮字体大小 */
    font-family: 'PingFang SC', 'Helvetica Neue';
    cursor: pointer;
    border-radius: 30px;  /* 底部按钮圆角半径 */
    border-style: none;
    padding: 10px;
    margin: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
    width: 150px;  /* 底部按钮宽度 */
    height: 50px;
    transition: 0.3s;
}

footer > button:hover{
    scale: 1.08;
    color: rgba(255, 255, 255, 100%);
}


/* 样式参考自 iOS 设置中的亮度调节滑块 */
input[type="range"] {
    -webkit-appearance: none;
    width: 100px;
    height: 5px;
    background: #d3d3d3;
    outline: none;
    opacity: 0.8;
    transition: .2s;
    border-radius: 10px;
    margin: 20px auto;
}
input[type="range"]:hover {
    opacity: 1;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #ffffff;
    cursor: pointer;
    border-radius: 50%;
}


/* 样式参考自 iOS 设置中的开关 */
.switch {
    position: relative;
    display: inline-block;
    width: 46px;
    height: 28px;
}
.checkbox {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}
.checkbox:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
input:checked + .checkbox {
    background-color: #00cc00;
}
input:checked + .checkbox:before {
    transform: translateX(18px);
}