html, body {
  width: 100%;
  height: 100dvh;
}

* {
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'Norse';
  src: url('/webfonts/Norse-KaWl.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Norse';
  src: url('/webfonts/NorseBold-2Kge.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

body {
  background-image: url("/img/rb.png");
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;

  font-family: 'Norse', sans-serif;
  color: #89CFF0; /* Lighter, softer runic blue */
  text-shadow: 0 0 10px #89CFF0, 0 0 20px #1E90FF; /* Magical glow effect */

  display: flex;
  flex-direction: column;
}

/* Base container - full width by default */
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  display: flex;
  flex-direction: column;

  position: relative;
  flex: 1;
}

/* On larger screens, limit the width */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  .footer-button {
    padding-block: 35px !important;
  }
}

@media (min-width: 992px) {
  .lg\:pt-5 {
    padding-top: 5rem;
  }

  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Utility class to center text */
.text-center {
  text-align: center;
}

.text-bold {
  font-weight: bold;
}

.text-xl {
  font-size: 7rem;
}

.rtext {
  letter-spacing: 4px;
  text-align: center;
  text-transform: uppercase;
}

viking-divider {
  font-family: 'Cinzel', serif;
  font-size: 18px; /* smaller size for subtlety */
  color: #89CFF0;
  text-shadow: 0 0 4px #89CFF0, 0 0 8px #1E90FF;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  margin: 30px 0;
  letter-spacing: 6px;
  position: relative;
}

viking-divider:before {
  content: '';
  display: inline-block;
  width: 100%;
  height: 1px;
  margin-top: -15px;
  background-color: #89CFF0;
  box-shadow: 0 0 4px #89CFF0, 0 0 8px #1E90FF;
  vertical-align: middle;
  position: absolute;
  left: 0;
  top: 18px;
}

viking-divider:after {
  content: '';
  display: inline-block;
  width: 100%;
  height: 1px;
  margin-top: -15px;
  background-color: #89CFF0;
  box-shadow: 0 0 4px #89CFF0, 0 0 8px #1E90FF;
  vertical-align: middle;
  position: absolute;
  left: 0;
  top: 36px;
}

.viking-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  font-family: 'Cinzel', serif;
  font-size: 20px !important;
  text-align: center;
}

.viking-list li {
  margin: 12px 0;
  position: relative;
}

.viking-list a {
  position: relative;
  text-decoration: none;
  color: #89CFF0;
  text-shadow: 0 0 4px #89CFF0, 0 0 8px #1E90FF;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  display: inline-block;
  padding: 0 8px;
}

.viking-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 50%;
  width: 0;
  height: 2px;
  top: 55%;
  background-color: #89CFF0;
  box-shadow: 0 0 4px #89CFF0, 0 0 8px #1E90FF;
  transition: width 0.4s ease;
  transform: translateY(-50%);
  z-index: 1;
}

.viking-list a:hover {
  color: #1E90FF;
  text-shadow: 0 0 8px #1E90FF, 0 0 12px #89CFF0;
}

.viking-list a:hover::after {
  width: 100%;
}

.viking-list .rune {
  margin-right: 8px;
  color: inherit; /* Make rune inherit text color */
  font-size: 20px;
  text-shadow: inherit; /* Inherit the glowing effect */
  position: relative;
}


.viking-footer {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  justify-content: center;
  position: relative;
  bottom: 0;
}

.footer-button {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 1 1 24%; /* LESS than 25% */
  max-width: 24%;
  min-width: 100px;
  padding: 14px;
  color: #89CFF0;
  font-size: 18px;
  border: 2px solid #89CFF0;
  text-decoration: none;
  text-align: center;
  transition: background 0.3s, color 0.3s;
}

.footer-button i {
  font-size: 24px;
  margin-right: 8px;
}

.footer-button:hover {
  background: #89CFF0;
  color: #0b0c10;
}

.footer-text {
  display: inline;
}

/* Mobile behavior */
@media (max-width: 768px) {
  .footer-button {
    flex: 1 1 24%;
    max-width: 24%;
  }
  .footer-text {
    display: none; /* Hide text on small screens */
  }
  .footer-button i {
    margin-right: 0;
  }
}

main {
  overflow: hidden;
  flex: 1 0 auto
}
