.container {
  width: 100%;     /* fills screen */
  max-width: 1200px; /* prevents it from stretching too wide on desktop */
  margin: 0 auto;  /* centers on larger screens */
}

@media (max-width: 600px) {
  body {
    font-size: 1rem;
    padding: 0.5em;
    height: auto;
    min-height: 100vh;
  }
  
  header, main, footer {
    padding: 0.5em;
  }
  
  img, .container {
    max-width: 100%;
    height: auto;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.2rem;
    margin-bottom: 1em;
  }
  
  .main-nav {
    flex-wrap: wrap;
    gap: 0.3em;
    padding: 0.5em;
  }
  
  .main-nav a {
    font-size: 0.9rem;
    padding: 0.4em 0.6em;
  }
  
  .btn {
    font-size: 1rem;
    padding: 0.5em 1.5em;
  }
  
  main {
    padding: 1em;
  }
  
  #floating-head {
    width: 250px !important;
  }
}

@font-face {
    font-family: 'Josefin Sans';
    src: url('/fonts/JosefinSans-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'DustyCircus';
    src: url('/fonts/DustyCircus.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}


.btn {
  margin: 0.5em auto;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1rem;
  padding: 0.5em 1.5em;
  border-radius: 8px;
  border: none;
  background: none;
  color: #222;
  display: block;
  transition: background 0.2s, color 0.2s;
}
.btn:hover {
  color: #e63946;
}


.main-nav {
  position: sticky;
  top: 0;
  display: flex;
  gap: 1em;
  justify-content: center;
  margin-bottom: 0;
  border-bottom: 1px solid #333;
  margin-top: -1em;
}
.main-nav a {
  color: #222;
  text-decoration: none;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: bold;
  font-size: 1.2rem;
  padding: 0.5em 1em;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover {
  color: #e63946;
}

body {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #000000;
  font-family: 'Josefin Sans', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  height: 100vh;
  text-align: left;
  font-size: 24px;
  padding-bottom: 20px;
  cursor: url('images/cursor.png'), default;
}

a, button, [role="button"], input[type="submit"], input[type="button"], .clickable {
  cursor: url('images/pointer.png'), pointer;
}

header {
  width: 100%;
  padding: 2rem 0 0.5rem 0;
  text-align: center;
}

main {
  flex: 1;
  text-align: center;
  padding: 2rem;
  font-size: 1.2rem;
  opacity: 0.8;
}

h1 {
      margin: 0;
      font-size: 5rem;
      letter-spacing: 2px;
      font-family: 'DustyCircus';
      margin-bottom: 0;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

h2 {
    display: block;
    font-size: 24px;
    font-weight: bold;
    font-family: 'Josefin Sans', sans-serif;
    margin-bottom: 2em;
    margin-top: -1em;
}

h3 {
    display: block;
    font-size: 14px;
    font-family: 'Josefin Sans', sans-serif;
    margin-bottom: 1em;
    margin-top: -0.4em;
}

p {
    margin: 1em 0 0 0;
    font-size: 18px;
    font-family: 'Josefin Sans', sans-serif;
}

html {
    height: 100%;
    cursor: url('images/cursor.png'), default;
}

.header {
  z-index: 99;
  position: sticky;
  top: 0;
  background: #fff;
  padding: 0;
  width: 100%;
}

@keyframes hoverBob {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

#floating-head {
  animation: hoverBob 4s ease-in-out infinite;
}
