.player_data,
.party_data,
.admin_data {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px); /* Apply blur effect */
    color: white;
    box-sizing: border-box;
    border-radius: 5px;
    margin-bottom: 20px;
}

.party {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
    gap: 10px;
}

.creature-button {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 32px; /* Rounded button */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.creature-button:hover {
    background-color: rgba(0, 0, 0, 1);
}

.creature-image {
    width: 48px;
    height: 48px;
    border-radius: 50%; /* Make the image a circle */
    margin-right: 20px; /* Space between image and name */
}

.creature-name {
    color: white;
    font-size: 18px;
    flex-grow: 1; /* Make sure the name takes up the remaining space */
}

.party-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#toggle-button {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%; /* Make the button round */
    cursor: pointer;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 9px;
    padding-bottom: 9px;
    margin-left: auto; /* Push the button to the far right */
    vertical-align: middle; /* Align with the text */
}

#toggle-button:hover {
    background-color: rgba(0, 0, 0, 1);
}

.nunito {
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    display: flex;
    align-items: center; /* Vertically align items in the flex container */
    justify-content: space-between; /* Ensure the button is at the far right */
}

/* Player data section */
.player {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 15px;
}

.bottom-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#player-toggle-button {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 9px;
    padding-bottom: 9px;
    margin-left: auto;
    vertical-align: middle;
}

#player-toggle-button:hover {
    background-color: rgba(0, 0, 0, 1);
}

.progress-bar {
    width: 100%;
    background-color: lightgray;
    border-radius: 5px;
    overflow: hidden;
    margin-top: 5px;
    margin-bottom: 15px;
}

.progress {
    height: 10px;
    border-radius: 5px;
}

.progress-bar.energy .progress {
    background-color: blue;
}

.progress-bar.experience .progress {
    background-color: gold;
}

.info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.partysprite {
    flex-shrink: 0;
    margin-right: 50px;
    transform: scale(2);
}


/* Media query for tablets and smaller devices */
@media (max-width: 1024px) {
    .party {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 10px;
    }

    .player_data,
    .party_data {
        margin-right: 0px;
    }

    .creature-button {
        flex-direction: row; /* Ensure the image and text are in a row */
        width: 95%;
        height: 32px;
        margin: 0;
        padding: 5px;
        align-items: center;
    }

    .creature-image {
        width: 32px;
        height: 32px;
        margin-right: 5px; /* Adjust space between image and text */
        margin-bottom: 0; /* Remove bottom margin */
    }

    .creature-name {
        font-size: 14px;
        margin-top: 0px;
    }
}