@font-face {
  font-family: 'NewEdge666';
  src: url('../../assets/font/NewEdge666-RegularRounded.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* full viewport height */
}

.content {
  flex: 1; /* pushes footer down */
}

body {
  font-family: Arial, sans-serif;
  background-color: #DCCCBD;
}

header {
  position: relative;
  width: 100%;
  min-height: 80px; 
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  flex-wrap: wrap;
}

.custom-header {
  background-color: #002a1d;
  padding: 20px 10px; /* default for desktop */
  height: auto; 
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-header img {
  height: auto;
  max-height: 60px;
  max-width: 100%;
}

header span {
  font-size: 0.8rem;
  font-weight: bold;
  margin-left: auto;
  white-space: nowrap;
}

.custom-header .container {
  padding-left: 0;
  padding-right: 0;
}

/* Logo styling */
.logo {
  position: relative;
  z-index: 3;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.8);
  padding: 2px 4px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.logo-img {
  max-height: 100px;
  height: auto;
  width: auto;
}

.custom-body {
  background-color: #DCCCBD
}

footer {
  background-color: #002a1d; /* match your header */
}

footer .container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap; 
}

.footer-icon {
  max-height: 80px;
  width: auto;
  object-fit: contain;
}

.name-btn {
  color: black;
  text-decoration: underline;
}

.name-btn:hover {
  color: gray;
  text-decoration: underline;
}

.title-header {
  font-family: 'NewEdge666', sans-serif;
  font-size: 48px;
  font-weight: 600;
  text-align: center;
  margin: 0 auto;
}

.last-updated {
  font-size: 1rem;
  font-weight: bold;
  white-space: nowrap;
}

.name-clicked {
  animation: clickPop 0.3s ease;
}

@keyframes clickPop {
  0%   { transform: scale(1); background-color: #ffff99; } /* light yellow */
  50%  { transform: scale(1.2); background-color: #EAB666; } /* orange */
  100% { transform: scale(1); background-color: transparent; }
}

@media (max-width: 768px) {
  header {
    height: auto;   /* let content size naturally */
    padding: 1px;  /* reduce padding */
    text-align: center;
  }

  .custom-header img.logo-img {
    max-height: 60px;         /* shrink logo */
    margin-bottom: 1px;
  }

  .title-header {
    font-size: 1.4rem;        /* smaller font for title */
    margin: 2px 0;
  }

  .last-updated {
    font-size: 0.6rem;        /* shrink "Last updated" text */
    margin-top: 2px;
  }

  .custom-header .d-flex {
    flex-direction: column;   /* stack logo, title, updated text vertically */
    align-items: center;      /* center everything */
    text-align: center;
  }

  footer {
    padding: 12px 0;   /* top/bottom space */
  }

  footer .container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-wrap: nowrap !important;   /* no wrapping */
    overflow-x: auto !important;    /* allow scroll instead of wrap */
  }

  .footer-icon {
    max-height: 60px;
    width: auto;
    flex: 0 0 auto;  /* don’t wrap */
  }
  
  footer .container img.footer-icon {
    max-height: 60px !important;
    width: auto !important;
    flex: 0 0 auto !important; /* each logo stays side by side */
  }
}

#scoreTable td:first-child,
#scoreTable th:first-child {
  text-align: left;
  white-space: nowrap;
}