/* RESET RULES & HELPER CLASSES
–––––––––––––––––––––––––––––––––––––––––––––––––– */
:root {
  --black: #1a1a1a;
  --white: #fff;
  --red: #e21838;
  --transition-delay: 0.85s;
  --transition-delay-step: 0.3s;
}

* {
  padding: 0;
  margin: 0;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

h1 {
  text-align: center;

}

button {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
}

.d-flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-between {
  justify-content: space-between;
}

.justify-content-around {
  justify-content: space-around;
}

.align-items-center {
  align-items: center;
}

.align-items-end {
  align-items: flex-end;
}

.flex-grow-1 {
  flex-grow: 1;
}

.w-100 {
  width: 100%;
}

.position-relative {
  position: relative;
}

.position-fixed {
  position: fixed;
}



.text-center {
  text-align: center;
}

.text-black {
  color: var(--black);
}

.text-white {
  color: var(--white);
}

.bg-black {
  background: var(--black);
}

.bg-white {
  background: var(--white);
}

.bg-red {
  background: var(--red);
}


/* HEADER
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.page-header {
  padding: 20px;
  border-bottom: 1px solid #e93451;
}

.page-header li:not(:last-child) {
  margin-right: 20px;
}

.page-header .logo {
  font-size: 1.2rem;
  z-index: 1;
  transition: color 0.3s;
}

.window-opened .page-header .logo {
  color: var(--black);
  transition-delay: 0.8s;
}



/* HEADING
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.heading {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
}

* {
  font-family: 'JetBrains Mono', monospace;
  color: rgb(0, 0, 0);
}


.item-container, .title {
  max-width: 320px;
  margin: 0 auto 10px;
  
} 

.item {
  border: 1px solid;
  backdrop-filter: blur(10px);
  margin-bottom: 20px;
  border-radius: 4px;
  display: grid;
  font-size: 25px;
  place-items: center;
  text-align: center;
  
}

.title {
  font-size: 80px;
}

.char-img {
  width: 125px;
  border-radius: 50%;
  margin: 30px;
}

.char-id {
  background-color: #fff;
  color: #000;
  border: 1px solid #000;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 30px 0 10px;
}

.char-id:hover {
  background-color:rgb(182, 8, 8);
 }

.char-species {
  background-color: #fff;
  color: #000;
  width: 100%;
  padding: 10px 0;
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 3px;
} 





/* CONTACT
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.contact {
  bottom: 20px;
  left: 20px;
}

/* SECTION
–––––––––––––––––––––––––––––––––––––––––––––––––– */
.skills-section {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transform: translateX(100%);
  transition: transform 1s;
}

.window-opened .skills-section {
  transform: none;
}

[data-slideIn="to-top"] {
  transform: translateY(100%);
}

[data-slideIn="to-bottom"] {
  transform: translateY(-100%);
}

[data-slideIn="to-right"] {
  transform: translateX(-100%);
}

.creator {
  bottom: 20px;
  right: 20px;
}

.creator span {
  color: #e31b23;
}

.skills-close {
  top: 20px;
  right: 20px;
  font-size: 2rem;
}

.chart-wrapper {
  width: calc(100% - 40px);
  max-width: 500px;
}

.chart-levels li {
  padding: 15px;
}

.chart-skills li {
  width: 12%;
  height: 0;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  transition: height 0.65s cubic-bezier(0.51, 0.91, 0.24, 1.16);
}

.window-opened .chart-skills li:nth-child(1) {
  height: 80%;
  transition-delay: var(--transition-delay);
}

.window-opened .chart-skills li:nth-child(2) {
  height: 60%;
  transition-delay: calc(
    var(--transition-delay) + var(--transition-delay-step)
  );
}

.window-opened .chart-skills li:nth-child(3) {
  height: 68%;
  transition-delay: calc(
    var(--transition-delay) + var(--transition-delay-step) * 2
  );
}

.window-opened .chart-skills li:nth-child(4) {
  height: 52%;
  transition-delay: calc(
    var(--transition-delay) + var(--transition-delay-step) * 3
  );
}

.window-opened .chart-skills li:nth-child(5) {
  height: 42%;
  transition-delay: calc(
    var(--transition-delay) + var(--transition-delay-step) * 4
  );
}



.chart-skills span {
  bottom: 0;
  left: 0;
  transform: translateY(40px) rotate(45deg);
}

@media screen and (max-width: 600px) {
  html {
    font-size: 12px;
  }

  .chart-levels li {
    padding: 15px 10px 15px 0;
  }
}