@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Playpen+Sans:wght@600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Noto+Serif:wght@700&family=Playpen+Sans:wght@600&display=swap');

html, body * {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    height: 90vh;
    font-family: 'Playpen Sans';
    color: peru;
    background-color: papayawhip;
}

.sect1, .sect2, .sect3, .sect4 {
  position: fixed;
  top: 0;
  left: 0;
  width: 66.2rem;
  margin: 0 auto;
}

.sect1, .sect2, .sect3, .sect4, .board, .scoreStyle, .timerStyle {
  visibility: hidden;
}

.sect {
  width: 100%;
  height: 95vh;
  padding: 8rem 0 0 0;
  position: fixed;
  top: 0;
}

/* styling for intro screen */
#intro {
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 99;
}

#intro img {
  width: 100%;
  height: 100%;
}

#intro button {
  position: fixed;
  bottom: 3.5rem;
  right: 5rem;
  width: 6rem;
  height: 4rem;
  font-size: 18px;
  font-family: 'Bernard MT Condensed';
  background-color: white;
  border: none;
}

/* styling for victory screen */
#victory {
  width: 100%;
  align-self: center;
  position: fixed;
  top: -3rem;
  z-index: 99;
  display: none;
}

#victory img {
  width: 100%;
}

#title  {
  width: 20rem;
  margin: 1.5rem auto 0 2rem;
}

.top {
  align-self: center;
  height: 15vh;
}

#instructions {
  width: 20rem;
  margin-top: -6.5rem;
  margin-left: 44rem;
}

.selectionGroup {
  display: flex;
  height: fit-content;
  width: 100%;
  align-self: center;
  margin-top: 20vh;
}

.selection {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: fit-content;
  width: 20rem;
  /* height: 18rem; */
  margin: 0;
  z-index: 1;
  /* border: solid red; */
}

.goTo {
  width: 6.5rem;
  height: 5rem;
  margin-bottom: -1.5rem;
  /* border: solid red 1px; */
}

.goTo img {
  width: 100%;
}

.up {
  margin-top: -2rem;
}

.down {
  margin-top: 6rem;
}

#road {
  position: absolute;
  width: 100%;
  bottom: -1rem;
  z-index: 0;
}

.sect object {
  width: 100%;
  padding: 1rem;
}

.board {
  position: fixed;
  bottom: 0;
  left: 0;
  display: flex;
  width: 100%;
  background-color: #3c96a2;
  z-index: 1;
}

.boardRight {
  display: flex;
}

#item0, #item1, #item2, #item3, #item4, #item5, #item6, #item7, #item8, #item9 img {
  width: 5.5rem;
  height: 5.5rem;
  margin: .3rem .3rem .3rem .3rem;
  padding: 1rem;
  background-image: url(../images/box.svg);
}

.buttons {
  width: 8rem;
  margin: .5rem 1.5rem .5rem 1.5rem;
}

h1 {
  font-size: 32px;
  color: peru;
  text-align: center;
  font-family: 'Noto Serif', serif;
  margin-top: 1.5rem;
}

h2 {
  font-size: 18px;
  color: peru;
  font-family: 'Playpen Sans', cursive;
}

.scoreStyle {
  position: fixed;
  top: 0.5rem;
  right: 11rem;
  width: 5rem;
  height: 3rem;
  text-align: center;
  padding-top: 0.8rem;
  font-family: 'Noto Serif', serif;
  font-size: 24px;
  color: #3c96a2;
  background-color: #3c96a2;
  background-image: url(../images/box_small.svg);
  background-size: cover;
  z-index: 2;
}

.timerStyle {
  position: fixed;
  top: 0.5rem;
  right: 5rem;
  width: 5em;
  height: 3rem;
  text-align: center;
  padding-top: .5rem;
  font-family: 'Noto Serif', serif;
  color: #3c96a2;
  background-color: #3c96a2;
  background-image: url(../images/box_small.svg);
  background-size: cover;
  z-index: 2;
}

@media only screen and (max-width:768px) and (orientation: landscape) {
  /* CSS rules for landscape tablets & larger screens */
  #intro {
    width: 770px;
    height: 100vh;
    bottom: -2rem;
  }

  #intro button {
    bottom: 6rem;
    right: 8rem;
    height: 4rem;
    font-size: 18px;
  }

  #victory {
    position: fixed;
    width: 770px;
    left: 0;
    top: 2rem;
    display: none;
  }
  
  #victory img {
    width: 100%;
  }
  
  .sect1, .sect2, .sect3, .sect4 {
    position: fixed;
    top: 4rem;
    left: 5.5rem;
    width: 42rem;
    height: 22.5rem;
  }

  .top img {
    margin: -5rem 2rem 0 8rem;
    width: 6rem;
    height: 12rem;
  }

  .selectionGroup {
    position: fixed;
    bottom: 2rem;
    display: flex;
    height: fit-content;
    align-self: center;
  }
  
  .selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 11rem;
    height: fit-content;
    margin: 0 .5rem 0 .5rem;
  }

  .sect object {
    width: 100%;
  }

  .board {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
  }

  .boardLeft {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 5rem;
  }

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

  #item0, #item1, #item2, #item3, #item4, #item5, #item6, #item7, #item8, #item9 img {
    width: 4rem;
    height: 3.8rem;
    margin: .1rem 0 .1rem 0;
    padding: 1rem;
    background-image: url(../images/box.svg);
  }

  .buttons {
    width: 4rem;
    height: 2rem;
  }

  .buttons:last-child {
    margin-bottom: 1rem;
  }

  .scoreStyle {
    top: 0.5rem;
    right: 8rem;
    width: 5rem;
    height: 2.5rem;
    text-align: center;
    padding-top: 0.5rem;
  }
  
  .timerStyle {
    top: 0.5rem;
    right: 2rem;
    width: 5em;
    height: 2.5rem;
    padding-top: 0.2rem;
  }

  #btn1 {
    margin-top: .5rem;
  }

  h1 {
    font-size: 18px;
  }
}