/* GLOBAL */
:root {
  --white: #f2f2f2;
  --pure-white: rgb(255, 255, 255);
  --light-gray: #8c8c8c;
  --extra-light-gray: rgb(218, 218, 218);
  --gray: #595959;
  --dark-gray: #262626;
  --black: #181717;
  --pure-black: black;
  --gold: #a68256;
  --purple: #5c3661;
  --red: #a7292f;
  --cyan: #148a94;
}

html {
  scroll-behavior: smooth;
}

/* Typography */
/*! Generated by Font transfonter (https://transfonter.org/) on November 5, 2024 */
@font-face {
  font-family: 'League Spartan';
  src: url('/assets/fonts/LeagueSpartan-Regular.woff') format('woff'),
    url('/assets/fonts/LeagueSpartan-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url('/assets/fonts/Roboto-Regular.woff2') format('woff2'),
    url('/assets/fonts/Roboto-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body,
button {
  line-height: 1.6;
  font-family: 'League Spartan';
  font-size: 21px;
}


h1 {
  font-size: 37px;
}

h1,
h2,
h3,
h3,
h4,
h5,
h6,
nav {
  font-family: 'Roboto';
  font-weight: 600;
  font-style: normal;
}

.highlight {
  font-family: "Roboto Mono", monospace;
}

.small {
  font-size: 13px;
}

.regular {
  font-size: 16px;
}

ul li {
  list-style-type: disc;
  color: var(--dark-gray);
}

h1,
h2 {
  border-bottom: 2px solid var(--black);
}

h4 {
  margin: 20px 0;
}


hr {
  border: 0;
  height: 1px;
  background: var(--pure-white);
  margin: 10px 0;
}

/* General Reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Layout -----------------------------------------*/
.right {
  float: right;
}

.container-gap {
  margin-bottom: 15px;
}

/* flex */
.fx-container-hr {
  /* horisontal layout flex */
  display: flex;
  justify-content: flex-start;
  flex-direction: row;
}

/* ------ do not change */


.container-flex-row {
  display: flex;
}



.row-rewerse {
  flex-direction: row-reverse;
}

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

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

.fx-container-left {
  justify-content: flex-start;
}

.fx-container-right {
  justify-content: flex-end;
}

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

.fx-container-around-tier {
  justify-content: space-around;
}

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

.fx-center {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.box {
  width: 100%;
  padding: 10px;
  text-align: center;
}

.box-2 {
  width: 100%;
  margin-right: 10px;
  text-align: left;
}

.item {
  flex: 1;
}

.item-large {
  flex: 2
}

.item-extra-large {
  flex: 3;
}

.fx-item {
  align-items: left;
  margin: 0;
  padding: o;
}

.fx-item img {
  height: auto;
}

.fx-left {
  flex: 30%;
}

.fx-right {
  flex: 70%;
  margin: 10px 15px;
}

.fx-item div {
  margin: 0px;
}

.fx-item:first-child {
  text-align: center;
}

.gap-left {
  padding: 0 30px;
}

p,
section {
  margin: 10px 0;
}

.element {
  margin: 20px 0;
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
}

.icon {
  font-size: 14px;
}

section,
article {
  margin: 30px 0;
}

video {
  max-width: 100%;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  aspect-ratio: 16 / 10;
}

iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  border: none;

}

/* Style the body */




/* Increase the font size of the heading */
.header h1 {
  font-size: 40px;
}

/* Sticky navbar */
.navbar {
  border: solid 1px var(--white);
  overflow: hidden;
  background-color: #333;
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 2;
}

/* Style the navigation bar links */
.navbar a {
  float: left;
  display: block;
  color: var(--pure-white);
  text-align: center;
  padding: 14px 20px;
  text-decoration: none;
}

#home img {
  padding: 0;
  height: 34px;

}

/* Button --- fixing the size to avoid pushing */
.material-symbols-outlined {
  font-size: 14px;
}


/* Right-aligned link */
.navbar a.right {
  float: right;
}

/* Change color on hover */
.navbar a:hover {
  background-color: #ddd;
  color: black;
}

/* Active/current link */
.navbar a.active {
  background-color: #666;
  color: white;
}

/* Column container */
.row {
  display: -ms-flexbox;
  /* IE10 */
  display: flex;
  -ms-flex-wrap: wrap;
  /* IE10 */
  flex-wrap: wrap;
}

/* Create two unequal columns that sits next to each other */
/* Sidebar/left column */
.side {
  background-color: var(--black);
  color: var(--white);
  padding: 20px;
  height: auto;
  top: 0;
}

.aside-menu li {
  list-style: none;
}

.aside-menu a {
  text-decoration: none;
}

/* cusom scroolbar --- visible before a breakpoint */
/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: var(--black);
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--light-gray);
  border: 1px solid white;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #555;
}



/* MAIN CONTENT --------------------------------------------------------- */
.main {
  -ms-flex: 70%;
  /* IE10 */
  flex: 70%;
  background-color: white;
  padding: 20px;
}

/* Fake image, just for this example */
.fakeimg {
  background-color: #aaa;
  width: 100%;
  padding: 20px;
}

/* Footer */
.footer {
  height: 160px;
  bottom: 0;
  width: 100%;
  padding: 20px;
  text-align: center;
  background: var(--dark-gray);
  color: var(--white);
  border-top: 1px solid var(--white);
  margin: 0;
}




/* ELEMENTS ---------------------------------------------------------------------------------------*/
/* Accordion */
.accordion-container {
  margin: 10px 0;
}

.accordion {
  cursor: pointer;
  padding: 18px;
  width: 100%;
  text-align: left;
  outline: none;
  font-size: 20px;
  font-weight: 300;
  transition: 0.4s;
  font-weight: 600;
}


.active,
.accordion:hover {
  background-color: #ccc;
}

.accordion:after {
  content: '\002B';
  color: #777;
  font-weight: bold;
  float: right;
  margin-left: 5px;
}

.active:after {
  content: "\2212";
}

.panel {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.panel div {
  padding: 15px 0;
}


/* ------- image container */
.img-container {
  background-color: var(--pure-white);
  color: var(--black);
  overflow: hidden;
  position: relative;
  height: fit-content;
  margin: 15px 0;
}

.img-caption {
  padding: 7px;
}

img {
  max-width: 100%;
  max-height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.img-container p {
  padding: 10px;
  font-size: 16px;
  font-weight: 600;
}

/* -------- NOTE */
.note {
  background-color: var(--white);
  border-left: 6px solid var(--gray);
  padding: 15px 12px;
}






/* --- Character Cards Grid */
/* --- regular cards */
.card-grid {
  grid-gap: 10px 5px;
  display: grid;
  grid-template-columns: repeat(auto-fill, 140px);
  justify-content: space-between;
  margin-top: 15px;
}

.character-card {
  border: 1px solid var(--black);
  color: #ffffff;
  background-color: var(--gold);
  max-width: 150px;
  text-align: center;
  margin: 2px;
  /* Hidden by default */
}

/* cards small */
.character-group {
  margin: 10px 0;
  display: flex;
  padding: 10px;
  border: 2px solid var(--cyan);
  background-color: #333;
}


.character-card-sm img {
  border: 2px solid var(--gray);
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  max-width: 300px;
}

.card-row {
  display: flex;
  justify-content: space-between;
  max-width: 100%;
}

.card-row div {
  margin: 0 5px;
}

.character-text {
  width: 100%;
  object-fit: cover;
  height: auto;
  font-family: 'League Spartan';
}

.character-group p {
  height: 100%;
  margin: 0;
  padding: 5px;
}

.character-card:hover {
  transform: scale(1.03);
  /* card is bigger on hover */
  transition: 0.3s ease;
  -webkit-transition: 0.3s ease;
}

.character-card a {
  color: var(--pure-white);
}

.character-card a:hover {
  color: var(--pure-black);
}

.limited {
  background-color: var(--gold);
}

.purple {
  background-color: var(--purple);
}

.bottom {
  padding: 10px;
  font-size: 13px;
  flex-grow: 1;
}

/* Styling the Buttons area */
.search-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-bottom: 5px;
}

.search-box {
  flex-grow: 1;
  margin-right: 10px;
  padding: 11px;
  height: 100%;
  width: 100%;
  outline: none;
}

input[type="text"] {
  border: 1px solid var(--dark-gray);
  outline: none;
}

input[type="text"]:focus {
  border: 2px solid var(--gray);
  outline: none;
}


#characters-grid button {
  padding: 10px;
  background-color: var(--dark-gray);
  border: 1px solid var(--pure-white);
  color: var(--white);
  font-size: 16px;
  width: 100%;
}

#characters-grid button:hover {
  background-color: var(--light-gray);
  transition: 0.3s ease;
  -webkit-transition: 0.3s ease;
}

#characters-grid .reset-button-red,
#characters-grid .reset-button {
  background-color: var(--red);
}

#characters-grid .reset-button {
  max-width: 98px;
}

.btn-img {
  width: 32px;
}

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



/* banner */
.banner-sml {
  background-color: var(--dark-gray);
  text-align: left;
  color: var(--white);
  padding: 10px;
  border: 3px solid var(--gray)
}

.img-banner div div {
  margin: 10px;
  padding: 10px;
}

.img-icon {
  max-width: 120px;
  height: 120px;
}

.img-icon-con {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Tooltip */
.tooltip {
  position: relative;
  display: inline-block;
  border-bottom: 1px solid var(--white);

}

.tooltip .tooltiptext {
  visibility: hidden;
  max-width: 300px;
  background-color: var(--white);
  color: var(--black);
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  border: 3px solid var(--gray);
  padding: 10px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: var(--gray) transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* teams */
.character-card-team {
  width: 100%;
  max-width: 200px;
  min-width: 50px;
  aspect-ratio: 4 / 6;
  object-fit: cover;
  margin: 5px;
}

.team-row-container {
  padding: 10px;
  margin: 15px 0;
  position: relative;
}

.team-row-container div:first-child {
  margin: 0 10px;
}

.team-row-container .rotation-header {
  padding: 5px;
  margin-right: 5px;
}

.rotation-text p {
  margin: 0;
}

/* Search-results */
.search-result-box {
  padding: 10px 0;
}

.search-result-box p {
  margin: 0;
}

.search-result-box .result-text {
  margin-right: 10px;
}

.search-result-box .result-text img {
  max-width: 300px;
}

/* search-bar-global */
.navbar form {
  display: inline;
}

.navbar input[type=text] {
  padding: 10px 25px;
  margin: 0 10px;
  margin-top: 12px;
  border: none;
  display: inline;

  background-image: url(../images/icons/search.png);
  background-repeat: no-repeat;
  background-position: right center;
  box-shadow: none;
  -webkit-appearance: none;
}



/* tier list */
.character-group-tier {
  margin: 10px;
  border-style: solid;
}

.character-group-tier .tier-line {
  padding: 10px;
  font-size: 22px;
}

.card-tier {
  margin: 10px;
  height: 215px;
}

.card-tier-title {
  margin-left: 10px;
  background-color: var(--red);
  width: 100%;  
  min-width: 50px;  
}

.card-tier img {
  width: 100%;
  max-width: 150px;
  min-width: 50px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-style: solid;
}

.card-tier div {
  display: flex;
  justify-content: center;
  min-height: 100vh;
}
.card-tier div p {
  width: 155px;
  text-align: left;
  margin: 0;
  margin-left: 3px;
}


/* RESPOSIVE */

/* sectop and wide screens */
@media screen and (min-width: 851px) {
  .side {
    overflow-y: hidden;
    width: 250px;
  }
  
}

/* Responsive layout - tablets */
@media screen and (max-width: 850px) {
  .row {
    flex-direction: column;
    width: 100%;
  }

  .fx-container-left.icon-box {
    justify-content: flex-start;
  }

  .icon-box .box {
    padding: 0;
    text-align: left;
  }

  .fx-container-around {
    justify-content: flex-start;
  }

  .icon-box div {
    text-align: left;
  }

  .fx-container-around.icon-box {
    max-width: 200px;
  }

  .fx-container-around.icon-box img {
    margin: 10px 0;
  }

  .card-row div {
    margin: 10px 0;
  }
   
}

@media screen and (min-width: 630px) {
  .card-tier-title {
    max-width: 155px;
  }
}

/* Responsive for smaller devices */
@media screen and (max-width: 630px) {
  .character-group {
    display: block;
  }

  .character-card-team {
    margin: 0;
  }

  .character-card-team:not(:last-of-type) {
    margin-right: 5px;
  }

  .team-row-container {
    flex-direction: column;
    margin: 0;
    padding: 10px;
  }

  .rotation-text {
    flex-direction: column;
    margin-bottom: 7px;
  }

  .team-row-container div:first-child {
    margin: 0;
  }

  .vertical-text.rotation-header {
    writing-mode: horizontal-tb;
    margin: 0;

  }

  .team-row-container .crarater-row {
    flex-direction: row;
    justify-content: space-between;
  }

  .search-result-box {
    flex-direction: column;
  }

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


  .navbar form {
    display: block;
    margin: 0;
  }

  .navbar input[type=text] {
    display: block;
    width: 100%;
    margin: 0;
    padding: 10px;
    font-size: large;
    height: 61px;
    border-bottom: 3px solid var(--light-gray);
  }

  .vertical-text.tier-line {
    writing-mode: horizontal-tb;
  }

  .team-container .character-group-tier {
    flex-direction: column;
  }

  .tier-cont {
    flex-direction: column;
    display: block;
  }
  .team-container .card-tier-title {
    width: 96%;    
  }
}

/* Responsive layout - very small decices */
@media screen and (max-width: 480px) {
  .navgbar a {
    float: none;
    width: 100%;
  }

  .fx-cgontainer-hr {
    flex-direction: column;
    width: 100%;
  }

  .img-container img {
    margin: 10px auto;
  }

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

  .search-container:first-of-type {
    flex-direction: column;
  }

}

/* Responsive layout - very small decices */
@media screen and (max-width: 350px) {
  .navbar a {
    float: none;
    width: 100%;
  }

  .fx-container-hr {
    flex-direction: column;
    width: 100%;
  }


}