body {
    margin:0;
    padding:0;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 14px;
}

/*
* HOME
*/
#home
{   
    width: 100%;    
}


/*
* APP
*/

#app
{
    position: absolute;
    background-color: gold;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#menu
{
    background-color: #eee;
    color: #888;
    position: absolute;
    left: 0;
    top: 0;
    height: 32px;
    width: 100%;
    user-select: none;
}


#main
{
    position: absolute;
    background-color:whitesmoke ;
    left: 0;
}

#sub1
{
    background-color:whitesmoke;
    
}

#webgl_output
{
    background-color: whitesmoke;
    
    
}

#tabgroup
{
    background-color: #eee;
    overflow: auto;   
}

.res_panel
{
    resize: vertical;
    overflow: auto;
    border-bottom: 1px solid #ccc;
    background-color:whitesmoke;

}

.res_panel dd
{
    width: 100%;
    margin: 0;
    padding: 0;
    padding-bottom: 5px;
}

.res_panel dd:nth-child(odd)
{
    background-color: #dde3e6;
}

.res_panel label{
    cursor: pointer;
}

.descriptionArea{
    resize: vertical;
    width:98%;
    overflow: auto;
}

.label_selected{
    text-transform: uppercase;
    font-weight: bold;
}

.parameterRow
{
    display: flex;
    align-items: center;
    margin-bottom: 4px;

}

.parameterRow label
{
    white-space: nowrap;
    flex: 0;
    padding-right: 1em;
}

.labelSubProperty{
    margin-left: 10px;
}

.parameterRow .input
{
    flex: 1;
}

.parameterRow .button_more{
    flex: 0 0 10px;
    
}

#distributionPanel{
    width: 95%;
    background-color:white;
    padding: 2px;
    border: 1px solid #888;
    border-radius: 5px;
    overflow:auto;
}

#distributionPanel button{
    float: right;
}

#sub2
{
    background-color: #ddd;
}

#observers_output
{
    background-color:#ddd;
    overflow: auto;
}

#plots_output
{
    background-color: whitesmoke;
}

/*
* Status bar
*/
#status_bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #eee;
    color: #888;
    position: absolute;
    left: 0;
    bottom: 0;
    height: 32px;
    width: 100%;
    padding: 10px;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
    
}

#status-text {
    font-size: 16px;
}

.status-time {
    display: flex;
}

.time-box {
    background-color: #7f8c8d;
    border-radius: 15px;
    padding: 5px 10px;
    margin: 0 5px;
    color: #fff;
    font-size: 14px;
}

#last-step-time,
#average-step-time {
    font-weight: bold;
}


/* Style the splitter */
.v_splitter {
    height:100%;
    position:absolute;
    cursor:col-resize;
    top:0;
}

.h_splitter {
    width:100%;
    position:absolute;
    cursor:row-resize;
    left:0;
}

/* Style the tab */
.tabs {
    user-select: none;
    background-color: #ddd;
    border-top: 1px solid #ccc;
  }
  
/* Style the buttons inside the tab */
.tab {
    cursor: pointer;
    display: inline-block;
    padding: 10px;
    text-transform: uppercase;
    color: #aaa;
    background-color:  #ddd;
    border-right: 1px solid #ccc;
    vertical-align: middle;
    font-size: 12px;
}

/* Create an active/current tablink class */
.tab_selected {
    color: #888;
    background-color: #eee;
}

/* Style the tab content */
.tabcontent {
    display: none;
    padding: 5px;

}

/*
* Toolbar
*/
#nav_toolbar {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 32px;
    background: #eee;
    color: #888;
    text-align: center;
    user-select: none;
    z-index: 10000;
    /*display: none*/
}

.toolbar_button {
    height: 32px;
    width: 32px;
    background-color: #ddd;
    color: #555;
    cursor: pointer;
    outline: none;
    background-repeat: no-repeat;
    background-size: 25px;
}

#one_step_btn{
    background-image: url("/images/footprint.svg");
}

#n_step_btn{
    background-image: url("/images/footprint_N.svg");
}

#run_btn{
    background-image: url("/images/go.svg");
}

#stop_btn{
    background-image: url("/images/stop-sign.svg");
}

#reset_btn{
    background-image: url("/images/clean.svg");
}

#camera_toolbar {
    position: absolute;
    right: 50px;
    top: 10px;
    height: 32px;
    background: #eee;
    color: #888;
    text-align: center;
    user-select: none;
    z-index: 10000;
    
}


/*
* Menu bar
*/
.menu{
    float: left;
    cursor: pointer;
    padding-right: 8px;
    color: #888;
}

.menuTitle{
    display: inline-block;
    color: #888;
    margin: 0;
    padding: 8px;
    line-height: 16px;
    cursor: pointer;
}

.menuOptions{
    position: fixed;
    display: none;
    z-index: 20000;
    padding: 5px 0;
    background: #eee;
    width: 250px;
    max-height: calc(100% - 80px);
    overflow: auto;
    cursor: pointer;
    color: #888;
}

.menuOption{
    color: #666;
    background-color: transparent;
    padding: 5px 10px;
    margin: 0 !important;
    cursor: pointer;
}

.menuOption[disabled] {
    color:#ccc;
}

.menu[disabled] > .menuTitle {
    color:#ccc;
}

.menuOption:hover{
    background-color: cadetblue;
}

.horizontalRule{
    border-color: #ddd;
    color: #888;
}

.menu:hover .menuOptions{
    display: block;
}

.menu[disabled] > .menuOptions{
    display: none;
}

.agentInfo{
    margin-left: 0px;
}


/*
* Model library dialog
*/
.dialog {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(93, 115, 121, 0.8); /* 80% transparency */
    display: none;
    justify-content: center;
    align-items: center;
}

.dialog .content {
    width: 80%;
    background-color: transparent; 
    padding: 10px;
    overflow-y: auto;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
    display: flex;
    flex-direction: column;
}

.row {
    display: flex;
    align-items: center;
    width: 98%;
    cursor: pointer;
    padding: 10px;
    border-radius: 5px; /* Rounded corners */
    margin-bottom: 10px; /* Separation between rows */
    background-color: #f5f5f5; /* Light gray background */
}

.row img {
    width: 100px; /* Adjust image size as needed */
    height: 100px;
    margin-right: 10px;
}

/* Additional styles for the close button */
.dialog .content button {
    width: auto; /* Resets the width */
    margin: 10px auto 0; /* Centers the button and adds top margin */
    padding: 5px 15px; /* Adds some padding for better appearance */
}

/* Additional styles for the close cross */
.dialog .close-cross {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #f5f5f5; 
    border: none;
    font-size: 24px; 
    cursor: pointer;
    border-radius: 50%; 
    line-height: 1; 
    width: 30px;
    height: 30px;
    text-align: center;
    transition: background-color 0.3s;
}

.dialog .close-cross:hover {
    background-color: #ddd;
}