body {
    text-align: center;
    background-color: #ffffff;
    font-family: sans-serif;
    margin: 0;
}

/* Nav Bar */

nav {
    background-color: #333;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
}


nav a {
    flex-grow: 1; 
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}


nav a:hover {
    background-color: #ddd;
    color: black;
}

nav .dropdown {
    flex-grow: 1; 
}

nav .dropdown:hover .dropdown-content {
    display: block;
}

nav .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
}

nav .dropdown-content a {
    color: black;
    padding: 14px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}


nav .dropdown .dropbtn {
    font-size: inherit;
    flex-grow: 1;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    background-color: #333;
}


/* Body */


h1 {
    font-size: 2.5em;
    color: #333;
}

h1.smaller-heading {
    font-size: 1.75em;
    color: #333;
}

h2 {
    font-size: 1.5em;
    color: #666;
    margin-top: 0;
}

h2.results_plots {
    margin-top: 30px;
}

p {
    font-size: 1.1em;
    color: #333;
    margin-top: 20px;
}

/* Forms of run_analysis */

form {
    width: 80%;
    margin: 0 auto;
    padding: 20px;
    background-color: #d8d8d8;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.form-column {
    float: left;
    width: 50%;
    padding: 0 10px;
    box-sizing: border-box;
    margin-bottom: 20px;
}

/* Clearfix hack to make the form container contain the floated divs */
form:after {
    content: "";
    display: table;
    clear: both;
}

.form-button {
    clear: both;
    text-align: center;
    margin-top: 20px;
    padding-bottom: 20px;
}

.form-agents {
    clear: both;
    text-align: center;
    padding-top: 50px;
}

label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

/* size fields to generate plots */

.size-fields {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.size-fields div {
    width: 30%;
}

.size-fields label {
    font-size: 0.8em;
}

/* Agents displayed when selcting n_agents */

.agent-select {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

#form-agents table {
    width: 100%;
}

#form-agents table th,
#form-agents table td {
    width: 33%;
}


select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

input[type="submit"] {
    width: 25%;
    padding: 10px;
    margin-top: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #004792;
}

/* Plotting analysis results */

.plot-img {
    max-width: 30%;
  }

.intro-fig {
    width: 800px;
    height: auto;
  }


  #loading-message {
    font-size: 1.2em;
    font-weight: normal;
    color: #333;
    text-align: center;
    margin-top: 20px;
}

.switch_comparison {
    background-color: transparent;
    color: #333;
    padding: 5px 10px;
    text-decoration: none;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
    margin-bottom: 20px; 
    display: inline-block;
}

.switch_comparison:hover {
    color: #007bff;
}

#experiment-form {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  #experiment-form label,
  #experiment-form input,
  #experiment-form select {
    margin: 5px;
  }
  
  .experiment-field {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
  }
  
  .experiment-field label {
    margin-right: 10px;
  }

  .styled-link {
    color: #0066cc; 
    text-decoration: none;
  }
  .styled-link:hover {
    text-decoration: underline;
  }