@font-face {
  font-family: "Guruwords";
  src: url("../../fonts/Guruwords.ttf");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "framdit";
  src: url("../../fonts/Guruwords.ttf");
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  font-family: Guruwords;
}

#body {
  transform-origin: top left;
}

#container {
  position: relative;
  width: 761px;
  height: 1582px;
  background-image: url(./imgs/rolecard.png);
}

#weight-version {
  position: absolute;
  top: 842px;
  right: 50px;
  font-size: 12px;
  font-style: italic;
  color: #a0a0a0;
}

#header {
  position: relative;
  width: 100%;
  height: 500px;
}

#user-id {
  position: absolute;
  top: 20px;
  left: 30px;
  font-size: 30px;
  font-style: italic;
  font-weight: 600;
  color: #d3d3d3;
}

#role-info-container {
  position: absolute;
  top: 68px;
  left: 40px;
  display: flex;
  align-items: center;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0);
  padding: 10px;
  border-radius: 10px;
}

#role-info {
  display: flex;
  justify-content: flex-start;
  gap: 5px;
  align-items: center;
}

#attribute-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100px;
}

#attribute-icon {
  position: absolute;
  width: 100px;
  filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.5));
}

#text-container {
  display: flex;
  flex-direction: column;
  max-width: 300px;
  text-shadow: 0 0 7px #000, 2px 2px 4px rgba(0, 0, 0, 0.7);
}

#role-name {
  font-size: 36px;
  color: white;
  text-overflow: ellipsis;
  max-width: 100%;
}

#role-level {
  font-size: 26px;
  color: white;
  text-overflow: ellipsis;
  max-width: 100%;
}

#role-stars {
  display: flex;
  gap: 5px;
  filter: drop-shadow(2px 2px 5px rgba(0, 0, 0, 0.5));
}

.role-star {
  width: 40px;
  height: 100%;
}

#role-pic-container {
  position: absolute;
  display: flex;
  flex-direction: row;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50.5%);
  justify-content: center;
  align-items: flex-start;
  width: 680px;
  height: 430px;
  z-index: 1;
  overflow: hidden;
  border-radius: 10px 27px 0px 27px;
  mask-image: linear-gradient(to bottom, #000 0px, #000 340px, transparent 430px);
}

#role-pic-container>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

#chain {
  position: relative;
  top: 160px;
  height: 134px;
  width: 100%;
}

#chain-list {
  position: relative;
  display: grid;
  grid-template-columns: 68px 68px 68px 68px 68px 68px;
  column-gap: 40px;
  top: 245px;
  left: 70px;
  height: 70px;
  width: 608px;
  z-index: 2;
}

.chain-icon-actived {
  margin-top: 1px;
  width: 68px;
  border-radius: 34px;
  opacity: 0.6;
}

.chain-icon-inactived {
  width: 68px;
  border-radius: 34px;
  opacity: 0.6;
  filter: brightness(0.5);
}

#skill {
  height: 162px;
}

#skill-list {
  position: relative;
  display: grid;
  grid-template-columns: 106px 106px 106px 106px 106px;
  column-gap: 38px;
  top: 0px;
  left: 36px;
  height: 106px;
  width: 682px;
}

.skill-icon {
  position: relative;
  margin: 23px;
  width: 62px;
  height: 62px;
}

.skill-level {
  position: relative;
  width: 100%;
  text-align: center;
  font-size: 20px;
  color: #b6ada6;
}

#skill-desc {
  position: relative;
  width: 646px;
  height: 100px;
  top: 130px;
  left: 66px;
  font-size: 24px;
  color: #5e4f2e;
}

#table {
  margin: 0px 0px 0px 36px;
  display: grid;
  grid-template-columns: 214px 214px 214px;
  column-gap: 20.3px;
  row-gap: 12px;
  height: 652x;
  width: 668px;
}

#table>* {
  position: relative;
  width: 214px;
  height: 320px;
  border-radius: 16px;
  overflow: hidden;
}

#weapon-icon-box {
  position: relative;
  display: inline-block;
  height: 104px;
  width: 104px;
}

#weapon-icon {
  padding: 8px 0px 0px 8px;
  float: left;
  height: 104px;
  width: 104px;
  mask-image: linear-gradient(to left, transparent 0%, #000 70%);
}

.weapon-header-right {
  padding: 10px 10px 0px 0px;
  min-width: 110px;
  position: absolute;
  top: 0;
  right: 0;
  height: 104px;
}

#weapon-name {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  color: #bda757;
  font-size: 20px;
  font-weight: 600;
  margin-top: -5px;
}

#weapon-level-box {
  display: flex;
  width: 110px;
  float: right;
  vertical-align: top;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.weapon-star {
  height: 15px;
  margin-right: 1px;
}

#reson-level {
  display: inline-block;
  padding-bottom: 6px;
  height: 20px;
  width: 64px;
  color: #fff;
  border-radius: 5px;
  text-align: center;
  font-size: 15px;
  transform: translateY(5px);
}

#weapon-effect-name {
  height: 35px;
  width: 100%;
  background-color: #e1e1e1;
  margin-top: -4.6px;
  font-size: 20px;
  text-align: center;
  line-height: 35px;
  font-weight: bold;
}

#effect-description {
  position: inherit;
  top: -4px;
  height: 186px;
  color: #7b7774;
  padding: 14px 14px 14px 14px;
  font-size: 15px;
  border-radius: 0px 0px 15px 15px;
  text-align: left;
}

.phantom-list {
  position: relative;
}

.phantom-header {
  position: relative;
  width: 100%;
  height: 104px;
}

.phantom-level {
  position: absolute;
  padding: 0px 2px;
  left: 0;
  bottom: 0;
  color: white;
  background-color: rgba(0, 0, 0, 0.4);
}

.phantom-header-right {
  position: relative;
  height: 104px;
  width: 110px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phantom-icon {
  height: 104px;
  float: left;
  mask-image: linear-gradient(to left, transparent 0%, #000 70%);
}

.fetter-icon {
  position: absolute;
  height: 24px;
  left: 3px;
  top: 3px;
}

.phantom-name {
  position: absolute;
  margin-top: -30px;
  color: #4e4e4e;
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.phantom-rank-score {
  position: absolute;
  margin-top: 40px;
  color: red;
  font-size: 20px;
  font-weight: 700;
  font-style: italic;
  white-space: nowrap;
}

.phantom-attribute>div:nth-child(odd) {
  background-color: #e1e1e1;
}

.phantom-attribute>div:nth-child(even) {
  background-color: #f0ecf0;
}

.phantom-attribute-item {
  width: 100%;
  height: 31px;
}

.phantom-attribute-key {
  float: left;
  padding: 6px 0px 0px 8px;
}

.phantom-attribute-value {
  font-family: "framdit";
  float: right;
  padding: 6px 8px 0px 0px;
}

.total-score-table {
  position: relative;
  margin-bottom: 21px;
  display: flex;
  left: 36px;
  width: 680px;
  height: 180px;
  background-color: #f0ecf0;
  border-radius: 15px;
  overflow: hidden;
}

.total-score-table-left {
  flex-shrink: 0;
  display: grid;
  grid-template-rows: 30px 60px 30px 60px;
  width: 170px;
  text-align: center;
}

.total-score-table-left>* {
  border-right: none;
}

.score-key {
  font-size: 14px;
  float: left;
  padding-top: 11px;
  padding-left: 5px;
}

.score-value {
  font-family: "framdit";
  font-size: 14px;
  float: right;
  padding-top: 11px;
  padding-right: 5px;
}

.total-score-key {
  line-height: 30px;
  background-color: #d8d8d8;
  color: #000;
  font-size: 20px
}

.total-score-value {
  line-height: 60px;
  font-family: "framdit";
  background-color: #f3f3f3;
  color: #e9c130;
  font-weight: 700;
  font-size: 46px;
}

#copyright {
  position: absolute;
  bottom: 10px;
  left: 50%;
  width: 100%;
  transform: translateX(-50%);
  font-size: 18px;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 2px black;
  text-align: center;
}

#copyright .version {
  color: #d3bc8e;
  display: inline-block;
  padding: 0 3px;
}