@import url("https://fonts.googleapis.com/css2?family=Ysabeau+Infant&display=swap");

@font-face {
  font-family: WhaleITried;
  src: url(../fonts/WhaleITriedRegular-xWq0.ttf);
}

:root {
  --primary: #92d4f7;
  --secondary: #ecc30b;
  --dark: #251605;
  --light: #fcfcfc;
}

* {
  padding: 0;
  margin: 0;
}
/*Header*/
#header {
  height: 100%;
  width: 100%;
  background: url("../img/multfilm-shou-simpsons-personazh-20th-century-fox-art-ris-15.jpg")
    no-repeat center center/cover;
  position: relative;
  font-family: WhaleItried;
  font-size: clamp(2rem, 4vw, 5rem);
  color: var(--secondary);
  text-shadow: 3px 3px var(--light);
  text-transform: uppercase;
}

/**/
body {
  background-color: var(--primary);
  height: 100svh;
 
}

main {
  font-weight: bold;
  font-family: "Ysabeau Infant", sans-serif;
  font-size: clamp(1rem, 2.5vw, 3rem);
  padding-bottom: 60px;
}

/**Main**/

/**username input**/
#usernameArea {
  margin-left: 6px;
  padding: 5px;
  font-family: "Ysabeau Infant", sans-serif;
  font-size: clamp(1rem, 2.5vw, 3rem);
}

#nameInput {
  padding: 0 5px;
  border: none;
  border-radius: 10px;
  background-color: whitesmoke;
  transition: background-color 0.5s ease;
}

#submitBtn {
  margin-left: 2px;
  padding: 0 5px;
  border-radius: 10px;
  border: 2px solid var(--secondary);
  background-color: whitesmoke;
  cursor: pointer;
  transition: background-color 0.5s ease;
}

#submitBtn:hover,
#nameInput:hover  {
  scale: 1.05;
  transition: scale 100ms;
  background-color: var(--light);
}

/**choice section**/
.choices-row {
  padding: 10px;
  margin-bottom: 30px;
}

.choices-row button {
  font-size: 4rem;
  width: 105px;
  height: 105px;
  margin: 5px;
  border-radius: 20%;
  border: 5px solid var(--secondary);
  background-color: whitesmoke;
  cursor: pointer;
  transition: background-color 0.5s ease;

  &:hover{
    scale: 1.05;
    transition: scale 100ms;
    background-color: var(--light);
  }
}

/**finish & rules button**/
#finishSection {
  font-family: WhaleItried;
  margin-bottom: 5px;
  font-size: 1.5rem;
}

.rulesBtn,
.resetBtn {
  margin: 2px;
  padding: 15px;
  border-radius: 25%;
  border: 5px solid var(--secondary);
  background-color: whitesmoke;
  cursor: pointer;
  transition: background-color 0.5s ease;

  &:hover{
    scale: 1.1;
    transition: scale 100ms;
  }
}

.rulesBtn > a {
  text-decoration: none;
  color: var(--dark);
}

/**Footer*/

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: var(--dark);
  color: var(--light);
  line-height: 1.5rem;
  padding-block: 0.5rem;

  & ul {
    --_gap: 2rem;
    width: 100%;
  }

  & li {
    padding-inline: 1rem;
  }

  & a {
    text-decoration: none;
    text-transform: uppercase;
    color: var(--light);
  }

  /* Hover effects */
  & li {
    padding-inline: calc(var(--_gap) / 2);
    position: relative;
    opacity: 0.7;
    overflow: hidden;
  }

  & li:hover {
    opacity: 1;
  }

  & li::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background-color: var(--secondary);

    scale: 0 1;
    transition: scale 250ms, translate 300ms;
  }

  & li:hover::after {
    scale: 1 1;
  }

  /* Hover effect left to right */
  & li:hover + li::after {
    translate: -100%;
  }

  & li:has(+ li:hover)::after {
    translate: 100%;
  }
}

/* Rules page CSS */
.custom-box {
  border: 8px solid rgba(36, 68, 252, 0.779);
  border-radius: 10px;
  background-color: rgba(249, 220, 193, 0.974);
  padding: 20px;
  color: var(--dark);
  list-style-type: none;
}

a {
  text-decoration: none;
  color: var(--dark);
}

.btn-block {
  margin-bottom: 10px;
  margin-top: 10px;
  border-radius: 10px;
  border: 4px solid rgba(36, 68, 252, 0.779);
  background-color: rgba(249, 220, 193, 0.974);
  padding: 20px;
  color: var(--dark);
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

.image-container {
  text-align: center;
}


