/* CSS Reset to ensure consistent behavior */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  overflow-x: hidden;
  min-width: 100%;
  max-width: 100%;
}

body {
  width: 100%;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif;
  color: #fff8f0;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Page specific backgrounds */
body.homepage {
  background-color: #5f17ff;
}

body.gameplay {
  background: linear-gradient(to bottom, #1c1c1c, #5f17ff);
  text-align: center;
}

body.scoring {
  background: linear-gradient(135deg, #1c1c1c, #5f17ff);
}

/* Mobile-first navbar */
.navbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 10px;
  width: 100%;
  box-sizing: border-box;
  gap: 15px;
}

.logo {
  font-size: 8vw;
  font-weight: 600;
  text-align: center;
}

.nav-links {
  display: flex;
  gap: 20px;
  font-size: 5vw;
  margin: 10px 0;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: #fff8f0;
}

.social-icons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.social-icons img, .social-icons svg {
  height: 24px;
  width: 24px;
  cursor: pointer;
}

/* Desktop navbar */
@media (min-width: 769px) {
  .navbar {
    flex-direction: row;
    justify-content: space-between;
    padding: 20px 40px;
  }
  
  .logo {
    font-size: 4vw;
    text-align: left;
  }
  
  .nav-links {
    font-size: 3vw;
    margin-left: auto;
    margin-right: 40px;
    margin-top: 0;
    margin-bottom: 0;
  }
  
  .social-icons {
    justify-content: flex-end;
  }
}
