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

body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  background-color: #151515;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue';
  padding: 20px;
}

.profile-picture {
  width: 100%;
  max-width: 800px;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-color: #6f6c6c;
  justify-content: center;
  align-items: center;
  color: #fff;
  padding: 10px;
  border-radius: 10px;
}

#submit {
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#username {
  padding: 10px;
  width: 100%;
  max-width: 300px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

#img {
  border-radius: 5px;
  border: #151515 2px solid;
  width: 100%;
  max-width: 150px;
  height: auto;
}

#profile {
  padding: 10px;
  margin-top: 5px;
  border-radius: 5px;
  border: none;
  text-decoration: none;
  /* transition: aqua 0.2s ease; */
}

#profile:hover {
    background-color: aqua;
}

#link {
  text-decoration: none;
  color: black;
}

#profile-block {
  display: flex;
  flex-direction: row;
  gap: 40px;
  margin-top: 20px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}

#profile-details {
  flex: 1;
  display: flex;
  font-size: 18px;
  flex-direction: column;
  margin: 15px;
  gap: 5px;
  min-width: 200px;
  max-width: 500px;
}

#profile-details h2 {
  font-size: 26px;
  margin: 5px 0;
}

#cc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#contributions {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin-top: 10px;
  border-radius: 5px;
  background-color: #fff; /* contribution chart is white background by default */
  padding: 10px;
}

#spinner {
    border: 5px solid rgba(255,255,255,0.1);
    border-top: 5px solid #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    to{transform: rotate(360deg);}
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
  #profile-block {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  #submit {
     width: 100%;
  }

  #profile-details {
    font-size: 16px;
    margin: 10px;
  }

  #profile-details h2 {
    font-size: 22px;
  }

  #img {
    max-width: 120px;
  }
}

@media screen and (max-width: 480px) {
  body {
    padding: 10px;
  }

  #username {
    max-width: 100%;
  }

  #submit {
    width: 100%;
  }

  #profile-details {
    font-size: 15px;
  }

  #profile-details h2 {
    font-size: 20px;
  }
}



