/* 开头写全局设置和响应式布局 */
*{
    margin: 0;
    padding: 0;
}
:root{

    /* 各种框的颜色(那些半亮半暗的) */
    --lightYellow:#ffe699;
    --darkYellow:#ffd24d;
    --lightGrey:#dddddd;
    --darkGrey:#aaaaaa;
    --lightBlue:#2693ff;
    --darkBlue:#006dd9;
    --lightOrange:#ff9122;
    --darkOrange:#d96d00;
    --lightPurple:#ac91ff;
    --darkPurple:#7a4dff;
    --ligthRed:#ff2626;
    --darkRed:#ad0705;
    --lightGreen:#80ff00;
    --darkGreen:#00b200;
    --Orange:#ffa64d;
    --Brown:#401000;
    --White:#ffffff;

    /* 提醒框颜色 */
    --Yellow:#d9e67d;
    --Pink:#ffb399;
}

/* 这里是背景设置 */
/* 用body塞背景 */
body{
    background-image: url("source/background.jpg");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-attachment: fixed;
    height: 100vh;
}


/* 这里是游戏主体设置 */

/* 头部信息 */
.Information{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 10vh;
}
.Time{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1%;
    margin: 1%;
    border-radius: 50%/40% 40% 30% 30%;
    width: 20vw;
    border: 10px solid var(--Brown);
    background: linear-gradient(to bottom, var(--lightYellow) 25%, var(--lightYellow) 40%, var(--darkYellow) 75%, var(--darkYellow) 100%);
}
.AS_button{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1%;
    margin: 1%;
    border-radius: 50%/40% 40% 30% 30%;
    width: 20vw;
    border: 10px solid var(--Brown);
    background: linear-gradient(to bottom, var(--lightYellow) 25%, var(--lightYellow) 40%, var(--darkYellow) 75%, var(--darkYellow) 100%);
}
.Money{
    display: flex;
    padding: 1%;
    margin: 1%;
    align-items: center;
    justify-content: center;
    border-radius: 50%/40% 40% 30% 30%;
    width: 20vw;
    border: 10px solid var(--Brown);
    background: linear-gradient(to bottom, var(--lightYellow) 25%, var(--lightYellow) 40%, var(--darkYellow) 75%, var(--darkYellow) 100%);
}



/* 欢迎界面div */
.welcome{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99;
    width: 100vw;
    height: 105vh;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
}
/* 信息类 */
.message {
    min-height: 50vh;
    width: 90vw;
    border: 10px solid rgba(86, 219, 175, 0.5);
    border-radius: 20px;
    background-color: #ffd24d;
    display: flex;
    /* column flex布局垂直显示 */
    flex-direction: column;
    align-items: center;
    position: relative;
}
.message .p1 {
    width: 90%;
    color: #8c6800;
    line-height: 2em;
    font-size: 1em;
}
.message .p2 {
    font-weight: 500;
    width: 90%;
    display: flex;
    color: #8c6800;
    font-size: 1.1em;
    margin: 0.1em 0 1.0em 0;
    justify-content: space-between;
}
/* 欢迎界面开始游戏那里 */
.message .start {
    width: 90%;
    height: 20%;
    border-radius: 30px;
    background: linear-gradient(180deg, #ffe699 50%, #ffd24d 50%);
    border: 0.2em solid #8c6901;
}
/* 欢迎界面开始游戏的文字样式 */
.message .start p {
    width: 100%;
    line-height: 2.5em;
    text-align: center;
    color: #8c6800;
    font-size: 1em;
}
/* 当鼠标悬浮在开始那里的样式变化 */
.message .start:hover {
    background: linear-gradient(180deg, #e6d08c 50%, #d9b342 50%);
}







/* 厨师栏 */
.Cooking{
    height: 20vh;
    margin-left: 1vw;
    margin-right: 1vw;
    margin-bottom: 1vh;
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    border-radius: 10%;
    border: 5px solid var(--White);
    background-color: var(--lightYellow);
}
/* 每个厨师的工作格(div) */
.chef {
    width: 15vw;
    height: 20vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    border: solid 5px #006dd9;
}
/* 厨师图标的包装 */
.Chef{
    height: 15vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
/* 厨师工作等待条的包装 */
.chef_Waiting{
    display: none;
    width: 70%;
    background-color: var(--lightGrey);
    border: solid 1px var(--White);
    text-align: center;
    font-size: medium;
    position: relative;
}
.chef_bar{
    display: block;
    background-color: #00d0ff;
    z-index: 2;
}
/* 调整菜名到进度条里面 */
.dish_content{
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    text-align: center;
    z-index: 3;
}
/* 控制厨师头像背面的东西 */
.chef-icon {
    height: 80%;
    border-radius: 50%;
    border: 5px solid white;
    /* 这背景色渐变-90，让两种颜色各占一半然后90度转向 */
    background: linear-gradient(-90deg, var(--darkGrey) 50%, var(--lightGrey) 50%);
    display: flex;
    align-items: center;
    justify-content: center;
}
/* 厨师照片 */
.chef-icon img {
    height: 100%;
}

/* 手动上菜的显示 */
.deliver-icon{
    display: none;
    flex-direction: column;
    justify-content: center;
    height: 80%;
    width: 5vw;
}
.deliver-img{
    display: block;
    height: 100%;
    width: 100%;
}
/* 厨师招聘那个div的类 */
.add-chef {
    height: 100%;
    width: 15%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: solid 5px #006dd9;
}
/* 添加厨师头像处 */
.add-chef-icon {
    height: 80%;
    width: 50%;
    border-radius: 50%;
    border: 5px solid white;
    /* 这背景色渐变-90，让两种颜色各占一半然后90度转向 */
    background: linear-gradient(-90deg, var(--darkGrey) 50%, var(--lightGrey) 50%);
    display: flex;
    align-items: center;
    justify-content: center;
}
/* 厨师招聘背景照片 */
.add-chef-icon img {
    clip-path: circle();
    height: 100%;
}

/* 厨师招聘的确认窗口 */
.add-chef-confirm{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99;
    width: 100vw;
    height: 100vh;
    background-color: rgba(20, 13, 13, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
}
/* 厨师解雇的确认窗口 */
.free-chef-confirm{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99;
    width: 100vw;
    height: 100vh;
    background-color: rgba(20, 13, 13, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
}
/* 解雇厨师的按钮 */
.free{
    text-decoration-line: none;
    color: white;
    background-color: #ac91ff;
    margin-bottom: 100px;
}
.chef .free:hover {
    background: red
}
/* 点菜窗口 */
.order_dish{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 99;
    width: 100vw;
    height: 100vh;
    background-color: rgba(20, 13, 13, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
}
/* 餐桌已满请等待窗口 */
.table-full{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 90;
    width: 100vw;
    height: 100vh;
    background-color: rgba(137, 30, 30, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
}
/* 提醒需要点菜窗口 */
.need-command{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100vw;
    height: 100vh;
    background-color: rgba(229, 66, 167, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
}
/* 解雇失败窗口 */
.fireFail{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100vw;
    height: 100vh;
    background-color: rgba(229, 66, 167, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
}
/* 游戏结束窗口 */
.gameOver{
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
    width: 100vw;
    height: 100vh;
    background-color: rgba(249, 13, 13, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
}



/* 就餐栏 */
.Canteen{
    margin: 1%;
    background-color: var(--Orange);
    border-radius: 10%;
    border: 5px solid var(--White);
    height:40vh;
}
/* 就餐顾客 */
/* 顾客采用网格布局稳定2*2,到时候响应式缩成1*4 */
.customer{
    display: grid;
    grid-template-rows: 20vh 20vh;
    grid-template-columns: 50vw 50vw;
    align-items: center;
    justify-items: center;
}
/* 每个位置的包装 */
.customer-station{
    display: flex;
    justify-content: center;
    column-gap: 5vw;
    align-items: center;
    margin: 2%;
}
.income-icon{
    display: none;
    justify-content: flex-start;
    flex-direction: column;
    height: 20vh;
}
.income_img{
    display: block;
    width: 5vw;
}
/* 菜品显示 */
.dish_text{
    display: grid;
    grid-template-rows:auto auto auto auto;
    grid-template-columns: auto auto;
    grid-column-gap: 3vw;
    grid-row-gap: 1vh;
    padding-left: 3vw;
}
/* 主菜凉菜饮品 */
.dish_part{
    display: none;
    border: solid 1px var(--White);
    text-align: center;
}
/* 就餐位的圆底背景 */
.customer-icon{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    height: 15vh;
    width: 10vw;
    border-radius: 50%;
    border: 5px solid rgb(252, 252, 252);
    /* 这背景色渐变-90，让两种颜色各占一半然后90度转向 */
    background: linear-gradient(-90deg, var(--darkGrey) 50%, var(--lightGrey) 50%);
}
/* 就餐图像 */
.customer_img{
    display: block;
    height: 100%;
}

/* 等待厅 */
.Waiting{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
/* 等待的顾客（包括了头像和等待条) */
.waitngCustomer{
    display: none;
    flex-direction: column;
    justify-content: center;
    max-width: 16vw;
    align-items: center;
}
.wait_img{
    display: block;
    height: 20vh;
    /* 也用圆圈双色背景，js调节background属性做到随机色 */
    border: 5px solid white;
    border-radius: 50%;
    background: linear-gradient(-90deg, var(--darkGrey) 50%, var(--lightGrey) 50%);
}
/* 进度条 */
#loadbar{
    display: none;
    width: 10vw;
    background-color: #000;
    border: 1px solid #000;
}
.bar{
    display: block;
    font-size: 12px;
    background-color: #00d0ff;
    text-align: center;
}

/* 成就系统 */
.achievement_system{
    background-color: #79deec;
    background-image: url("https://img.zcool.cn/community/01b04156f26d4132f875a944906b4a.jpg");
    height: 100vh;
    width: 100vw;
    margin: auto;
}
.ach_h1{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 10vh;
    width: 100vw;
    margin: auto;
}
.ach_hr{
    border: 5px solid blue;
    width: 60vw;
    margin: auto;
}
.ach_table{
    min-height: 10vh;
    width: 50vw;
    margin: auto;
}
.cap{
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 10vh;
}
.na{
    display: flex;
    text-align: center;
    min-height: 5vh;
}
.sa{
    display: flex;
    text-align: center;
    min-height: 5vh;
    color: red;
}
.redirection{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    height: 10vh;
}