/* !Select selected not using our color */
/* ! Touch clicking on clear canvas don't rechange color */

:root {
  --background: #fefefe; /**/
  --accent-1: #a8dadc;
  --accent-2: #457b9d;
  --background-accent: #d0dacd;

  --text-color: black;

  --action-1: #ff4057;
  --action-2: #e5223a;
}

body {
  font-size: large;
  font-family: sans-serif;
  background-color: var(--background);
}

nav {
  display: flex;
}
#logo {
  color: var(--action-1);
  font-family: Modak;
  font-size: 53px;
  font-style: normal;
  font-weight: 400;
  line-height: 72.586%; /* 38.471px */
  margin: auto auto;
  width: min-content;
  position: relative;
}

#logo button {
  position: relative;
  border: none;
  padding: 0;
  background-color: transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  margin: 0px;
  line-height: 72.586%;
  height: min-content;
  z-index: 2;
}

#logo button:hover {
  color: var(--action-1) !important; /* Js change color*/
  cursor: pointer;
}

#logoBar {
  background: var(--action-1);
  position: absolute;
  width: 108px;
  height: 35px;
  right: 85px;
  top: -2.5px;

  border-radius: 50px;
}

#logoCircle {
  background-color: var(--action-2);
  height: 100%;
  z-index: 2;
  aspect-ratio: 1/1;
  transition: margin 1s ease-in-out, transform 1s ease-in-out;
  border-radius: 50%;
}

#themeButton {
  display: none;
}
#slider {
  cursor: pointer;
  display: inline-block;
  width: 49px;
  aspect-ratio: 39/22;
  border-radius: 48px;
  background: var(--accent-1);
  transition: 0.4s ease-in-out;
}

@media only screen and (min-width: 936px) {
  #slider {
    width: 59px;
  }
}
#themeButton:checked + #slider {
  background: var(--accent-1);
}

#slider::after {
  content: "";
  background-color: var(--accent-2); /* dark */
  height: 100%;
  aspect-ratio: 1/1;
  position: relative;
  display: block;
  border-radius: 50%;
  transition: 0.4s ease-in-out;

  background-image: url(images/sun.svg);
  background-size: 90%;
  background-position: center;
  background-repeat: no-repeat;
}

#themeButton:checked + #slider::after {
  margin-left: 44%;
  background-color: var(--accent-2); /* dark */

  background-image: url(images/moon.svg);
  background-size: 90%;
  background-position: center;
  background-repeat: no-repeat;
}

/* #themeButton {
  display: none;
} */

#app {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  margin-top: 25px;
  justify-content: center;
}

canvas {
  aspect-ratio: 1/1;
  width: 280px;
  touch-action: none;
}
#c3 {
  position: absolute;
  pointer-events: none;
}

#c2,
#c3 {
  /* disable antialiasing */
  image-rendering: optimizeSpeed; /* Older versions of FF          */
  image-rendering: -moz-crisp-edges; /* FF 6.0+                       */
  image-rendering: -webkit-optimize-contrast; /* Safari                        */
  image-rendering: -o-crisp-edges; /* OS X & Windows Opera (12.02+) */
  image-rendering: pixelated; /* Awesome future-browsers       */
  -ms-interpolation-mode: nearest-neighbor; /* IE                            */
}

.overlay {
  width: 50px;
  height: auto;
  position: absolute;
  right: -10px;
  top: -20px;
  /* transform: scaleX(-1); */
  rotate: 25deg;
  transition: 0.2s ease-in-out;
  z-index: 10;
}

#smallOverlay {
  cursor: pointer;
}
.overlay:hover {
  scale: 1.1;
}
.canvasContainer {
  display: flex;
  flex-direction: column;
  text-align: center;
  margin: 0px 5px;
  position: relative;
}

#viewChanger {
  margin: 0px auto;
}

#clear {
  z-index: 1;
  padding: 10px 30px;
  position: absolute;
  left: 0;
  right: 0;
  width: 100px;
  padding: 5px 10px;
  padding-bottom: 0px;
  border-radius: 5px 5px 0px 0px;
  top: -39px;
}

#clear:hover {
  cursor: pointer;
}

button {
  margin: 10px auto;
  padding: 10px 30px;
  border-radius: 5px;
  font-size: large;
  background-color: var(--accent-1);
  border: 0px;
}

/* *So it don't change colors on mobile */
@media (hover: hover) {
  .canvasContainer > button:hover {
    background-color: var(--accent-2);
  }
}

#resultSide {
  min-width: 280px;
  display: flex;
  flex-direction: column;
  color: var(--text-color);
}

ul {
  list-style: none;
  font-weight: bold;
  font-size: x-large;
  margin: 0px;
  padding: 0px;
}

li {
  display: flex;
  margin: 0px;
  position: relative;
  z-index: 3;
  height: 28px;
}

#topResult {
  background-color: var(--action-1);
}

.chanceContainer {
  padding: 2px;
  background-color: var(--background-accent);
  width: 100%;
  border-radius: 10px;
  margin: 5px;
}

.numberChance {
  /* position: absolute; */
  background-color: var(--accent-1);
  height: 100%;
  border-radius: 50px;
  position: relative;
  transition: width 0.2s ease-in-out;
}

.numberChance::after {
  content: "";
  position: absolute;
  height: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  /* left: 0; */
  right: 0;
  background-color: var(--accent-2);
}
#topResult::after {
  background-color: var(--action-2);
}

#explenation {
  width: 100%;
  max-width: 885px;
  margin: 0 auto;
  padding: 5px;
  color: var(--text-color);
}

#explenation img {
  max-height: 250px;
  max-width: 100%;
}

@media only screen and (max-width: 935px) {
  #c2Container {
    display: none;
  }

  #bigOverlay {
    display: none;
  }
}
@media only screen and (min-width: 936px) {
  #viewChanger,
  #c3 {
    display: none;
  }
  #smallOverlay {
    display: none;
  }
}
