@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 {
  height: 100%;
  touch-action: none;

  filter: hue-rotate(0deg) contrast(1.2) saturate(1.3);
  animation: hueShift 10s linear infinite;
}

body {
  height: 100%;
  margin: 0;
  overflow: hidden;

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

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

  position: relative;
}

/* ==========================
   Scrollable content
========================== */

.content {
    position: fixed;
    top: 35px;
    bottom: 0px;   /* espace en bas */
    left: 0;
    right: 0;

    overflow-y: auto;

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

/* ==========================
   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: 100;
}

/* ==========================
   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;

  box-sizing: border-box;
}

.main-first img,
.main img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 15px;
}

/* ==========================
   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;
}

/* ==========================
   Footer
========================== */

.footer {
  height: 35px;
  width: 100%;

  flex-shrink: 0;
}

/* ==========================
   Responsive
========================== */

@media (max-width: 700px), (orientation: portrait) {

  .main,
  .main-first {
    width: 90vw;
    margin-top: 20px;
    text-align: center;
  }

}

/* ==========================
   Background animation
========================== */

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

  to {
    filter: hue-rotate(360deg) contrast(1.2) saturate(1.3);
  }
}