/* Custom text selection color */
::selection {
    background-color: var(--primary--orange---light-active);
    color: var(--black);
}

::-moz-selection {
    background-color: var(--primary--orange---light-active);
    color: var(--black);
}

:root {
    /* Color styles */
    --primary: #F26430;
    --secondary: #30B0F2;
    --tertiary: #7650F2;
    --black: #1A1716;
    --black75: rgba(26, 23, 22, 0.75); /* Assuming 75% opacity */
    --black50: rgba(26, 23, 22, 0.5);  /* Assuming 50% opacity */
    --black25: rgba(26, 23, 22, 0.25); /* Assuming 25% opacity */
    --black10: rgba(26, 23, 22, 0.1);  /* Assuming 10% opacity */
    --black5: rgba(26, 23, 22, 0.05);   /* Assuming 5% opacity */
    --error: #F23041;
  
    /* Secondary - Blue */
    --secondary--blue---light: #EAF7FE;
    --secondary--blue---light-hover: #E0F3FD;
    --secondary--blue---light-active: #BFE7FB;
    --secondary--blue---normal: #30B0F2;
    --secondary--blue---normal-hover: #2B9EDA;
    --secondary--blue---normal-active: #268DC2;
    --secondary--blue---dark: #2484B6;
    --secondary--blue---dark-hover: #1D6A91;
    --secondary--blue---dark-active: #164F6D;
    --secondary--blue---darker: #113E55;
  
    /* Primary - Orange */
    --primary--orange---light: #FEF0EA;
    --primary--orange---light-hover: #FDE8E0;
    --primary--orange---light-active: #FBCFBF;
    --primary--orange---normal: #F26430;
    --primary--orange---normal-hover: #DA5A2B;
    --primary--orange---normal-active: #C25026;
    --primary--orange---dark: #B64B24;
    --primary--orange---dark-hover: #913C1D;
    --primary--orange---dark-active: #6D2D16;
    --primary--orange---darker: #552311;
  
    /* Text-size styles */
    /* base size: paragraph (21px) */
    --paragraph: 1rem;       /* 1rem is usually 16px, adjust if your base is different */
    --h1: 5.62rem;
    --h2: 4.19rem;
    --h3: 3.14rem;
    --h4: 2.38rem;
    --h5: 1.76rem;
    --h6: 1.33rem;
    --paragraph-larger: 1.52rem;

    /* Font styles */
    --font-family: "Playfair", serif;
    --second-family: "Radio Canada", sans-serif;
  }


/* Uncomment to override base font size, this is not recommended practice */
/*
html {
    font-size: 16px;
}
*/


/* playfair-300 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Playfair';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/playfair-v2-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* playfair-300italic - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Playfair';
    font-style: italic;
    font-weight: 300;
    src: url('fonts/playfair-v2-latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* playfair-regular - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Playfair';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/playfair-v2-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* playfair-italic - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Playfair';
    font-style: italic;
    font-weight: 400;
    src: url('fonts/playfair-v2-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* playfair-500 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Playfair';
    font-style: normal;
    font-weight: 500;
    src: url('fonts/playfair-v2-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* playfair-500italic - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Playfair';
    font-style: italic;
    font-weight: 500;
    src: url('fonts/playfair-v2-latin-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* playfair-600 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Playfair';
    font-style: normal;
    font-weight: 600;
    src: url('fonts/playfair-v2-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* playfair-600italic - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Playfair';
    font-style: italic;
    font-weight: 600;
    src: url('fonts/playfair-v2-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* playfair-700 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Playfair';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/playfair-v2-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* playfair-700italic - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Playfair';
    font-style: italic;
    font-weight: 700;
    src: url('fonts/playfair-v2-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* playfair-800 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Playfair';
    font-style: normal;
    font-weight: 800;
    src: url('fonts/playfair-v2-latin-800.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* playfair-800italic - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Playfair';
    font-style: italic;
    font-weight: 800;
    src: url('fonts/playfair-v2-latin-800italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* playfair-900 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Playfair';
    font-style: normal;
    font-weight: 900;
    src: url('fonts/playfair-v2-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* playfair-900italic - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Playfair';
    font-style: italic;
    font-weight: 900;
    src: url('fonts/playfair-v2-latin-900italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  


/* radio-canada-300 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Radio Canada';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/radio-canada-v21-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* radio-canada-300italic - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Radio Canada';
    font-style: italic;
    font-weight: 300;
    src: url('fonts/radio-canada-v21-latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* radio-canada-regular - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Radio Canada';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/radio-canada-v21-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* radio-canada-italic - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Radio Canada';
    font-style: italic;
    font-weight: 400;
    src: url('fonts/radio-canada-v21-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* radio-canada-500 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Radio Canada';
    font-style: normal;
    font-weight: 500;
    src: url('fonts/radio-canada-v21-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* radio-canada-500italic - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Radio Canada';
    font-style: italic;
    font-weight: 500;
    src: url('fonts/radio-canada-v21-latin-500italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* radio-canada-600 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Radio Canada';
    font-style: normal;
    font-weight: 600;
    src: url('fonts/radio-canada-v21-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* radio-canada-600italic - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Radio Canada';
    font-style: italic;
    font-weight: 600;
    src: url('fonts/radio-canada-v21-latin-600italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* radio-canada-700 - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Radio Canada';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/radio-canada-v21-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }
  /* radio-canada-700italic - latin */
  @font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Radio Canada';
    font-style: italic;
    font-weight: 700;
    src: url('fonts/radio-canada-v21-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
  }


h1 {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: var(--h1);
    line-height: 114%;
    color: var(--black);
}

h2 {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: var(--h2);
    line-height: 110%;
    color: var(--black);
}

h3 {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: var(--h3);
    line-height: 108%;
    color: var(--black);
}

h4 {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: var(--h4);
    line-height: 106%;
    color: var(--black);
}

h5 {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: var(--h5);
    line-height: 103%;
    color: var(--black);
}

h6 {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: var(--h6);
    line-height: 107%;
    color: var(--black);
}

p {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: var(--paragraph);
    line-height: 143%;
    color: var(--black75);
}

p.larger {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: var(--paragraph-larger);
    color: var(--black75);
}


body {
    font-family: var(--second-family), sans-serif;
    font-size: var(--paragraph);
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: var(--black);
    width: 100%;
}

header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 48px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav li {
    margin-right: 20px;
    text-align: center;
}

nav a {
    text-decoration: none;
    color: var(--black);
    font-family: var(--second-family);
    font-weight: 500;
    font-size: var(--paragraph);
    transition: color 0.2s ease;
}

nav a:hover {
    color: var(--primary--orange---normal-hover);
}

.header-button {
    background-color: var(--black);
    color: #fff;
    border: 3px solid var(--black);
    font-family: var(--second-family);
    font-weight: 700;
    font-size: var(--paragraph);
    text-align: center;
    cursor: pointer;
    padding: 8px 8px;
    width: 200px;
    height: 40px;
    margin-left: 40px;
}

/* Hover State */
.header-button:hover {
    background-color: #fff; /* Example hover color */
    color: var(--black);
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.25);
}

/* Active State */
.header-button:active {
    background-color: var(--black25); /* Example active color */
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.25);
    transform: translateY(1px); /* Push down slightly */
}

/* Disabled State */
.header-button:disabled {
    background-color: #f5f5f5;
    color: #999;
    border-color: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

main {
    padding: 80px;
}

.intro-and-design {
    display: flex;
    flex-direction: column; /* Stack intro and design elements vertically */
    gap: 0px; /* Adjust gap as needed */
    margin-bottom: 40px;
    align-items: center;
}

.intro {
    text-align: center;
    margin-bottom: 8px;
}

.intro-buttons {
    margin-top: 16px;
    display: flex;
    flex-direction: column; /* Arrange buttons vertically */
    align-items: center;     /* Center buttons horizontally */
    gap: 16px;              /* Add spacing between buttons (adjust as needed) */
}

.intro-buttons button {

    border: 3px solid var(--black);
    border-radius: 24px;
    width: 240px;
    height: 56px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    background-color: #fff;
    color: var(--black);
    padding: 10px 20px;
    margin: 0 10px;
    font-weight: bold;
    font-size: var(--h6);
    font-family: var(--font-family);
    cursor: pointer;
    z-index: 2;
}

/* Hover State */
.intro-buttons button:hover {
    background-color: var(--primary--orange---normal-hover); /* Change background on hover */
    color: #fff; /* Change text color on hover */
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0); /* Optional: Adjust box-shadow */
}

/* Active State */
.intro-buttons button:active {
    background-color: var(--primary--orange---normal-active); /* Change background when clicked */
    box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.25); /* Optional: Further adjust box-shadow */
    transform: translateY(2px); /* Slightly push the button down when clicked */
}

/* Disabled State */
.intro-buttons button:disabled {
    background-color: #f5f5f5; /* Light gray background */
    color: #999; /* Lighter text color */
    border-color: #ccc; /* Lighter border */
    cursor: not-allowed; /* Change cursor to indicate not clickable */
    box-shadow: none; /* Remove box-shadow */
}

.design-container {
    position: relative;
    width: 100%;
    height: 1400px;
    min-height: 600px;
    z-index: 1;
    overflow: visible; /* Allow physics elements to move freely */
}

@media (max-width: 767px) {
    .design-container {
        height: 1000px;
        min-height: 500px;
    }
}

.design-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Positioning for design elements (using absolute positioning) */
.design-elements img {
    position: absolute;
}

/* Physics-enabled elements */
.physics-element {
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
    transition: none; /* Remove transitions for smooth physics */
}

.physics-element:active {
    cursor: grabbing;
}

/* Example positions (adjust these as needed) */
.comma {
    top: 72px;
    left: 22%;
    width: 120px;
    height: auto;
}

.orange-dot {
    top: 320px;
    left: 1%;
    width: 126px;
    height: auto;
}

.orange-inverted-comma {
  top: 296px;
  right: 30%;
  width: 187px;
  height: auto;
}

.black-comma {
  top: 179px;
  right: 15%;
  width: 183px;
  height: auto;
}

.orange-comma {
  top: 260px;
  right: 6%;
  width: 183px;
  height: auto;
}

.semicolon {
    bottom: 50px;
    left: 150px;
    width: 390px;
    height: auto;
}


.orange-colon {
  top: 632px;
  right: 30%;
  width: 239px;
  height: auto;
}

.line {
  top: 900px;
  right: 5%;
  width: 163px;
  height: auto;
}




footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    background-color: #FFF;
    width: 90%;
}


footer .footer-container {
    display: flex;
    align-items: center;
    width: 90%;
    justify-content: space-between;
    overflow: hidden;
    padding-left: 5vw;
    padding-right: 5vw;
}


footer ul {
    list-style: none;
    margin: 20px;
    padding: 20px;
    display: flex;
}

footer .footer-text {
    margin-right: 0px;
    text-align: center;
    font-size: var(--paragraph);
}

footer li {
    margin-right: 20px;
}

footer a {
    text-decoration: none;
    color: var(--black);
}

.color-palette {
    display: flex;
}

.color-box {
    width: 30px;
    height: 30px;
    margin-left: 10px;
    border-radius: 50%; /* Makes the boxes circular */

}

.blue {
    background-color: var(--secondary--blue---normal); /* Example color */
}

.orange {
    background-color: var(--primary); /* Example color */
}

.red {
    background-color: var(--error); /* Example color */
}

.black {
    background-color: var(--black);
}


@media (min-width: 1200px) {
    .comma {
        top: 72px;
        left: 22%;
        width: 8vw; /* Use viewport width for scaling */
        height: auto;
    }

    
    .orange-dot {
        top: 25vw;
        left: 1%;
        width: 8.75vw;
        height: auto;
    }
    
    .orange-inverted-comma {
      top: 20.5vw;/*296px;*/
      right: 30%;
      width: 13vw;
      height: auto;
    }
    
    .black-comma {
      top: 12.4vw; /*179px;*/
      right: 15%;
      width: 12.7vw;
      height: auto;
    }
    
    .orange-comma {
      top: 18vw; /*260px;*/
      right: 6%;
      width: 12.7vw;
      height: auto;
    }
    
    .semicolon {
        bottom: 50px;
        left: 150px;
        width: 27vw;
        height: auto;
    }
    
    
    .orange-colon {
      bottom: 20px;
      right: 35vw;
      width: 16.6vw;
      height: auto;
    }
    
    .line {
      top: 900px;
      right: 5%;
      width: 11.3vw;
      height: auto;
    }
    
}

/* Tablet */
@media (max-width: 1199px) and (min-width: 768px) {
    .comma {
        top: 72px;
        left: 22%;
        width: 8vw;
        height: auto;
    }

    .orange-dot {
        top: 25vw;
        left: 1%;
        width: 8.75vw;
        height: auto;
    }

    .orange-inverted-comma {
      top: 20.5vw;
      right: 30%;
      width: 13vw;
      height: auto;
    }

    .black-comma {
      top: 12.4vw;
      right: 10vw;
      width: 12.7vw;
      height: auto;
    }

    .orange-comma {
      top: 18vw;
      right: 2vw;
      width: 12.7vw;
      height: auto;
    }

    .semicolon {
        bottom: 50px;
        left: 150px;
        width: 27vw;
        height: auto;
    }

    .orange-colon {
      bottom: 20px;
      right: 30vw;
      width: 16.6vw;
      height: auto;
    }

    .line {
      top: 900px;
      right: 5%;
      width: 11.3vw;
      height: auto;
    }

    header {
        padding: 32px;
    }

    main {
        padding: 48px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    /* Scale down heading sizes for mobile */
    h1 {
        font-size: clamp(2.5rem, 8vw, var(--h1));
    }

    h2 {
        font-size: clamp(2rem, 6vw, var(--h2));
    }

    h3 {
        font-size: clamp(1.5rem, 5vw, var(--h3));
    }

    h4 {
        font-size: clamp(1.25rem, 4vw, var(--h4));
    }

    h5 {
        font-size: clamp(1.1rem, 3vw, var(--h5));
    }

    h6 {
        font-size: clamp(1rem, 2.5vw, var(--h6));
    }

    p.larger {
        font-size: clamp(1rem, 3vw, var(--paragraph-larger));
    }

    .comma { 
        top: calc(300px + 72px);
        left: 22%;
        width: 8vw; /* Use viewport width for scaling */
        height: auto;
    }

    
    .orange-dot {
        top: calc(350px + 25vw);
        left: 1%;
        width: 8.75vw;
        height: auto;
    }
    
    .orange-inverted-comma {
      top: calc(300px + 20.5vw);/*296px;*/
      right: 30%;
      width: 13vw;
      height: auto;
    }
    
    .black-comma {
      top: calc(300px + 12.4vw); /*179px;*/
      right: 10vw;
      width: 12.7vw;
      height: auto;
    }
    
    .orange-comma {
      top: calc(300px + 18vw); /*260px;*/
      right: 2vw;
      width: 12.7vw;
      height: auto;
    }
    
    .semicolon {
        bottom: 50px;
        left: 150px;
        width: 27vw;
        height: auto;
    }
    
    
    .orange-colon {
      bottom: 20px;
      right: 30vw;
      width: 16.6vw;
      height: auto;
    }
    
    .line {
      top: 900px;
      right: 5%;
      width: 11.3vw;
      height: auto;
    }
    .intro-buttons button {

        border: 3px solid var(--black);
        border-radius: 24px;
        width: 160px;
        height: 112px;
        box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
        background-color: #fff;
        color: var(--black);
        padding: 10px 20px;
        margin: 0 10px;
        font-weight: bold;
        font-size: var(--h6);
        font-family: var(--font-family);
        cursor: pointer;
        z-index: 2;
    }
    .header-button {
        background-color: var(--black);
        color: #fff;
        border: 3px solid var(--black);
        font-family: var(--second-family);
        font-weight: 700;
        font-size: 0.85rem;
        text-align: center;
        cursor: pointer;
        padding: 12px 16px;
        width: auto;
        min-width: 120px;
        height: auto;
        margin-left: 16px;
        white-space: nowrap;
    }
    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px;
        flex-wrap: wrap;
        gap: 16px;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 8px;
    }

    nav li {
        margin-right: 12px;
    }

    nav a {
        font-size: 0.9rem;
    }
    footer {
        flex-direction: column; /* Stack vertically */
        padding: 2px;
    }
    .footer-container {
        flex-direction: column;
        margin-bottom: 10px; /* Add space between text/links and colors */
        align-items: center;
    }
    .footer-text {
        margin-right: 0;
        margin-bottom: 5px;
    }
    main {
        padding: 16px;
    }
    footer li {
        margin-right: 4px;
    }
    /* footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 40px;
        background-color: #FFF;
    } */
}

/* ============================================
   Misc Section Styles
   ============================================ */

/* Landing page links */
.misc-links {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin-top: 80px;
}

.misc-link {
    text-decoration: none;
    color: var(--black);
    transition: all 0.2s ease;
    display: block;
    padding: 24px;
    border: 3px solid var(--black10);
    border-radius: 8px;
}

.misc-link:hover {
    color: var(--primary--orange---normal-hover);
    border-color: var(--primary);
}

.misc-link h3 {
    margin: 0;
    transition: color 0.2s ease;
}

/* Calculator Cards */
.calc-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
}

.calc-card {
    background: #fff;
    border: 3px solid var(--black10);
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 32px;
    transition: border-color 0.2s ease;
}

.calc-card:hover {
    border-color: var(--black25);
}

.calc-card h3 {
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--black);
}

.calc-input {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-family: var(--second-family);
    border: 3px solid var(--black);
    border-radius: 8px;
    margin-bottom: 16px;
    box-sizing: border-box;
}

.calc-input:focus {
    outline: none;
    border-color: var(--primary);
}

.calc-output {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    padding: 16px;
    background: var(--black5);
    border-radius: 4px;
    min-height: 60px;
}

.calc-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: var(--black);
}

/* Scalar Cards */
.scalars-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
}

.scalar-section {
    margin-bottom: 64px;
}

.scalar-section h3 {
    margin-bottom: 32px;
}

.scalar-card {
    background: #fff;
    border: 3px solid var(--black10);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scalar-card.live {
    border-color: var(--primary--orange---light);
}

.scalar-card.error {
    border-color: var(--error);
}

.scalar-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--black);
}

.scalar-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--black);
}

.scalar-unit {
    font-size: 1rem;
    color: var(--black50);
    margin-left: 8px;
}

.live-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 12px;
}

.last-updated {
    font-size: 0.85rem;
    color: var(--black50);
    margin-top: 8px;
}

/* Loading States */
.loading {
    opacity: 0.5;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 3px solid var(--black10);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Design for Misc Section */
@media (max-width: 767px) {
    .misc-links {
        gap: 24px;
        margin-top: 40px;
    }

    .misc-link {
        padding: 16px;
    }

    .calc-container, .scalars-container {
        padding: 16px;
    }

    .calc-card {
        padding: 16px;
    }

    .calc-output {
        font-size: 1.2rem;
    }

    .scalar-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 16px;
    }

    .scalar-value {
        font-size: 1.2rem;
    }
}

