html {
  overflow-y: scroll;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  overflow-x: hidden
}
/* Top row of buttons*/
.top-nav {
  position: relative;
  width: 100vw;
  height: 80px;
  padding-left: 10px;
  padding-right: 20px;
  background-color: rgba(44, 45, 50, 0.95);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  z-index: 9999;
}

.home-button {
  height: 80px; /* same as nav height */
  display: flex;
  align-items: center;
  background-color: rgba(192, 192, 192, 0.75);
  border-radius: 20px;
  padding: 0;
}

.home-button a {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0;
  border-radius: 20px;
}

.home-button-logo {
  height: 100%; 
  width: auto;
  display: block;
}

.auth-buttons {
  padding: 10px 0;
  margin-right: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.login-button-link button,
.signup-button-link button {
  font-size: clamp(14px, 1.5vw, 18px);
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

/* Specific button colors */
.login-button-link button {
  background-color: #1976d2;
  color: white;
}

.login-button-link button:hover {
  background-color: #125ca1;
}

.signup-button-link button {
  background-color: #e3d21d;
  color: white;
}

.signup-button-link button:hover {
  background-color: #b0a532;
}

/*                   Welcome Text                                                 */
.welcome-text {
  font-size: clamp(14px, 1.5vw, 18px);
  color: white;
  background-color: #1976d2;
  padding: 10px 20px;
  border-radius: 10px;
}

.logout-button {
  font-size: clamp(14px, 1.5vw, 18px);
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background-color: #ff0000;
  color: white;
  transition: background-color 0.2s ease;
}

.logout-button:hover {
  background-color: #a62323;
}

/*#########################################################################################*/
/*                   login signup form                                                */
.general-form-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: calc(100vh - 100px); /* if needed */
}

.general-form {
  background-color: rgba(255, 255, 255, 0.85);
  padding: 5vw;
  border-radius: clamp(20px, 3vw, 40px);
  width: clamp(300px, 40vw, 2000px);
  text-align: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

.general-form h1 {
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 20px;
}

.general-form input {
  font-size: clamp(14px, 2vw, 18px);
  padding: 12px;
  width: 100%;
  border-radius: 10px;
  border: 1px solid #ccc;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.general-form button {
  font-size: clamp(14px, 2vw, 18px);
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background-color: #1976d2;
  color: white;
  margin: 10px 5px;
  transition: background-color 0.2s ease;
}

.general-form button:hover {
  background-color: #125ca1;
}
/*                   only home button                                                */





.home-button-not-nav {
  position: fixed; /* so it sticks to the top left */
  top: 0;
  left: 0;
  height: 80px;
  display: flex;
  align-items: center;
  background-color: rgba(192, 192, 192, 0.75);
  border-bottom-right-radius: 20px;
  z-index: 1000;
}

.home-button-not-nav a {
  height: 100%;
  display: flex;
  align-items: center;
  border-radius: 20px;
  padding: 0; /* match nav bar logo */
}

.home-button-not-nav .home-button-logo {
  height: 100%;
  width: auto;
  display: block;
  border-radius: 20px;
}






/*                   fonts                                                 */
.subtle {
  color: #cccccc;
  font-size: clamp(16px, 1.2vw, 22px);
  text-align: center;
  display: block;
  margin-bottom: 5px;
}

.smaller-value {
  color: white;
  font-size: clamp(16px, 1.2vw, 22px);
  text-align: center;
  display: block;
}

.value {
  font-size: clamp(24px, 2vw, 40px);
  font-weight: bold;
  color: white;
  text-align: center;
}

.higher-value {
  font-size: clamp(30px, 2vw, 50px);
  font-weight: bold;
  color: white;
  text-align: center;
}

.higher-label {
  font-size: clamp(28px, 2vw, 48px);
  font-weight: bold;
  color: #ff0000;
  text-align: center;
  margin-bottom: 25px;
}

@media (max-width: 768px) {
  .top-nav {
    height: 60px;
    padding-left: 6px;
    padding-right: 10px;
  }

  .home-button {
    height: 60px;
  }

  .home-button-logo {
    height: 100%;
  }

  .auth-buttons button,
  .welcome-text,
  .logout-button {
    font-size: 12px;
    padding: 6px 12px;
  }
}