:root {
  --animate-duration: 1s;
  --animate-delay: 1s;
  --animate-repeat: 1;
}

body { font-family: arial, helvetica, sans-serif; }
h1 { font-weight: bold; }

header { margin-bottom: 1.5rem; }

#header-icons, #hamberger { flex: 1; }
#title { flex: 2 }

#menu-btn {
  background-color: transparent;
  border: 0;
  position: relative;
  z-index: 2;
  height: 22px;
  width: 30px;
  padding: 0;
}
#menu-btn.open span:first-child {
  transform: rotate(45deg) translate(5px, 8px);
}
#menu-btn.open span:nth-child(2) {
  display: none;
}
#menu-btn.open span:last-child {
  transform: rotate(-45deg) translate(5px, -10px);
}
#menu-btn span {
  display: block;
  width: 30px;
  border-bottom: 3px solid #000;
  position: absolute;
  transition: all 0.3s ease;
}
#menu-btn span:first-child {
  top: 0px;
}
#menu-btn span:nth-child(2) {
  top: 10px;
}
#menu-btn span:last-child {
  top: 20px;
}

nav {
  display: flex;
  align-items: center;
  position: fixed;
  width: 100vw;
  height: 100vh;
  background-color: #439974;
  z-index: 1;
  right: -110%;
  overflow: hidden;
  transition: right 0.3s ease;
}
nav.open {
  right: 0;
}
nav ul {
  list-style: none;
  display: inline;
  margin: 0;
  padding: 0;
  width: 100%;
  text-align: center;
}
nav ul li {
  padding: 0.5rem 0;
  font-size: 1.5rem;
}
nav ul li a {
  text-decoration: none;
  color: #fff;
}
nav ul li a:hover {
  color: #bee0cf;
}

.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
}

.share-game a {
    display: inline-block;
}

.share-game .icon { width: 1.5rem; height: 1.5rem; margin: 0 5px; }

.group-game #share-game, .group-game #create-account { display: none; }

.waiting-users {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.waiting-users .loader {
	border: 6px solid #f3f3f3;
	border-top: 6px solid #3498db;
	width: 40px;
	height: 40px;

}

ul.user-list{
  font-weight: bold;
  width: 100%;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 33.333% 33.333% 33.333%;
}

.icon-account, .icon-users, .icon-user {
  width: 1.5rem;
  height: 1.5rem;
}

#create-account .icon-account {
  width: 2.5rem;
  height: 2.5rem;
}

#header-icons a,
#create-account a { color: #000; }

#header-icons a:hover,
#create-account a:hover {
  color: var(--bs-link-hover-color);
}

/* Account icon is redundant with the "Account" hamburger-menu entry on small screens,
   where the icon row competes for space with the title and hamburger button. */
@media (max-width: 767.98px) {
  #header-icons .account-icon-btn { display: none; }
}

.definition-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Two side-by-side columns, centered as a group. */
.word-columns {
  display: flex;
  justify-content: center;
  gap: 3rem;
}

/* Each row stretches to the widest word in its column and right-aligns its contents,
   so every row's "?" icon lines up within that column. */
.word-list {
  display: inline-flex;
  flex-direction: column;
}

.word-list .word-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.icon-link.icon-question svg {
  width: 1.5rem;
  height: 1.5rem;
}

.loader {
  border: 12px solid #f3f3f3; /* Light grey */
  border-top: 12px solid #3498db; /* Blue */
  border-radius: 50%;
  width: 80px;
  height: 80px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.animate__animated {
  -webkit-animation-duration: 1s;
  animation-duration: 1s;
  -webkit-animation-duration: var(--animate-duration);
  animation-duration: var(--animate-duration);
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
}

@-webkit-keyframes flash {
  from,
  50%,
  to {
    opacity: 1;
  }

  25%,
  75% {
    opacity: 0;
  }
}
@keyframes flash {
  from,
  50%,
  to {
    opacity: 1;
  }

  25%,
  75% {
    opacity: 0;
  }
}
.animate__flash {
  -webkit-animation-name: flash;
  animation-name: flash;
}

.animate__flash { color: red; }

#timer-wrap { font-size: 1.25rem; }
#timer { font-weight: bold; }
#fails { font-size: 1.1rem; }
#fails span { font-weight: bold; }

#shuffle, #guess {
  display: flex;
  justify-content: center;
}
#guess .border,
#shuffle .border {
  display: flex;
  width: 5rem;
  height: 5rem;
  margin: .25rem;
  background-color: #f5f5f5;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 1.5rem;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#shuffle .border.disabled { color: #b5b5b5; cursor: auto; }
#guess .border.empty { cursor: auto; }

.game-over-img { max-width: 120px; }

.game-code { font-family: 'Dosis', sans-serif; font-size: 2rem; }