/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
  font-family: 'Nunito', sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  color: #fefefe;
}

#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

main#content {
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  gap: 1.25rem;
}

#datetime {
  font-size: clamp(1.25rem, 3vw, 2.5rem);
  line-height: 1.3;
}

#weather {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

#weather-icon img {
  width: 64px;
  height: 64px;
}

blockquote {
  max-width: 90vw;
  font-style: italic;
  line-height: 1.4;
  font-size: clamp(1rem, 4vw, 2.25rem);
}

footer {
  z-index: 1;
  text-align: center;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  color: #cccccc;
}

footer a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

footer a:hover {
  text-decoration: underline;
}

/* ===============================
   Custom text-selection palette
   =============================== */

/* 1) Declare a couple of CSS vars so you can tweak quickly */
:root {
  --select-bg: rgba(22, 22, 22, 0.651); /* soft white glow */
  --select-fg: #ffffff;                   /* keep text readable */
}

/* 2) Cross-browser selection rules */
::selection {
  background: var(--select-bg);
  color: var(--select-fg);
}

::-moz-selection {                        /* Firefox needs its own */
  background: var(--select-bg);
  color: var(--select-fg);
}
