/* Resets */
html, body {
    height: 100%;
    margin: 0;
}

body {
  padding: 0 20px;
  background-image: url(assets/background-texture.png);
  background-repeat: repeat;
  background-color: #FBE9A8;
  font-family: "Overpass", sans-serif;
}

.container {
  width: 100%;
  height: 100%;
  max-width: 1300px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}

.content {
  flex-grow: 1;
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  position: relative;
  padding: 40px 0;
  align-content: center;
  background: radial-gradient(circle, rgba(251,233,168,1) 0%, rgba(251,233,168,0) 100%);
}

/* --------------- */
/* Buttons
/* --------------- */

.button {
  padding: 10px 15px;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 4px;
  font-style: normal;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.15);
  transition: filter 0.2s ease;
    
  background-color: #FD6C46;
  color: #10294C;
  border: 2px solid #FD6C46;
}
.button:hover {
  filter: brightness(0.95);
}

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

.buttons .button:not(:last-child) {
  margin-right: 5px;
}


#buttonRules {
  background: #FBB81D; 
  border: 2px solid #FBB81D; 
  padding: 7px 10px 5px 10px;
  font-family: 'Overpass';
  font-weight: 600;
}

#button-mute {
  background: transparent;
  box-shadow: none;
  padding: 9px 5px 5px;
  border: none;
}
#button-mute .icon {
  height: 22px;
}



/* --------------- */
/* Header / Footer
/* --------------- */

#header {
  height: 50px;
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
}

#logo-header {
  margin: 10px 0 0 0;
  height: 30px;
}

#footer {
  display: flex;
  justify-content: center;
  padding: 30px 0 10px;
  font-family: Overpass;
  font-style: normal;
  font-weight: normal;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  letter-spacing: 0.05em;
  color: #10294C;
}

.footer-ref {
  text-decoration: none;
  color: #009FCC;
}

/* --------------- */
/* Intro Page
/* --------------- */

#startPage .buttons {
  grid-column: 1/end;
}

#img-start {
  grid-column: 1/end;
  object-fit: cover;
  align-self: center;
  height: 50vh;
  max-height: 400px;
  width: auto;
  justify-self: center;
}

#logo-start {
  grid-column: 1/end;
  align-self: center;
  justify-self: center;
  width: 80%;
  max-width: 700px;
  margin-bottom: 30px;
}

#startPage #buttonStart {
    font-size: 16px;
}

/* --------------- */
/* Rules
/* --------------- */


#explanation-rules {
  color: #10294C;
  max-width: 740px;
  font-size: 13px;
  font-weight: 300;
}

#header-1-rules, 
 #logo-rules-wrapper,
 #header-2-rules,
 #header-3-rules,
 #main-text-rules,
 #button-continue-rules,
 #button-collect-code,
 #explanation-rules {
  grid-column: 1/end;
  text-align: center;
  justify-self: center;
}
 
#explanation-rules {
  text-align: left;
  position: absolute;
  bottom: 0;
}

#header-1-rules {
  text-transform: uppercase;
  color: #10294C;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1px;
  padding-bottom: 10px;
  padding-top: 20px;
}

#logo-rules-wrapper {
  width: 100%;
  max-width: 600px;
  display: flex;
}

#star-rules {
  font-size: 40px;
  color: #10294C;
}

#header-2-rules {
  color: #FD6C46;
  font-family: Overpass;
  font-style: normal;
  font-weight: 600;
  font-size: 17px;
  line-height: 26px;
  margin: 30px 0;
  max-width: 790px;
}

#header-3-rules {
  text-transform: uppercase;
  color: #10294C;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1px;
  padding-bottom: 10px;
  padding-top: 20px;
}

#main-text-rules {
  font-family: Overpass;
  font-style: normal;
  font-weight: normal;
  font-size: 15px;
  line-height: 26px;
  color: #10294C;
  overflow: hidden;
  text-align: left !important;
  max-width: 780px;
}

#rulesContent .buttons {
    display: flex;
    grid-column: 1/end;
    justify-content: center;
    align-items: center;
    margin: 40px auto 80px;
}

#buttonStart,
 #buttonJumpToLast {
  background-color: #FD6C46;
  color: #10294C;
  border: 2px solid #FD6C46;
}

#buttonRestartGame {
  background-color: #AAAAAA;
  color: #10294C;
  border: 2px solid #AAAAAA;
}

/* --------------- */
/* Source Text
/* --------------- */

#sourceText {
  grid-column: 5/14;
  height: calc(100vh - 248px);
  background: #FFFFFF;
  border-radius: 5px;
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.15);
  letter-spacing: 0.5px;
  position: relative;
  z-index: 10;
}
#sourceText:before {
  content: "";
  display: block;
  width: 100%;
  height: 50px;
  background: linear-gradient(rgba(255,255,255,1) 0%, rgba(255,255,255,0) 100%);
  position: absolute;
  border-radius: 5px;
  top: 0;
  left: 0;
}
#sourceText:after {
  content: "";
  display: block;
  width: 100%;
  height: 50px;
  background: linear-gradient(rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
  position: absolute;
  border-radius: 5px;
  bottom: 0;
  left: 0;
}

#sourceTextInner {
  overflow-y: scroll;
  padding: 30px;
  height: calc(100% - 60px);
}

#sourceText .source-heading {
  display: block;
  font-weight: 800;
  margin: 30px 0 10px;
}
#sourceText .source-heading.no-margin-top {
  margin-top: 0;
}

#sourceText .source-citation {
  display: block;
  margin-bottom: 10px;
}

.text-highlight {
  background-color: #FBB81D;
}

/* --------------- */
/* Game Stops
/* --------------- */

#gamePath {
  grid-column: 1/5;
  grid-row: 1/20;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: left;
  z-index: 1;
}

#gamePath .mark#markStart,
 #gamePath .mark#markFinish {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 800;
  color: #10294C;
  padding: 0 0 10px;
}

#gamePath .mark#markFinish {
  padding: 10px 0 0;
  width: 36px;
  text-align: center;
}

#gamePath .stops {
  width: 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  flex-grow: 1;
  position: relative;
}

#gamePath .stops .circle {
  background-color: #FBB81D;
  width: 20px;
  height: 20px;
  border-radius: 20px;
  z-index: 10;
  transition: transform 0.2s ease-in-out;
}

#gamePath .stops .stop.visited .circle,
#gamePath .stops .stop.active .circle {
  background-color: #009FCC;
}

#gamePath .stops .stop.active .circle {
  transform: scale(1.4);
}

#gamePath .stop {
    position: relative;
}
#gamePath .stop-title {
    position: absolute;
    left: 35px;
    top: 2px;
    width: 300px;
    color: #009FCC;
    font-size: 15px;
    display: none;
}

#gamePath .stop.active .stop-title,
 #gamePath .stop.visited .stop-title {
    display: block;
}
#gamePath .stop.active .stop-title {
    font-weight: 700;
}

#gamePath .stops:before,
#gamePath .stops .stop:before {
  content: "";
  height: calc((100vh - 280px) / 13);
  width: 2px;
  background-color: #FBB81D;
  position: absolute;
  left: calc(50% - 1px);
  z-index: -1;
}

#gamePath .stops:before {
  top: 0;
}

#gamePath .stops .stop.visited:before,
#gamePath .stops:before {
  background-color: #009FCC;
}

#gamePath .stops .stop.visited:hover {
    cursor: pointer;
}
#gamePath .stops .stop.visited:not(.active):hover .circle {
    transform: scale(1.3);
}
#gamePath .stops .stop.visited:not(.active):hover .stop-title {
    font-weight: 500;
}


/* --------------- */
/* Explanation Box
/* --------------- */

#explanationWrapper {
  grid-template-columns: subgrid;
  grid-column: 14/end;
  grid-row: 1/end;
  display: flex;
  justify-content: right;
  align-items: center;
  background-size: contain; 
  background-position: center;
  background-repeat: no-repeat;
}

#explanationBox {
  display: none;
  width: 300px;
  padding: 40px 30px 50px;
  position: relative;
  background: #FFFFFF;
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  z-index: 11;
}

#explanationBox .blue-line {
  position: absolute;
  height: 10px;
  left: -1px;
  right: 0px;
  bottom: 100%;
  background: #009FCC;
  border-radius: 4px 4px 0px 0px;
}

#explanationBox .arrow {
  position: absolute;
  width: 25px;
  height: 25px;
  left: -10px;
  top: 40%;
  background: #FFFFFF;
  transform: rotate(45deg);
}

#explanationBox #stop-title {
  width: 100%;
  position: absolute;
  left: 0;
  top: -40px;
  text-align: center;
  font-family: Overpass;
  font-style: normal;
  font-weight: 800;
  font-size: 15px;
  line-height: 23px;
  text-transform: uppercase;
  color: #009FCC;
}

#explanationBox .buttons {
  display: flex;
  width: 100%;
  position: absolute;
  left: 0;
  bottom: -20px;
  justify-content: center;
}

#buttonYes,
 #buttonContinue {
  background-color: #FD6C46;
  color: #10294C;
  border: 2px solid #FD6C46;
}

#buttonNo {
  background-color: #AAAAAA;
  color: #10294C;
  border: 2px solid #AAAAAA;
}

#explanationWrapper.box-size-1 #explanationBox {
  transform: scale(1);
}

#explanationWrapper.box-size-2 #explanationBox {
  transform: scale(1.15);
}

#explanationWrapper.box-size-3 #explanationBox {
  transform: scale(1.25);
}

#explanationWrapper.box-size-2 #explanationBox:before,
 #explanationWrapper.box-size-3 #explanationBox:before {
    content: "";
    display: block;
    z-index: -1;
    position: absolute;
    top: -160px;
    height: 160px;
    width: 100%;
    left: 0;
    background-position: top center;
}
#explanationWrapper.box-size-2 #explanationBox:after,
 #explanationWrapper.box-size-3 #explanationBox:after {
    content: "";
    display: block;
    z-index: -1;
    position: absolute;
    bottom: -160px;
    height: 160px;
    width: 100%;
    left: 0;
    background-position: bottom center; 
}

#explanationWrapper.box-size-2 #explanationBox:before,
 #explanationWrapper.box-size-2 #explanationBox:after {
  background-image: url("assets/box-bg-2.svg"); 
}
#explanationWrapper.box-size-3 #explanationBox:before,
 #explanationWrapper.box-size-3 #explanationBox:after {
  background-image: url("assets/box-bg-3.svg"); 
}

/* --------------- */
/* Continue To Next Stop
/* --------------- */

#continueWrapper {
  grid-template-columns: subgrid;
  grid-column: 13/end;
  display: flex;
  justify-content: center;
  align-items: center;
}

#continueBox {
  grid-column: 13/end;
}

#continuePicture,
 #continueHeader-1,
 #continueHeader-2,
 #button-continue-roll {
   margin: 0 auto;
   text-align: center;
}

#continuePicture {
  display: none;
  max-height: 100%;
  width: 60%;
}

#continueHeader-1 {
  display: none;
  margin-top: 10px;
  font-family: Overpass;
  font-style: normal;
  letter-spacing: 1px;
  font-weight: 800;
  font-size: 15px;
  text-transform: uppercase;
  color: #009FCC;
}

#continueHeader-2 {
  display: none;
  font-family: Lora;
  font-style: normal;
  font-weight: 500;
  font-size: 30px;
}

#dice-animation {
  max-width: 100%;
  height: auto;
  justify-self: center;
}

#buttonRollDice {
    margin: 20px auto 0;
}


/* --------------- */
/* Success Page
/* --------------- */

#victoryImage {
  grid-column: 1/end;
  object-fit: cover;
  align-self: center;
  max-height: 60vh;
  width: auto;
  justify-self: center;
  margin-top: -50px;
  margin-bottom: -20px;
}

#victoryHeading {
  margin-top: 10px;
  grid-column: 1/end;
  font-family: Lora;
  font-style: normal;
  font-weight: bold;
  font-size: 50px;
  text-align: center;
  letter-spacing: 0.02em;
  color: #10294C;
  justify-self: center;
}

#victoryText {
  grid-column: 1/end;
  font-family: Overpass;
  font-style: normal;
  font-weight: normal;
  font-size: 18px;
  line-height: 28px;
  text-align: center;
  justify-self: center;
  letter-spacing: 0.05em;
  color: #10294C;
  margin: 10px auto 30px; 
}

#victoryCopy {
  grid-column: 1/end;
  font-family: Overpass;
  font-style: normal;
  font-weight: normal;
  font-size: 18px;
  line-height: 28px;
  text-align: center;
  justify-self: center;
  letter-spacing: 0.05em;
  color: #10294C;
  margin: 40px auto; 
  position: relative;
}

#victoryCopyText {
    border: none;
    background: transparent;
    box-shadow: none;
    font-size: 24px;
    color: #FD6C46;
    font-weight: bold;
    text-transform: none;
    margin-top: 10px;
    margin-bottom: -10px;
}

#buttonCopyCode {
    border: none;
    background: transparent;
    box-shadow: none;
    font-size: 14px;
    color: #FD6C46;
    font-weight: 400;
    text-transform: none;
}

#successContent .buttons {
    display: flex;
    grid-column: 1/end;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
}

#copyConfirmation {
    width: 200px;
    padding: 5px 10px 3px;
    border-radius: 5px;
    font-size: 12px;
    color: black;
    background-color: white;
    box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.15);
    position: absolute;
    bottom: -30px;
    right: 50px;
}

/* --------------- */
/* Failure Page
/* --------------- */

#game-over-image {
  grid-column: 1/end;
  object-fit: cover;
  align-self: center;
  max-height: 50vh;
  width: auto;
  justify-self: center;
}

#game-over-heading {
  margin-top: 10px;
  grid-column: 1/end;
  font-family: Lora;
  font-style: normal;
  font-weight: bold;
  font-size: 50px;
  text-align: center;
  letter-spacing: 0.02em;
  color: #10294C;
  justify-self: center;
}

#game-over-text {
  grid-column: 1/end;
  font-family: Overpass;
  font-style: normal;
  font-weight: normal;
  font-size: 18px;
  line-height: 28px;
  text-align: center;
  justify-self: center;
  letter-spacing: 0.05em;
  color: #10294C;
  margin: 20px auto; 
}

#failureContent .buttons {
    display: flex;
    grid-column: 1/end;
    justify-content: center;
    align-items: center;
    margin-bottom: 50px;
}
