@font-face {
  font-family: 'Lexend';
  src: url('./assets/fonts/Lexend-VariableFont_wght.ttf');
}

@font-face {
  font-family: 'Genshin';
  src: url('./assets/fonts/zhcn.ttf');
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
  font-family: 'Lexend';
}

body {
	font-family: Arial, sans-serif;
	line-height: 1.6;
  min-height: 150vh;
  background: url('./assets/image/bg1.jpg') no-repeat center center fixed;
  background-size: cover;
}


ul, ol {
	list-style: none;
}

.background-filter {
  background: linear-gradient(to bottom, #000000c7, #1d1f33);
  height: 100vh;
  width: 100vw;
  position: fixed;
  top: 0 !important;
  z-index: -1;
}

nav {
  background-color: #00000041;
  height: 10vh;
  width: 100vw;
  top: 0 !important;
  display: flex;
  justify-content: space-between; 
  align-items: center;
  padding: 0 5%;
  position: fixed;
  z-index: 999;
  backdrop-filter: blur(5px);
}

nav .nav {
  padding: 2rem;
}

nav .nav-left img {
  width: 7rem;
}

nav .nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.language-sel {
  width: 5rem;
  padding: .5rem 1rem;
  border-radius: 5rem;
  cursor: pointer;
  position: relative;
  background-color: #2d3055;
  color: #fff;
  z-index: 1000;
  -webkit-border-radius: 5rem;
  -moz-border-radius: 5rem;
  -ms-border-radius: 5rem;
  -o-border-radius: 5rem;
  text-align: center;
}

.language-button {
  display: flex;
  justify-content: space-between; 
  align-items: center;
}

.language-button img {
  width: 1rem;
  height: 1rem;
  
}

/* Style for the selected language text */
#selected-language {
  font-size: 1rem;
}

/* Initially hide the language options */
.language-options {
  display: none;
  position: absolute;
  top: 3rem;
  left: 0;
  width: 100%;
  background-color: #2d3055;
  z-index: 10;
  color: white;
  border-radius: 1rem; 
  text-align: left;
  overflow: hidden;
}

/* Style for individual language options */
.language-option {
  padding: 8px 1rem;
  font-size: 14px;
  cursor: pointer;
}

.language-option:hover {
  background-color: #3a3d64;
}

.profile-link {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  overflow: hidden;
  outline: 2px solid #2d3055;
  outline-offset: 2px;
}

.profile-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-body {
  position: relative;
  top: 10vh;
  margin: 5rem auto;
}

.main-body-content.top {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  width: 80vw;
  margin: 0 auto;
}

.user-basic-details#profile-picture {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  overflow: hidden;
  outline: 2px solid #2d3055;
  outline-offset: 2px;
}

.user-basic-details-notprofile {
  margin-left: 1rem;
}

.user-basic-details#profile-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-basic-details {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.top-content.top-content-left, .top-content.top-content-left .user-basic-details-infos {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  cursor: default;
}

.top-content.top-content-left {
  align-items: start;
}

.user-detail {
  color: #fff;
}

.user-detail-name {
  font-size: 1.7rem;
  padding: 0 .5rem;
}

.user-detail-level {
  font-size: 0.8rem;
  padding: .03rem .5rem;
  border-radius: .3rem;
  background-color: #8b6d33;
  -webkit-border-radius: .3rem;
  -moz-border-radius: .3rem;
  -ms-border-radius: .3rem;
  -o-border-radius: .3rem;
  margin: 0 1rem;
}

.user-detail-server {
  font-size: 0.95rem;
  padding: .05rem .5rem;
  border-radius: .5rem;
  color: #b1b1b1;
  -webkit-border-radius: .5rem;
  -moz-border-radius: .5rem;
  -ms-border-radius: .5rem;
  -o-border-radius: .5rem;
  cursor: default ;
}

.user-detail-uid {
  font-size: 0.95rem;
  padding: .05rem .5rem;
  border-radius: .5rem;
  color: #b1b1b1;
  -webkit-border-radius: .5rem;
  -moz-border-radius: .5rem;
  -ms-border-radius: .5rem;
  -o-border-radius: .5rem;
  cursor: pointer;
}

.user-detail-uid:hover {
  color: #e6e6e6;
}

.top-content-right {
  display: flex;
  justify-content: space-between; 
  align-items: center;
}

.top-content-right img {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  margin: 0 .5rem;
  padding: .1rem;
}

.top-content-right img:hover {
  background: rgba(255, 255, 255, 0.075);
}


.body-under {
  background: linear-gradient(to bottom, #00000056, #00000098);
  border-radius: 1rem;
  min-height: 50vh;
  width: 80vw;
  -webkit-border-radius: 1rem;
  -moz-border-radius: 1rem;
  -ms-border-radius: 1rem;
  -o-border-radius: 1rem;
  margin: 2rem auto;
  backdrop-filter: blur(5px);
  padding: 2rem;
}

.main-body-content-title {
  font-size: 1.15rem;
  color: white;
  display: flex;
  justify-content: start; 
  align-items: center;
  font-weight: light;
}

.main-body-content-title img {
  width: 1rem;
  height: 1rem;
  margin: 0 .3rem 0 0;
}

.summary {
  margin-bottom: 3rem;
}

.summary-container {
  padding: 1rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(4, 1fr);
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  border: 1px solid #e4bb6993;
  border-radius: .5rem;
  margin: 1rem 0;
}

.summary-cells {
  display: flex;
  flex-direction: column;
  justify-content: center; 
  align-items: center;
  color: white;
  padding: 1rem;
  cursor: default;
}


.summary-cells:hover > .summary-value {
  transform: scale(1.1);
  transition: transform 0.2s ease-in-out;
  -webkit-transition: transform 0.2s ease-in-out;
  -moz-transition: transform 0.2s ease-in-out;
  -ms-transition: transform 0.2s ease-in-out;
  -o-transition: transform 0.2s ease-in-out;
}

.summary-cells .summary-context {
  color: rgb(150, 150, 150);
  font-size: .8rem;
}

.characters-list {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}

.character {
  width: 3rem;
  height: 3rem;
  border: 2px solid #ffffff7a;
  border-radius: 50%;
  -webkit-border-radius: 50%;
  -moz-border-radius: 50%;
  -ms-border-radius: 50%;
  -o-border-radius: 50%;
  transition: transform 0.2s ease-in-out;
  -webkit-transition: transform 0.2s ease-in-out;
  -moz-transition: transform 0.2s ease-in-out;
  -ms-transition: transform 0.2s ease-in-out;
  -o-transition: transform 0.2s ease-in-out;
  margin: 0 .5rem;
  position: relative;
  overflow: hidden;
}

.character.active {
  border: 2px solid rgb(26, 194, 194);
  background-color: rgba(26, 194, 194, 0.5);
}

.character:not(.active):hover {
  border: 2px solid #ffffffad;
}

.character img {
  width: 145%;
  height: 145%;
  object-fit: cover;
  position: relative;
  top: -1rem;
  left: -0.4rem;
}

.hidden-content {
  display: none;
}

.character-info, .newcharacter-info {
  width: 95%;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 1rem;
  -webkit-border-radius: 1rem;
  -moz-border-radius: 1rem;
  -ms-border-radius: 1rem;
  -o-border-radius: 1rem;
  margin: 1rem auto;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  grid-template-rows: 1fr;
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  cursor: default;
}

.character-info.pyroclass, .newcharacter-info.pyroclass {
  background: linear-gradient(to bottom right, rgb(37, 9, 18), rgb(70, 4, 4), rgb(73, 9, 9));
}

.character-info.hydroclass {
  background: linear-gradient(to bottom right, rgb(11, 9, 37), rgb(4, 38, 70), rgb(9, 37, 73));
}

.character-info.anemoclass {
  background: linear-gradient(to bottom right, rgb(6, 19, 16), rgb(7, 49, 35), rgb(9, 73, 43));
}

.character-info.geoclass {
  background: linear-gradient(to bottom right, rgb(19, 15, 6), rgb(49, 38, 7), rgb(73, 45, 9));
}
.character-info.electroclass {
  background: linear-gradient(to bottom right, rgb(16, 6, 19), rgb(39, 7, 49), rgb(58, 9, 73));
}

.character-info *, .newcharacter-info {
  color: white;
}


.character-info .char-image, .newcharacter-info .char-image{
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.char-image img {
  width: 140%;
  object-fit: cover;
  position: relative;
  left: -15%;
}

.char-image p {
  position: relative;
  top: -2rem;
  color: rgba(255, 255, 255, 0.623);
  letter-spacing: .5px;
}

.char-image p span {
  color: white;
}


.char-name {
  display: flex;
  justify-content: start;
  align-items:  center;
  padding: 1rem .5rem;
  gap: .5rem;
}

.char-element {
  width: 2.5rem;
  height: 2.5rem;
}

.char-element img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.charNAME {
  font-size: 1.2rem;
  font-weight: bold;
  display: flex;
  justify-content: start;
  align-items: center;
  gap: .5rem;
  letter-spacing: 1px;
}

.charNAME span {
  display: inline-block;
  font-size: .7rem;
  background:#b3904c;
  font-weight: normal;
  padding: .02rem .3rem;
  border-radius: 3px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -ms-border-radius: 3px;
  -o-border-radius: 3px;
  color: black;
  letter-spacing: 0px;
}

.char-blabla {
  margin: 1rem 0;
}


.char-mainstats, .char-weapon {
  border: 2px solid #ffffff11;
  border-radius: 15px;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  -ms-border-radius: 15px;
  -o-border-radius: 15px;
  width: 100%;
  display: block;
  overflow: hidden;
}

.char-mainstats {
  margin-top: 0;
}

.char-weapon {
  background: #ffffff11;
}

.char-mainstats .stats-title, .char-weapon .char-weapontitle   {
  color: #ebc67d;
  font-family: 'Genshin';
  padding: .5rem 1rem;
  display: block;
  background: #ffffff11;
}


.char-statdetails {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(5, 1fr);
  grid-column-gap: .5rem;
  grid-row-gap: 0px;
}

.charstatcell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .7rem 1rem;
}

.charstatcell.even-row {
  background: #ffffff11;
}

.charstatname {
  color: #ffffff7a;
  font-size: .8rem;
}

.charstatname.longname {
  color: #ffffff7a;
  font-size: .7rem;
}

.charstatvalue {
  color: #ffffffd7;
  font-size: .75rem;
  font-family: 'Genshin';
}

.char-weaponpreview {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}

.char-weaponLVL {
  font-size: .7rem;
  background: #00000049;
  padding: .15rem .4rem;
  border-radius: 3px;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  -ms-border-radius: 3px;
  -o-border-radius: 3px;
  position: relative;
  left: -0.5rem;
  color: rgba(255, 255, 255, 0.705);
}

.char-weaponpreview .char-weaponimg {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(to bottom right, #58442d, #86682e, #be7941);
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
  -ms-border-radius: 5px;
  -o-border-radius: 5px;
}

.char-weaponpreview .char-weaponimg.fourstarweap {
  background: linear-gradient(to bottom right, #513b55, #8e5e9c, #b972da);
}

.char-weaponpreview .char-weaponimg.threestarweap {
  background: linear-gradient(to bottom right, #2d4058, #397bb1, #2a8399);
}

.char-weaponimg img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

