/* Body CSS Styling */
body{
  font-family: "Roboto Mono", serif;
  font-weight: 400;
  min-height: 100vh;
  display: flex;
  flex-direction: column;   /* ✅ important */
  justify-content: flex-start; /* start at top instead of vertical centering */
  cursor: url("images/targetBlack.png")16 16, auto;
}

main{
   
}
a, a:visited, a:hover, a:active{
  cursor: url("images/targetRed.png") 16 16, auto;
}


/* Large Headings Font Weight CSS Styling */
h1, h2, h3 {
    font-family: "Inter", system-ui, -apple-system, Arial, sans-serif;
    font-weight: 600;
    
}
/* Header To Website CSS Styling */
.site-header{
  display: flex;
  justify-content: space-between; /* pushes left and right sides apart */
  align-items: center;            /* vertically aligns them on the same line */
  padding: 16px 24px;
}

.site-title{
  margin: 0;  
  text-decoration: none;  /* removes default h1 spacing */
  color: black;
}

/* Navigation Bar CSS Styling */
.site-nav{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;       /* allow links to wrap */
  row-gap: 8px;          /* nicer display on iphones, etc., when wrapped */
}

.site-nav a:not(:last-child)::after{
  content: "|";
  margin-left: 12px; /* space after the link before the pipe */
}


.site-nav a:link, .site-title-link,
.site-nav a:visited{
  color: black;           /* pick your color */
  text-decoration: none;
}

.site-nav a:hover span,
.site-nav a:focus span {
    text-decoration: underline;  /* Hover effect --> Underline */
}
.site-nav a:active{
    color: black;
}
.content {
    max-width: 850px;   /* adjust: 700–900px is a nice range */
    margin: 0 auto;     /* centers the content */
    padding: 0 16px;    /* keeps breathing room on small screens */
    text-decoration: none;
}
/* General Headings CSS Styling */

#lang-lib {
    font-size: small;
}
h1{
    text-align: left;
    margin: 0;
    padding: 0;
}

h2{
    margin-top: 2rem;
}

h3{
    text-align: left;
    
}

hr{
    margin: 1.5rem 0;
}

/* Table Headers and Rows CSS Styling */
table, th, td {
    border: 1px solid black;
    margin-bottom: 10px;
    align-items: center;
}
th, td {
    padding: 20px;
    text-align: center;
    width: 100rem;
}
td {
    width: 15rem;
}

/* Images CSS Styling */
img{
    width: 300px;
    height: auto;
    margin: 10px;
    border: 6px double black;
    flex-direction: row;
}
.image-grid{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 15px;
    width:min(900px,100%);

}

.image-grid img{
    width: 100%;
    height: auto;
    margin: 0px;
    border: 6px double black;
}
/* Links CSS Styling */
.links{
    display:flex;
    justify-content: center;
    gap:1.25rem;
    flex-wrap: wrap;
    margin: .75rem 0 1.25rem;
}


/* Main Page Heatmap CSS Styling */
.card{
    border: 1px solid #e5e7eb;
    height: min-content;
    border-radius: 14px;
    padding:14px;
    max-width: 920px;
}
.muted{
    color: #6b7280;
}

.small_2026goal{
    margin-top: -22px;
    text-align: right;
    font-size: 0.95rem;
    color:#6b7280;
}
.problems_solved_tracker{
    margin-top: -15px;
    text-align: right;
    font-size: 0.95rem;
    color:#6b7280;
}

.heatmaptitle{
    font-family: "Inter", system-ui, -apple-system, Arial, sans-serif;
    margin:0;
    font-size: clamp(1.05rem, 1.2vw, 1.35rem);
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    font-size: large;
}

.heatmap{
    margin-top: 5px ;
    display: grid;
    grid-auto-flow: column; /* columns = weeks --> i.e one column = 1 week*/
    grid-auto-columns: 12px ;
    grid-template-rows: repeat(7, 12px);
    gap: 3px;
    padding: 10px;
    border: 1px solid #eef2f7;
    border-radius: 12px ;
    overflow-x: auto;
}
.day {
    width: 12px ;
    height: 12px ;
    border-radius: 3px ;
    background: #ebedf0; /* Level 0 default color*/ 
    border: 0;
    cursor: pointer;
}

.day:focus{box-shadow: 0 0 0 2px  ; outline: none;}

/* Specific heatmap boxes CSS Styling */
.lvl0 { background: #ebedf0; }  /* 0 */
.lvl1 { background: #f7c0f2; }  /* 1–2  light pink */
.lvl2 { background: #ea33df; }  /* 3–5  favicon pink */
.lvl3 { background: #c02cb8; }  /* 6–9  magenta-purple */
.lvl4 { background: #952490; }  /* 10+  favicon purple = most */

.legend{
    display: flex;
    gap: 6px ;
    align-items: center;
    margin-top: 10px;
    font-size: 12px ;
    color:  #6b7280;
}

.legend .box {
    width: 12px;
    height: 12px ;
    border-radius: 3px ;
    display: inline-block;
    border: 1px solid rgba(0,0,0,0.04);
}
/* Resizing for different displays (Phone, etc.) */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;  /* slightly smaller padding */
  }
  .site-nav a:not(:last-child)::after{
    content: "";         /*  remove pipes on mobile , there is now a natural seperation to them */
    margin-left: 0;
  }
}

/* Footer CSS Styling */
footer{
    text-align: center;
    
}

.hr{

}