html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}

* {
  box-sizing: border-box;
}
@font-face {
  font-display: swap;
  font-style: normal;
  font-weight: 400;
  font-family: "Russo One";
  src: url('../fonts/russo-one.woff2') format("woff2");
}

html {
  overflow-x: hidden;
  font-family: 'Russo One', Arial, Helvetica, sans-serif;
  background: #f9f9f9;
}
main {
  padding: 1rem 0;
}
header svg {
  max-width: 50px;
  fill: #c9a84c;
}
@media (min-width:768px) {
  header svg {
    max-width: 100px;
  }
}
@media (min-width: 1200px) {
  main {
    padding: 7rem 0;
  }
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* header styles */

header {
  background: #8b1a2d;
  background: linear-gradient(to right, #12080a 0%, #8b1a2d 80%);
  text-align: center;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 14rem;
  padding: 1rem;
  box-shadow: 0px 10px 20px rgba(0,0,0,0.4);
}
header h1 {
  position: relative;
  font-size: 2rem;
  font-weight: 800;
  color: #f5e8d0;
}
header h1 span {
  color: #c9a84c;
}
header span {
  font-size: 1.2rem;
  padding: 1rem;
  font-weight: 400;
}
nav .btn {
  color: #f5e8d0;
  border: 1px solid rgba(201, 168, 76, 0.5);
}

main {
  min-height: calc(100svh - 15rem);
  background: #f5ede0;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 7px,
    rgba(255, 244, 244, 0.4) 9px,
    rgba(255, 244, 244, 0.4) 13px,
    transparent 13px
  );
}

h1 {
  text-align: center;
  font-size: 4rem;
}
h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.flex-column {
  flex-direction: column;
}

/* navigation */
.nav-settings label {
  width: 23%;
    display: inline-flex;
    justify-content: center;
}
nav {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 999;
}
.toggle-settings,
.toggle-nav {
  z-index: 3;
  position: relative;
  background: #000!important;
}
.toggle-settings i,
.toggle-nav i {
  font-size: 1rem;
  padding-right: 0.25rem;
}

.toggle-settings > i,
.toggle-nav > i {
  padding-right: 0.25rem;
}
.nav-settings,
.nav-menu {
  width: 400px;
  transform: translateX(-100%);
  background: #fdf6ee;
  position: absolute;
  top: -0.5rem;
  left: -0.5rem;
  bottom: 0;
  padding: 4rem 2rem;
  z-index: 2;
  min-height: 100vh;
  transition: 0.2s ease-in-out;
}
.nav-settings.nav-open + .overlay, 
.nav-menu.nav-open + .overlay {
  position: fixed;
  left: 0;
  right:0;
  bottom: 0;
  top: 0;
  background: rgba(0,0,0,0.6);
}
.nav-settings li,
.nav-menu li {
  padding: 0.25rem
}
.nav-settings img,
.nav-menu img {
  max-width: 60px;
}
.nav-settings.nav-open,
.nav-menu.nav-open {
  max-width: 400px;
  transform: translateX(0);
  padding-top: 6rem;
  overflow-y: auto;
}
.nav-settings i {
  font-size: 1.8rem;
  padding-left: 0.5rem;
}
.nav-settings .dice2 label {
  margin-bottom: 1rem;
}

p {
  display: block;
  margin-bottom: 2rem;
}
footer {
  padding: 3rem 0;
}
footer li {
  margin-bottom: 1rem;
}

li span {
  font-weight: bold;
}

@media (min-width: 1200px){
  header {
    width: 100%;
    text-align: center;
  }
  header h1 {
    position: relative;
    font-size: 6rem;
    font-weight: 800;
  }
  header span {
    font-size: 2rem;
    padding: 2rem
  }

}

@media (min-width: 768px) {
  body {
    display: flex;
    flex-direction: column;
  }

  nav    { order: 0; }
  header { order: 1; }
  main   { order: 2; }
  footer { order: 3; }

  nav {
    position: static; /* mee scrollen, niet vast */
    top: auto;
    left: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(18, 8, 10, 0.95);
    padding: 0.4rem 1rem;
  }

  button.toggle-nav {
    display: none !important; /* hogere specificiteit dan .d-flex { flex !important } in utility.css */
  }

  .nav-menu {
    position: static;
    transform: none;
    width: auto;
    min-height: 0;
    background: transparent;
    padding: 0;
    top: auto;
    left: auto;
    bottom: auto;
    display: flex;
    align-items: center;
    transition: none;
  }

  .nav-menu ul {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
  }

  .nav-menu a {
    color: #f5e8d0;
    text-decoration: none;
    font-size: 0.875rem;
    white-space: nowrap;
  }

  .nav-menu a:hover {
    color: #fff;
  }

  .nav-menu + .overlay {
    display: none !important;
  }

  nav.d-flex .nav-menu {
    flex: 1;
    justify-content: center;
  }

  /* Settings panel via fixed positioning zodat hij altijd vanaf viewport-rand openschuift */
  .nav-settings {
    position: fixed;
    top: 0;
    left: 0;
  }
}

@media (max-width:767.98px){
  .info .d-flex {
    flex-direction: column;
  }
  header {
    height: 10rem;
  }
  main {
    min-height: calc(100svh - 11rem);
  }
  .nav-settings,
  .nav-menu {
    width: 300px;
  }

}

@media (max-width:543.98px){

  .nav-settings label {
    width: 30%;
  }
}

/* ── Settings panel restyle ──────────────────────────────────── */

.nav-settings {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
}

.nav-settings .settings-section-title {
  width: 100%;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8b1a2d;
  margin-bottom: 0.25rem;
}

.nav-settings > .info {
  width: 100%;
  font-size: 0.78rem;
  color: #888;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

/* Position image labels: flexbox card met hover + selected states */
.nav-settings > label {
  position: relative;
  width: 22%;
  margin: 2px;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 3px;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: border-color 0.15s, background-color 0.15s;
}

.nav-settings > label > input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.nav-settings > label > img {
  max-width: 100%;
  display: block;
  order: 1;
}

/* Positienaam zichtbaar onder het plaatje */
.nav-settings > label > .sr-only {
  order: 2;
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  font-size: 0.55rem;
  text-align: center;
  line-height: 1.3;
  color: #777;
  font-family: Arial, sans-serif;
}

.nav-settings > label:hover {
  border-color: #ccc;
  background-color: #f5f5f5;
}

.nav-settings > label:has(input:checked) {
  border-color: #c9a84c;
  background-color: rgba(201, 168, 76, 0.12);
}

/* Custom text invoervelden: volledige breedte */
.nav-settings .checkbox-container,
.nav-settings .checkbox-container2 {
  width: 100% !important;
  margin-bottom: 0.35rem;
}

.nav-settings .d-flex.wrap {
  width: 100%;
  margin-top: 0.5rem;
}

/* Dice 2 sectie */
.nav-settings .dice2 {
  width: 100%;
  border-top: 2px solid #e8d5b0;
  margin-top: 1.25rem;
  padding-top: 1rem;
}

.nav-settings .dice2 > p:first-child {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #333;
  margin-bottom: 0.75rem;
}

/* Locatie-icoon labels */
.nav-settings .dice2 > label {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 8px 6px 5px;
  cursor: pointer;
  margin: 2px;
  min-width: 54px;
  transition: border-color 0.15s, background-color 0.15s;
}

.nav-settings .dice2 > label > input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.nav-settings .dice2 > label > i {
  font-size: 1.4rem;
  color: #555;
  order: 1;
  padding-left: 0;
}

/* Locatienaam zichtbaar onder het icoon */
.nav-settings .dice2 > label > .sr-only {
  order: 2;
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: normal !important;
  font-size: 0.62rem;
  text-transform: capitalize;
  color: #777;
  font-family: Arial, sans-serif;
}

.nav-settings .dice2 > label:hover {
  border-color: #ccc;
  background-color: #f5f5f5;
}

.nav-settings .dice2 > label:has(input:checked) {
  border-color: #c9a84c;
  background-color: rgba(201, 168, 76, 0.12);
}

.nav-settings .dice2 > label:has(input:checked) > i {
  color: #c9a84c;
}

ul.active {
  box-shadow: 0 0 0 2px #fff;
}

/* clock */
.clock-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
  }
.clock-wrapper {
  text-align: center;
}
.btn-clock {
  border-radius: 0 12px 12px 0!important;
  font-size: 1.1125rem!important;
  background: #fff!important;
}

header i {
  font-size: 3rem;
}
.side span {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
}

  #clock {
    font-size: 1.5rem;
    text-align: center;
    animation: countUp 3s linear forwards;
    background-color: #12080a;
    color: #f5e8d0;
    padding: 0.5rem;
    border-radius: 12px 0 0 12px;
    letter-spacing: 4px;
    width: 9rem;
  }


#generateTime {
  animation: buttonClick 0.3s linear;
}

@keyframes countUp {
  0% {
      transform: scale(1);
  }
  100% {
      transform: scale(1);
  }
}

@keyframes buttonClick {
  0% {
      transform: scale(1);
  }
  50% {
      transform: scale(1.1);
  }
  100% {
      transform: scale(1);
  }
}
