@font-face {
  font-family: 'PicNic';
  src: url('fonts/PicNic-Regular.otf') format('opentype');
  font-display: swap;
}

h1, h2, h3, p, ul, li {
  margin: 0;
}

h1 {
  margin-bottom: 10px;
}

/* ==========================
   Global
========================== */
html {
  touch-action: none;
}

body {
  overflow: hidden;
  padding-top: 35px;
  margin: 0;

  font-family: 'PicNic', sans-serif;
  font-size: 14px;
  color: black;

  background-image: url("Images/Backgrounds/2.svg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  display: flex;
  flex-direction: column;
  align-items: center;

  position: relative;
  z-index: 0;
}

/* ==========================
   Image cluster
========================== */
.image-cluster {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.image-cluster img {
  position: absolute;
  opacity: 0;
  transition: opacity 0.6s ease;
  user-select: none;
  border: 1px solid black;
  box-shadow: 7px 7px rgba(0, 0, 0, 0.8);
  background: white;
}

/* ==========================
   Top bar
========================== */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: black;
  color: white;
  padding: 5px 15px;
  font-style: italic;
  letter-spacing: 5px;
  text-transform: uppercase;
  line-height: 25px;
  z-index: 10;
}

/* ==========================
   Main blocks
========================== */
.main-first, .main {
  margin-top: 30px;

  width: min(500px, 90vw);

  background: #1E4DD9;
  opacity: 0.90;

  border: 1px solid black;
  padding: 20px;

  position: relative;
  z-index: 10;
}

/* ==========================
   Links
========================== */
a,
a:visited {
  color: black;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: #FF0000;
}

/* ==========================
   Top bar links
========================== */
.top-bar a,
.top-bar a:visited {
  color: white;
}

.top-bar a:hover,
.top-bar a:focus {
  color: #FF0000;
}

/* ==========================
   Responsive
========================== */
@media (max-width: 700px), (orientation: portrait) {
  .main, .main-first, .footer {
    width: 90vw;
    margin: 20px auto 0;
    text-align: center;
  }
}

/* ==========================
   Background animation
========================== */
html {
  filter: hue-rotate(0deg) contrast(1.2) saturate(1.3);
  animation: hueShift 10s linear infinite;
}

@keyframes hueShift {
  from { filter: hue-rotate(0deg) contrast(1.2) saturate(1.3); }
  to { filter: hue-rotate(360deg) contrast(1.2) saturate(1.3); }
}