* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

.header {
  border-radius: 10px;
  border: 1px solid #313131;
  margin: 40px 40px 20px 50px;
  background-color: white;
  background-image: url("../../../picture/background_ranking.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  width: 1200px;
  height: 300px;
}

.main_box {
  display: flex;
  position: relative;
  flex-direction: row;

  background-color: #313131;
  margin: 40px 0px 20px 0px;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.ranking_by_box {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 230px;
  height: auto;
  margin: 0px 10px 0px 0px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  background-color: #424242;
}

.ranking_by_box h1 {
  font-family: "Roboto", sans-serif;
  background: linear-gradient(to right, #36cfcf, #8dc2c2);
  font-size: 22px;
  font-weight: 700;
  height: 80px;
  padding-top: 15px;
  text-align: center;
  color: rgb(26, 26, 26);
  border-left: 7px solid rgb(80, 80, 255);
}

.ranking_by_box .select_category {
  background-color: #424242;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.ranking_box {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  overflow: hidden;
  background-color: #424242;
}

.list {
  width: 100%;
  height: 400px;
  margin: 0px 20px 0px 0px;

  overflow: hidden;
  position: relative;
}

.list h1 {
  height: 80px;
  color: white;
  font-size: 22px;
  font-weight: 700;
  padding: 25px 0px 20px 30px;
  font-family: "Roboto", sans-serif;
  background: linear-gradient(to right, #080808, #272727);
  border-left: 7px solid red;
}

.list .box {
  width: 100%;
  height: 300px;

  margin-left: 20px;
  background-color: rgb(59, 59, 59);

  border-radius: 8px;
  z-index: 0;
}

.list_weekly,
.list_monthly,
.list_all_time {
  display: flex;
  flex-direction: row;
  gap: 0px;
}

.ranking_card {
  background-color: #2c2c2c;
  border-radius: 10px;
  overflow: hidden;
  width: 170px;
  margin: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.ranking_card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}

.ranking_card img {
  text-decoration: none;
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-bottom: 2px solid #444;
  transition: transform 0.3s ease;
}

.ranking_card:hover img {
  transform: scale(1.05);
}

.ranking_info {
  padding: 10px;
  color: white;
}

.ranking_info .rank {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
}

.ranking_info .name {
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking_card a {
  text-decoration: none;
}
