body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    align-items: center;
}

        /*body {*/
        /*    {#display: flex;#}*/
        /*    {#justify-content: center;#}*/
        /*    align-items: center;*/
        /*    height: 100vh;*/
        /*    {#background-color: #f4f4f4;#}*/
        /*}*/

/*.container {*/
/*    width: 80%;*/
/*    margin: auto;*/
/*    padding: 20px;*/
/*}*/

.container {
    width: 90vw;
    margin: 30px auto;
}

.form-input, button {
    padding: 10px;
    margin: 10px auto;
    width: 90%;
    display: inline-block;
}

form{
    margin: 10px auto;
    width:90%
}

button, .main-button {
    background-color: #770000;
    color: white;
    border: none;
}

.main-button{
    width: 120px;
    color: white;
    border: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
button:hover {
    background-color: #cc0000;
}

h1, h3 {
    text-align: center;
}

.result-card {
    background-color: white;
    padding: 15px;
    margin: 10px 0;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}



table {
        border-collapse: collapse;
        margin: 20px auto;
        width: 90%;
}

td.matrix-cell {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: center;
}

input.matrix-input {
    width: 30px;
    height: 30px;
    text-align: center;
    border: 1px solid #ccc;
    font-size: 14px;
    padding: 2px;
}

.submit-container {
            text-align: center;
            margin-top: 10px;
}

.grid-controls-container{
    display: flex;
    margin-top:10px;
      grid-template-columns: 80% 20%;
      grid-template-rows: auto auto;
      gap: 10px;

}

.spinner {
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-left-color: #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.experiment-details{
    width:90vw;
    background: #ececec;
    color: #666666;
    /*height:30px;*/
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    padding: 0;
}

.experiment-status{
    display: inline-block;
}

.highlight {
            background-color: gold;
            color: black;
            font-weight: bolder;
            text-align: center;
}

.semi-highlight {
            background-color: #ececec;
            color: #333333;
            font-weight: bolder;
            text-align: center;
}


h3{
    font-size: 1.1em;
    background: #444444;
    border-radius: 10px 10px 0 0;
    padding:.2em;
    margin:.5em 0 .5em 0 ;
    color: #ffffff;
}
h4{
    margin:.1em;
    padding:.2em;
    font-size:.7em;
}

h4.results-heading{
    margin:.1em;
    padding:.2em;
    font-size:1em;
    color:#770000;
}


/*Toggle Buttons*/
.toggles-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.toggle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 180px;
    margin-bottom:1em;
}

.toggle-label {
  /*font-size: 16px;*/
     font-size:.7em;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 20px;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: lightblue;
  transition: .4s;
  border-radius: 24px;
}

.toggle-slider-gray {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
   background-color: #2196F3;
  transition: .4s;
  border-radius: 24px;
}

.toggle-slider:before, .toggle-slider-gray:before {
  position: absolute;
  content: "";
  height: 19px;
  width: 19px;
  left: 4px;
  bottom: 1px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: #2196F3;
}

input:focus + .toggle-slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .toggle-slider:before {
  transform: translateX(26px);
}

input:checked + .toggle-slider-gray {
  background-color: #999999;
}

input:focus + .toggle-slider-gray {
  box-shadow: 0 0 1px #ececec;
}


.toggle-status {
  font-size: .7em;
  color: #ffffff;
  width: 80px;
  text-align: right;
}


/*#c2553d*/

.brick-wall {
  background-color: #c2553d; !important; /* Base brick color */
  background-image:
    /* Horizontal mortar lines */
    linear-gradient(
      #d2b48c 0%, #d2b48c 5%,
      transparent 5%, transparent 95%,
      #d2b48c 95%, #d2b48c 100%
    ),
    /* Vertical mortar lines - alternating pattern */
    linear-gradient(
      90deg,
      #d2b48c 0%, #d2b48c 5%,
      transparent 5%, transparent 45%,
      #d2b48c 45%, #d2b48c 55%,
      transparent 55%, transparent 95%,
      #d2b48c 95%, #d2b48c 100%
    ),
    /* Offset vertical lines for next row */
    linear-gradient(
      90deg,
      transparent 0%, transparent 20%,
      #d2b48c 20%, #d2b48c 30%,
      transparent 30%, transparent 70%,
      #d2b48c 70%, #d2b48c 80%,
      transparent 80%, transparent 100%
    );
  background-size: 100px 50px, 100px 50px, 100px 50px;
  background-position: 0 0, 0 0, 0 25px;
}


.experiment-statistics td{
    border-bottom: 1px solid #666666;
    font-size:.7em;

}
/*Plots*/
.plot {
    max-width: 90%;
    height: auto;
    border: 2px solid #770000;
    border-radius: 10px;
    margin: 0 auto;
    display: block;
}

#progress-bar{
    width: 0%; height: 30px;
    background-color: #770000;
    color: white; text-align: center;
    margin: 10px;
    padding: 0;
}

#progress-bar-container{
    width: 100%;
    background-color: #ddd;
    display: none;
    margin:0;
    padding:0;
}

.experiment-selection-container{
    width:50%;
    margin: 20px auto;
    display: flex;
    justify-content: center;
}

.experiment-selection-container a{
    display: inline-block;
    padding: 10px;
    font-size:1.5em;
    border-radius: .5em;
    margin:10px;
    color: #ffffff;
    text-align: center;
    text-decoration: none;
}

.red{
    background-color: #770000;
}

.blue{
    background-color: #3498db;
}

.experiment-selection-link span{
    display: block;
    font-size: .5em;
}