:root {
  --accent-yellow: #F9FF08;
  --header-height: 60px;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Anton', Arial, sans-serif;
  background: var(--accent-yellow);
  color: #222;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

header {
  background: var(--accent-yellow);
  height: var(--header-height);
  min-height: var(--header-height);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 0 0 0px 0;
  flex-shrink: 0;
  display: flex;
  align-items: center; /* Vertically center nav inside header */
}

main {
  flex: 1 0 auto;
  background: #fff;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
}

nav {
  display: flex;
  align-items: center; /* Vertically center nav contents */
  justify-content: space-between;
  width: 100%;
  padding: 16px 32px;
  box-sizing: border-box;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 00px; /* space between top-icons and hamburger */
}

.title-icon-text {
  display: flex;
  align-items: center;
  gap: 2px;
}

.icon-ace-img {
  display: flex;
  align-items: center;
  height: 100%;
}

.icon-ace {
  vertical-align: middle;
  margin: 0;
  padding: 0;
}

.icon-ace {
  width: 48px;
  height: 48px;
}

.title-text {
  text-align: left;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  color: #ffffff;
  font-size: 1.4em;
  padding-left: 5px;
  -webkit-text-stroke: 1.3px black;
}



main .wrap {
background: #fff;
  width: 100%;
  max-width: 700px;
  padding: 32px;
  margin: 0 auto;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-sizing: border-box;
  box-shadow: none;
  min-height: 0;

  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

h1 {
  font-family: 'Anton', Arial, sans-serif;
  font-size: 1.5em;
  margin-bottom: 24px;
  text-align: center;
}

.games-list {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  
}

.game-card,
.game-card:visited,
.game-card:active,
.game-card:hover,
.game-card:focus {
  color: #222;
  text-decoration: none;
}

.game-card {
  background: #f3f3f3;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 20px 28px;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  text-decoration: none;
  min-width: 320px;
  max-width: 460px;
  min-height: 120px;
  width: 100%;
  box-sizing: border-box;
  /* border: 2px solid var(--accent-yellow); */
  border: 2px solid #2b2d42;
}

.game-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.10);
  transform: translateY(-2px) scale(1.03);
  background: #e9e9e9;
}

.game-card:hover {
  background: #8d99ae;
  color: #fff;
}

.game-card > div {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.game-card img {
  border-radius: 8px;
  margin-right: 16px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  main .wrap {
    padding: 16px;
  }
  .game-card {
    min-width: 180px;
    padding: 12px 8px;
  }
  nav {
    padding: 12px 8px;
  }
}

/* ...existing code... */

/* Hamburger styles */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  margin-left: auto;
  margin-right: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 18px;
  background: #222;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Side menu styles */
.side-menu {
  position: fixed;
  top: 0;
  right: -320px;
  width: 280px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 16px rgba(0,0,0,0.08);
  transition: right 0.3s;
  z-index: 1000;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.side-menu.open {
  right: 0;
}
.side-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0px 24px 0px 24px;
  font-family: 'Anton', Arial, sans-serif;
  font-size: 1.2em;
  border-bottom: 1px solid #eee;
  height: 60px;
}

.side-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-menu li {
  margin: 0;
  padding: 12px 24px;
  width: 100%;
  box-sizing: border-box;
  border-radius: 0;
  transition: background 0.2s;
}

.side-menu li:hover {
  background-color: #8d99ae;
}

.side-menu a {
  text-decoration: none;
  color: #222;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.side-menu a:hover {
  color: #222; /* Keep link text black on hover */
}

#closeMenu {
  background: none;
  border: none;
  font-size: 2em;
  cursor: pointer;
  color: #222;
  line-height: 1;
  padding: 0;
}

/* Responsive: hide hamburger on wide screens if desired */
@media (max-width: 900px) {
  .hamburger {
    display: flex;
  }
}
@media (min-width: 901px) {
  .hamburger {
    display: flex;
  }
}