* {
  box-sizing: border-box;
  --basic-border-color: rgb(209,213,219);

  --font-size: 16px;
  --font-size-tile: 20px;
  --font-size-title: 22px;
}

*,
*:before,
*:after {
  box-sizing: inherit;       /* enable the "border-box effect" everywhere */
}

html {
  height: 100%;              /* for the page to take full window height */
  box-sizing: border-box;    /* to have the footer displayed at the bottom of the page without scrolling */
}

body {
  background-color: hsl(160, 0%, 97%);
  font-size: var(--font-size);
  font-family: Krub, sans-serif;
  min-height: 100%;          /* for the footer to be at the bottom */
  padding-bottom: 0rem;      /* Space available between last element and bottom border of the page */
  position: relative;        /* for the footer to move with the page size */
}

#header-nav {
  background-color: hsl(160, 0%, 100%);
  border-bottom: 1px solid hsla(240,7%,70%,.35) !important;
}

p {
  margin: 0px;
}

#title {
  font-family: Gill Sans, Gill Sans MT, Calibri, Trebuchet MS, sans-serif;
  font-size: 22px;
  font-weight: 400;
  color: hsl(210, 11%, 0%);
}

.main {
  margin: 0 0 0 0;
  padding: 0 0% 0 0%;
}

#gamefield {
  margin-top: 0rem;
}

#gamefield-controls {
  display: flex;
  justify-content: center;
  margin: 5% 0 0 0;
}

#gamefield-title {
  font-size: var(--font-size-title);
  margin: 0 0 1em 0;
}

.task {
  display: flex;
  padding: 0 0 0 0%;
}

.task-title {
  font-size: var(--font-size-tile);
  padding: 0 0 0 0;
}

.task-title-mobile {
  padding: 0 0 0.5em 0;
}

.task-question {
  width: auto;
}

.previous-task-question {
  margin-right: 1em;
  width: auto;
}

.previous-task-answer {
  width: auto;
}

.navbar {
  padding-top: 0;
  padding-bottom: 0;
}

.navbar-brand {
}

.button-grid {
  background-color: #FFFFFF;
  border: 1px solid rgb(209,213,219);
  border-radius: .5rem;
  box-sizing: border-box;
  color: #111827;
  font-family: "Inter var",ui-sans-serif,system-ui,-apple-system,system-ui,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.25rem;
  padding: .75rem 1rem;
  text-align: center;
  text-decoration: none #D1D5DB solid;
  text-decoration-thickness: auto;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-grid:hover {
  background-color: rgb(249,250,251);
}

.button-grid:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.button-grid:focus-visible {
  box-shadow: none;
}

.basic-form {
  align-items: center;
  background-color: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: .25rem;
  box-shadow: rgba(0, 0, 0, 0.02) 0 1px 3px 0;
  box-sizing: border-box;
  color: rgba(0, 0, 0, 0.85);
  display: inline-flex;
  justify-content: center;
  line-height: 1.25;
  min-height: 3rem;
  padding: calc(.875rem - 1px) calc(1.5rem - 1px);
  position: relative;
  text-decoration: none;
  transition: all 250ms;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: baseline;
}

.basic-button-actions:hover:enabled {
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
  color: rgba(0, 0, 0, 0.65);
  transform: translateY(-1px);
}

.basic-button-actions:active:enabled {
  background-color: #F0F0F1;
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: rgba(0, 0, 0, 0.06) 0 2px 4px;
  color: rgba(0, 0, 0, 0.65);
  transform: translateY(0);
}

.sidebar {
  background-color: #fff;
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  height: 100vh;
  width: 12.75rem;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.05);
}

.sidebar-form {
  background-color: #FFFFFF;
  border-color: rgba(108, 117, 125, 0.5);
  border-radius: 0;
}

.tile-description {
  border-width: 5px;
  font-size: var(--font-size-tile);
}

.game-modes-button {
  font-weight: 600;
}

.row-main-up {
   margin-bottom: 1em;
}

.row-main-grid {
   margin-bottom: 1em;
}

.row-main-bottom {
}

.gamefield-control-button {
  align-items: center;
  background-color: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: .25rem;
  box-shadow: rgba(0, 0, 0, 0.02) 0 1px 3px 0;
  box-sizing: border-box;
  color: rgba(0, 0, 0, 0.85);
  cursor: pointer;
  display: inline-flex;
  font-family: system-ui,-apple-system,system-ui,"Helvetica Neue",Helvetica,Arial,sans-serif;
  font-size: 16px;
  font-weight: 600;
  justify-content: center;
  line-height: 1.25;
  margin: 0 10px 0 10px;
  min-height: 3rem;
  padding: calc(.875rem - 1px) calc(1.5rem - 1px);
  position: relative;
  text-decoration: none;
  transition: all 250ms;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  vertical-align: baseline;
  width: auto;
}

.gamefield-control-button:disabled,
.gamefield-control-button[disabled]{
  border: 1px solid rgba(0, 0, 0, 0);
  color: rgba(0, 0, 0, 0.4);
  cursor: default;
}

.gamefield-control-button:hover:enabled {
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: rgba(0, 0, 0, 0.1) 0 4px 12px;
  color: rgba(0, 0, 0, 0.65);
  transform: translateY(-1px);
}

.gamefield-control-button:active:enabled {
  background-color: #F0F0F1;
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: rgba(0, 0, 0, 0.06) 0 2px 4px;
  color: rgba(0, 0, 0, 0.65);
  transform: translateY(0);
}

footer {
  background-color: hsl(160, 0%, 100%);
  bottom: 0;
  border-top: 1px solid hsla(240,7%,70%,.35) !important;
  font-family: Roboto;
  font-size: 14px;
  left: 0;
  padding: 0.75rem;
  position: absolute;        /* for it to disappear under last body element */
  right: 0;
  text-align: center;
}

.dropdown-content {
  background-color: #f1f1f1;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
  display: none;
  position: absolute;
  z-index: 1;
}

.show {display: block;}

/* Dropdown styling */
#menuDropdown {
  transition: all 0.2s ease-in-out;
}

#menuDropdown button,
#menuDropdown a {
  font-size: 0.95rem;
}

/* Optional: smooth appearance */
#menuDropdown.show {
  display: block !important;
}
