:root {
  --orange-oomphwellness: #f18817;
  --blue-oomphwellness: #00409e;
}

* {
  min-height: 0;
  min-width: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: -webkit-fill-available;
}

body {
  overflow: hidden;
  position: relative;
  font-family: "Roboto", sans-serif;
  background-color: #eff3f8;
  color: black;
}

.menu-home,
.menu-splashscreen,
.menu-level,
.menu-rules,
.menu-content-type,
.menu-choose-content {
  transition: opacity 1s linear;
}

.menu-hidden {
  opacity: 0 !important;
  transition: opacity 1s linear;
}

.sidebar {
  display: flex;
  /* flex-direction: column; */
  align-items: center;
  width: 300px;
  gap: 20px;
  /* margin-right: 2rem; */
  float: left;
  /* background-color: var(--blue-oomphwellness); */
  color: white;
  text-align: center;
  font-weight: bold;
  position: fixed;
  top: 0;
  z-index: 2;
  padding-inline: 20px;
}

.focused-image-container {
  position: absolute;
  margin-top: 10px;
  top: 0%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  height: 200px;
  z-index: 10;
}

.focused-image-container-image {
  width: 500px;
  height: 350px;
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
}


.focused-image-container-image img {
  width: 500px;
  height: 400px;
}

.image-display-container {
  display: flex;
  scrollbar-width: auto; 
  -ms-overflow-style: auto; 
  width: max-content;
  gap: 10px;
}

.scroll-wrapper::-webkit-scrollbar {
  height: 8px; 
}

.scroll-wrapper::-webkit-scrollbar-thumb {
  background: gray; 
  border-radius: 4px;
}

.image-display-container img {
  width: 200px;
  height: 200px;
}


.scroll-wrapper {
	width: 100vw;
	overflow-x: scroll;
  margin-top: 25%;
} 


.sidebar a {
  cursor: pointer;
}

.sidebar-title {
  padding: 20px;
  font-family: "century bold";
  font-weight: normal;
  font-size: 2.5em;
  color: var(--orange-oomphwellness);
}

.sidebar-remaining {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  margin: 0;
  font-size: 1.5em;
  flex: 3;
}

.sidebar-about {
  padding: 20px 0;
}

.sidebar-about-advert {
  font-size: 1.5em;
}

.sidebar-logo {
  max-width: 140px;
  width: 100%;
  margin: 2vh 0px;
  padding: 4px;
  background: white;
  border-radius: 10px;
}

.sidebar-button {
  background-color: var(--orange-oomphwellness);
  font-size: 2em;
  /*     margin: 2vh 0px; */
  padding: 2px 15px;
  border-radius: 10px;
}

.sidebar a:hover,
.sidebar a:visited,
.sidebar a:focus {
  text-decoration: none;
  color: inherit;
}

.games-carousel {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, 300px);
  justify-content: center;
  z-index: 1;
  gap: 12px;
  overflow-y: auto;
  padding: 20px;
  padding-top: 80px;
}

.games-carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  width: 7.5vw;
  height: 15vw;
  background-color: black;
  color: white;
  font-size: 6vw;
  z-index: 1;
  opacity: 0.4;
  transition: 0.3s;
  cursor: pointer;
}

.games-carousel-control:hover {
  transform: translateY(-50%) scale(1.2);
  transition: 0.3s;
  opacity: 0.7;
}

.control-left {
  justify-content: center;
  /* left:300px; */
  border-top-right-radius: 15vw;
  border-bottom-right-radius: 15vw;
}

.control-right {
  justify-content: center;
  right: 0;
  border-top-left-radius: 15vw;
  border-bottom-left-radius: 15vw;
}

.games-carousel-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 300px;
  min-height: 420px;
  text-align: center;
  background-color: white;
  border-radius: 6px;
  padding-block: 20px;
  cursor: pointer;
}

.games-carousel-game-name {
  font-size: 2em;
  font-family: "century bold";
}

.games-carousel-game-description {
  flex: 2;
  padding: 20px;
  font-size: 1.4em;
  width: 100%;
}

.games-carousel-game-image {
  width: 100%;
}

.games-carousel-game-image img {
  border-radius: 10px;
}

.games-carousel-game-button {
  font-size: 1.5em;
  padding: 10px 20px;
  background-color: var(--blue-oomphwellness);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Roboto", sans-serif;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
}

.image-button {
  background-size: cover;
  cursor: pointer;
}

.splashscreen {
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  height: 100%;
  background-size: cover;
  overflow: hidden;
  z-index: 3;
}

.splashscreen-title {
  width: 50vw;
  padding: 5vw;
  font-size: 6vw;
  font-family: "century";
  text-align: right;
}

.level {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position-x: right;
  background-position-y: bottom;
  z-index: 4;
}

.level-button {
  cursor: pointer;
  background-color: var(--blue-oomphwellness);
  border-radius: 6px;
  color: white;
  font-size: 2em;
  padding: 10px 20px;
}

.level-button-quit {
  position: absolute;
  top: 2vh;
  left: 2vh;
  background-color: var(--orange-oomphwellness);
}

.level-title {
  display: inline-flex;
  flex: 1;
  font-family: "century";
  font-size: 8vw;
  align-items: center;
}

.level-choice {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 150px);
  align-items: center;
  flex-direction: row;
  gap: 2vw;
}

.level-choice .level-button {
  /* width: 20vw;
	height: 20vw; */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  /* font-size: 3vw; */
}

.level-fill {
  flex: 1;
}

.rules {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rules-container {
  display: inline-flex;
  flex-direction: column;
  flex: 1;
  margin-top: -1vh;
}

.rule {
  display: inline-flex;
  margin-top: 1vh;
  background-color: rgba(255, 255, 255, 0.5);
}

.rule-text {
  display: inline-flex;
  align-items: center;
  flex: 3;
  margin-left: 2vw;
  font-size: 4vh;
}

.rule-image-container {
  flex: 2;
  display: inline-flex;
  align-items: stretch;
}

.rule-image {
  width: 100%;
  padding: 10%;
  object-fit: contain;
}

.rules-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 25vh;
  font-size: 3.2vh;
  font-weight: bold;
}

.rules-button {
  /* height: 24vh;
	width: 24vh; */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 3vh;
  border-radius: 6px;
  padding: 1vh 2vw;
  color: white;
  background-color: var(--blue-oomphwellness);
  cursor: pointer;
}

#container-recipes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 300px));
  gap: 8px;
  width: 100%;
}

#container-recipes::before {
  content: none;
}

.content-type {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position-x: right;
  z-index: 4;
}

.content-type-button {
  cursor: pointer;
  background-color: var(--blue-oomphwellness);
  border-radius: 6px;
  color: white;
  font-size: 2em;
  padding: 10px 20px;
}

.button {
  cursor: pointer;
}

.content-type-button-quit {
  /* width:10vh;
	height:10vh; */
  position: absolute;
  top: 2vh;
  left: 2vh;
}

.content-type-title {
  flex: 1;
  font-size: 6vw;
  font-family: "century";
  text-align: center;
}

.content-type-choice {
  display: flex;
  gap: 3rem;
  /* flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, 220px);
  align-items: center;
  gap: 2vw; */
}

.choose-content-title-geo {
  margin-bottom: 600px;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

#nameTitle, #placeTitle {
    cursor: pointer;
    background-color: var(--blue-oomphwellness);
    border-radius: 6px;
    color: white;
    font-size: 2em;
    padding: 10px 20px;
    font-weight: bold;
}

.content-type-choice .content-type-button {
  /* width: 20vw;
	height: 20vw; */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  /* font-size: 3vw; */
}

.content-type-fill {
  flex: 1;
}

.choose-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-position-x: right;
  z-index: 5;
  text-align: center;
}

/* .choose-content-puzzle {
  width: max-content;
  overflow-x: scroll;
} */

.choose-content-title {
	display: inline-flex;
  flex: 1;
  font-family: 'century';
  font-size: 8vw;
  align-items: center;
}  

.carousel {
  width: 75vw;
  height: 50vh;
  margin: 10vh;
}

.carousel-inner {
  width: inherit;
  height: inherit;
  overflow: hidden;
}

.item {
  height: inherit;
  cursor: pointer;
}

/* .item > img {
	object-fit: cover;
	object-position: 50% 0%;
	width:100%;
	overflow:hidden;
	height:inherit !important;
}
 */

.carousel-caption h3 {
  font-size: 3.5vw !important;
}

.carousel-caption p {
  font-size: 2vw;
}

.carousel-caption-puzzle {
	position: static;
}


.button-intrus {
  background-image: url("../img/buttons/edith/intrus/button-off.png");
}

.button-intrus:hover {
  background-image: url("../img/buttons/edith/intrus/button-on.png");
}

.button-simili {
  background-image: url("../img/buttons/edith/simili/button-off.png");
}

.button-simili:hover {
  background-image: url("../img/buttons/edith/simili/button-on.png");
}

.button-cook {
  background-image: url("../img/buttons/edith/cook/button-off.png");
}

.button-cook:hover {
  background-image: url("../img/buttons/edith/cook/button-on.png");
}

.button-ball {
  background-image: url("../img/buttons/edith/ball/button-off.png");
}

.button-ball:hover {
  background-image: url("../img/buttons/edith/ball/button-on.png");
}

.button-hangman {
  background-image: url(../img/buttons/edith/hangman/button-off.png);
}

.button-hangman:hover {
  background-image: url(../img/buttons/edith/hangman/button-on.png);
}

.button-chessboard {
  background-image: url("../img/buttons/edith/chessboard/button-off.png");
}

.button-chessboard:hover {
  background-image: url("../img/buttons/edith/chessboard/button-on.png");
}

.button-calculus {
  background-image: url("../img/buttons/edith/calculus/button-off.png");
}

.button-calculus:hover {
  background-image: url("../img/buttons/edith/calculus/button-on.png");
}

.button-proverb {
  background-image: url("../img/buttons/edith/proverb/button-off.png");
}

.button-proverb:hover {
  background-image: url("../img/buttons/edith/proverb/button-on.png");
}

.button-puzzle {
  background-image: url("../img/buttons/edith/puzzle/button-off.png");
}

.button-puzzle:hover {
  background-image: url("../img/buttons/edith/puzzle/button-on.png");
}

.button-quizzle {
  background-image: url("../img/buttons/edith/quizzle/button-off.png");
}

.button-quizzle:hover {
  background-image: url("../img/buttons/edith/quizzle/button-on.png");
}

/* .button-quit-ball {
	background-image:url('../img/buttons/edith/ball/close-off.png');
}

.button-quit-ball:hover {
	background-image:url('../img/buttons/edith/ball/close-on.png');
}

.button-quit-chessboard {
	background-image:url('../img/buttons/edith/chessboard/close-off.png');
}

.button-quit-chessboard:hover {
	background-image:url('../img/buttons/edith/chessboard/close-on.png');
}

.button-quit-proverb {
	background-image:url('../img/buttons/edith/proverb/close-off.png');
}

.button-quit-proverb:hover {
	background-image:url('../img/buttons/edith/proverb/close-on.png');
}

.button-quit-puzzle {
	background-image:url('../img/buttons/edith/puzzle/close-off.png');
}

.button-quit-puzzle:hover {
	background-image:url('../img/buttons/edith/puzzle/close-on.png');
}

.button-quit-quizzle {
	background-image:url('../img/buttons/edith/quizzle/close-off.png');
}

.button-quit-quizzle:hover {
	background-image:url('../img/buttons/edith/quizzle/close-on.png');
} */

.button-sudoku {
  background-image: url("../img/buttons/edith/sudoku/button-off.png");
}

.button-sudoku:hover {
  background-image: url("../img/buttons/edith/sudoku/button-on.png");
}

/* add for cook game */

.dish-image {
  cursor: pointer;
  width: 100%;
  padding: 10%;
  object-fit: contain;
}

.dish-image-fake {
  width: 100%;
  padding: 10%;
  object-fit: contain;
}

.dish-image-first {
  cursor: pointer;
  padding: 10%;
  object-fit: contain;
}

.content-title-dish-choice {
  padding: 10%;
  flex: 1;
  font-size: 4vw;
  text-align: center;
  padding-bottom: 2vh;
  line-height: 8vh;
}

.content-title-dish-choice-specify {
  padding: 10%;
  flex: 1;
  font-size: 3vw;
  text-align: center;
  padding-bottom: 2vh;
  line-height: 4.5vh;
}

.choose-content-title-cook {
  display: inline-flex;
  flex: 1;
  position: absolute;
  left: 0%;
  top: 1%;
  width: 100%;
  height: 33%;
  font-size: 8vw;
  align-items: center;
}

.choose-content-title-cook-recipe {
  display: inline-flex;
  flex: 1;
  position: absolute;
  left: 0%;
  top: 1%;
  width: 100%;
  height: 23%;
  font-size: 8vw;
  align-items: center;
}

.choose-container {
  position: absolute;
  left: 0%;
  top: 34%;
  width: 100%;
  height: 66%;
}

.choose-container-recipe {
  overflow-x: hidden;
  position: absolute;
  background-attachment: scroll;
  left: 0%;
  top: 24%;
  width: 99%;
  height: 76%;
}

.col-sm-3 {
  margin-bottom: 15px;
  bottom: 10px;
  top: 10px;
}

::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
  background-color: #d3d5ef;
  border-radius: 10px;
}

.choose-container-recipe::-webkit-scrollbar {
  width: 12px;
  background-color: #d3d5ef;
}

.choose-container-recipe::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
  background-color: #e5e5ef;
}

.cupDiv {
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 300px));
  justify-content: space-around;
  float: left;
  width: 100%;
}

.cupDiv > div {
  height: 100%;
}

.card {
  height: 100%;
  border-radius: 6px;
}

@media screen and (max-width: 632px) {
  .level-choice,
  .content-type-choice {
    grid-template-columns: 1fr;
  }
}

/* SmartPhones Portrait */

@media all and (max-device-width: 480px) {
  .menu-rules {
    display: flex;
    align-items: center;
  }

  /* .level-choice .level-button {
    width: 30vw;
    height: 30vw;
    font-size: 5vw;
  } */

  .level-title {
    font-size: 12vw;
  }

  .splashscreen-title {
    font-size: 10vw;
  }

  .rules-bottom {
    height: auto;
  }

  .level-description {
    font-size: 5.5vw;
    line-height: 6vh;
    font-weight: bold;
  }

  .level-choice .level-button {
    /* font-size: 3vh; */
  }

  .rules {
    flex-direction: column;
    height: 100vh;
    padding: 8%;
  }

  .rules-right {
    background-image: none !important;
    padding-bottom: 0;
  }

  .rules-title {
    width: 100%;
    font-size: 10vw;
  }

  .rule-image {
    padding: 18%;
  }

  .splashscreen-title {
    font-size: 10vw;
  }

  .rule-text {
    font-size: 3vh;
  }

  .content-type-choice .content-type-button {
    width: 35vw;
    height: 35vw;
    font-size: 4vw;
  }
}

/* SmartPhones (Landscape) */

@media screen and (max-device-width: 812px) and (orientation: landscape) {
  .rule-text {
    font-size: 4vh;
  }

  .rules-title {
    width: 60%;
    font-size: 5vw;
  }

  .rules-left {
    padding-bottom: 3%;
    padding-top: 1%;
    padding-left: 4%;
  }

  .rules-container {
    margin: 0;
  }

  .rules-button {
    font-size: 5vh;
  }

  .level-choice .level-button {
    width: 20vw;
    height: 20vw;
    /* font-size: 2.9vw; */
  }

  .level-title {
    font-size: 6vw;
    padding-bottom: 4%;
  }

  .level-description {
    font-size: 4vw;
    padding-bottom: 8vh;
    font-weight: bold;
  }

  .level-choice .level-button {
    margin: 6vh;
    /* font-size: 7vh; */
  }

  .rule-image {
    padding: 5%;
  }
}
