.first_paragraph {
  max-width: 1000px;
  margin-left: 0.3em;
  margin-right: 1em;
}

/* ########## Buttons ##########*/
.graph-button-container input {
  position: absolute;
  opacity: 0;
}

.button {
  cursor: pointer;
}

.graph-button-container {
  display: flex;
  margin: auto;
  max-width: min(85%, 1000px);
}

.graph-button-container > div {
  flex: auto;
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  justify-content: center;
  margin: 0 1em;
}

.button-grid .button {
  display: block;
  background-color: var(--color-primary-dark);
  color: white;
  cursor: pointer;
  border-radius: 12px;
  text-align: center;
  align-content: center;
  transition: transform 0.1s ease-in-out;
  outline: none;
  text-decoration: none;
  border-style: solid;
  border-width: 1.5px;
  border-radius: 8px;
  padding: 0.51em;
  margin: 0.3em;
}

.button-grid .button:hover,
input:focus + .button {
  transform: scale(1.04);
  text-decoration: underline;
}

input:checked + .button {
  background-color: var(--color-primary-light);
  color: black;
  text-decoration: underline;
}
input:not(:checked) + .button {
  text-decoration: none;
}
div:has(#server:checked) .local_test {
  visibility: hidden;
}

/* ######################################*/
/* ############# SVG Graphs #############*/
#svg-container svg {
  width: 100%;
  height: 100%;
}
/* hide all plots by default*/
#svg-container g[id^="gnuplot_plot"] {
  visibility: hidden;
}
/* Server */
section:has(#server:checked) #svg-container svg:nth-child(1) {
  display: none;
}
section:has(#server:checked):has(#remote_vim:checked)
  #svg-container
  #gnuplot_plot_3 {
  visibility: visible;
}
section:has(#server:checked):has(#remote_codium_light:checked)
  #svg-container
  #gnuplot_plot_1 {
  visibility: visible;
}
section:has(#server:checked):has(#remote_codium_full:checked)
  #svg-container
  #gnuplot_plot_2 {
  visibility: visible;
}

/* Laptop */
section:has(#laptop:checked) #svg-container svg:nth-child(2) {
  display: none;
}
section:has(#laptop:checked):has(#local_vim:checked)
  #svg-container
  #gnuplot_plot_3 {
  visibility: visible;
}
section:has(#laptop:checked):has(#local_codium_light:checked)
  #svg-container
  #gnuplot_plot_1 {
  visibility: visible;
}
section:has(#laptop:checked):has(#local_codium_full:checked)
  #svg-container
  #gnuplot_plot_2 {
  visibility: visible;
}
section:has(#laptop:checked):has(#remote_vim:checked)
  #svg-container
  #gnuplot_plot_6 {
  visibility: visible;
}
section:has(#laptop:checked):has(#remote_codium_light:checked)
  #svg-container
  #gnuplot_plot_4 {
  visibility: visible;
}
section:has(#laptop:checked):has(#remote_codium_full:checked)
  #svg-container
  #gnuplot_plot_5 {
  visibility: visible;
}

/* ######################################*/
/* ######## Text + Graph Sections #######*/
.graph-with-text {
  display: flex;
  margin-top: 2em;
}
.graph-with-text hgroup {
  flex: 1;
  margin: 1em;
}
.graph-with-text-image-container {
  flex: 1;
  margin: 1em;
}
.graph-with-text-image-container img {
  flex: 1;
  margin-top: 1em;
  margin-bottom: 1em;
}

.graph-with-text:nth-child(even) {
  flex-direction: row-reverse;
}

@media screen and (max-width: 800px) {
  .graph-with-text {
    flex-direction: column !important;
  }
}
