/* @import 'tailwindcss'; */

/* @source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';

@theme {
    --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji',
        'Segoe UI Symbol', 'Noto Color Emoji';
} */
@font-face {
  font-family: 'UbuntuSans';
  /* Geef aan dat dit een variabel font is met truetype-variations */
  src: url('../assets/UbuntuSans.ttf') format('truetype-variations');
  /*100 to 900 */
  font-weight: 100 900;
  font-style: normal;
}

/* ==============================

  #region Reset and colour init

==============================*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* font-family: 'Courier New', Courier, monospace; */
  font-family: 'UbuntuSans', 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
  font-weight: 240;
  /* font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif; */
  /* font-size: 1.25rem; */
}

html {
  font-size: 1.5rem;
  scroll-behavior: smooth;
}

/* https://rgbacolorpicker.com/hex-to-rgba */


html.light {
  --forest-mist: #cddbd4;
  /* Algemene achtergrond */

  --pine-text: #233127;
  /* Primaire tekst */

  --sage-surface: #edf4ef;
  --sage-surface-translucent: rgba(237, 244, 239, 0.3);
  /* Navbar / secondary surfaces */

  /* --moss-panel: #f6fbf7; */
  --moss-panel: #cfe1d2;
  /* Main cards / panels */

  --olive-border: #a7bbb0;
  /* Borders */

  --fern-button: #6b8f7a;
  /* Buttons */

  --fern-button-text: #f5faf6;

  --fern-button-hover: #5b7d69;

  --fern-button-text-hover: #ffffff;

  --accent-green: #7fb089;
  /* Accentkleur */

  --soft-shadow: rgba(35, 49, 39, 0.08);
}

html.dark {
  --forest-mist: #1b2220;
  /* Diepe achtergrond */

  --pine-text: #d8e6dc;
  --pine-text: #bcbcbc;
  /* Primaire tekst */

  --sage-surface: #242d2a;
  --sage-surface-translucent: rgba(36, 45, 42, 0.3);
  /* Navbar / surfaces */

  --moss-panel: #2d3834;
  /* Content panels */

  --olive-border: #44534c;
  /* Borders */

  --fern-button: #5f806c;
  /* Buttons */

  --fern-button-text: #edf5ef;

  --fern-button-hover: #739684;

  --fern-button-text-hover: #ffffff;

  --accent-green: #8bbf9a;
  /* Accentkleur */

  --soft-shadow: rgba(0, 0, 0, 0.25);
}

/*  #endregion */
/* ==============================

  Base elements

==============================*/

/* ----------------
  Page layout
---------------- */

body {
  overflow-y: scroll;
  /* Force scrollbar to avoid shifts */
  color: var(--pine-text);
  background-color: var(--forest-mist);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--forest-mist);
  z-index: -1;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0.4rem 0;
  font-weight: 400;
}

h1 {
  font-size: 3rem;
  margin: 0 auto;
  width: fit-content;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.95rem;
}

small {
  font-size: 0.90rem;
}

html {
  scroll-behavior: smooth;
}

article {
  background-color: var(--sage-surface);
  padding: 1rem;
  margin: 2rem 0;
  border-radius: 1rem;
}

ul {
  list-style-position: inside;
}

#hoverMenu {
  display: flex;
  flex-direction: column;
  position: sticky;
  width: fit-content;
  bottom: 1rem;
  border: var(--olive-border) 0.2rem solid;
  padding: 0.4rem;
  border-radius: 0.5rem;
  background-color: var(--sage-surface);
}

nav {
  width: 100%;
  display: flex;
  flex-direction: column;
}

#hoverMenu nav a {
  margin: 0.4rem auto;
}

/* Secondary layout */
#nav {
  flex-direction: row;
  gap: 2vw;
}

#hoverMenu {
  margin: 0 auto;
}

/* ----------------
  Header, footer and main
---------------- */

header,
footer {
  display: flex;
  flex-direction: column;
  max-width: 35rem;
  margin: 0 auto;
}

header {
  width: fit-content;
  margin: 0 auto;
  border-radius: 1rem;
  min-height: 55vh;
  justify-content: space-evenly;
}

header div,
footer div,
.card {
  background-color: var(--sage-surface-translucent);
  backdrop-filter: blur(0.5rem);
  padding: 1rem;
  border-radius: 1rem;
}

footer {
  min-height: 30vh;
  justify-content: end;
  color: var(--pine-text);
  padding: 2rem;
  text-align: center;
}

.pillContainer {
  display: flex;
  margin: 0.3rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.pill,
.pillContainer>span {
  background-color: var(--moss-panel);
  border: 0.1rem solid var(--olive-border);
  width: fit-content;
  padding: 0.5rem;
  border-radius: 1rem;
  font-size: 0.7rem;
  font-weight: bold;
}

main {
  background-color: var(--moss-panel);
  border: 1px solid var(--olive-border);
  color: var(--pine-text);
  width: 100%;
  margin: 0 auto;
  border-radius: 10px;
  flex: 1;
  padding: 1.5rem;
  /* min-height: 100vh; */
}

.mainContent {
  max-width: 80%;
  margin: 0 auto;
}

small {
  display: block;
}

/* ----------------
  General margins
---------------- */

section {
  margin: 0.5rem 0;
}

p {
  margin: 0.6rem 0;
}

/* ----------------
  General links
---------------- */

a {
  color: var(--accent-green);
  font-size: 1.1rem;
  padding: 0.3vw;
}

.active {
  background-color: var(--moss-panel);
  border-radius: 0.3vw;
}

a:visited {
  color: var(--fern-button-hover);
}


.block a {
  border-color: var(--olive-border);
  border-width: 0.2rem;
  border-radius: 2rem;
  border-style: solid;
  padding: 0.3rem;
}

/* ----------------
  Buttons
---------------- */

button,
.btn {
  background-color: var(--fern-button);
  color: var(--fern-button-text);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

button:hover,
.btn:hover {
  background-color: var(--fern-button-hover);
  color: var(--fern-button-text-hover);
}



/* ----------------
  Icon rows
---------------- */

.iconRow {
  list-style: none;
  display: flex;
  gap: 1rem;
  justify-content: space-evenly;
  margin: 1rem 0;
}

.iconRow a {
  text-decoration: none;
  color: var(--pine-text)
}

.iconRow p {
  margin: 0;
  padding: 0;
  display: block;
  font-size: 0.8rem;
}

.iconRow img {
  margin: 0 auto;
}

.icon {
  width: 1.75rem;
}

.iconSmall {
  width: 1.25rem;
}

.iconRow span {
  font-size: 0.8rem;
}

.iconRow li {
  border-radius: 0.3rem;
  display: flex;
  background-color: var(--fern-button);
  padding: 0.2rem;
  justify-content: center;
  height: fit-content;
  margin: auto 0;
  flex-wrap: wrap;
}

.iconRow>li>a>p,
.iconRow>li>a>svg {
  color: white;
}

.iconRow svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* ----------------
  Blockstacks
---------------- */

/* Alternating text and images*/
.blockStack {
  display: flex;
  flex-direction: column;
}

.block {
  display: flex;
  margin: 0.5rem;
  background-color: var(--moss-panel);
  padding: 1rem;
  border-radius: 1rem;
}

.blockStack>.block {
  width: 100%;
  gap: 1rem;
}

.blockStack>.block:nth-child(even) {
  flex-direction: row-reverse;
}

/*Block from Grid*/

/* Grid layout */
.blockStack-grid {
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  align-items: start;
}

.blockStack-grid>.block {
  flex-direction: column;
  min-height: 20vh;
  width: 100%;
  /* width: fit-content; */
}


.block li {
  margin: 0.7rem 0;
}

.block img {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  object-fit: contain;
}

.flex {
  display: flex;
  gap: 0.4rem;
}

.spaceAround {
  justify-content: space-around;
}

/* ----------------
  Title card
---------------- */

.card {
  border-radius: .25em;
  padding: 1rem;
  margin: 1rem auto 0;
  width: fit-content;
  text-align: center;
}

#profileImg {
  /* width: 7vw;
  border-radius: 50%; */
  width: clamp(80px, 7vw, 140px);
  border-radius: 50%;
}

/* ==============================

  Responsive improvements

==============================*/
/* Tablet */
@media only screen and (max-width: 1024px) {

  .mainContent {
    max-width: 92%;
  }

  .blockStack-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blockStack-grid>.block {
    width: 100%;
  }

  #hoverMenu {
    left: auto;
    right: 1rem;
  }
}

/* Mobile */
@media only screen and (max-width: 768px) {

  html {
    font-size: 20px;
  }

  main {
    width: 95%;
    padding: 1rem;
  }

  .mainContent {
    max-width: 100%;
  }

  header,
  footer {
    max-width: 100%;
    padding: 1rem;
  }

  header {
    min-height: auto;
    gap: 1rem;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.35rem;
  }

  h4 {
    font-size: 1.15rem;
  }

  .block,
  .blockStack>.block,
  .blockStack>.block:nth-child(even) {
    flex-direction: column;
  }

  .block {
    margin: 0.5rem 0;
    padding: 0.75rem;
  }

  .blockStack-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .blockStack-grid>.block {
    width: 100%;
  }

  .iconRow {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .card {
    width: 100%;
  }

  #hoverMenu {
    right: 0.5rem;
    bottom: 0.5rem;
    left: auto;
    max-width: calc(100vw - 1rem);
  }
}

/* Small phones */
@media only screen and (max-width: 480px) {

  html {
    font-size: 20px;
  }

  main {
    width: 100%;
    border-radius: 0;
    padding: 0.75rem;
  }

  article {
    margin: 1rem 0;
    padding: 0.75rem;
  }

  .pill,
  .pillContainer>span {
    padding: 0.4rem;
  }

  .icon {
    width: 1.5rem;
  }

  .iconSmall {
    width: 1rem;
  }

  h1 {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.55rem;
  }

  h3 {
    font-size: 1.25rem;
  }


}