html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "IBM Plex Mono", monospace;
  margin: 0;
  background-color: #222831;
  color: #eeeeee;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #393e46;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 60px);
}

.login-box {
  background-color: #393e46;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  width: 300px;
  border: 1px solid #333;
}

.login-box h2 {
  text-align: center;
  color: #00adb5;
  margin-bottom: 20px;
}

form {
  width: 100%;
  box-sizing: border-box;
}

.input-group {
  margin-bottom: 15px;
  width: 100%;
  box-sizing: border-box;
}

.input-group input {
  width: 100%;
  padding: 12px;
  background-color: #222831;
  color: #eeeeee;
  border: 1px solid #444;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 14px;
}

.input-group input::placeholder {
  color: #888;
}

.input-group input:focus {
  outline: none;
  border-color: #00adb5;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.login-button {
  width: 100%;
  padding: 12px;
  background-color: transparent;
  color: #00adb5;
  border: 1px solid #00adb5;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
  font-size: 14px;
  font-weight: bold;
  margin-top: 10px;
}

.login-button:hover {
  background-color: #00adb5;
  color: #121212;
}

/* Styling for the navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #393e46;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  padding: 20px 20px;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  color: #00adb5;
}

/* Styling for the logout button */
.logout-container {
  display: flex;
  align-items: center;
}

#logout-button {
  border: 1px solid #00adb5;
  padding: 6px 10px;
  background-color: transparent;
  color: #00adb5;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  margin-right: 30px;
}

#logout-button:hover {
  background-color: #00adb5;
  color: black;
}

/* Main Content */
.main-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 100px 0 0 0;
}

.text-container {
  background-color: #393e46;
  border: 1px solid #333;
  min-width: 90%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.text-container h1 {
  padding: 20px;
}

#fullname {
  font-size: larger;
  font-weight: bold;
}

#fullname,
#auditRatio {
  color: #00adb5;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  /* max-width: 80%; */
  min-width: 90%;
  width: 100%;
  margin-bottom: 20px;
}

.grid-item:nth-child(2) {
  overflow: auto;
}

.grid-item {
  background-color: #393e46;
  border: 1px solid #333;
  padding: 20px;
  min-width: 400px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s, box-shadow 0.3s;
}
.grid-item:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.7);
}
.grid-item h2 {
  color: #00adb5;
  padding-bottom: 20px;
}
.grid-item p {
  margin: 0;
  color: #888;
}
/* Ensure all spans are white */
span {
  color: #ffffff;
}

#audit-ratio,
#xp {
  color: #00adb5;
  font-size: 100px;
  font-weight: bold;
}

/* Keep skills section scrollable */
.grid-item .skills {
  max-height: 200px; /* Adjust height as needed */
  overflow-y: auto;
  padding-right: 10px;
}

/* Custom scrollbar for skills */
.grid-item .skills::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.grid-item .skills::-webkit-scrollbar-track {
  background: #393e46;
  border-radius: 10px;
}

.progress-bar ::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 10px;
}

.progress-bar ::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.progress-bar ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.progress-bar ::-webkit-scrollbar-track {
  background: #393e46;
  border-radius: 10px;
}

.progress-bar ::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 10px;
}

.progress-bar ::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* XP Progress Bar */
.xp-progress {
  background-color: #393e46;
  border: 1px solid #333;
  min-width: 90%;
  max-width: 80%;
  width: 100%;
  margin-bottom: 20px;
  align-items: center;
  overflow: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}
.xp-progress h2 {
  color: #00adb5;
  padding-bottom: 20px;
  padding-left: 20px;
}

.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  background-color: #393e46;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  padding: 20px 20px;
}

.footer p {
  margin: 0;
  font-size: 14px;
}

#creator {
  color: #00adb5;
}

#creator {
  color: #00adb5; /* Match the green color used in other elements */
  text-decoration: none;
}

#creator:hover {
  text-decoration: underline; /* Add underline effect on hover */
}

/* Responsive Design */
/* Base mobile styles (up to 480px) */
@media screen and (max-width: 480px) {
  .navbar {
    padding: 15px 10px;
  }

  .login-box {
    width: 90%;
    padding: 20px;
    margin: 0 10px;
  }

  .grid-container {
    grid-template-columns: 1fr;
    max-width: 95%;
    gap: 15px;
  }

  .grid-item {
    min-width: unset;
    min-height: 300px;
  }

  .text_container,
  .xp-progress {
    flex-direction: column;
    padding: 10px;
    min-width: 90%;
  }

  .text_container p {
    margin: 5px 0;
    font-size: 14px;
  }

  #logout-button {
    margin-right: 10px;
  }

  .user-xpara {
    font-size: 24px;
  }
  .footer {
    position: absolute;
    bottom: 0;
  }
}

/* Tablet styles (481px to 768px) */
@media screen and (min-width: 481px) and (max-width: 768px) {
  .navbar {
    padding: 15px;
  }

  .login-box {
    width: 80%;
    max-width: 400px;
  }

  .grid-container {
    grid-template-columns: 1fr;
    max-width: 90%;
    gap: 20px;
  }

  .grid-item {
    min-width: unset;
  }

  .text_container,
  .xp-progress {
    min-width: 90%;
  }
  .footer {
    position: absolute;
    bottom: 0;
  }
}

/* Small desktop styles (769px to 1024px) */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
    max-width: 90%;
  }

  .grid-item {
    min-width: unset;
  }

  .text_container,
  .xp-progress {
    min-width: 90%;
  }
}

/* Large desktop styles (1025px and above) */
@media screen and (min-width: 1025px) {
  .grid-container {
    max-width: 1200px;
  }
}

/* Font scaling for better readability */
@media screen and (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .login-box h2 {
    font-size: 1.5em;
  }

  .input-group input {
    font-size: 13px;
  }

  .login-button {
    font-size: 13px;
  }
  .footer {
    position: absolute;
    bottom: 0;
  }
}

/* Height-based media queries for better vertical spacing */
@media screen and (max-height: 600px) {
  .login-container {
    height: auto;
    padding: 80px 0;
  }

  .main-content {
    margin-top: 80px;
  }
  .footer {
    position: absolute;
    bottom: 0;
  }
}
