
:root {
    --green: #176b3a;
    --gold: #e8a72c
}

.placed-rice{
    max-width: 200px;
    width: 100%;
}

button {

    cursor: pointer
}
.clr-green{
	background-color: green;
	color: #fff;
	padding: 2px 5px;
	border-radius: 5px;
	font-size: 12px;
	margin-right: 5px
}
.clr-orange{
	background-color: #c06e05;
	color: #fff;
	padding: 2px 5px;
	border-radius: 5px;
	font-size: 12px;
	margin-right: 5px
}
.clr-red{
	background-color: red;
	color: #fff;
	padding: 2px 5px;
	border-radius: 5px;
	font-size: 12px;
	margin-right: 5px
}
.calorie-guide {
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
	margin:10px 0 15px 0;
}

.calorie-lists {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.calorie-items {
    display: flex;
    align-items: center;
    white-space: nowrap;
	padding: 2px 10px
}

.calorie-dot {
    width: 11px;
    height: 11px;
    min-width: 11px;
    border-radius: 50%;
    display: block;
	margin-right: 5px;
}

.calorie-text {
    font-size: 16px;
    font-weight: 600;
    color: #222;
	display: flex;
  align-items: center;
}

.green .calorie-dot {
    background: #159447;
}

.orange .calorie-dot {
    background: #ed8b00;
}

.red .calorie-dot {
    background: #d72d2d;
}

/* Mobile */

.game-wrap {
   max-width:980px; 
    margin: auto;
    padding: 0 15px;
    position: relative;
    z-index: 9999;

}

.game-panel {
    width: 100%;
   background-color: #0f3028;
    border-radius: 10px;
}
.stats {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px
}
.stats div {
    min-width: 130px;
    text-align: center;
    background: #fff;
    border: 2px solid #ead9a3;
    border-radius: 14px;
    padding: 10px
}
.stats span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    color: #777
}
.stats strong {
    display: block;
    color: var(--green);
    font-size: 22px;
    margin-top: 3px
}
.layout{
    display: block
}
.food-panel {
    width:100%;
    min-width: 100%;
    padding-right: 0;
    display: -webkit-box ;
    display: -ms-flexbox;
    display: flex ;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
}
.food-panel-inner {
    width: 100%;
    padding: 15px 15px 0px 15px;
}
.food-panel h2 {
    margin: 0;
  color: #FFF012;
    font-size:16px;
	text-align: center;
}
.hint {
    font-size: 13px;
    color: #fff;
	font-weight: 500;
    margin: 0 0 8px;
	text-align: center;

}
.food-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap
}
.food-card{
    width: 21%;
     min-width: 21%;
    padding: 0 5px 0 0;
    list-style-type: none;
}
.food-card-inner {
    width: 100%;
    border-radius: 10px;
/*    padding: 15px 5px 15px 5px;*/
    padding: 5px 5px 5px 5px;
    border: 1px dashed #797979;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    position: relative;
	background-color: #fff;

/*    height: 78px;*/
    height: 66px;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
}

.food-card.dragging {
    opacity: .5
}
.food-emoji {
    font-size: 34px;
    display: block
}
.food-name {
    font-weight:500;
    font-size: 10px;
    text-align: center;
    line-height: 1;
    display: -webkit-box ;
    display: -ms-flexbox;
    display: flex ;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
    white-space: initial;
	color: #000;
}
.leaf-area {
    width: 100%;
    padding: 10px;
    display: -webkit-box ;
    display: -ms-flexbox;
    display: flex ;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
    -ms-flex-direction: column !important;
    flex-direction: column !important;

}
/* Banana Leaf */
.banana-leaf {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;

}
.leaf-vein {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: rgba(38, 105, 42, .55);
    transform: rotate(7deg);
    pointer-events: none
}
.leaf-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    pointer-events: none;
	font-weight: 600;
	max-width: 200px;
	margin: 0 auto;
	text-align: center;
}
.placed-items {
    position: absolute;
    inset: 0;
    pointer-events: none
}
.placed-item {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
    cursor: grab;
    user-select: none;
    touch-action: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    pointer-events: auto;
    z-index: 3;
    animation: pop .25s ease;
    max-width: 12%;
    width: 100%;
}
.placed-item .dish{
    max-width:100%;
    width: 100%;
}
#placed-rice{
    max-width:35% !important;
    width: 100%;
}
#placed-sambar{
    max-width: 15% !important;
    width: 100%;
}
#placed-ney{
	max-width: 9%;
}
#placed-kalan{max-width: 12%;}
#placed-pappadam{max-width: 13%;}
#placed-avial{max-width: 12%}
#placed-rice .dish{
    max-width: 100% !important;
    width: 100%;
}
.placed-item.moving {
    cursor: grabbing;
    transform: scale(1.06);
    z-index: 100
}
.placed-item .food-emoji {
    font-size: 30px;
    line-height: 1
}
.placed-item small {
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    display:none
}
.remove-item {
    position: absolute;
    right: 0px;
    top: -2px;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: white;
    cursor: pointer;
    line-height: 18px;
    font-size: 14px
}
.submit-block {
    width: 100%;
}
.submit-row {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    width: 100%;
    border: 1px solid #6fa01e;
    margin-bottom: 5px;
}
.submit-row .name-input {
    flex: 1;
    min-width: 0;
}
#checkBtn{
    white-space: nowrap;
    padding: 10px 12px;
    flex-shrink: 0;
}
#clearBtn{
    background-color: #ef3342;
    color: #fff;
   margin-right: 5px;
}
.name-input {
    padding: 8px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    width: 100%;
    background: #fff;
    border: 0;
    height: 35px;
}
.name-input:focus {
    border-color: var(--green);
}
.primary-btn{
    border: 0;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}
#previewBtn{
    background-color: #176b3a;
    border: 0;
    color: #fff;
}
.secondary-btn {
    border: 0;
    padding: 10px;
    margin: 0;
    font-weight: 600;
    font-size: 13px;
    border-radius: 5px;
    height: 35px;
    white-space: nowrap;
    display: -webkit-box ;
    display: -ms-flexbox;
    display: flex ;
    -webkit-box-align: center !important;
    -ms-flex-align: center !important;
    align-items: center !important;
    -webkit-box-pack: center !important;
    -ms-flex-pack: center !important;
    justify-content: center !important;
      -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
}
.primary-btn {
    background: var(--green);
    color: #fff
}
.primary-btn:hover {
    background: #1a8045
}
.secondary-btn {
    background: #eee4c8;
    color: #493b1d;

}
/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999
}
.modal-card-inner{
    position: relative;
    z-index: 999;
}
.hidden {
    display: none
}
.modal-card {
    position: relative;
  max-width: 356px;
  width: 100%;
  border-radius: 22px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  max-height: 90vh;
  overflow-y: auto;
	
}
.close-btn {
position: absolute;
  right: 0;
  top: 0;
  border: 0;
  background: none;
  font-size: 28px;
  color: #fff9f9;
  font-weight: 600;
  line-height: 1;
}
.result-icon {
    font-size: 35px;
    margin-bottom: 5px
}
.modal-card h2 {
    color: #fff;
    margin: 0;
    font-size:17px
}
.modal-card p {
    color: #fff;
    font-size: 16px;
    margin: 0 0 10px
}

/* Calorie tiers */
.modal-low {
    background: linear-gradient(135deg, #079300, #079300);
	position: relative;
}
.modal-low:after, .modal-medium:after, .modal-high:after{
	content: "";
	clear: both;
	display: table;
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	right: 0;
	background-image: url("../images/patterns.png");
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
	height: 100%;
	width: 100%;
	opacity: 0.1
}
.modal-medium {
    background: linear-gradient(135deg, #f66107, #f66107);
    	position: relative;
}
.modal-medium h2, .modal-medium p {
    color: #fff
}
.modal-high {
    background: linear-gradient(135deg, #ff0000, #ff0000);
    	position: relative;
}
.result-score {
/*    background: rgba(255, 255, 255, .2);
    border-radius: 14px;*/
    margin: 10px 0
}
.result-score span {
    display: block;
    color: #fff;
    font-weight: 600;
    line-height: 1;
    font-size: 18px;
    text-transform:capitalize
}
.result-score strong {
    font-size: 45px;
    background: linear-gradient(90deg, #f4ff00, #fff);
    background-clip: border-box;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1;
}
.modal-medium .result-score span {
    color: #fff
}
.modal-medium .result-score strong {
    color: #fff
}
/* Modal Buttons */
.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px
}
.modal-btn {
    border: 0;
    border-radius:6px;
    padding:10px;
    font-weight:600;
    font-size: 14px;
    cursor: pointer;
    transition: transform .15s;
}
.modal-btn:hover {
    transform: translateY(-2px)
}
.share-btn {
    background: #fff;
    color: var(--green);
}
.share-fb {
/*    background: #1877f2;*/
    color: #fff
}
.share-x {
/*    background: #000;*/
    color: #fff
}
.share-wa {
/*    background: #25d366;*/
    color: #fff
}
.rebuild-btn {
    background: #fff;
    color: #000;
}
.modal-medium .rebuild-btn {
    color: #333;
    border-color: rgba(0, 0, 0, .2)
}
.calories-btn {
    background: #fff;
    color: #000;
}
.modal-medium .calories-btn {
    color: #333;
    border-color: rgba(0, 0, 0, .2)
}
/* Calorie detail list */
.result-items {
    background:#fff;
    border-radius: 10px;
    margin-top: 14px;
    max-height: 200px;
    overflow-y: auto;
}
.calorie-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
   border-bottom: 1px solid #ececec;
    font-size: 14px;
    color: #000;
}
.calorie-item-inner{
        display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}
.calorie-item .dish{
    max-width: 25px;
    min-width: 25px;
    margin-right: 5px;
}
.calorie-item:last-child {
    border-bottom: none
}
.modal-medium .calorie-item {
    color: #333;
    border-bottom-color: rgba(0, 0, 0, .1)
}
.action-row {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 5px;
}
.preview-btn {
    background: #fff3d6;
    color: #79521b;
    border: 2px solid #e8d69e
}
.preview-btn:hover {
    border-color: var(--gold);
    background: #fff8e8
}
/* Preview Modal */
.preview-modal {
    cursor: pointer;
}
.preview-card {
    background: transparent;
    max-width: 560px;
    width: 100%;
    box-shadow: none;
    padding: 0;
    cursor: default;
    position: relative;
}
.preview-card .close-btn {
    right: 10px;
    top: 10px;
    background: rgba(0,0,0,.5);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    z-index: 10;
}
.preview-leaf-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.preview-banana-leaf {
    max-width: 100%;
}
.preview-banana-leaf .placed-item {
    pointer-events: none;
    cursor: default;
}
.preview-banana-leaf .placed-item .remove-item {
    display: none;
}
#preview-placed-rice{
    max-width:35% !important;
    width: 100%;
}
#preview-placed-sambar{
    max-width: 15% !important;
    width: 100%;
}
#preview-placed-kalan{max-width: 11%;}
#preview-placed-pappadam{max-width: 13%;}
#preview-placed-avial{max-width: 11%}
#preview-placed-rice .dish{
    max-width: 100% !important;
    width: 100%;
}
.preview-count {
    color: #fff;
    font-size: 14px;
    margin-top: 14px;
    text-align: center;
}
/* Toast notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #333;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
    z-index: 9999;
    opacity: 0;
    transition: opacity .3s, transform .3s;
    pointer-events: none;
    text-align: center;
    max-width: 90vw;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media screen and (min-width: 980px) {
	.food-panel h2{
		color: #162A06;
		text-align: left;
	}
	.hint{
		color: red;
		text-align: left;
	}
	.leaf-placeholder{
		max-width: 90%;
	}
	.game-panel {

    background-color:#fff;
   
}
	.food-card-inner{
		   border:1px dashed red;
	}
    .placed-item{
        max-width: 11%;
    }
    .preview-banana-leaf .placed-item{
        max-width: 11%;
    }
    #preview-placed-rice{
        max-width:35% !important;
    }
    #preview-placed-sambar{
        max-width: 15% !important;
    }
    #preview-placed-kalan{max-width: 11%;}
    #preview-placed-pappadam{max-width: 13%;}
    #preview-placed-avial{max-width: 11%}
    .banana-leaf{
        max-width: 100%;
    }
    .leaf-placeholder{
        font-size: 20px;
		font-weight: 500
    }
    .food-card{
        width: 25%;
        min-width: 25%;
    }
    .game-panel{
        background-color: transparent
    }
    .food-panel h2{
        font-size: 21px;
    }
    .food-card{margin-bottom: 5px; padding: 0 2.5px}
    .food-list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 -2.5px;
    padding: 0;
}
.food-panel-inner{
      background-color: #fff;
    border-radius: 15px;
    padding: 15px;
}

    .food-panel{
        width: 350px;
  min-width: 350px;
  padding-right: 15px;
    }
    .submit-row{
        margin-right: 5px;
        margin-bottom: 0;
    }
    .leaf-area{
        width: 70%;
    }
    .layout {
    width: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}
@media screen and (min-width: 1480px) {
    .game-wrap{
         max-width: 1300px;
    }
}