html {
    font-family: 'Montserrat', sans-serif;
    line-height: 0.8;
    -webkit-font-smoothing: antialiased;
    margin-top: 60px;
    /* background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); */
}

* {
    box-sizing: border-box;
    /* border: solid; */
}

body {
    min-height: 100%;
}

/* BODY */

.container {
    width: 90%;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    align-items: center;

}

.menu>p {
    padding: 4px;
    font-size: 32px;
    font-family: "Noteworthy", cursive;
    letter-spacing: 1px;
    margin: 20px;
    font-weight: 900;
    color: #ffffff;
}

.menu>p:hover {
    cursor: pointer;
    font-weight: bold;
    font-size: 32px;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    /* background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%,#d6249f 60%,#285AEB 90%); */
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.version {
    font-size: 64px;
    color: rgb(255, 255, 255);
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    /* font-size: 1em; */
}



/* tama  */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #b681b0;
}

#game-container {
    position: relative;
    max-width: 800px;
    width: 90%;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#tamagotchi-container {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

#pet-label {
    font-size: 24px;
    /* font-weight: bold; */
    color: #b681b0;
    margin-bottom: 8px;
}

#tamagotchi {
    touch-action: manipulation;
    width: 300px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

#reset-btn,
#evolve-btn {
    display: block;
    margin: 10px auto 0;
    padding: 8px 12px;
    font-size: 32px;
    border: none;
    border-radius: 6px;
    background: #b681b0;
    color: #fff;
    cursor: pointer;
}

#evolve-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#stats-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.stat {
    flex: 1 1 22%;
}

.stat label {
    font-size: 120%;
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
}

#age-display {
    font-size: 18px;
    text-align: center;
}

.progress {
    width: 100%;
    background: #ddd;
    border-radius: 5px;
    overflow: hidden;
    height: 20px;
}

.bar {
    height: 100%;
    width: 0;
    background: #b681b0;
    transition: width 0.5s ease;
}

#inventory-container {
    text-align: center;
}

#inventory-label {
    font-size: 32px;
    font-weight: bold;
    color: #b681b0;

    margin-bottom: 8px;
}

#inventory {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.inventory-item {
    touch-action: none;

    display: inline-block;
    text-align: center;
    width: 80px;
}

.item,
.spawned-item {
    width: 126px;
    height: 126px;
    cursor: grab;
    border-radius: 10px;
    padding: 5px;
    /* Adjust this value as needed */
    /* border: 2px solid #b681b0; */
    background-color: #b681b074;
    /* Adjust thickness as needed */
}

.end-thumb {
    width: 126px;
    height: 126px;
    padding: 5px;
    /* Adjust this value as needed */
    /* border: 2px solid #b681b0; */
    /* background-color: #b681b074; */
    /* Adjust thickness as needed */
}

.spawned-item {
    cursor: pointer;
    position: absolute;
    z-index: 10;
}

.anim-text {
    color: #884981;
    font-family: sans-serif;
    font-weight: bold;
    font-size: 48px;
    pointer-events: none;
}

.end-game {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    /* adjust as needed */
    text-align: center;
}

.big-heart {
    font-size: 100px;
    color: red;
    margin-bottom: 20px;
}

.end-text {
    font-size: 24px;
    color: #333;
}

#random-popup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: black;
    padding: 12px 20px;
    border-radius: 10px;
    z-index: 9999;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 600px) {
    /* #tamagotchi {
        width: 225px;
    } */

    /* .item,
    .spawned-item {
        width: 96px;
        height: 96px;
    } */

    #stats-container {
        flex-direction: column;
    }

    .stat {
        flex: 1 1 100%;
    }

}