.start-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.2);
}

.start-screen img {
    max-width: 80%;
    margin-bottom: 20px;
}

.start-screen h1 {
    font-size: 2em;
    margin: 20px 0;
}

.start-screen p {
    text-align: center;
    margin-bottom: 20px;
}

.start-screen button {
    padding: 10px 20px;
    font-size: 1.2em;
    cursor: pointer;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Courier New', monospace;
    font-size: 10px; /* Adjust based on your game's grid size */
    background-color: #222;
    color: #eee;
    text-align: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.game-container {
    position: relative;
    border: 2px solid #eee;
    border-radius: 50%;             /* Makes it circular */
    box-shadow: 0px 0px 15px #555; /* Adds some depth/shadow */
    width: 480px;                   /* Adjust as needed */
    height: 480px;                  /* Adjust as needed */
    overflow: hidden;
}

.bacteria, .resource {
    display: inline-block;
    width: 10px;  /* Adjust size as needed */
    height: 10px;
    margin: 1px;  /* Spacing between elements */
}

/* Active player bacterium */
.bacteria-active-player {
    background-color: #00CC00;  /* Bright green */
    border-radius: 50%;  /* Circular shape */
}

/* Created player bacterium */
.bacteria-created-player {
    background-color: #AAFFAA;  /* Lighter green */
    border-radius: 50%;  /* Circular shape */
}

/* Active rival bacterium */
.bacteria-active-rival {
    background-color: #AA0000;  /* Bright red */
    border-radius: 50%;  /* Circular shape */
}

/* Created rival bacterium */
.bacteria-created-rival {
    background-color: #FFAAAA;  /* Lighter red */
    border-radius: 50%;  /* Circular shape */
}

/* Glow effect for active player bacterium */
.bacteria-active-player.can-produce {
    box-shadow: 0 0 10px 2px #00CC00;  /* Green glow */
}

/* Glow effect for active rival bacterium */
.bacteria-active-rival.can-produce {
    box-shadow: 0 0 10px 2px #CC0000;  /* Red glow */
}

.resource {
    background-color: #FFFF00;  /* Yellow */
    border-radius: 50%;         /* Makes it circular */
}

.empty {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 1px;
    background-color: transparent;
}

.slide {
    transition: transform 0.3s ease-out;
}

@keyframes scaleUp {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.2);
    }
}

.scale-up {
    animation: scaleUp 0.2s alternate 2;
}

.particle {
    width: 5px;
    height: 5px;
    background-color: yellow;
    border-radius: 50%;
    position: absolute;
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

@keyframes split {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

.split {
    animation: split 0.5s forwards;
}

#gameArea {
    margin: 0;
    font-size: 1em;            /* Adjust the width of characters */
    line-height: .5em;          /* Adjust the height between lines */
    letter-spacing: 0px;       /* Adjust horizontal spacing if necessary */
}

#scoreDisplay, #resourcesDisplay, #backHome, #bestScoreDisplay {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;  
    color: #fff;
    font-weight: bold;
}

#scoreDisplay {
    top: 30px;  
}

#resourcesDisplay {
    top: 50px;  
}

#backHome {
    top: 70px;  
}

#controls {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
}

#controls h3 {
    margin-top: 0;
}

#dominanceBarContainer {
    position: fixed;
    bottom: 20px;
    width: 80%;
}

#dominanceLabel {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    color: #ccc; 
    margin-bottom: 5px;
}

#dominanceBar {
    width: 100%;
    height: 20px;
    background-color: #ddd;  /* Neutral color */
    display: flex;
}

#playerDominance {
    height: 100%;
    background-color: #0c0;  /* Player color */
    flex: 0 0 50%;           /* Initial width. Will be adjusted using JavaScript */
}

#rivalDominance {
    height: 100%;
    background-color: #c00;  /* Rival color */
    flex: 0 0 50%;           /* Initial width. Will be adjusted using JavaScript */
}
