:root {
  --card-height: 400px;
  --card-width: 400px;
  --card-gap: 1em;
}

table {
  color: #fff;
  /* font-size: 1.5em; */
  font-size: 1.2em;
}
td,
p {
  text-indent: 30px;
}

.characters-page {
  background-image: url("../images/main-banners/characters-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom center;
  background-attachment: fixed;
  position: relative;
  z-index: 0;
}

.characters-page::before {
  position: absolute;
  content: "";
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
}

.characters-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  /* padding: 8em 0 4em; */
  padding: 12em 0 4em;
  text-align: center;
  position: relative;
}

.characters-banner .characters-title {
  margin-bottom: 3em;
}

.characters-banner-cards {
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 1em;
  position: relative;
}

.character-box {
  text-decoration: none;
  width: calc(20% - 1em);
  transition: all 0.5s ease;
  background: rgba(136, 150, 148, 0.181);
  border-radius: 35px;
  position: relative;
}

.character-box img {
  object-fit: cover;
  width: 100%;
  display: block;
  border-radius: 35px;
}

.character-box:hover {
  transform: scale(1.05);
}

.character-box .characters-text {
  position: absolute;
  content: "";
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  background-color: rgba(255, 0, 0, 0.5);
  padding: 1em;
  border-bottom-left-radius: 35px;
  border-bottom-right-radius: 35px;
}

.character-box h3 {
  text-transform: uppercase;
  font-size: 1.2em;
}

/************************ Geralt Section ************************/

.character-geralt {
  padding: 4em 0;
  background: #000;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.geralt-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2em;
}

.geralt-box-right {
  width: 75%;
}

.geralt-box-left {
  position: relative;
  z-index: 0;
  width: 25%;
  border-radius: 12px;
  overflow: hidden;
  display: flex;

  /* box-shadow: 20px 20px 60px rgb(4, 131, 150); */
  box-shadow: 0px 0px 50px rgb(150, 4, 4);
  /* border: 2px solid #2a3cad; */
  border: 2px solid #ad2a2a;
  color: white;
  padding: 20px;
}

.geralt-box-right h3 {
  font-size: 2em;
  margin-bottom: 1em;
  line-height: 1.5;
  text-align: center;
}

.geralt-box-right p {
  font-size: 1.3em;
  line-height: 1.5;
  margin-bottom: 0.5em;
}

.geralt-box-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/************************ Yennefer Section ************************/
.character-yenn {
  padding: 6em 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
}

.yennefer-inner {
  z-index: 3;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2em;
}

.yennefer-box-left {
  width: 75%;
}

.yennefer-box-right {
  position: relative;
  z-index: 0;
  width: 25%;
  border-radius: 12px;
  overflow: hidden;
  display: flex;

  /* box-shadow: 20px 20px 60px rgb(4, 131, 150);
  border: 2px solid #2a3cad; */
  box-shadow: 0px 0px 50px rgb(150, 4, 4);
  border: 2px solid #ad2a2a;
  color: white;
  padding: 20px;
}

.yennefer-box-left h3 {
  font-size: 2em;
  margin-bottom: 1em;
  line-height: 1.5;
  text-align: center;
}

.yennefer-box-left p {
  font-size: 1.3em;
  line-height: 1.5;
  margin-bottom: 0.5em;
}

.yennefer-box-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/************************ Ciri Section ************************/
.character-ciri {
  position: relative;
  background-color: #000;
  padding: 6em 0;
  display: flex;
  align-items: center;
}

.ciri-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2em;
}

.ciri-box-right {
  width: 75%;
}

.ciri-box-left {
  position: relative;
  z-index: 0;
  width: 25%;
  border-radius: 12px;
  overflow: hidden;
  display: flex;

  /* box-shadow: 20px 20px 60px rgb(4, 131, 150);
  border: 2px solid #2a3cad; */
  box-shadow: 0px 0px 50px rgb(150, 4, 4);
  border: 2px solid #ad2a2a;
  color: white;
  padding: 20px;
}

.ciri-box-right h3 {
  font-size: 2em;
  margin-bottom: 1em;
  line-height: 1.5;
  text-align: center;
}

.ciri-box-right p {
  font-size: 1.3em;
  line-height: 1.5;
  margin-bottom: 0.5em;
}

.ciri-box-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/************************ Emyhr Section ************************/
.character-emyhr {
  padding: 6em 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
  position: relative;
}

.emyhr-inner {
  z-index: 3;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2em;
}

.emyhr-box-left {
  width: 75%;
}

.emyhr-box-right {
  position: relative;
  z-index: 0;
  width: 25%;
  border-radius: 12px;
  overflow: hidden;
  display: flex;

  /* box-shadow: 20px 20px 60px rgb(4, 131, 150);
  border: 2px solid #2a3cad; */
  box-shadow: 0px 0px 50px rgb(150, 4, 4);
  border: 2px solid #ad2a2a;
  color: white;
  padding: 20px;
}

.emyhr-box-left h3 {
  font-size: 2em;
  margin-bottom: 1em;
  line-height: 1.5;
  text-align: center;
}

.emyhr-box-left p {
  font-size: 1.3em;
  line-height: 1.5;
  margin-bottom: 0.5em;
}

.emyhr-box-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/************************ Dandelion Section ************************/
.character-dandelion {
  position: relative;
  background-color: #000;
  padding: 6em 0;
  display: flex;
  align-items: center;
}

.dandelion-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2em;
}

.dandelion-box-right {
  width: 75%;
}

.dandelion-box-left {
  position: relative;
  z-index: 0;
  width: 25%;
  border-radius: 12px;
  overflow: hidden;
  display: flex;

  /* box-shadow: 20px 20px 60px rgb(4, 131, 150);
  border: 2px solid #2a3cad; */
  box-shadow: 0px 0px 50px rgb(150, 4, 4);
  border: 2px solid #ad2a2a;
  color: white;
  padding: 20px;
}

.dandelion-box-right h3 {
  font-size: 2em;
  margin-bottom: 1em;
  line-height: 1.5;
  text-align: center;
}

.dandelion-box-right p {
  font-size: 1.3em;
  line-height: 1.5;
  margin-bottom: 0.5em;
}

.dandelion-box-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 1.5em);
  height: calc(100% - 1.5em);
  box-sizing: border-box;
  overflow: hidden;
  /* box-shadow: 0 20px 20px rgb(169, 178, 244); */
  box-shadow: 0 20px 20px rgb(243, 143, 143);
  /* border: 2px solid #2a3cad; */
  border: 2px solid #f00000;
  color: white;
  padding: 20px;
  border-radius: 12px;
}

.box:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: 0.5s;
  pointer-events: none;
}

.box:hover:before {
  left: -50%;
  transform: skewX(-5deg);
}

.box .content {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  /* border: 1px solid #f0a591; */
  border: 1px solid #f09191;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 10px rgba(9, 0, 0, 0.5);
  border-radius: 12px;
}

.box span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  box-sizing: border-box;
  border-radius: 12px;
}

.box span:nth-child(1) {
  transform: rotate(0deg);
}

.box span:nth-child(2) {
  transform: rotate(90deg);
}

.box span:nth-child(3) {
  transform: rotate(180deg);
}

.box span:nth-child(4) {
  transform: rotate(270deg);
}

.box span:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  /* background: #50dfdb; */
  background: #f00000;
  animation: animate 4s linear infinite;
}

/************************ Animation ************************/

@keyframes bgRotate {
  100% {
    transform: rotate(1turn);
  }
}

@keyframes animate {
  0% {
    transform: scaleX(0);
    transform-origin: left;
  }
  50% {
    transform: scaleX(1);
    transform-origin: left;
  }
  50.1% {
    transform: scaleX(1);
    transform-origin: right;
  }

  100% {
    transform: scaleX(0);
    transform-origin: right;
  }
}
/************************ Media Query ************************/

@media screen and (max-width: 992px) {
}
@media screen and (max-width: 768px) {
  .character-box {
    width: calc(50% - 1em);
  }

  .characters-banner {
    padding: 10em 0 3em;
  }

  .characters-banner-cards {
    justify-content: center;
  }

  .geralt-inner,
  .ciri-inner,
  .dandelion-inner {
    flex-wrap: wrap;
    justify-content: center;
  }

  .yennefer-inner,
  .emyhr-inner {
    flex-wrap: wrap-reverse;
    justify-content: center;
  }

  .geralt-box-left,
  .yennefer-box-right,
  .ciri-box-left,
  .emyhr-box-right,
  .dandelion-box-left {
    width: 60%;
  }

  .geralt-box-right,
  .yennefer-box-left,
  .ciri-box-right,
  .emyhr-box-left,
  .dandelion-box-right {
    width: 100%;
  }

  .geralt-box-right h3,
  .yennefer-box-left h3,
  .ciri-box-right h3,
  .emyhr-box-left h3,
  .dandelion-box-right h3 {
    font-size: 1.5em;
  }

  table,
  .geralt-box-right p,
  .yennefer-box-left p,
  .ciri-box-right p,
  .emyhr-box-left p,
  .dandelion-box-right p {
    font-size: 1.2em;
  }
}
@media screen and (max-width: 576px) {
  .characters-banner .characters-title {
    margin-bottom: 0;
  }
}
