/*
	style.css
*/

body {
  
  background-color: #1e1e1e;
  margin: 0;
  padding: 0;
  color: #ffffffaf;
  font-family: Arial, sans-serif;
}

#page {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  max-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 3rem auto 17svh;
}
#game {
  max-height: 100%;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  grid-template-rows: 1fr 2rem 2rem;
}

#status {
  display: grid;
  grid-template-columns:  1fr 1fr 2rem;
  grid-template-rows:  2rem;
  gap: 1rem;
}
#status div {
  display: flex;
  align-items: center;
  justify-content:space-evenly;
}
#title {
  font-size: 2rem;
}
/******************** Hamburger *******************/
#hamburger {
  position: fixed;
  top: 20px;
  right: 24px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

#hamburger span {
  display: block;
  height: 4px;
  margin: 5px 0;
  background: rgba(255,255,255,0.5);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Menu panel */
#menu {
  position: fixed;
  top: 0;
  right: -360px;
  width: 260px;
  height: 100vh;
  background: #111;
  color: #fff;
  padding: 80px 20px;
  transition: right 0.3s ease;
  z-index: 1000;
}

#menu ul {
  list-style: none;
  padding: 0;
}

#menu li {
  margin-bottom: 20px;
}

#menu a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
}

/* Hamburger Overlay */
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 999;
}

/* Active state */
.menu-open #menu {
  right: 0;
}

.menu-open #overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Optional hamburger animation */
.menu-open #hamburger span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-open #hamburger span:nth-child(2) {
  opacity: 0;
}

.menu-open #hamburger span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/******************** KEYBOARD *****************/
#keyboard {
  display: grid;
  grid-template-columns: repeat( 20, 1fr);
  gap: 2px;
  grid-template-rows: repeat(3, 5svh);
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 640px;
  overflow-y: auto;
 /* 
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translate(-50%,0);
  */
}

.keyboard_key {
  grid-column: span 2;
  border: 1px solid black;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.halfsize {
  grid-column: span 1;
  border: none;
}
.oneandahalfsize {
  grid-column: span 3;
}

.keydis {
  cursor:not-allowed;
  color: #ffffff0f;
}

#kbInput {
  margin: 0;
  padding: 0;
  border: none;
  height: 0; overflow: hidden;
  position: absolute;
  bottom: -100px;
}
/**************** BOARD *******************/
#board {
  display: grid;
  grid-auto-rows: minmax(auto, 6rem);
  gap: 1rem;
  width: 100%;
  min-height: 60svh
  
}
.boardTile {
  border: 1px solid #ffffffaa;
  display: flex;
  align-items:  center;
  justify-content: center;
  font-size: clamp(1rem, 6svw, 6rem);
}

.nolettertile {
  background: #ffffff9a;
}
.cowtile {
  background: #eeee11aa;
}

.bulltile {
  background: #11ee11aa;
}

/**************** HISTORY ***********************/
#historyBar {
  display: flex;
  font-family: mono;
  overflow: scroll;
}
.historyBarEntry {
  display: flex;
  height: 2cap;
  margin-right: 1rem;
}
.historyBarEntry div {
  width: 2cap;
  text-align: center;
}

/**************** MODALS ***********************/
.modal {
  position:absolute;
  top:0;
  left:0;
  width: 100svw;
  height: 100svh;
  background-color: #ffffff99;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modalHidden {
  display: none !important;
}

#notawordText, #winnerTextWrapper, #alreadyGuessedText, #levelupText {
  padding: 3rem;
  background-color: #000;
}

#winnerTextWrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
#winnerWord {
  font-weight: bold;
  padding: 1rem;
  font-size: 2rem;
  color: #fff;
}
#winnerTextNumGuesses {
  font-weight: bold;
  color: #fff;
  font-size: 2rem;
  display: block;
  padding: 1rem;
}
#winnerCTA {
  padding: 1rem;
}

.menuModalText {
  padding: 3rem;
  background:#000a;
  width: 100svw;
  max-width: 800px;
}
.closeModalWrapper {
  float: right;
  
}


