/*Font loading*/
@font-face{
    font-family: 'IceAgeFont';
    src: url("../fonts/IceAgeMovie.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

body, html{
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

#start-menu{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../textures/menu_wallpaper.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#start-menu.hidden{
    opacity: 0;
    visibility: hidden;
}

.menu-box{
    text-align: center;
    padding: 20px;
    transition: opacity 0.4s ease, visbility 0.4s ease, transform 0.4s ease;
    max-width: 500px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hidden-panel{
    opacity: 0;
    visibility: hidden;
    position: absolute;
    transform: scale(0.9);
    pointer-events: none;
}

.game-title{
    font-family: 'IceAgeFont', sans-serif;
    font-size: 5rem;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 5px;
    letter-spacing: 2px;
    text-shadow: 3px 3px 0px #0284c7, 5px 5px 20px rgba(0, 0, 0, 0.9);
}

.game-subtitle{
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 35px;
    font-weight: 700;
    text-shadow: 2px 2px 0px #000, -1px -1px 0px #000, 1px -1px 0px #000, -1px 1px 0px #000, 4px 4px 12px rgba(0, 0, 0, 0.8);
}

.panel-title{
    font-family: 'IceAgeFont', sans-serif;
    color: #ffffff;
    font-size: 2.8rem;
    margin-top: 0;
    margin-bottom: 30px;
    text-shadow: 2px 2px 0px #0284c7;
}

.menu-buttons{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.menu-btn{
    padding: 15px 40px;
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    background-color: #0284c7;
    border: 2px solid #0284c7;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
    width: 100%;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.9);
}

.menu-btn:hover{
    background-color: #0ea5e9;
    border-color: #0ea5e9;
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 1);
}

.setting-item{
    color: white;
    margin-bottom: 25px;
    text-align: left;
    font-size: 1.2rem;
    width: 80%;
}

.setting-item label, .controls-info p{
    color: #ffffff;
    font-weight: 700;
    text-shadow: 1px 1px 0px #000, -1px -1px 0px #000, 1px -1px 0px #000, -1px 1px 0px #000, 2px 2px 8px rgba(0, 0, 0, 0.9);
}

.setting-item label{
    display: block;
    margin-bottom: 10px;
}

#volume-slider{
    width: 100%;
    cursor: pointer;
    accent-color: #38bdf8;
}

.controls-info h3{
    color: #ffffff;
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 5px;
    margin-bottom: 10px;
    font-size: 1.4rem;
    text-shadow: 2px 2px 0px #000, -1px -1px 0px #000, 1px -1px 0px #000, -1px 1px 0px #000, 3px 3px 10px rgba(0, 0, 0, 0.9);
}

.controls-info p{
    margin: 8px 0;
    font-size: 1.1rem;
}

#volume-slider{
    width: 100%;
    cursor: pointer;
    accent-color: #38bdf8;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.6));
}

#game-ui{
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#game-ui.visible{
    opacity: 1;
    visibility: visible;
}

#in-game-settings-btn{
    position: fixed;
    top: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: #0284c7;
    color: white;
    border: 3px solid #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s, background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

#in-game-settings-btn:hover{
    background-color: #0ea5e9;
    transform: scale(1.1) rotate(90deg);
}

#pause-menu{
    position:fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#pause-menu.hidden-panel{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: fixed;
    transform: none;
}

.pause-menu-content{
    background-color: rgba(2,132,199,0.2);
    border: 2px solid #38bdf8;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}

#in-game-volume-slider{
    width: 100%;
    cursor: pointer;
    accent-color: #38bdf8;
    filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.6));
}

#start-day-btn{
    position: fixed;
    top: 20px;
    right: 35px;
    transform: translateX(-50%); 
    background-color: #0284c7; 
    color: white;
    border: 3px solid #ffffff;
    border-radius: 30px; 
    padding: 12px 24px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s, background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

#start-day-btn:hover {
    background-color: #0ea5e9;
    transform: translateX(-50%) scale(1.05);
}

#timer-display {
    position: fixed;
    top: 20px;
    right: 35px; 
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6); 
    backdrop-filter: blur(6px);
    color: white;
    border: 2px solid #0ea5e9;
    border-radius: 15px;
    padding: 10px 25px;
    font-size: 1.5rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.orders-title{
    text-align: center;
    margin: 0 0 15px 0;
    border-bottom: 2px solid #0ea5e9;
    padding-bottom: 10px;
}

#orders-panel {
    position: fixed;
    top: 80px; 
    left: 20px;
    width: 250px;
    max-height: calc(100vh - 120px); 
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    color: white;
    border: 2px solid #0ea5e9;
    border-radius: 15px;
    padding: 15px;
    overflow-y: auto; 
    z-index: 10;
    display: flex;
    flex-direction: column;
}

#orders-container {
    display: flex;
    flex-direction: column;
    gap: 12px; 
}

.order-card {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid #38bdf8;
    border-radius: 10px;
    padding: 12px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.order-food {
    color: #fcd34d; 
    display: flex;
    align-items: center;
    gap: 5px;
}

.order-progress-bg {
    width: 100%;
    height: 12px;
    background-color: #333;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 5px;
}

.order-progress-bar {
    height: 100%;
    background-color: #4ade80; 
    transition: width 0.2s linear, background-color 0.3s;
}

.order-card.status-pending {
    border-color: #ef4444; 
    background-color: rgba(239, 68, 68, 0.2);
}

.order-card.status-ready {
    border-color: #facc15; 
    background-color: rgba(250, 204, 21, 0.2);
}

.order-card.status-held {
    border-color: #4ade80; 
    background-color: rgba(74, 222, 128, 0.2);
}

#earnings-display {
    position: absolute;
    top: 160px; 
    right: 30px;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 8px 15px;
    border-radius: 10px;
    border: 1px solid #0ea5e9;
    backdrop-filter: blur(4px);
    transition: color 0.2s ease, transform 0.2s ease;
}

#earnings-display.money-up {
    color: #4ade80 !important; 
    transform: scale(1.1);       
}

#dayNumber {
    position: fixed;
    top: 20px;
    left: 155px;
    transform: translateX(-50%); 
    background-color: #0284c7; 
    color: white;
    border: 3px solid #ffffff;
    border-radius: 10px; 
    padding: 12px 24px;
    font-size: 1.2rem;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s, background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

#summary-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.summary-box {
    background-color: rgba(20, 40, 60, 0.95);
    border: 4px solid #87ceeb;
    border-radius: 15px;
    padding: 30px;
    color: white;
    min-width: 380px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0px 0px 25px rgba(135, 206, 235, 0.4);
}

#summary-day-title {
    font-family: 'IceAgeFont', sans-serif; 
    color: #e0ffff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

#summary-items-list {
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 5px;
}


.summary-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(135, 206, 235, 0.2);
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 8px;
}

.summary-item-left {
    display: flex;
    align-items: center;
    gap: 15px;
}


.summary-item-icon-container canvas {
    width: 45px !important;
    height: 45px !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: block;
}

.summary-item-name {
    font-weight: bold;
    text-transform: capitalize;
    font-size: 1.1rem;
    color: #ffffff;
}

.summary-item-price {
    color: #4ade80; 
    font-weight: bold;
    font-size: 1.1rem;
}

.summary-total {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 15px;
    margin-bottom: 25px;
    border-top: 2px solid rgba(135, 206, 235, 0.4);
    padding-top: 15px;
    color: #4ade80; 
}

#summary-menu.hidden-panel {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#tutorial-btn{
    position: fixed;
    top: 90px;
    right: 20px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background-color: #0284c7;
    color: white;
    border: 3px solid #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s, background-color 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

#tutorial-btn:hover{
    background-color: #0ea5e9;
    transform: scale(1.05);
}

#tutorial-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200; 
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#tutorial-menu.hidden-panel {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: fixed;
    transform: none;
}

.tutorial-content {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    color: white;
    border: 2px solid #0ea5e9;
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
}

.tutorial-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.tutorial-list li {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #38bdf8;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 10px;
}

.tutorial-list strong {
    color: #fcd34d; 
}