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

body {
  font-family: "Poppins", sans-serif;
  background: rgb(0, 0, 0);
  color: #ffffff;
  margin: 0;
  overflow: hidden;
}

.navbar {
  background-image: url(/assets/bg-4.webp);
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 10vh;
  z-index: 1;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  border-radius: 4px;
}

.logo h2 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  -webkit-text-stroke: 0.3px black;
  cursor: grab;
}

.nav-links a {
  text-decoration: none;
  color: rebeccapurple;
  border: 2px solid black;
  padding: 6px 8px;
  border-radius: 6px;
  background-color: rgb(208, 231, 234);
  font-size: 18px;
  margin-left: 20px;
  transition: color 0.8s ease-in;
}

.nav-links a:hover {
  color: #ffffff;
  background-color: rgb(92, 0, 92);
  transition: color 0.6s ease-out;
  border: 3px solid wheat;
}

.dashboard {
  margin-top: 7vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
  background: black;
  /* background-image: url(assets/cool-background.png); */
  object-fit: cover;
}

.main-content {
  text-align: center;
  padding: 20px;
  flex: 1;
}

.header {
  margin-bottom: 10px;
}

.header h1 {
  font-size: 36px;
  font-weight: 800;
  color: wheat;
}

.btn-rise:hover {
  background-color: #6a5acd;
}

.controls {
  background-color: rgba(0, 0, 0, 0.741);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border: 1px solid orange;
}

.control-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 10px;
}

.control-group label {
  font-weight: bold;
  color: #ffffff;
  margin-right: 10px;
}

.controls select,
.controls input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: rgba(127, 123, 130, 0.854);
  color: #0c0c0c;
  font-family: "Poppins";
}

.percentage-container {
  display: flex;
  justify-content: space-between;
  background-color: rgba(48, 45, 45, 0.241);
  backdrop-filter: blur(8px);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 1px solid rgb(10, 99, 55);
}

.percentage-container div {
  flex: 2;
  text-align: center;
  color: #ffffff;
}

#riseValue {
  color: #09ff5f;
}

#fallValue {
  color: #ff0000;
}

.chart-container {
  background-color: rgba(0, 0, 0, 0.661);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 10px;
  width: 80vw;
  margin: 0 auto;
  flex: 1;
  height: 40vh;
  border: 1px solid whitesmoke;
}

@media (max-width: 768px) {
  .dashboard {
    padding: auto;
  }
  .header h1 {
    font-size: 28px;
  }

  .btn-rise {
    padding: 8px 16px;
  }

  .controls {
    flex-direction: row;
  }

  .controls .control-group {
    flex-direction: row;
  }

  .controls label,
  .controls select,
  .controls input {
    flex: 1;
    margin-right: 0;
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {
  .nav-links a {
    padding: 2px;
    text-align: center;
    justify-content: center;
    font-size: 12px;
    margin: 2px;
    display: flex;
  }

  .dashboard {
    width: 100vw;
  }
  .main-content {
    width: 100vw;
  }
  .header h1 {
    font-size: 20px;
  }

  .btn-rise {
    padding: 6px 12px;
  }
  .logo h2 {
    font-size: 19px;
  }
  .nava {
    font-size: 15px;
  }

  .controls {
    flex-direction: column;
  }
  .controls .control-group {
    flex-direction: column;
  }
  .chart-container {
    height: 30vh;
  }
}

@media (max-width: 1200px) {
  .dashboard {
    align-items: center;
    justify-content: center;
    padding-top: 2%;
  }
  .btn-rise {
    padding: 8px 16px;
  }
}

@media (max-width: 1024px) {
  .header h1 {
    font-size: 32px;
  }
}
