/* IMPORTS */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Happy+Monkey&display=swap');

/* ROOT */

:root {
  /* Minimum Content Width */
  --content-width: 35rem;

  /* Typography */
  --handwriting: 'Happy Monkey', sans-serif;
  --sans-serif: 'Inter', sans-serif, Helvetica;
  --serif: serif;
  --mono: monospace;
  --size-xxs: 0.5625rem;
  --size-xs: 0.6875rem;
  --size-s: 0.8125rem;
  --size-m: 0.9375rem;
  --size-l: 1.0625rem;
  
  
}

* {
  box-sizing: border-box;
}

@media (prefers-color-scheme: light) {
  html {

    --bg-color: rgb(253, 252, 247);          
    --text-color: rgb(24, 43, 97);
    --link-color: rgb(14, 116, 144); 
    --margin-line-color: rgb(255, 0, 0);
    --ruling-line-color: rgb(174, 193, 227); 
    --badge-pri-bg: rgb(24, 43, 97);
    --badge-pri-text: rgb(253, 252, 247); 
    --badge-sec-bg: rgb(241, 245, 249);     
    --badge-sec-text: rgb(71, 85, 105);
    --badge-dest-bg: rgb(254, 226, 226); 
    --badge-dest-text: rgb(185, 28, 28);
  }
}

@media (prefers-color-scheme: dark) {
  html {
    --bg-color: rgb(15, 23, 42); 
    --text-color: rgb(252, 252, 253);
    --link-color: rgb(147, 197, 253);         
    --margin-line-color: rgb(239, 68, 68);  
    --ruling-line-color: rgb(38, 52, 77);   
    --badge-pri-bg: rgb(252, 252, 253);        
    --badge-pri-text: rgb(15, 23, 42); 
    --badge-sec-bg: rgb(51, 65, 85);          
    --badge-sec-text: rgb(241, 245, 249);    
    --badge-dest-bg: rgb(153, 27, 27);       
    --badge-dest-text: rgb(255, 242, 242);
  }
}


html {
  background-color: var(--bg-color);
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--sans-serif);
  font-size: var(--size-l);
  line-height: 1.75;
  color: var(--text-color);
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin: auto;
  display: flex;
  justify-content: center;
  padding: var(--size-m);
  color: var(--text-color);
  text-transform: lowercase;
}



a {
  color: var(--text-color);
  text-decoration: underline var(--link-color);
}



dl {
  display: grid;
  grid-template-columns: 150px auto;
  width: fit-content;
}

dt {
  color: var(--link-color);
  text-align: right;
}

dd {
  text-align: left;
  margin: 0 0 0 var(--size-m);
}

.content--last-modified {
  justify-self: right;
}

header {
  justify-content: space-around;
}

header a {
  text-decoration: none;
}

.moments-list {
  list-style-type: none;
}

nav,
section {
  padding: var(--size-m);
}

section {
  display: grid;
}

.nav-buttons {
  cursor: pointer;
}

.blinkie--blinkies {
  width: 150px;
  height: 20px;
}

.blinkie--buttons {
  width: 88px;
  height: 31px;
}

.blinkie--stamps {
  width: 99px;
  height: 56px;
}

.blinkie--stickers {
  width: 250px;
  height: 40px;
}

.blinkie--userboxes {
  width: 230px;
  height: 48px;
}

/* Tables */
table {
  table-layout: fixed;
  border-collapse: collapse;
  border-spacing: 0;
  margin: var(--size-m);
  font-size: var(--size-m);
  border: 2px solid var(--ruling-line-color);
  overflow-x: auto;
}

/* Table cells */
th,
td {
  border: none;
  border-right: 2px solid var(--ruling-line-color);
  border-bottom: 2px solid var(--ruling-line-color);
}

th, td {
  padding: 2px var(--size-xs);
  text-align: right;
}

th {
  text-align: left;
}

th:last-child,
td:last-child {
  border-right: none;
}


tr:last-child td {
  border-bottom: none;
}

th {
  background: var(--bg-color);
  font-weight: 600;
}

thead,
tfoot {
  font-weight: bold;
}

tfoot {
  border-top: 3px solid var(--ruling-line-color);
}

/* DESKTOP MODE */
@media (min-width: 768px) {
  /* LAYOUT */
  .content {
    border: 2px solid var(--margin-line-color);
    max-width: 100%;
    width: var(--content-width);
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: var(--size-m);
    padding: 2px;
  }

  h1 {
    word-spacing: var(--size-l);
  }


  a:hover {
  text-decoration: wavy underline var(--margin-line-color);
}

  header,
  footer,
  main,
  section,
  nav {
    border: 2px solid var(--margin-line-color);
    height: auto;
  }

  .display-flex {
    display: flex;
    flex-direction: column;
  }

  header {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    padding: var(--size-m);
  }

  /* LINKS */

  details {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: var(--size-m);
    width: fit-content;
  }

  nav-buttons:hover {
    cursor: pointer;
  }

  .grid-blinkes {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--size-xxs);
  }

  .grid-blinkes img {
    cursor: pointer;
  }

  .grid-blinkies:has(.blinkies:hover) *:not(:hover) {
    filter: grayscale(1);
  }

  .blinkies {
    position: relative;
    transition:
      filter 0.1s ease-in-out,
      transform 0.2s ease-in-out;
  }

  .blinkies:hover {
    transform: scale(1.5);
    z-index: 1;
  }
}

.main-list {
  display: flex;
  min-width: fit-content;
  justify-content: center;
}

.task-list-item {
  list-style: none;
}

ol,ul {
    padding-left: var(--size-l);
    line-height: 1.3;
  }
  

pre {
  border: 2px solid var(--ruling-line-color);
  padding: var(--size-m);
}

kbd {
  border: 1px solid var(--link-color);
  padding: 2px;
  margin: 2px;
  border-radius: 5px;
  border-bottom: 2px solid var(--link-color);
  font-size: var(--size-s);
}

abbr {
  cursor: help;
}

.badge {
  padding: 0 calc(var(--size-m) / 2);
  margin: var(--size-l) 0;
  border-radius: 15px;
  font-family: var(--sans-serif);
  font-size: var(--size-s);
  background-color: var(--badge-pri-bg);
  color: var(--badge-pri-text);
  width: fit-content;
}

.badge-secondary {
  background-color: var(--badge-sec-bg);
  color: var(--badge-sec-text);
  border: 1px dashed var(--ruling-line-color);
}

.badge-destructive {
  background-color: var(--badge-dest-bg);
  color: var(--badge-dest-text);
  border: 1px solid var(--margin-line-color);
}


.badge-outline {
  border: 2px solid var(--text-color);
  background-color: var(--bg-color);
  color: var(--text-color);
}

.badge.date {
  display: flex;
  justify-self: end;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--handwriting);
  text-transform: lowercase;
  margin: 0;
}


hr {
  margin: calc(var(--size-l) * 2) var(--size-l);
  border: 0.5px solid var(--ruling-line-color);
}

blockquote {
  border-left: 5px solid var(--ruling-line-color);
  padding-left: var(--size-m);
  font-style: italic;
  margin: calc(var(--size-m) * 2) var(--size-m);
}

details {
  border: 2px solid var(--ruling-line-color);
  margin: var(--size-m) 0;
}

img {
  max-width: 100%;
  height: auto;
}


/* MOBILE MODE */

@media (max-width: 768px) {
  body {
    justify-content: flex-start;
  }

  main {
    display: flex;
    flex-direction: column;
  }

  nav {
    border: 2px solid var(--margin-line-color);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    width: fit-content;
  }

  section  {
    padding-left: 0px;
    padding-right: 0px;
  }

  .badge.date {
    justify-self: flex-start;
  }

  details {
    border-radius: 50px;
    padding: 0.5rem 1rem;
  }

  details[open] {
    border-radius: 15px;
    padding: 1rem;
  }

  blockquote {
    margin-left: 0;
  }



  dl {
    grid-template-columns: auto;
  }
  
  dt, dd {
    text-align: left;
  }

}
