/* =======================
    Main
=========================*/

.game-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 80%;
    max-width: 1000px;
}

body {
    background-color: #222222;
    margin: 0;
    height: 100vh;

    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 250px;
}

/* =======================
    Time Related
=========================*/
.action-bar {
    width: 100%;
    height: 6px;
    background-color: #222222;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

#action-progress {
    width: 0%;
    height: 100%;
    background-color: #888888;
}
#lifetime {
    margin-top: 0;
    margin-bottom: 10px;
}

.day-bar {
    width: 100%;
    height: 10px;
    flex: 1;
    background-color: #222222;
    border-radius: 5px;
    overflow: hidden;
}

#day-progress {
    width: 0%;
    height: 100%;
    background-color: #888888;
}

.day-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* =======================
    JOBS
=========================*/

/* Jobs */

.left-panel {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.task {
    display: block;
}
.job-row {
    display: flex;
    align-items: center;
    gap: 5px;
}
.job-button {
    background-color: transparent;
    color: #999999;
    border: 2px solid #999999;
    padding: 5px 15px;
    height: 34px;
    width: 150px;
    white-space: nowrap;
    box-sizing: border-box;    
}
.feed-row {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}
#feed-button {
    display: none;
}

#cry-button {
    display: none;
    width: 150px;
}

/*Logg */
#event-log {
    height: 200px;
    overflow-y: auto;
}


/* Achievements */
.achievements-panel {
    grid-column: auto;
}
.achievement-button {
    background-color: transparent;
    color: #999999;
    border: 2px solid #999999;
    padding: 5px 15px;
    height: 34px;
    width: 150px;
    margin-bottom: 2px;
    box-sizing: border-box;
    text-align: center;
}
#achievement-feed,
#achievement-well-fed {
    display: none;
}



/* Misc */

.panel {
    background-color: #333333;
    color: #999999;
    padding: 30px;
    flex: 1;
    min-height: 300px;
    border-radius: 10px;
}

.panel h2 {

    margin-top: 0px;
}

/* =======================
    Stats
=========================*/

/* Hunger */

#progression-message {
    height: 20px;
}

.stat-bar {
    flex: 1;
    height: 10px;
    background-color: #222222;
    border-radius: 5px;
    overflow: hidden;
}

.hunger-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

#hunger-progress {
    width: 50%;
    height: 100%;
    background-color: #cc3333;
}

#hunger-percent {
    width: 35px;
}

#hunger-time {
    width: 45px;
}

/* =======================
    Death Screen
=========================*/

#death-screen {
    position: fixed;
    inset: 0;
    background-color: #111111;
    display: none;
    justify-content: center;
    align-items: center;
    color: #cc3333;
    font-size: 80px;
    font-weight: bold;
}

/* =======================
    Save Area
=========================*/

.save-area {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    gap: 10px;
}

@media (max-width: 700px) {
    .game-container {
        grid-template-columns: 1fr;
        width: 90%;
        max-width: none;
    }

     .panel {
        min-width: 0;
        box-sizing: border-box;
    }
}

.explore-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.explore-bar {
    width: 100%;
    height: 10px;
    background-color: #222222;
    border-radius: 5px;
    overflow: hidden;
}

#explore-progress {
    width: 0%;
    height: 100%;
    background-color: #33aa55;
}

#explore-distance {
    width: 70px;
    white-space: nowrap;
}