html {
  scroll-behavior: smooth;
}

:root {
  --green: #162b25;
  --greenbckgrnd: rgba(22, 43, 37, 0.74);
  --green-border-light: rgba(22, 43, 37, 0.3);
}

* {
  box-sizing: border-box;
  line-height: normal;
  padding: 0;
  margin: 0;
  font-family: "Poppins", sans-serif;
}

.bold {
  font-weight: 600;
}

.extra-bold {
  font-weight: 800;
  font-size: 2.2rem;
}

.line {
  width: 80vw;
  height: 5px;
  background-color: var(--green);
  border-radius: 500px;
  margin: 2rem;
  align-self: center;
  justify-self: center;
}

.btn {
  color: black;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 700;
  padding: 1rem 2.5rem;
  border-radius: 45px;
}

.start-btn:hover {
  transform: translate(0px, 3px);
  box-shadow: none;
}

body {
  background-image: url(img/paper-tiling.jpg);
  background-repeat: repeat;
  background-size: 40%;
  width: 100vw;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 12px; /* Width of vertical scrollbar */
  height: 12px; /* Height of horizontal scrollbar */
}

::-webkit-scrollbar-track {
  background: rgb(240, 239, 243); /* Track color */
}

::-webkit-scrollbar-thumb {
  background-color: var(--greenbckgrnd); /* Thumb (the draggable part) */
  border-radius: 10px;
  border: 3px solid rgb(240, 239, 243); /* Space around thumb */
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--green); /* Hover color */
}

/**************Landing page****************/

#landing-page {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: relative;
  background-image: url(img/dragons-quest-backdrop.png);
  background-repeat: no-repeat;
  height: 52rem;
}

#landing-page section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 1rem;
}

#index-body h1 {
  color: rgb(255, 255, 255);
  padding: 1rem 3rem;
  background-color: var(--greenbckgrnd);
  border-radius: 45px;
  font-size: 3rem;
  align-self: start;
  margin: 1rem;
}

.intro-text {
  color: rgb(255, 255, 255);
  padding: 1rem;
  width: 30rem;
  background-color: var(--greenbckgrnd);
  border-radius: 45px;
  align-self: center;
  margin: 1rem;
}

.intro-text p {
  padding: 1rem;
}

.start-btn {
  color: black;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 700;
  padding: 1rem 2.5rem;
  background-image: url(img/paper-tiling.jpg);
  border-radius: 45px;
  box-shadow: 5px 5px 0 var(--greenbckgrnd);
  align-self: center;
  margin: 1rem;
}

.start-btn:hover {
  transform: translate(0px, 3px);
  box-shadow: none;
}

#landing-page img {
  width: 500px;
  position: absolute;
  bottom: 30px;
  left: 150px;
}

/*************************************/

/*****************Rules********************/

#getting-started {
  display: grid;
  justify-items: center;
  align-items: center;
  padding: 1rem;
  margin: 2rem;
  gap: 4rem;
  position: relative;
}

#getting-started > p,
#getting-started > h2,
#getting-started > div {
  background-color: white;
  border-radius: 45px;
  margin: 1rem;
}

#index-body h2 {
  align-self: center;
  font-size: 2rem;
  padding: 2rem 4rem;
  box-shadow: 5px 5px 0 var(--greenbckgrnd);
}

#getting-started p {
  padding: 2.5rem;
  text-align: center;
  max-width: 60vw;
  box-shadow: 5px 5px 0 var(--greenbckgrnd);
}

.btn-bckgrnd {
  display: flex;
  justify-content: center;
  padding: 1rem 2rem;
  margin: 1rem;
  border: 2px solid var(--green-border-light);
}

.play-btn {
  padding: 1rem 7rem;
  box-shadow: 0px 3px 3px var(--green-border-light);
  transform: translate(0, -5px);
}

.play-btn:hover {
  transform: translate(0, 3px);
  box-shadow: none;
}

.small-illustration {
  position: absolute;
  z-index: -10;
}

.first {
  top: 400px;
  left: -10px;
  width: 300px;
}

.second {
  top: 30px;
  right: 10px;
  width: 500px;
}

.third {
  bottom: 5px;
  right: -10px;
  width: 300px;
}

/********************************************/

/****************The Game********************/

#game-body {
  max-height: 100vh;
  max-width: 100vw;
  overflow: hidden;
  position: relative;
  display: flex;
  justify-content: end;
}

#illustration img {
  max-width: 80vw;
  padding: 1rem 0.5rem;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  transition: all 2s;
}

#illustration img:hover {
  transform: scale(1.1);
}

#torn-paper {
  background-image: url(img/torn-paper.png);
  background-repeat: no-repeat;
  background-position-y: bottom;
  display: flex;
  justify-content: flex-end;
  width: 35vw;
  z-index: 20;
}

#story {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 25vw;
  height: 100vh;
  padding: 1rem;
}

#story > * {
  align-self: center;
}

#text {
  width: 300px;
  overflow-y: auto;
  padding: 1.5rem;
}

#game-body h1 {
  font-size: 2rem;
  text-align: center;
}

.arrow {
  width: 30px;
  height: 30px;
  fill: var(--green);
}

.buttons {
  margin: 1rem;
}

.buttons a,
.buttons button {
  text-decoration: none;
  color: var(--green);
  padding: 0.5rem 2rem;
  width: fit-content;
  border-radius: 45px;
  box-shadow: 0px 3px 3px var(--greenbckgrnd);
}

.buttons a:hover,
.button button:hover {
  transform: translate(0, 3px);
  box-shadow: none;
}

.buttons p {
  font-weight: 600;
  font-size: 1.5rem;
}

.buttons div {
  display: flex;
  align-items: center;
}

/************************/

/**********classes for the game************/

.hidden {
  display: none;
}

.visible {
  display: block;
}

.next {
  font-size: 2rem;
}

.question {
  font-size: 1.5rem;
}
