@font-face {
  font-family: 'Super Black SF';
  src: url('/Super_Black_SF.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /*--bg-color: #050505; */
  --bg-color: #1c1c17;
  --text-color: #ffffff;
  --accent-color: #f0801a;
  --font-heading: 'Super Black SF', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  overflow-x: hidden;
  /* Hide default horizontal scrollbar */
  overscroll-behavior: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
body {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.scroll-container {
  /* This container will be pinned */
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.horizontal-scroll {
  height: 100%;
  width: 100%;
  display: flex;
  /* We don't set width here, the content defines it. 
     But we will use JS/GSAP to pin and translate */
}

.pin-wrap {
  height: 100%;
  display: flex;
  flex-wrap: nowrap;
  will-change: transform;
}

.panel {
  width: 100vw;
  /* Each panel takes full viewport width usually, or at least generous space */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 2rem;
  position: relative;
}

.intro-panel {
  height: 100vh;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* force horizontal centering of children */
}

.intro-panel .main-logo {
  max-width: 60%;
  max-height: 40vh;
  width: auto;
  height: auto;
  margin-bottom: 2rem;
  object-fit: contain;
  /* Ensure smooth 3D transforms and good performance on mobile */
  will-change: transform;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.lang-switcher {
  position: fixed;
  /* Always visible and independent of page scaling */
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lang-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 0.5rem 1rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 1px;
}

.lang-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.lang-btn.active {
  background: var(--accent-color);
  color: var(--bg-color);
  box-shadow: 0 2px 10px rgba(240, 128, 26, 0.4);
}

@media (max-width: 480px) {
  .lang-switcher {
    top: 0.8rem;
    left: 1rem;
    right: auto;
    transform: none;
    padding: 2px;
    height: 1.8rem;
    align-items: center;
  }

  .lang-btn {
    padding: 0 0.8rem;
    height: 100%;
    display: flex;
    align-items: center;
    line-height: 1;
    font-size: 0.75rem;
  }
}

.intro-badges {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  z-index: 10;
}

.intro-badge {
  height: 80px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(240, 128, 26, 0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.intro-badges a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.intro-badge:hover,
.intro-badges a:hover .intro-badge {
  transform: scale(1.1);
  filter: drop-shadow(0 0 15px rgba(240, 128, 26, 0.6));
}

.badge-separator {
  width: 2px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.4);
}

.badges-dark .intro-badge {
  filter: brightness(0) opacity(0.8);
}

.badges-dark .intro-badge:hover,
.badges-dark a:hover .intro-badge {
  filter: brightness(1) opacity(1) drop-shadow(0 0 15px rgba(240, 128, 26, 0.6));
}

.badges-dark .badge-separator {
  background-color: rgba(0, 0, 0, 0.2);
}

/* Desktop positioning for intro badges */
@media (min-width: 769px) {
  .intro-badges:not(.badges-dark) {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
  }

  .badges-dark {
    position: absolute;
    top: 3.5rem;
    right: 3.5rem;
  }
}

/* Desktop: smaller logo. Mobile: larger and more prominent */
@media (max-width: 480px) {
  .intro-panel .main-logo {
    max-width: 92%;
    max-height: 70vh;
    margin-bottom: 1.5rem;
  }

  .intro-badges {
    position: absolute;
    top: 3.5rem;
    /* Posunuté nižšie kvôli jazykovému switchu */
    justify-content: center;
    width: 100%;
    left: 0;
  }

  .intro-badge {
    height: 45px;
  }

  .badge-separator {
    height: 30px;
  }
}

/* Mobile: center and raise the "scroll to explore" hint so it's visible */
@media (max-width: 480px) {

  /* stronger selector to ensure centering inside intro panel */
  .intro-panel .scroll-hint,
  .panel.intro-panel .scroll-hint {
    position: absolute !important;
    bottom: 10vh !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    font-size: 1.4rem;
    text-align: center;
    z-index: 20;
    white-space: nowrap;
    max-width: 90vw;
    padding: 0 0.6rem;
    box-sizing: border-box;
    display: inline-block;
  }
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  right: 3rem;
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: var(--accent-color);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.5;
  }
}

.history-panel {
  width: 80vw;
  /* Slightly less than full width to peek next content */
}

.panel-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: 1400px;
  width: 100%;
}

.image-wrapper {
  flex: 1;
  height: 60vh;
  overflow: hidden;
  border-radius: 4px;
  position: relative;
  /* Filter for gritty look */
  filter: grayscale(100%) contrast(120%);
  transition: filter 0.5s ease;
}

.image-wrapper:hover {
  filter: grayscale(0%) contrast(100%);
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.text-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Lift headings and paragraphs a bit so content is fully visible */
.panel .text-wrapper {
  transform: translateY(-3vh);
}

.year {
  font-family: var(--font-heading);
  font-size: 8rem;
  color: transparent;
  -webkit-text-stroke: 4px var(--accent-color);
  opacity: 0.5;
  margin-bottom: -2rem;
  z-index: -1;
  display: block;
}

.text-wrapper h2 {
  font-family: var(--font-heading);
  font-size: 4rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.text-wrapper p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #ccc;
  max-width: 50ch;
}

/* Make <pre> visually match paragraph formatting (keep pre-wrap for whitespace) */
pre {
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.6;
  color: #ccc;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0 0 1rem 0;
  white-space: pre-wrap;
  /* preserve line breaks but allow wrapping */
  word-break: break-word;
}

.outro-panel {
  background-color: var(--accent-color);
  color: var(--bg-color);
  flex-direction: column;
}

.outro-panel h2 {
  font-family: var(--font-heading);
  font-size: 8vw;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .panel-content {
    flex-direction: column;
    text-align: center;
    gap: 4rem;
    /* Increased inner gap */
  }

  /* Slightly smaller lift on mobile to prevent overlap */
  .panel .text-wrapper {
    transform: translateY(-10vh);
  }

  /* Add extra space between panels on mobile to prevent overlap */
  .panel {
    margin-right: 30vw;
    width: 100vw;
    /* Ensure fixed width */
  }

  /* Remove margin from the last horizontal panel */
  .panel.outro-panel {
    margin-right: 0;
  }

  /* Make sure the last panel doesn't have extra margin if not needed, 
     but actually for horizontal scroll flow it might be fine. 
     Or we can target specific panels. */

  .btn-register {
    font-size: 1.5rem;
    padding: 1rem 2rem;
  }

  .footer-year {
    font-size: 2rem;
    margin-top: 1rem;
  }

  .image-wrapper {
    height: 40vh;
    width: 100%;
  }

  .text-wrapper {
    align-items: center;
  }

  .year {
    font-size: 2.8rem;
    margin-bottom: -1rem;
  }

  .text-wrapper h2 {
    font-size: 1.8rem;
  }

  .text-wrapper p {
    font-size: 1rem;
  }

  /* Specific mobile fix for the floating images container */
  .image-wrapper.image-grid {
    height: 50vh;
    /* More height for stacked images */
    min-height: 450px;
    /* Ensure minimum space */
    margin-bottom: 4rem;
    /* More space between images and text */
  }


}

/* Vertical Footer Section */
.vertical-footer {
  width: 100%;
  min-height: 50vh;
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  border-top: 1px solid #333;
}

/* allow absolutely positioned footer children */
.vertical-footer {
  position: relative;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.social-links {
  display: flex;
  gap: 2rem;
  margin-top: 5rem;
}

.social-icon {
  color: var(--text-color);
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

.social-icon svg {
  width: 48px;
  height: 48px;
}

/* Force social icons to render white (override global anchor color) */
.social-icon {
  color: var(--text-color) !important;
}

.social-icon svg,
.social-icon svg * {
  stroke: var(--text-color) !important;
}

.btn-register {
  font-family: var(--font-heading);
  font-size: 2rem;
  text-transform: uppercase;
  padding: 1rem 3rem;
  background-color: transparent;
  color: var(--accent-color);
  border: 3px solid var(--accent-color);
  border-radius: 50px;
  /* Pill shape */
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 1px;
  margin-top: 5rem;
  text-align: center;
  /* ensure text inside the button is centered */
}

/* Safety: ensure intro button is centered even if widths change */
.intro-panel .btn-register {
  margin-left: auto;
  margin-right: auto;
}

/* Stronger centering fallback in case other rules override on small devices */
@media (max-width: 480px) {
  .intro-panel .btn-register {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 85% !important;
    max-width: 420px !important;
    padding: 1rem 1.2rem !important;
    margin: 2.5rem auto !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  /* Global: ensure all primary button-like elements center their text */
  .btn-register,
  .btn-rules,
  .btn-join,
  .btn-back,
  .btn,
  button,
  a.button {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
  }

  @media (max-width: 480px) {

    .btn-register,
    .btn-rules,
    .btn-join,
    .btn-back,
    .btn,
    button,
    a.button {
      width: 85% !important;
      max-width: 420px !important;
      margin: 0.75rem auto !important;
      box-sizing: border-box !important;
    }
  }
}

.btn-register:hover {
  background-color: var(--accent-color);
  color: var(--bg-color);
  box-shadow: 0 0 20px rgba(240, 128, 26, 0.5);
}

/* Pravidlá button (used on outro panel) */
.btn-rules {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  /* text-transform: uppercase; */
  padding: 0.8rem 2rem;
  background-color: var(--accent-color);
  color: var(--bg-color);
  border: 0;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block;
  margin: 1.5rem 0;
  text-decoration: none;
}

/* Ensure .btn-rules text color is not overridden by global anchor rules */
.btn-rules {
  color: var(--bg-color) !important;
}

/* Ensure rule/register buttons never show underlines (including hover/focus) */
.btn-register,
.btn-rules {
  text-decoration: none !important;
}

.btn-register:hover,
.btn-register:focus,
.btn-rules:hover,
.btn-rules:focus {
  text-decoration: none !important;
}

.btn-rules:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(240, 128, 26, 0.25);
}

/* Rules page styles */
.rules-page {
  min-height: 100vh;
  padding: 4rem 2rem;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Scale all elements on rules and register pages to 125% on larger screens only; keep mobile at normal size */
@media (min-width: 769px) {

  .rules-page,
  .register-page {
    transform: scale(1.25);
    transform-origin: top center;
    -webkit-transform: scale(1.25);
    -webkit-transform-origin: top center;
  }
}

.rules-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.rules-logo {
  max-width: 320px;
  width: 40%;
  height: auto;
  object-fit: contain;
}

.rules-num {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: transparent;
  -webkit-text-stroke: 2px var(--accent-color);
  opacity: 0.5;
}

.rules-title {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  text-transform: uppercase;
  margin-top: -1rem;
}

/* Registration page styles */
.register-page {
  min-height: 100vh;
  padding: 3rem 2rem;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.register-header {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  /* Ensure absolute children like .lang-switcher stay inside */
}

@media (max-width: 480px) {
  .register-header {
    padding-top: 2.2rem;
    /* Create clear space under the fixed switcher */
  }
}

.register-header .rules-logo {
  max-width: 260px;
}

.register-header h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  margin: .5rem 0;
}

.register-header .lead {
  color: #ccc;
  max-width: 800px;
}

.register-content {
  max-width: 900px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.register-info {
  background: rgba(255, 255, 255, 0.02);
  padding: 1.2rem;
  border-radius: 8px;
}

.register-form {
  background: rgba(255, 255, 255, 0.02);
  padding: 1.2rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.register-form label {
  font-size: 0.95rem;
  color: #ddd;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.register-form input,
.register-form textarea {
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  border: 1px solid #333;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-color);
}

.form-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 0.6rem;
}

.register-result {
  margin-top: 0.8rem;
  color: #bfe3b4;
  display: none;
}

.register-result.visible {
  display: block;
}

@media (max-width: 900px) {
  .register-content {
    grid-template-columns: 1fr;
  }
}

/* Ensure submit button is readable and not smaller than surrounding text on phones */
@media (max-width: 700px) {

  .form-actions .btn-register,
  .form-actions button[type="submit"] {
    width: 100% !important;
    max-width: 420px !important;
    font-size: 1rem !important;
    padding: 0.9rem 1rem !important;
    line-height: 1.2 !important;
    box-sizing: border-box !important;
  }
}

/* Mobile: make REGISTER NOW act like a centered button */
@media (max-width: 480px) {
  .btn-register {
    display: block;
    width: 85%;
    max-width: 420px;
    margin: 2.5rem auto;
    text-align: center;
  }
}

/* Ensure primary buttons are centered on small screens */
@media (max-width: 480px) {

  .btn-register,
  .btn-rules,
  .btn-join,
  .btn-back {
    display: block;
    width: 85%;
    max-width: 420px;
    margin: 0.75rem auto;
    text-align: center;
    box-sizing: border-box;
  }
}

.rules-content {
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.rules-list {
  list-style: disc;
  padding-left: 1.2rem;
  color: #ddd;
  font-size: 1.2rem;
  line-height: 1.8;
}

.btn-back {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  text-transform: uppercase;
  padding: 0.6rem 1.6rem;
  background-color: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  border-radius: 40px;
  text-decoration: none;
}

@media (max-width: 768px) {
  .rules-num {
    font-size: 2rem;
  }

  .rules-title {
    font-size: 2rem;
  }

  .rules-logo {
    width: 60%;
  }
}

/* Ensure rules page logo matches register page sizing */
.rules-header .rules-logo {
  max-width: 260px;
  width: auto;
}

/* Image Grid - Stacked with Hover Interaction */
.image-grid {
  display: block;
  position: relative;
  overflow: visible;
}

.image-grid img {
  position: absolute;
  width: 65%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 4px solid #fff;
  transition: all 0.3s ease;
  /* Smooth transition for transform and z-index */
  cursor: pointer;
}

/* First image positioning */
.image-grid img:nth-child(1) {
  top: 5%;
  left: 0;
  z-index: 1;
  transform: rotate(-3deg);
}

/* Second image positioning */
.image-grid img:nth-child(2) {
  bottom: 5%;
  right: 0;
  z-index: 2;
  transform: rotate(5deg);
}

/* Hover effects - Specific to keep rotation and force z-index */
.image-grid img:nth-child(1):not(:only-child):hover {
  z-index: 100;
  transform: scale(1.05) rotate(-3deg);
}

.image-grid img:nth-child(2):not(:only-child):hover {
  z-index: 100;
  transform: scale(1.05) rotate(5deg);
}

.image-grid img:nth-child(3):not(:only-child):hover {
  z-index: 100;
  transform: scale(1.05) rotate(-2deg);
}

/* Third image positioning */
.image-grid img:nth-child(3) {
  top: 40%;
  left: 20%;
  /* Middle-ish */
  z-index: 3;
  transform: rotate(-2deg);
}

/* Single image positioning (override others) */
.image-grid img:only-child {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  width: 80%;
  z-index: 5;
}

/* Keep single images static on hover (no scaling) */
.image-grid img:only-child:hover {
  transform: translate(-50%, -50%) rotate(0deg);
  z-index: 100;
}

/* Sponsors Marquee */
.sponsors-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  padding: 1rem 0 2rem 0;
  /* Extra padding at bottom */
}

.sponsors-marquee {
  display: flex;
  width: max-content;
  /* Fit content to allow scrolling */
  animation: scroll 30s linear infinite;
  animation-direction: reverse;
}

.sponsor-logo {
  height: 60px;
  width: auto;
  margin: 0 2rem;
  /* Darken logos but preserve detail */
  /* Stronger darkening while preserving detail */
  filter: grayscale(100%) brightness(0.1) contrast(0.8);
  opacity: 1;
  transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.sponsor-item:hover .sponsor-logo {
  /* On hover restore visibility while keeping size subtle */
  filter: none;
  opacity: 1;
  transform: scale(1.03);
}

/* Link wrapper around sponsor logos */
.sponsor-link {
  display: inline-block;
  text-decoration: none;
  line-height: 0;
  /* collapse gaps around inline images */
  cursor: pointer;
}

/* Non-clickable wrapper for sponsor images when anchors are removed */
.sponsor-item {
  display: inline-block;
  line-height: 0;
  /* collapse gaps around inline images */
  cursor: default;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }

  /* Move half of the duplicated content */
}

/* Participants marquee (names) - mimics sponsors marquee */
.participants-container {
  width: 100%;
  background: var(--bg-color);
  /*border-top: 1px solid #222;*/
  padding: 0.6rem 0;
  overflow: hidden;
}

.participants-marquee {
  display: flex;
  gap: 1.2rem;
  width: max-content;
  animation: scroll 36s linear infinite;
  align-items: center;
}

.participant-name {
  color: #cfcfcf;
  font-family: 'Bebas Neue', var(--font-heading);
  font-size: 1.05rem;
  white-space: nowrap;
  padding: 0 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.participant-name:hover {
  color: var(--accent-color);
}

/* Footer Year */
.footer-year {
  font-family: var(--font-heading);
  font-size: 7rem;
  color: #fff;
  margin-top: 2rem;
  line-height: 1;
}

/* Make footer year smaller on narrow phones */
@media (max-width: 480px) {
  .footer-year {
    font-size: 2.4rem;
    margin-top: 1rem;
  }
}

/* Join button that scrolls to social icons */
.btn-join {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  padding: 0.8rem 1.8rem;
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--accent-color);
  border-radius: 40px;
  text-decoration: none;
  margin-top: 1rem;
  transition: all 0.25s ease;
}

.btn-join:hover {
  background: var(--accent-color);
  color: var(--bg-color);
  transform: translateY(-3px);
}

/* Plain join text in footer (not a button) */
.join-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--bg-color);
  margin-top: 8rem;
  margin-bottom: 0.6rem;
  cursor: pointer;
  text-decoration: none;
}

.join-text:hover {
  color: #ffffff;
}

/* Site credit that swaps text on hover/focus */
.site-credit {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-color);
  opacity: 0.9;
  margin-top: 0.6rem;
}

.site-credit .credit-hover {
  display: none;
}

.site-credit:hover .credit-default,
.site-credit:focus .credit-default {
  display: none;
}

.site-credit:hover .credit-hover,
.site-credit:focus .credit-hover {
  display: inline;
}

.site-credit {
  outline: none;
}

/* Hover color/glow effect for credit */
.site-credit,
.site-credit span {
  transition: color 220ms ease, text-shadow 220ms ease, transform 200ms ease;
}

.site-credit:hover {
  transform: translateY(-2px);
}

.site-credit .credit-hover {
  color: inherit;
}

.site-credit:hover .credit-hover {
  color: var(--accent-color);
  text-shadow: 0 0 12px rgba(240, 128, 26, 0.45);
}

/* position credit on the right edge of the footer */
.site-credit {
  position: absolute;
  right: 1.6rem;
  bottom: 1rem;
  text-align: right;
}

/* Email link in footer */
.site-email {
  display: block;
  color: var(--text-color);
  text-decoration: none;
  margin-top: 0.1rem;
  font-size: 1.2rem;
  opacity: 0.9;
}

.site-email:hover {
  color: var(--accent-color);
}

@media (max-width: 768px) {
  .site-credit {
    position: static;
    margin-top: 0.6rem;
    text-align: center;
  }
}

/* Make regular links use the site accent (orange) instead of browser defaults */
a,
a:link {
  color: var(--accent-color);
  text-decoration: none;
}

a:visited {
  color: var(--accent-color);
}

a:hover,
a:focus {
  color: #ffffff;
  text-decoration: underline;
}