@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100%3b300%3b400%3b500%3b700%3b900&display=swap");
:root {
  --bgMain: hsla(0, 0%, 2%, 1);
  --bgMenu: linear-gradient(
      to top,
      hsla(0, 0%, 20%, 0.9),
      hsla(0, 0%, 20%, 0.3),
      hsla(0, 0%, 20%, 0.9)
  );
  --bgActiveMenu: hsla(0, 0%, 100%, 0.1);
  --bgCard: hsla(0, 0%, 20%, 0.8);
  --bgFooter: hsla(0, 0%, 20%, 0.9);
  --clFontMain: hsla(0, 0%, 95%, 1);
}

:root {
  --ftMain: "Roboto", tahoma, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: 0.3s;
  /* scrollbar for firefox*/
  scrollbar-width: thin;
  scrollbar-color: #666 #333;
  /* scrollbar for chromium base browsers*/
}
*::-webkit-scrollbar {
  width: 5px;
}
*::-webkit-scrollbar-track {
  background: #333;
}
*::-webkit-scrollbar-thumb {
  background: #666;
}

body {
  background: var(--bgMain);
  color: var(--clFontMain);
  min-height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  padding-bottom: 20px;
  overflow-x: hidden;
  text-align: center;
  font-family: var(--ftMain);
}

a,
a:visited {
  color: var(--clFontMain);
  font-weight: bold;
  transition: 0.5s;
  text-decoration: none;
  text-shadow: 0 0 1px var(--clFontMain);
}
a:hover, a:focus,
a:visited:hover,
a:visited:focus {
  outline: none;
  color: white;
  text-shadow: 0 0 3px var(--clFontMain);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  width: 100%;
  line-height: 1em;
}

h1 {
  font-size: 2.2rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.8rem;
}

h4 {
  font-size: 1.6rem;
}

pre {
  text-align: left;
}

main {
  width: 90vw;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  font-size: 1.1rem;
  /**
  * exemple breakpoints usage with mixins
  *
      @include breakpoint(tablet){
          background:red;
      }

      @include breakpoint(pc){
          background:green;
      }
  */
}

p {
  text-align: justify;
  line-height: 1.4em;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

input {
  padding: 0.3rem 1rem;
}

input[type=text],
input[type=number],
input[type=email],
input[type=password] {
  border: 1px solid hsl(0, 0%, 20%);
  background: hsla(0, 0%, 100%, 0.8);
  box-shadow: 0 0 10px inset black;
}
input[type=text]:focus,
input[type=number]:focus,
input[type=email]:focus,
input[type=password]:focus {
  outline: none;
  background: white;
  box-shadow: 0 0 5px inset black;
}

input[type=submit],
input[type=button],
button,
.btn {
  border: 1px solid hsl(0, 0%, 20%);
  background: linear-gradient(to bottom, #111, #333, #111);
  color: var(--clFontMain);
  font-weight: 900;
  border-radius: 5px;
  cursor: pointer;
}
input[type=submit]:hover, input[type=submit]:focus,
input[type=button]:hover,
input[type=button]:focus,
button:hover,
button:focus,
.btn:hover,
.btn:focus {
  background: linear-gradient(to bottom, #333, #555, #333);
}

.card {
  border: 2px ridge white;
  border-radius: 10px;
  background-color: var(--bgCard);
  padding: 0;
  margin: 1em;
}

.card-tabs {
  border: none;
  display: flex;
  justify-content: flex-start;
  width: 100%;
  padding: 0;
  position: relative;
  top: calc(-1.3em - 2px);
  margin-top: 1.3em;
  margin-bottom: -1.3em;
  left: -1px;
}
.card-tabs input[type=radio] {
  display: none;
}
.card-tabs::after {
  content: "";
  display: block;
  position: relative;
  width: 100%;
  border-bottom: 1px solid white;
}

.card-content {
  padding: 1em;
}

.tab {
  border: 1px solid white;
  border-radius: 10px 10px 0 0;
  padding: 0 0.3em;
  cursor: pointer;
  opacity: 0.6;
}

:checked + .tab {
  border-bottom: none;
  cursor: default;
  opacity: 1;
}

.tab-content {
  display: none;
  width: 100%;
}
.tab-content.active {
  display: inherit;
  flex-wrap: inherit;
  justify-content: inherit;
  align-items: inherit;
}

#characterCreation {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
#characterCreation #parents {
  width: 100%;
}
#characterCreation #parents .card-content {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1em;
}
@media (min-width: 1200px) {
  #characterCreation #parents .card-content {
    justify-content: space-around;
  }
}
#characterCreation #father,
#characterCreation #mother,
#characterCreation #child {
  width: 90vw;
  max-width: 500px;
  margin: 0 0.5em;
}
#characterCreation #father .card-content,
#characterCreation #mother .card-content,
#characterCreation #child .card-content {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
@media (min-width: 600px) {
  #characterCreation #father .card-content,
  #characterCreation #mother .card-content,
  #characterCreation #child .card-content {
    justify-content: space-around;
  }
}
#characterCreation #father svg path,
#characterCreation #father svg g,
#characterCreation #mother svg path,
#characterCreation #mother svg g,
#characterCreation #child svg path,
#characterCreation #child svg g {
  transition: 0s;
}
#characterCreation #father img,
#characterCreation #mother img,
#characterCreation #child img {
  width: 147px;
  height: 180px;
}
#characterCreation #father input[type=text],
#characterCreation #mother input[type=text],
#characterCreation #child input[type=text] {
  min-width: 200px;
}
@media (min-width: 1200px) {
  #characterCreation #father input[type=text],
  #characterCreation #mother input[type=text],
  #characterCreation #child input[type=text] {
    min-width: 0;
  }
}
#characterCreation #father .colorPicker,
#characterCreation #mother .colorPicker,
#characterCreation #child .colorPicker {
  max-width: 200px;
  height: 50px;
}
#characterCreation #father .colorPicker input[type=range],
#characterCreation #mother .colorPicker input[type=range],
#characterCreation #child .colorPicker input[type=range] {
  opacity: 0.3;
}
#characterCreation #father svg {
  transform: scaleX(-1);
}
#characterCreation .icon {
  font-size: 50px;
}

.colorPicker {
  display: flex;
  flex-wrap: wrap;
}
.colorPicker input[type=range] {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}
.colorPicker .range-wrapper {
  width: 100%;
  height: 33%;
  padding: 0 5px;
}

footer {
  position: fixed;
  bottom: 0;
  background-color: var(--bgFooter);
  border-top: 1px solid white;
  width: 100%;
  text-align: center;
  font-size: 1rem;
}

header {
  width: 100%;
}
header a {
  display: block;
  width: 100%;
  height: 100%;
}
header a img {
  height: 100%;
}

nav {
  background: var(--bgMenu);
  width: 95vw;
  max-width: 1200px;
  margin: 0 auto;
  border: 1px solid white;
  border-radius: 100px;
  font-size: 1.8rem;
  display: flex;
  justify-content: space-around;
  padding: 0 5vw;
}
nav a {
  height: 100%;
  width: 100%;
}
nav a:hover, nav a:focus {
  background: var(--bgActiveMenu);
}

#toastError {
  position: fixed;
  top: 20px;
  right: -500px;
  width: 500px;
  max-width: 80vw;
  transition: 0.5s;
  border: 1ps solid white;
}
#toastError.show {
  right: 20px;
}
