@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('/projects/whackEmAll/images/animalBackground.jpg');
  background-repeat: no-repeat;
  background-position: center;
  /* background-size: 100% 100%; */
  object-fit: cover;
}

* {
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

select {
  border: none;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  border-radius: 5px;
  cursor: pointer;
  width: 180px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 35px;
}

h2 {
  font-size: 40px;
}

/* MAIN DIV */
.main-con-div {
  padding: 10px;
}

/* NAV BAR */
.nav-bar-list,
.nav-bar-list > li {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  padding: 20px;
  display: flex;
  align-items: center;
  color: white;
  font-weight: 800;
  font-size: 35px;
}

.logo {
  display: flex;
  align-items: center;
  flex: 1;
}

.mainLogo-img {
  height: 40px;
}

.logo-img {
  margin: 0 5px;
  flex: 1;
}

.theme-select {
  height: 50px;
  padding-left: 10px;
  font-size: 18px;
  outline: none;
  max-width: 350px;
  color: black;
}

/* MODES */
.modes-div {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 35%;
  min-width: 150px;
  max-width: 350px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
}

.modes-heading {
  text-align: center;
  margin-bottom: 15px;
  color: white;
  text-shadow: 2px 4px 3px rgba(0, 0, 0, 0.3);

  /* box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px; */
}

.modes-btn-list {
  display: grid;
  grid-gap: 20px;
}

.modes-btn-list > button {
  width: 100%;
  height: 60px;
  border: none;
  background: rgb(231, 231, 231);
  /* border: 1px solid black; */
  cursor: pointer;
  outline: none;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  border-radius: 3px;
  font-size: 15px;
  color: white;
}

.colorRed {
  background-color: rgb(202, 36, 36) !important;
}

.colorGreen {
  background-color: rgb(30, 136, 30) !important;
}

.colorBlue {
  background-color: rgb(52, 52, 228) !important;
}

.modes-btn-list > button:hover {
  background: rgb(255, 255, 255);
}

/* UNLIMITED PAGE */
.unlimited-con-div,
.unlimited-con-results-div {
  display: none;
}

.mode-nav-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  width: 100%;
  padding: 15px;
  height: 100px;
}

.mode-nav-bar > img {
  width: 70px;
  height: 70px;
  background: white;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.mode-nav-bar > .heart-img-div {
  margin: 0 auto;
}

.heart-img {
  width: 50px;
  height: 50px;
}

.mode-nav-bar > .unlimited-score > p,
.timed-test-score > p {
  text-align: center;
  margin-left: auto;
  color: black;
  padding: 10px;
  border-radius: 5px;
  font-weight: bold;
  width: auto;
  background: white;
  max-width: 150px;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
  font-size: 25px;
}

.gameImg,
.selected-icon-reactions {
  position: absolute;
  display: none;
}

.gameImg {
  width: 100px;
  height: 100px;
}

/* TIMED TEST PAGE */
.timed-test-con-div,
.timed-test-con-results-div {
  display: none;
}

.time-p {
  margin: 0 auto;
  background: white;
  border-radius: 3px;
  padding: 10px;
  text-align: center;
  font-size: 20px;
  width: 90px;
}

/* REACTIONS PAGE */
.reactions-con-div,
.reactions-con-results-div {
  display: none;
}

/* RESULTS PAGE */
.con-results-div {
  background: white;
  border-radius: 5px;
  padding: 30px 20px 20px 20px;
  flex-direction: column;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  max-width: 320px;
  transform: translate(-50%, -50%);
}

.con-results-div > h2 {
  text-align: center;
  margin-bottom: 10px;
}

.results-p {
  font-size: 20px;
  margin: 0;
  text-align: left;
}

.reactions-time {
  text-align: center;
}

.results-button-div {
  display: grid;
  margin-top: 20px;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 10px;
}

.results-button-div > button {
  padding: 10px;
  width: 100%;
  border: none;
  border: 1px solid grey;
  cursor: pointer;
  border-radius: 3px;
}

.modes-btn {
  background: white;
  outline: none;
  box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
  border: none;
}

/* RESPONSIVE DESIGN */

/* MOBILE DEVICES */
@media screen and (min-width: 250px) and (max-width: 470px) {
  h2 {
    font-size: 24px;
  }

  /* NAV BAR */
  .nav-bar-list > li {
    flex-direction: column;
  }

  .mode-nav-bar {
    display: grid;
    grid-template-columns: 30% 70%;
    align-items: center;
    width: 100%;
    padding: 15px;
    height: 100px;
  }

  .mode-nav-bar > img {
    order: 2;
  }

  .theme-select {
    width: 100%;
    margin-top: 10px;
  }

  /* UNLIMITED AND TIMED TEST RESPONSIVE */
  .heart-img-div,
  .time-div {
    order: 3;
    margin-right: 0px !important;
  }

  .time-div > p {
    margin-right: 0px !important;
  }

  .unlimited-score,
  .timed-test-score {
    order: 1;
    grid-column: 1/3;
  }

  .unlimited-score-p,
  .timed-test-score > p {
    width: 100% !important;
    max-width: unset !important;
    margin-bottom: 20px;
  }

  /* MODES */
  .modes-div {
    width: calc(100% - 40px);
  }

  .game-img {
    width: 70px;
    height: 70px;
  }
}

/* IPADS, TABLETS */
@media screen and (min-width: 471px) and (max-width: 768px) {
  h2 {
    font-size: 24px;
  }

  /* NAV BAR
  .nav-bar-list > li {
    flex-direction: column;
  } */

  .theme-select {
    text-overflow: ellipsis;
    font-size: 16px;
  }

  /* MODES */
  .modes-div {
    width: calc(100% - 40px);
  }
}

/* SMALL SCREENS, LAPTOPS */
@media screen and (min-width: 769px) and (max-width: 1024px) {
}

/* DESKTOPS, LARGE SCREENS */
@media screen and (min-width: 1025px) and (max-width: 1200px) {
}

/* EXTRA LARGE SCREENS, TV */
@media screen and (min-width: 1201px) {
}

@media only screen and (max-height: 520px) and (max-width: 450px) {
  .modes-div {
    top: unset;
    bottom: 20px;
    transform: translate(-50%, 0);
  }
}

@media only screen and (max-height: 430px) and (max-width: 350px) {
  .modes-btn-list > button {
    height: 40px !important;
  }
}
