/* --- Material 3 Light Theme Palette --- */
:root {
  --md-sys-color-primary: rgb(255 180 164);
  --md-sys-color-surface-tint: rgb(255 180 164);
  --md-sys-color-on-primary: rgb(86 31 19);
  --md-sys-color-primary-container: rgb(115 52 38);
  --md-sys-color-on-primary-container: rgb(255 218 211);
  --md-sys-color-secondary: rgb(231 189 180);
  --md-sys-color-on-secondary: rgb(68 42 36);
  --md-sys-color-secondary-container: rgb(93 63 57);
  --md-sys-color-on-secondary-container: rgb(255 218 211);
  --md-sys-color-tertiary: rgb(219 197 140);
  --md-sys-color-on-tertiary: rgb(60 47 4);
  --md-sys-color-tertiary-container: rgb(84 69 25);
  --md-sys-color-on-tertiary-container: rgb(248 224 166);
  --md-sys-color-error: rgb(255 180 171);
  --md-sys-color-on-error: rgb(105 0 5);
  --md-sys-color-error-container: rgb(147 0 10);
  --md-sys-color-on-error-container: rgb(255 218 214);
  --md-sys-color-background: rgb(26 17 15);
  --md-sys-color-on-background: rgb(241 223 219);
  --md-sys-color-surface: rgb(26 17 15);
  --md-sys-color-on-surface: rgb(241 223 219);
  --md-sys-color-surface-variant: rgb(83 67 64);
  --md-sys-color-on-surface-variant: rgb(216 194 189);
  --md-sys-color-outline: rgb(160 140 136);
  --md-sys-color-outline-variant: rgb(83 67 64);
  --md-sys-color-shadow: rgb(0 0 0);
  --md-sys-color-scrim: rgb(0 0 0);
  --md-sys-color-inverse-surface: rgb(241 223 219);
  --md-sys-color-inverse-on-surface: rgb(57 46 44);
  --md-sys-color-inverse-primary: rgb(144 75 60);
  --md-sys-color-primary-fixed: rgb(255 218 211);
  --md-sys-color-on-primary-fixed: rgb(58 10 3);
  --md-sys-color-primary-fixed-dim: rgb(255 180 164);
  --md-sys-color-on-primary-fixed-variant: rgb(115 52 38);
  --md-sys-color-secondary-fixed: rgb(255 218 211);
  --md-sys-color-on-secondary-fixed: rgb(44 21 16);
  --md-sys-color-secondary-fixed-dim: rgb(231 189 180);
  --md-sys-color-on-secondary-fixed-variant: rgb(93 63 57);
  --md-sys-color-tertiary-fixed: rgb(248 224 166);
  --md-sys-color-on-tertiary-fixed: rgb(36 26 0);
  --md-sys-color-tertiary-fixed-dim: rgb(219 197 140);
  --md-sys-color-on-tertiary-fixed-variant: rgb(84 69 25);
  --md-sys-color-surface-dim: rgb(26 17 15);
  --md-sys-color-surface-bright: rgb(66 55 52);
  --md-sys-color-surface-container-lowest: rgb(20 12 10);
  --md-sys-color-surface-container-low: rgb(35 25 23);
  --md-sys-color-surface-container: rgb(39 29 27);
  --md-sys-color-surface-container-high: rgb(50 40 37);
  --md-sys-color-surface-container-highest: rgb(61 50 48);
}



/* --- Your Original Styles (Updated) --- */
* {
    margin: 0;
    padding: 0;
}

body {
    margin: auto;
    padding: auto;
    font-family: Helvetica, Arial, sans-serif;
    /* Changed to background color from palette */
    background-color: var(--md-sys-color-background);
    /* Set text color to be readable on the new background */
    color: var(--md-sys-color-on-background);
    font-size: larger;
}

p {
    font-family: Arial, sans-serif;
    /* Your original variable was good, but this one is designed for text on surfaces */
    color: var(--md-sys-color-on-surface);
}

h1 {
    /* Using the primary color for the main heading */
    color: var(--md-sys-color-primary);
    text-align: center;
    font-family: Gilroy, sans-serif;
    margin: 5px;
    padding: 5px;
}
h2 {
    /* Using the secondary color for the sub-heading */
    color: var(--md-sys-color-secondary);
    text-align: center;
    font-family: Gilroy, sans-serif;
    margin: 5px;
    padding: 5px;
}
.div1{
    font-family: comic sans ms, sans-serif;
    /* Using a surface container for a slightly different background shade */
    background-color: var(--md-sys-color-surface-container);
    /* Text color for that container */
    color: var(--md-sys-color-on-surface);
    margin: 0;
    padding: 0;
}

.textcontainer{
    margin: 12px;
    padding: 12px;
}

 a:link {
      color: var(--md-sys-color-tertiary); /* Sets the color for unvisited links */
    }

  a:visited {
      color: var(--md-sys-color-error); /* Sets the color for visited links */
    }

    hr {
      border: 1px solid var(--md-sys-color-outline); /* Using outline color for horizontal rules */
      margin: 20px 0;
    }

.container {
  /* Using tertiary container for background */
  background-color: var(--md-sys-color-tertiary-container);
  /* Using 'on-tertiary-container' for the text color for best contrast */
  color: var(--md-sys-color-on-tertiary-container);
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 20px;
}