*{ box-sizing: border-box; }
body{margin: 0;}
body, button, input, option, select {
  font-family: "DM Mono", monospace;
  font-optical-sizing: auto;
  font-weight: 400; /* 100-700*/
  font-style: normal;
}

#container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* control bar */
#control_bar_container {
    width: 100%;
    z-index: 10;
    padding: 8px;
    background-color: darkcyan;
    margin-bottom: 15px;
    color: rgb(255, 255, 255);
    font-size: 110%;
}
#control_bar { margin: 0; padding: 10px; text-align: center; 
    border: 0;
}
#control_bar span{ padding-right: 15px; }
#control_bar button {
  background-color: #515f63; 
  border: none;
  border-radius: 5px;
  color: white;
  padding: 15px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}
#control_bar button:disabled {
    background-color: rgb(191, 191, 191) !important;
    color: #e6e6e6 !important;               
    opacity: 0.8;
    cursor: not-allowed;
    border: none;
    box-shadow: none;
}
#control_bar button:hover {
    background-color: #404b4e;
}

/* Special styling for icon-only buttons */
#control_bar button.icon-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    height: 47px; /* Match the height of other buttons */
    width: 47px;  /* Square buttons */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: background-color 0.2s;
    vertical-align: middle;
}

#control_bar button.icon-btn img {
    width: 34px;
    height: 34px;
    filter: invert(1); /* Makes images white to match button text */
}

#control_bar button.icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#control_bar button.icon-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: none !important;
}

#control_bar button.icon-btn:disabled:hover {
    background: none;
}








/* model  */
#model {
    flex: 1;
    display: flex;
    flex-direction: row;
    height: 100%;
    min-height: 0;
}


#canvases {
    flex: 1;
    background: white;
    margin: 0;
    position: relative;
    min-width: 0;
}

canvas {
    border: 0px solid black;
    width: 100%;
    padding: 10px;
}

/* Shared */
#control_bar input, #control_bar button, #control_bar input, 
#modelVariables button, #modelVariables input{
    font-size: 100%; 
}

/* model variables */
#modelVariables.column {
    width: 350px;
    padding: 20px;

    padding: 10px;
}
#modelVariables { border: none; }
#modelVariables label{margin-top: 5px;}
#modelVariables input{margin-bottom: 5px;}
#modelVariables label{ display: inline-block;  }
#modelVariables select, 
#modelVariables input[type='number']{
    font-size: 100%; padding: 6px; margin: 3px 0; width: 100%;
} 
#modelVariables input[type='range']{    width: 86%;   }
#modelVariables #new_model_button {
    margin-top: 12px; padding: 10px 0; width: 100%;
}

@media (max-width: 700px) {
    #model {
        flex-direction: column;
    }
    #modelVariables.column {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
}






/* Subtle highlight for the New Model button */
/* Subtle slow pulse for attention */
.attention {
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 15, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 2px 2px rgba(255, 15, 0, 0.7);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 15, 0, 0.4);
    }
}