/* Retro Windows 95 style basic reset and style */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
.splink:link{color: blue;
  text-decoration: none;
}
.splink:visited{color: blue;
  text-decoration: none;
}
.splink:hover{color: purple;
  text-decoration: underline;
} 

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  color: black;
  font-size: 18px;
  line-height:1.5;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}
header {
  position: fixed;
  width: 100%;
  border-bottom: 2px solid black;
  z-index: 9999;

}
main {
  flex-grow: 1;
  margin-top: 50px; /* Match the height of the fixed header */
  padding: 10px;
  background: #e0e0e0;
  border: 2px solid #808080;
  box-shadow: inset 1px 1px 1px #fff, inset -1px -1px 1px #404040;
}
.logo {
  font-weight: bold;
  font-size: 28px;
  color: navy;
  text-shadow: 1px 1px 0 white;
  letter-spacing: 1px;
  
}
nav{
  background: linear-gradient(to top, #c0c0c0 0%, #808080 100%);
  box-shadow: inset 1px 1px 0 #fff, inset -1px -1px 0 #404040;
}
nav ul{

  width: 100%;
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
nav li{
  height: 50px;
}
nav a{
  height: 100%;
  padding: 0 30px;
  text-decoration: none;
  display: flex;
  align-items: center;
  color: black;
}
nav a:hover{
  background-color: #2929297c;
}
nav li:first-child{
  margin-right: auto;
}
nav a.sideactive:not(.logo) {
  color: white !important;
  background-color: #2929297c;
  outline: 2px solid black;
  transition: background-color 0.3s, color 0.3s;
}
.sidebar{
  position: fixed;
  top: 0; 
  right: 0;
  height: 100vh;
  width: 250px;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.sidebar.active {
  transform: translateX(0);
}
.sidebar li{
  width: 100%;
}
.sidebar a{
  width: 100%;
  color: black;
}
.sidebar a:hover{
  background-color: #2929297c;
}
.sidebar a.active {
  background-color: #2929297c;
   color: white;
}
.menu-button{
  display: none;
}
.section-highlight {
  animation: highlight-fade 1.5s ease-out;
}

@keyframes highlight-fade {
  0% {
    background-color: lightskyblue;
  }
  100% {
    background-color: transparent;
  }
}
section h1{
  /* Slightly larger multiplier so users notice changes at smaller sizes */
  font-size: 2.2em;
  transition: font-size 160ms ease;
}
section h2 {
  font-size: 1.5em;
}
section h3 {
  font-size: 1.2em;
 
}
section p {
  padding-left: 10px;
  margin-bottom: 10px ;
}

section ul {
  padding-left: 20px;
}
div ul {
  padding-left: 20px;
}
.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.faq-item {
  margin-bottom: 12px;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.08em;
  color: #721c24;
  cursor: pointer;
  padding: 10px 0;
  transition: color 0.2s;
}
.faq-question[aria-expanded="true"] {
  color: navy; 
  font-weight: bold;
}
.faq-answer {
  padding: 8px 0 8px 16px;
  color: black;
  background: none;
  border-left: 2px solid navy;
  margin-top: 0;
  font-size: 1em;
  transition: max-height 0.3s;
}
.video-card {
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  width: 100%;
   max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
   transition: padding 0.3s, max-width 0.3s, margin 0.3s;
}

.video-card-question h3 {
  color: #0077ff;
  font-size: 1.18em;
  text-align: left;
  margin: 0 0 0 0;
}

.video-card-video,
.video-card-image {
  width: 100%;
  padding: 12px 0;
  background: none;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  aspect-ratio: 16/9;
}

.video-card-video iframe,
.video-card-image img {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.video-card-caption {
  text-align: left;
  color: #444;
  font-size: 1em;
  margin: 8px 0 0 0;
  padding: 0;
}
/* Responsive: Increase padding and card size on larger screens */
@media (min-width: 700px) {
  .video-card {
    max-width: 480px;
    padding: 0;
  }
}
@media (min-width: 1024px) {
  .video-card {
    max-width: 480px;
    padding: 0;
  }
}
/* On very large screens, align left and use normal flow */
@media (min-width: 800px) {
  .video-card {
    margin-left: 0;
    margin-right: auto;
    align-items: flex-start;
  }
  .video-card-question h3,
  .video-card-caption {
    text-align: left;
  }
}

.card{
  flex: 0 0 calc(33.33% - 20px);
  background-color: rgba(255, 255, 255, 0.699);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
   
}
.card h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
}

.card p {
    font-size: 16px;
    color: #000000;
    line-height: 1.6;
    margin-bottom: 20px;
}
.card li{
  margin-bottom: 7px;
}
.cardbutton {
    background: linear-gradient(to bottom, #f0f0f0 0%, #d0d0d0 100%);
    border: 2px solid #808080;
    box-shadow:
    1px 1px 0 #fff,
    inset 1px 1px 0 #fff,
    inset -1px -1px 0 #808080;
    color: black;
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cardbutton .arrow {
    margin-left: 5px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.cardbutton:hover {
    padding-right: 25px;
}

.cardbutton:hover .arrow {
    transform: translateX(5px);
}
footer {
  background: linear-gradient(to top, #3a3939  0%, #3a3939 100%);
  color: white;
  text-align: center;
  padding: 1px 2px 2px;
}

.socials-container {
  display: flex;
  gap: 14px;
  padding: 1em;
  justify-content: center;
}

.socials-container a {
  background-color: white;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  position: relative;
  transition: background-color 0.3s;
}

.socials-container a svg {
  height: 20px;
  width: 20px;
}

.socials-container a::before {
  content: attr(data-social);
  position: absolute;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  padding: 0.3em 0.7em;
  font-size: 0.75rem;
  border-radius: 100px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transform: translateY(-26px) rotate(25deg);
  opacity: 0;
  transition: 200ms cubic-bezier(.42,0,.44,1.68);
}

.socials-container a:hover {
  background-color: var(--accent-color);
  fill: white;
}

.socials-container a::after {
  content: '';
  position: absolute;
  height: 0;
  width: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--accent-color);
  transform: translateY(0) rotate(25deg);
  opacity: 0;
  transition: 200ms cubic-bezier(.42,0,.44,1.68);
}

.socials-container a:hover::before {
  transform: translateY(-52px) rotate(0);
  opacity: 1;
}

.socials-container a:hover::after {
  transform: translateY(-32px) rotate(0);
  opacity: 1;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-nav li {
  margin: 0 15px;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #aaa;
}

footer p {
  font-size: 16px;
  margin-top: 20px;
  margin-bottom: 10px;
}

footer span {
  font-weight: bold;
  color: #bbb;
}
@media(max-width: 800px){
  .hideOnMobile{
    display: none;
  }
  .menu-button{
    display: block;
  }
}
@media(max-width: 400px){
  .sidebar{
      width: 250px;
    max-width: 95vw;
  }
}
@media (max-width: 768px) {
  .socials-container {
    flex-wrap: wrap;
    gap: 12px;
    padding: 0.8em;
  }

  .socials-container a {
    width: 40px;
    height: 40px;
  }

  .socials-container a svg {
    height: 18px;
    width: 18px;
  }

  .socials-container a::before {
    font-size: 0.65rem;
    padding: 0.25em 0.6em;
    transform: translateY(-22px) rotate(25deg);
  }

  .socials-container a:hover::before {
    transform: translateY(-45px) rotate(0);
  }

  .socials-container a::after {
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--accent-color);
  }

  .socials-container a:hover::after {
    transform: translateY(-28px) rotate(0);
  }
}

/* --- Reading Settings overrides: make headings and FAQ scale/inherit ---
   Ensure the Help page respects the font-family and font-size applied to <main>
   by `customfont.js`. Placed at end so it overrides earlier fixed sizes. */

/* General headings - make headings larger than body while still respecting Reading Settings */
h1, .contentheading {
  font-family: inherit;
  font-size: 1.8em;
  line-height: 1.15;
  transition: font-size 160ms ease;
}

h2, section h2 {
  font-family: inherit;
  font-size: 1.3em;
  line-height: 1.2;
  transition: font-size 160ms ease;
}

h3, section h3 {
  font-family: inherit;
  font-size: 1.15em;
  line-height: 1.2;
  transition: font-size 160ms ease;
}

/* FAQ specific */
.faq-question {
  font-family: inherit;
  font-size: 1.08em; /* slightly larger than body */
}
.faq-answer {
  font-family: inherit;
  font-size: 1em;
}

/* Video card titles / captions */
.video-card-question h3,
.video-card-caption,
.video-card-caption p {
  font-family: inherit;
  font-size: 1em;
}

/* Ask-a-Question card */
.help-section h3,
.help-section p,
.help-section ul,
.cardbutton {
  font-family: inherit;
}
.help-section h3 { font-size: 1.15em; }
.help-section p, .help-section ul { font-size: 1em; }

/* Card headings and content */
.card h3 { font-family: inherit; font-size: 1.15em; }
.card p  { font-family: inherit; font-size: 1em; }

/* FAQ collapse header state (ensure focus/expanded styles still apply) */
.faq-question[aria-expanded="true"] { font-weight: 700; }

/* Small-screen tweaks */
@media (max-width: 480px) {
  .faq-question { font-size: 1.02em; }
  .help-section h3 { font-size: 1.05em; }
}
