body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;

    -webkit-user-select: none; /* Safari */
    -ms-user-select: none;     /* IE 10 and IE 11 */
    user-select: none;         /* Standard syntax */
}

#loading_screen
{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 1s ease;
    color: white;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

.character-select {
    display: flex;
    gap: 10px;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.character-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.character-button.selected {
    background-color: #4CAF50;
    color: white;
}

.character-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.game-area {
    display: flex;
}

canvas {

    display: inline-block;
    background: white;

    border-style: groove ;
    border-width: 4px;
}

#canvas_wrapper
{
    display: inline-block;
}

/* Tool Menu */

#tool_menu
{
    margin-top: 45px;
    transform: translateX(-35px);
    transition-duration: 250ms;
    position: absolute;
    left: 15px;
    padding: 10px;
    padding-left: 35px;

    background-color: #ffffff; /* White background */
    border-radius: 15px; /* Adjust for more or less roundness */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); /* Creates the "bulging" effect */
}

#tool_menu.collapsed {
  transform: translateX(-165px);
}

.tab-container
{
    width: 125px;
    clear: both;
}
.tool_tab
{
    padding: 4px;
    margin:  4px;
    cursor: pointer;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
}
.tool_tab.active
{
    background-color: #007bff;
    color: white;
}
.button-list
{
    display: none;
}

.button-item
{
    padding: 4px;
    margin:  4px;

    cursor: pointer;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
}

.button-item.active
{
    background-color: #28a745;
    color: white;
}

/* Help Menu */

#helpButton {
    position:         fixed;
    top:              10px;
    right:            10px;
    padding:          5px 5px;
    background-color: #00008B;
    color:            white;
    border:           none;
    border-radius:    4px;
    cursor:           pointer;
    font-size:        16px;
}

#closeHelpButton
{
    position: fixed;
    top:       10px;
    right:     10px;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #888;
}

#helpOverlay
{
    display: none;
    
    background-color: white;
    width: 70%;
    max-width: 600px;
    max-height: 80%;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* Game Menu */

#menu_offset
{
    display: none;
    
    
    z-index: 10;
    border: 1px solid #ccc;
    font-family: Arial, sans-serif;

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 33.333%;
    height: 75%;
    overflow: auto;
    
    background-color: rgba(255, 255, 255, 0.85);
    
    padding: 10px;
    border-radius: 5px;
}

#menu_offset button
{
    margin: 5px;
}

.menu-header
{
    display: flex;
    background-color: #f0f0f0;
    border-bottom: 1px solid #ccc;
}

.tab
{
    padding: 10px 15px;
    cursor: pointer;
    background-color: #e0e0e0;
    border-right: 1px solid #ccc;
}

.tab.active
{
    background-color: white;
    font-weight: bold;
}

.close-btn
{
    margin-left: auto;
    padding: 10px;
    cursor: pointer;
    background-color: #ff4444;
    color: white;
}

.menu-body
{
    padding: 15px;
    white-space: pre;

}

ul.complaints-list
{
   color: red;
   list-style-type: "\2003";
}

/* Game Menu for NeedsSet */

.needs-container {
    width: 300px;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
}

.need-bar-container {
    position: relative;
    width: 100%;
    height: 30px;
    margin-bottom: 10px;
    background-color: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    color: white;
}

.need-bar-label {
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    font-weight: bold;
    text-shadow: 1px 1px 1px black;
}

.need-bar {
    position: absolute;
    height: 100%;
    transition: width 0.3s, background-color 0.3s;
}


/* Timer Buttons */

.pause_button
{
    border: 2px solid #ddd;
    border-style: outset;
    margin: 4px;
}

.pause_button.active
{
    border-style: inset;
}

.time_button
{
    border: 2px solid #ddd;
    border-style: outset;
    margin: 4px;
}

.time_button.active
{
    border-style: inset;
}

div.animal_icon
{
    display: inline-block;
    height:  32px;
    width:   32px;
}