/*404 Page*/
body {
  background-color: white;
  text-align: center;
  color: black;
}
body a {
  font-weight: bold;
}
body a:hover {
  color: black;
}

:root {
  --maincolour: #0a2342;
  --secondarycolour: #84bc9c;
  --thirdcolour: #2ca58d;
  --mainfontcolour: #fffdf7;
  --highlightedfontcolour: #F9A9C7;
  --highlightedbuttoncolour: #f5dd42;
  --mainfontfamily: Arial, sans-serif;
}

/* All pages SCSS */
html, body {
  height: 100%;
}

body {
  background-color: var(--secondarycolour);
  font-family: var(--mainfontfamily);
  color: var(--mainfontcolour);
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body main h1 {
  text-align: center;
  text-decoration: underline;
}

:root {
  --maincolour: #0a2342;
  --secondarycolour: #84bc9c;
  --thirdcolour: #2ca58d;
  --mainfontcolour: #fffdf7;
  --highlightedfontcolour: #F9A9C7;
  --highlightedbuttoncolour: #f5dd42;
  --mainfontfamily: Arial, sans-serif;
}

.game-scoreboard-page a {
  color: var(--mainfontcolour);
}

.table-div {
  min-width: 100%;
  max-width: 100%;
}
.table-div table {
  background-color: black;
  color: #ffffff;
  margin-right: auto;
  margin-left: auto;
  padding-left: 0;
  min-width: 15rem;
  max-width: 100%;
  text-decoration: none;
  border-collapse: collapse;
  border: solid black 5px;
}
.table-div table caption {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: var(--mainfontcolour);
  text-decoration: underline;
}
@media (max-width: 600px) {
  .table-div table caption {
    background-color: var(--maincolour);
    color: var(--headerfooterfontcolour);
    border: solid black 5px;
    border-bottom: 0px;
    margin-bottom: 0rem;
    text-decoration: none;
  }
}
.table-div table tr {
  overflow: hidden;
  background-color: var(--thirdcolour);
}
.table-div table tr:nth-of-type(2n) {
  background-color: var(--scoreboardAlternate);
}
.table-div table th {
  background-color: var(--maincolour);
  color: var(--headerfooterfontcolour);
  min-width: 20rem;
  max-width: 20rem;
  font-size: x-large;
  border: solid black 4px;
  padding: 0.6rem;
  text-decoration: none;
  overflow: hidden;
  text-overflow: clip;
}
.table-div table td {
  color: black;
  border: solid black 2px;
  padding: 0.3rem;
  font-size: large;
  overflow: hidden;
}
@media (max-width: 600px) {
  .table-div table td {
    min-width: 320px;
    display: block;
    border-collapse: collapse;
    border: none;
  }
}
.table-div table #central-column {
  min-width: 270px;
}
.table-div table .number-column {
  min-width: 4rem;
  max-width: 4rem;
  border: solid black 4px;
}
.table-div table #user-scoreboard-score {
  margin-top: 50px;
}
@media (max-width: 600px) {
  .table-div table {
    border-collapse: collapse;
    border: solid black 5px;
  }
  .table-div th {
    display: none;
  }
  .table-div tr {
    border-bottom: solid black 2px;
  }
  .table-div td::before {
    content: attr(data-cell) ": ";
    font-weight: bold;
    text-transform: capitalize;
  }
}

:root {
  --maincolour: #0a2342;
  --secondarycolour: #84bc9c;
  --thirdcolour: #2ca58d;
  --mainfontcolour: #fffdf7;
  --highlightedfontcolour: #F9A9C7;
  --highlightedbuttoncolour: #f5dd42;
  --mainfontfamily: Arial, sans-serif;
}

.gamesGridParent {
  width: 100%;
  margin: 5rem 0;
}
.gamesGridParent .menugame-template {
  width: 100%;
  margin: 2rem auto;
  display: grid;
  justify-items: center;
  grid-gap: 1rem;
  justify-content: center;
  grid-template-columns: repeat(auto-fill, 25rem);
  align-content: center;
}
.gamesGridParent .menugame-template h2 {
  text-align: center;
  text-decoration: underline 0.1rem;
  font-size: 1.2rem;
}
.gamesGridParent .menugame-template .game-card {
  display: flex;
  flex-direction: column;
  background-color: var(--thirdcolour);
  margin: 0.5rem 0.5rem 1rem 0.5rem;
  border: solid black 0.5rem;
  border-radius: 10%;
  padding-bottom: 0;
}
.gamesGridParent .menugame-template .game-card img {
  width: 100%;
  height: 100%;
  border-radius: 0 0 9% 9%;
}
.gamesGridParent .menugame-template .game-card a {
  text-decoration: none;
  text-underline: none;
  color: var(--mainfontcolour);
}
@media (max-width: 815px) {
  .gamesGridParent .menugame-template {
    grid-template-columns: repeat(auto-fill, 100%);
  }
}

:root {
  --maincolour: #0a2342;
  --secondarycolour: #84bc9c;
  --thirdcolour: #2ca58d;
  --mainfontcolour: #fffdf7;
  --highlightedfontcolour: #F9A9C7;
  --highlightedbuttoncolour: #f5dd42;
  --mainfontfamily: Arial, sans-serif;
}

footer {
  background-color: var(--maincolour);
  margin-top: auto;
  position: sticky;
  bottom: 0;
  z-index: 5;
  max-height: 40px;
}
footer .footer-div {
  height: 40px;
  width: 100%;
  margin: auto;
  font-size: 1rem;
  font-weight: bold;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  list-style: none;
  position: sticky;
}
footer .footer-div .footer-div-items {
  padding: 10px 20px;
}
footer .footer-div a {
  color: var(--headerfooterfontcolour);
  margin: auto;
  padding: 0;
}
footer .footer-div a:hover {
  color: var(--highlightedfontcolour);
}
footer .footer-div #footer-top a {
  text-decoration: none;
}

:root {
  --maincolour: #0a2342;
  --secondarycolour: #84bc9c;
  --thirdcolour: #2ca58d;
  --mainfontcolour: #fffdf7;
  --highlightedfontcolour: #F9A9C7;
  --highlightedbuttoncolour: #f5dd42;
  --mainfontfamily: Arial, sans-serif;
}

#contact-page-wrapper-wrapper {
  width: 100%;
}
#contact-page-wrapper-wrapper #contact-page-wrapper {
  width: 100%;
  margin: 2rem auto;
  display: grid;
  justify-items: center;
  justify-content: space-evenly;
  grid-template-columns: repeat(auto-fill, 45%);
  align-content: center;
}
#contact-page-wrapper-wrapper #contact-page-wrapper .contact-page-item {
  background-color: var(--thirdcolour);
  border-radius: 5rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 0.5rem 0.5rem 1rem 0.5rem;
  border: solid black 0.5rem;
  padding-bottom: 0;
}
#contact-page-wrapper-wrapper #contact-page-wrapper .contact-page-item .material-symbols-outlined {
  height: auto;
  width: auto;
  min-width: 150px;
  min-height: 150px;
  max-height: 200px;
  max-width: 200px;
}
#contact-page-wrapper-wrapper #contact-page-wrapper .contact-page-item #other-platforms-wrapper {
  height: 100%;
  display: grid;
  gap: 0.5rem;
  padding-bottom: 1rem;
  grid-template-areas: ". . . ." ". linkedin1 github ." ". linkedin3 linkedin4 ." ". . . .";
}
#contact-page-wrapper-wrapper #contact-page-wrapper .contact-page-item #other-platforms-wrapper #linkedin1 {
  grid-area: linkedin1;
}
#contact-page-wrapper-wrapper #contact-page-wrapper .contact-page-item #other-platforms-wrapper #linkedin1 img {
  height: auto;
  width: auto;
  max-height: 120px;
  max-width: 120px;
}
#contact-page-wrapper-wrapper #contact-page-wrapper .contact-page-item #other-platforms-wrapper #github {
  grid-area: github;
}
#contact-page-wrapper-wrapper #contact-page-wrapper .contact-page-item #other-platforms-wrapper #github img {
  height: auto;
  width: auto;
  max-width: 60px;
  max-height: 60px;
}
#contact-page-wrapper-wrapper #contact-page-wrapper .contact-page-item #other-platforms-wrapper .center-img {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (max-width: 1100px) {
  #contact-page-wrapper-wrapper #contact-page-wrapper {
    grid-template-columns: repeat(auto-fill, 90%);
  }
}

:root {
  --maincolour: #0a2342;
  --secondarycolour: #84bc9c;
  --thirdcolour: #2ca58d;
  --mainfontcolour: #fffdf7;
  --highlightedfontcolour: #F9A9C7;
  --highlightedbuttoncolour: #f5dd42;
  --mainfontfamily: Arial, sans-serif;
}

/* Home and Login Features - Header*/
header {
  background-color: var(--maincolour);
  width: 100%;
}
header #website-banner-div {
  position: relative;
  width: 100%;
  background-color: var(--maincolour);
  height: 5rem;
  margin: 0;
  padding: 0;
  overflow: hidden;
  vertical-align: middle;
}
header #website-banner-div img, header #website-banner-div source {
  width: 100%;
}
header #website-banner-div #website-logo-icon {
  position: absolute;
  top: 0;
  left: 0;
  margin: 0px 10px;
  max-height: fit-content;
}
header #website-banner-div #website-logo-icon img {
  height: auto;
  width: auto;
  min-height: 66px;
  min-width: 66px;
  max-height: 66px;
  max-width: 66px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 25%;
  border: 0.4rem solid var(--secondarycolour);
}
header #website-banner-div #darkModeSlider {
  position: absolute;
  top: 0;
  right: 0;
  margin: 0.5rem;
  max-height: fit-content;
  display: flex;
  justify-content: center;
  border: solid black 2px;
  padding: 2px 0;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 25%;
  /* The slider */
}
header #website-banner-div #darkModeSlider .toggle-images {
  height: auto;
  width: auto;
  max-height: 34px;
  max-width: 34px;
  position: relative;
  fill: white;
}
header #website-banner-div #darkModeSlider .toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}
header #website-banner-div #darkModeSlider .toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
header #website-banner-div #darkModeSlider .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
header #website-banner-div #darkModeSlider .slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
}
header #website-banner-div #darkModeSlider input:checked + .slider {
  background-color: var(--secondarycolour);
}
header #website-banner-div #darkModeSlider input:focus + .slider {
  box-shadow: 0 0 1px darkgray;
}
header #website-banner-div #darkModeSlider input:checked + .slider:before {
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}
header #website-banner-div #darkModeSlider .slider.round {
  background-color: var(--secondarycolour);
  border-radius: 34px;
}
header #website-banner-div #darkModeSlider .slider.round:before {
  border-radius: 50%;
}
header .header-class-div {
  font-size: 1rem;
  font-weight: bold;
  display: flex;
  flex-direction: row;
  justify-content: right;
  align-content: center;
  list-style: none;
  position: sticky;
  min-height: 40px;
  height: 20px;
  width: 100%;
  margin: auto;
  padding: 0;
}
header .header-class-div div {
  min-width: 120px;
  align-content: center;
  display: flex;
  justify-content: center;
}
header .header-class-div a {
  text-decoration: none;
  color: var(--headerfooterfontcolour);
  background-color: var(--maincolour);
  height: 100%;
  width: 120px;
}
header .header-class-div a:hover {
  color: var(--highlightedfontcolour);
}
header .header-class-div #change-background-div {
  min-width: 40px;
  max-width: 40px;
  text-align: left;
  padding-left: 30px;
}
header .header-class-div #change-background-div img {
  margin: 1px 0;
  height: auto;
  width: auto;
  min-width: 38px;
  min-height: 38px;
  max-height: 38px;
  max-width: 38px;
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.5);
}
header .header-class-div #change-background-div a {
  max-width: 40px;
}
header .header-class-div #login-dropdown-div #login-button {
  padding: 10px 0;
  height: 20px;
  max-height: 40px;
  overflow: hidden;
}
header .header-class-div #login-dropdown-div .dropdown-div {
  position: sticky;
  display: inline-block;
  z-index: 10;
  min-width: 120px;
}
header .header-class-div #login-dropdown-div .dropbtn {
  background-color: var(--maincolour);
  color: var(--headerfooterfontcolour);
  font-weight: bold;
  height: 20px;
  font-size: 16px;
  border: none;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  text-align: right;
  position: relative;
}
header .header-class-div #login-dropdown-div .dropdown-content {
  display: none;
  position: absolute;
  width: 100%;
  z-index: 1;
  text-align: center;
  margin-top: 10px;
  min-height: 40px;
}
header .header-class-div #login-dropdown-div .dropdown-content a {
  color: var(--headerfooterfontcolour);
  text-decoration: none;
  display: block;
  height: 20px;
  padding: 10px 0;
}
header .header-class-div #login-dropdown-div .dropdown-content a:hover {
  background-color: #c2c2c2;
}
header .header-class-div #login-dropdown-div .dropdown-div:hover .dropdown-content {
  display: block;
}
header .header-class-div #login-dropdown-div .dropdown-div:hover .dropbtn {
  padding-right: 0;
  padding-left: 0;
  cursor: pointer;
}

:root {
  --maincolour: #0a2342;
  --secondarycolour: #84bc9c;
  --thirdcolour: #2ca58d;
  --mainfontcolour: #fffdf7;
  --highlightedfontcolour: #F9A9C7;
  --highlightedbuttoncolour: #f5dd42;
  --mainfontfamily: Arial, sans-serif;
}

.backgroundGridParent {
  width: 100%;
  margin: 5rem 0;
}
.backgroundGridParent .background-design-template {
  width: 100%;
  margin: 2rem auto;
  display: grid;
  justify-items: center;
  grid-gap: 1rem;
  justify-content: center;
  grid-template-columns: repeat(auto-fill, 25rem);
  align-content: center;
}
.backgroundGridParent .background-design-template h3 {
  text-align: center;
  text-decoration: underline 0.1rem;
}
.backgroundGridParent .background-design-template .design-card {
  display: flex;
  flex-direction: column;
  background-color: var(--thirdcolour);
  margin: 0.5rem 0.5rem 1rem 0.5rem;
  border: solid black 0.5rem;
  border-radius: 10%;
  padding-bottom: 0;
}
.backgroundGridParent .background-design-template .design-card img {
  width: 100%;
  height: 100%;
  border-radius: 0 0 9% 9%;
}
.backgroundGridParent .background-design-template .design-card a {
  text-decoration: none;
  text-underline: none;
  color: var(--mainfontcolour);
}
@media (max-width: 815px) {
  .backgroundGridParent .background-design-template {
    grid-template-columns: repeat(auto-fill, 100%);
  }
}

:root {
  --maincolour: #0a2342;
  --secondarycolour: #84bc9c;
  --thirdcolour: #2ca58d;
  --mainfontcolour: #fffdf7;
  --highlightedfontcolour: #F9A9C7;
  --highlightedbuttoncolour: #f5dd42;
  --mainfontfamily: Arial, sans-serif;
}

.fakefoods-test-main {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fakefoods-test-main a {
  color: var(--mainfontcolour);
}

#gamecanvas {
  margin-top: 40px;
  background-color: rgb(201, 201, 201);
  border: solid black 2px;
}

#fakefoods-help-img {
  max-width: 800px;
}

/* --------- Start game overlay ---------*/
.startGame {
  z-index: 4;
  position: absolute;
  top: 480px;
  text-align: center;
  background-color: rgb(93, 135, 156);
  border: 4px solid black;
  border-radius: 10px;
  height: 130px;
  width: 252px;
}

.startGame h3 {
  padding-top: 10px;
  margin: 0;
  color: whitesmoke;
}

.gameStartBody {
  padding: 0px 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.gameStartBody #optionsCanvas {
  background-color: whitesmoke;
  margin: 0px;
}

.gameStartBody button {
  max-width: 400px;
  margin-top: 5px;
  font-family: "Monsterrat", sans-serif;
  font-weight: 500;
  font-size: 32px;
  color: whitesmoke;
  text-decoration: none;
  padding: 10px 25px;
  margin-left: 0px;
  background-color: rgb(235, 130, 33);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease 0s;
}

/* ---------  Play/Pause audio button ----------- */
.playPause {
  text-align: center;
}

.playPause button {
  max-width: 200px;
  margin-top: 10px;
  font-family: "Monsterrat", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: whitesmoke;
  text-decoration: none;
  padding: 9px 25px;
  margin-left: 0px;
  background-color: rgb(112, 86, 172);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease 0s;
}

/* ---------  Pop up button to restart game (win or lose) ----------- */
/* Lose */
.restartgame {
  display: none;
  position: absolute;
  top: 650px;
  text-align: center;
  margin-top: 10px;
  padding: 9px 25px;
}

#restartbtn {
  max-width: 200px;
  margin-top: 10px;
  font-family: "Monsterrat", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: whitesmoke;
  text-decoration: none;
  padding: 9px 25px;
  margin-left: 0px;
  background-color: rgb(25, 102, 133);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease 0s;
}

/* Win */
.restartgamew {
  display: none;
  position: absolute;
  top: 700px;
  text-align: center;
}

#restartbtnw {
  max-width: 200px;
  margin-top: 10px;
  font-family: "Monsterrat", sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: whitesmoke;
  text-decoration: none;
  padding: 9px 25px;
  margin-left: 0px;
  background-color: rgb(160, 32, 28);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease 0s;
}

:root {
  --maincolour: #0a2342;
  --secondarycolour: #84bc9c;
  --thirdcolour: #2ca58d;
  --mainfontcolour: #fffdf7;
  --highlightedfontcolour: #F9A9C7;
  --highlightedbuttoncolour: #f5dd42;
  --mainfontfamily: Arial, sans-serif;
}

.gameMainDiv .canvasContainer div {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.gameMainDiv .canvasContainer #gameCanvasPhaser {
  display: flex;
  z-index: 1;
  margin-top: 0px !important;
  margin: 0 auto 0rem 0;
  max-width: 60%;
  height: auto !important;
}
