body {
      font-family: Arial, sans-serif;
      margin: 0;
      padding: 0;
      display: flex;
      min-height: 100vh;
      background-color: #f5f5f5;
    }

    .sidebar {
      width: 300px;
      padding: 20px;
      background-color: #ffffff;
      border-right: 1px solid #ddd;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    .content {
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }

    .back-button {
      display: inline-block;
      margin-bottom: 20px;
      color: #4a90d9;
      text-decoration: none;
      font-weight: bold;
    }

    .back-button:hover {
      text-decoration: underline;
    }

    h1 {
      margin-top: 0;
    }

    .slider-group {
      margin-bottom: 20px;
    }

    label {
      display: block;
      margin-bottom: 5px;
      font-weight: bold;
    }

    input[type="range"] {
      width: 100%;
    }

    #plot-container {
      position: relative;
      width: 400px;
      height: 400px;
      border: 1px solid #ccc;
      margin-bottom: 10px;
      background-color: #fafafa;
    }

    .diagram-label {
      position: absolute;
      font-weight: bold;
      background-color: rgba(255, 255, 255, 0.8);
      padding: 2px 4px;
      pointer-events: none;
    }

    .prior-label {
      bottom: -25px;
      left: 50%;
      transform: translateX(-50%);
    }

    .likelihood-label {
      top: 50%;
      left: -10px;
      transform: translate(-100%, -50%);
    }

    .alt-likelihood-label {
      top: 50%;
      right: -10px;
      transform: translate(100%, -50%);
    }

    /* Colors for the rectangles */
    .rect-AB {
      fill: #4a90d9; /* medium blue */
    }
    .rect-AnotB {
      fill: #edf1f5; /* grey blueishy */
    }
    .rect-notA_B {
      fill: #f79a44; /* orange */
    }
    .rect-notA_notB {
      fill: #d9d3cc; /* grey pale orangeishy */
    }

    .value-display {
      font-weight: bold;
    }
    .posterior-container {
      border: 1px solid #ccc;
      padding: 10px;
      border-radius: 5px;
      background-color: #f9f9f9;
      margin-top: 10px;
    }

    .posterior-display {
      font-size: 1.2em;
    }
    .footer {
      margin-top: auto;
      font-size: 0.9em;
      color: #888;
    }

    .image-container {
      margin-top: 20px;
    }

    .bayes-formula {
      width: 120%;
      max-width: 600px;
    }

    .copyright {
      position: fixed;
      bottom: 10px;
      right: 10px;
      font-size: 0.8em;
      color: #888;
    }
