body {


    background-color: #FFFFFF;



    min-height: 100vh;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 800px;
    padding: 20px;
    margin: 0 auto;
}

h3 {
    text-align: center;
    margin-bottom: 20px;
}

.time-budget {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 24px;
    text-align: center;
}

.pet {
    font-size: 70px;
    margin: 20px auto;
    animation: bounce 1s ease;
    display: block;
    text-align: center;
    line-height: 30px; 
}

.stats {
    margin: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
}

.label {
    width: 150px;
    text-align: right;
    margin-right: 10px;
}

.bar-container {
    flex-grow: 1;
    background-color: #ddd;
    border-radius: 20px;
    margin-right: 10px;
    overflow: hidden;
    position: relative;
}

.bar {
    height: 30px;
    width: 100%;
    text-align: right;
    padding-right: 10px;
    line-height: 30px;
    color: white;
    transition: width 0.5s ease, background-color 0.5s ease;
}

#water-bar { background-color: #76c7c0; }
#toilet-bar { background-color: #ff8c00; }
#gas-bar { background-color: #ffa500; }
#fridge-bar { background-color: #4caf50; }
#diesel-bar { background-color: #d32f2f; }
#laundry-bar { background-color: #9c27b0; }

button {
    padding: 10px;
    font-size: 18px;
    width: 120px;
    flex-shrink: 0;
    margin-bottom: 15px;
    border: none;
    border-radius: 10px;
    background-color: #4E8099;
    color: white !important;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
}

button:active {
    transform: scale(0.95);
}

button:hover {
    background-color: #76B141;
}

.indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 20px;
    display: none;
}

.money {
    font-size: 24px;
}

.weather {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
}

#voltage-display {
    margin-left: 10px;
}

.notification-container {
    position: fixed;
    top: 90px;
    left: 20px; /* или right: 20px, если хотите справа */
    width: 300px;
    z-index: 2147483647 !important; /* Максимальное значение z-index, которое возможно */
    pointer-events: auto; /* Если хотите, чтобы уведомления были интерактивными */
}

.notification-critical {
    background-color: #f44336;
    top: 90px;
    color: white;
    padding: 16px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    animation: slideIn 0.5s ease-in-out, fadeOut 0.5s ease-in-out 3s;
}

.notification-light {
    background-color: #f0f0f0;
    top: 90px;
    color: #333;
    padding: 16px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    animation: slideIn 0.5s ease-in-out, fadeOut 0.5s ease-in-out 3s;
}

.notification-critical.show, .notification-light.show {
    opacity: 1;
}

.notification {
    top: 70px; /* Изменено на 50px для создания отступа */
    background-color: #f44336;
    color: white;
    padding: 16px;
    margin-bottom: 10px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    animation: slideIn 0.5s ease-in-out, fadeOut 0.5s ease-in-out 3s;
}

.notification.show {
    opacity: 1;
}

@keyframes slideIn {
    0% { transform: translateX(100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        max-width: none;
        padding: 10px;
    }

    .time-budget {
        flex-direction: column;
        align-items: center;
        margin-top: 10px;
        font-size: 20px;
    }

    .left-section, .center-section {
        display: none;
    }

    .time-budget-mobile {
        display: block;
        font-size: 20px;
        text-align: center;
        margin-top: 10px;
    }

    .stat-item {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }

    .label {
        width: auto;
        text-align: left;
        margin-bottom: 5px;
    }

    .bar-container {
        width: 100%;
        margin-bottom: 10px;
    }

    button {
        width: 100%;
        margin-bottom: 15px;
        font-size: 16px;
        padding: 14px;
        border-radius: 8px;
    }

    @keyframes bounce {
        0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
        40% { transform: translateY(-30px); }
        60% { transform: translateY(-15px); }
    }
    .bounce {
        animation: bounce 0.5s ease;
    }
    .notification-container {
        width: 90%;
        left: 5%;
        top: 10px;
    }
}

@media (min-width: 769px) {
    .time-budget-mobile {
        display: none;
    }
}

.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

#engine-button, #camping-button {
    display: block;
    width: auto;
    margin: 0 10px;
}

