@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;500;600;700;800&display=swap");

:root {
  /* Normal Theme */
  --color-medium-turquoise: #00cfc1;
  --color-turquoise-blue: #00ffe7;
  --color-white: #ffefe8;
  --color-purple: #462255;

  /* Electro Theme */
  --color-rosso-corsa: #d00000;
  --color-fluorescent-blue: #00f6ed;
  --color-electric-lime: #c6f91f;
  --color-lavander-Blush: #f3e8ee;
  --color-rich-black: #101419;
}

* {
  font-family: "Nunito", sans-serif;
  margin: 0;
  padding: 0;
}

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

html {
  box-sizing: border-box;
  font-size: 62.5%;
}

body {
  display: grid;

  grid-template-columns: 0.3fr 2fr;
  grid-template-rows: 100vh;
}

.header {
  color: var(--color-white);
  background-color: var(--color-medium-turquoise);

  display: flex;
  flex-direction: column;

  justify-content: space-evenly;
  align-items: center;
}
.main {
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);

  justify-content: center;
  align-items: center;

  overflow: hidden;

  position: relative;
}

.list {
  font-size: 1.6rem;
  list-style: none;
  background-color: var(--color-purple);
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;

  transform: scale(1);

  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}

.label {
  font-size: 3.6rem;
  font-weight: 800;
}
.label__sub {
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
}

.nav {
  display: flex;
  font-weight: 700;
  gap: 2rem;
  margin: 1.5rem 1.5rem;
  justify-content: center;
}

.btn__nav {
  display: none;
}

.logo {
  width: 15rem;
  height: auto;
}
.logo__rulet {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 25rem;
  height: auto;

  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 0.3rem var(--color-purple));
}
.logo__header {
  filter: drop-shadow(0 0 0.1rem var(--color-purple));
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Rulet Style */

.box__rulet {
  position: relative;
  margin: auto 0;
}

.rulet__body {
  background-image: repeating-conic-gradient(
    var(--color-turquoise-blue) 0deg 45deg,
    var(--color-medium-turquoise) 45deg 90deg
  );
  width: 50rem;
  height: 50rem;
  border-radius: 50%;
  border: 0.6rem solid var(--color-purple);
  box-shadow: 0 0 0.5rem inset var(--color-purple), 0 0 1rem rgba(0, 0, 0, 0.6);

  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 2s;

  position: relative;
}

.rulet__pointer {
  background-color: var(--color-purple);
  clip-path: polygon(50% 100%, 0 0, 100% 0);

  position: absolute;
  width: 2.5rem;
  height: 2.5rem;
  left: 50%;
  top: -1rem;
  transform: translateX(-50%);
  z-index: 1;
}

.rulet__value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-white);
  text-shadow: 0 0 0.2rem var(--color-purple);
  position: absolute;
}
.rulet__value--1 {
  top: 20%;
  left: 37.5%;
  transform: translate(-50%, -50%) rotate(-22.5deg);
  padding: 0 3rem;
}
.rulet__value--2 {
  top: 20%;
  left: 62.5%;
  transform: translate(-50%, -50%) rotate(22.5deg);
  padding: 0 4.8rem;
}
.rulet__value--3 {
  top: 37.69%;
  left: 20%;
  transform: translate(-50%, -50%) rotate(-67.5deg);
  padding: 0 4.25rem;
}
.rulet__value--4 {
  top: 37.7%;
  left: 80%;
  transform: translate(-50%, -50%) rotate(67.5deg);
  padding: 0 4.8rem;
}
.rulet__value--5 {
  top: 62.5%;
  left: 80%;
  transform: translate(-50%, -50%) rotate(112.5deg);
  padding: 0 3.6rem;
}
.rulet__value--6 {
  top: 62.55%;
  left: 20%;
  transform: translate(-50%, -50%) rotate(-112.5deg);
  padding: 0 4.8rem;
}
.rulet__value--7 {
  top: 80%;
  left: 37.6%;
  transform: translate(-50%, -50%) rotate(-157.5deg);
  padding: 0 3.5rem;
}
.rulet__value--8 {
  top: 80%;
  left: 62.5%;
  transform: translate(-50%, -50%) rotate(157.5deg);
  padding: 0 4.7rem;
}

/* Copyright */
.copyright {
  color: var(--color-purple);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

/* Btn spin rulet */

.btn__spin {
  background-color: var(--color-purple);
  color: var(--color-white);
  cursor: pointer;
  letter-spacing: -0.2rem;
  width: 12.5rem;
  height: 12.5rem;

  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 4.4rem;
  font-weight: 800;
  border-radius: 50%;
  transform: scale(1);

  transition: background-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn__spin:hover,
.btn__spin:focus {
  background-color: var(--color-turquoise-blue);
  box-shadow: 0 0 2rem var(--color-turquoise-blue);
  transform: scale(0.95);
}

/* Screen Result */
.screen {
  background-color: rgba(255, 239, 232, 0.9);
  width: 100%;
  height: 100%;

  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;

  transform: translate(-50%, -50%);

  display: flex;
  flex-direction: column;
  /* gap: 1rem; */

  justify-content: center;
  align-items: center;

  visibility: hidden;
  opacity: 0;

  transition: opacity 0.5s;
}
.label__screen {
  font-size: 13.2rem;
  color: var(--color-white);
  text-shadow: 0 0 0.5rem var(--color-purple);
  letter-spacing: -0.8rem;
}
.label__rulet-value {
  font-size: 10.4rem;
  font-weight: 800;
  color: var(--color-purple);
  text-shadow: 0 0 0.4rem var(--color-purple);
  letter-spacing: -0.6rem;
}

/* Theme's btn active class*/

.active {
  background-color: var(--color-turquoise-blue);
  box-shadow: 0 0 2rem var(--color-turquoise-blue);
  transform: scale(0.9);
}

/* Theme's Electro*/
.activeElectro {
  background-color: var(--color-rosso-corsa);
  box-shadow: 0 0 2rem var(--color-rosso-corsa);
  transform: scale(0.9);
}

.ruletElectro {
  background-image: repeating-conic-gradient(
    var(--color-rich-black) 0deg 45deg,
    #0c0c0c 45deg 90deg
  );

  border-color: var(--color-rich-black);

  box-shadow: 0 0 0.5rem inset var(--color-electric-lime),
    0 0 2rem inset var(--color-rosso-corsa);

  animation: gradientRulet 1s infinite;
}

.logoElectro {
  animation: gradient 1s infinite;
}

.btnSpinElectro {
  background-color: var(--color-rosso-corsa);
}

.btnSpinElectro:hover,
.btnSpinElectro:focus {
  animation: gradientBtnSpin 1s infinite;
}

.listElectro {
  background-color: var(--color-rosso-corsa);
}

.listElectro:hover,
.listElectro:focus {
  animation: gradientBtnSpin 1s infinite;
}

.resultScreenElectro {
  animation: gradientBackground 1s infinite;
}
.labelScreenElectro {
  color: var(--color-lavander-Blush);
  text-shadow: 0 0 1rem var(--color-lavander-Blush);
}
.valueElectro {
  color: #d00000;
  text-shadow: 0 0 1rem var(--color-rosso-corsa);
}

@keyframes gradient {
  0% {
    filter: drop-shadow(0 0 0.15rem var(--color-fluorescent-blue));
  }
  20% {
    filter: drop-shadow(0 0 0.2rem var(--color-rosso-corsa));
  }
  50% {
    filter: drop-shadow(0 0 0.5rem var(--color-electric-lime));
  }
  100% {
    filter: drop-shadow(0 0 0.15rem var(--color-fluorescent-blue));
  }
}

@keyframes gradientBackground {
  0% {
    background-color: rgba(198, 249, 31, 0.5);
  }
  50% {
    background-color: rgba(0, 255, 231, 0.5);
  }
  100% {
    background-color: rgba(208, 0, 0, 0.5);
  }
}

@keyframes gradientBtnSpin {
  0% {
    background-color: var(--color-electric-lime);
    box-shadow: 0 0 2rem var(--color-electric-lime);
  }
  50% {
    background-color: var(--color-fluorescent-blue);
    box-shadow: 0 0 2rem var(--color-fluorescent-blue);
  }
  100% {
    background-color: var(--color-rosso-corsa);
    box-shadow: 0 0 2rem var(--color-rosso-corsa);
  }
}

@keyframes gradientRulet {
  0% {
    box-shadow: 0 0 0.5rem inset var(--color-electric-lime),
      0 0 2rem inset var(--color-rosso-corsa),
      0 0 0.6rem var(--color-fluorescent-blue);
  }
  25% {
    box-shadow: 0 0 1rem inset var(--color-electric-lime),
      0 0 4rem inset var(--color-rosso-corsa),
      0 0 5rem var(--color-electric-lime);
  }
  50% {
    box-shadow: 0 0 5rem inset var(--color-electric-lime),
      0 0 3rem inset var(--color-rosso-corsa), 0 0 4rem var(--color-rosso-corsa);
  }
  75% {
    box-shadow: 0 0 4rem inset var(--color-electric-lime),
      0 0 6.5rem inset var(--color-rosso-corsa),
      0 0 8rem var(--color-electric-lime);
  }
  100% {
    box-shadow: 0 0 0.5rem inset var(--color-electric-lime),
      0 0 2rem inset var(--color-rosso-corsa),
      0 0 0.6rem var(--color-fluorescent-blue);
  }
}

/* Media Screen */

@media (max-width: 87.5em) {
  html {
    font-size: 59.375%;
  }
}

@media (max-width: 64em) {
  html {
    font-size: 56.25%;
  }
}

@media (max-width: 48em) {
  html {
    font-size: 50%;
  }

  body {
    display: grid;

    grid-template-rows: 15vh 85vh;
    grid-template-columns: 100vw;
  }

  .header {
    flex-direction: row;
    position: relative;
  }

  .container__header-settings {
    background-color: var(--color-medium-turquoise);

    position: absolute;
    z-index: 2;
    top: 100%;
    left: 50%;
    width: 100%;

    flex-direction: row;
    transform: translateX(-150%);

    justify-content: space-evenly;
    align-items: center;

    transition: transform 0.2s;
  }
  .nav {
    margin: 1.5rem 0;
  }
  .btn__nav {
    fill: var(--color-white);
    width: 10.5rem;
    height: 10.5rem;

    display: block;
    transform: rotate(0deg);
    transition: transform 0.5s;
  }

  .btn__nav:hover,
  .btn__nav:focus {
    transform: rotate(360deg);
  }

  .label__header-settings {
    display: none;
  }

  /* nav class active translate */

  .active-nav {
    transform: translateX(-50%);
  }
}

@media (max-width: 30em) {
  html {
    font-size: 43.75%;
  }
}

@media (max-width: 23.4375em) {
  html {
    font-size: 37.5%;
  }
}
