*,
::before,
::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*::-webkit-scrollbar {
  width: 10px;
}

*::-webkit-scrollbar-track {
  background-color: #f1f1f1;
}

*::-webkit-scrollbar-thumb {
  background-color: #b3b3b3;
  border-radius: 50px;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: gray;
}

body {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #2d2d2d;
}

a {
  text-decoration: none;
}
a, a:visited {
  color: inherit;
}

@keyframes fade_in_show {
  0% {
    opacity: 0;
    visibility: hidden;
  }
  1% {
    visibility: visible;
  }
  100% {
    opacity: 1;
    visibility: visible;
  }
}
header {
  background-color: #02020291;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 0px;
  padding: 0 2rem;
  position: fixed;
  width: 100vw;
}
header .title {
  color: #f2f2f2;
}
header .primary {
  display: flex;
  height: 0px;
}
header .primary .link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 0px;
  padding: 0 2rem;
}
header .primary .link:hover {
  color: white;
}

.container {
  width: 100%;
  min-height: calc(100vh - 0px - 80px);
  flex: 100;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-size: cover;
  margin-top: 0px;
}
.container .section {
  display: none;
  max-width: 1200px;
  width: 95%;
  border-radius: 20px;
  height: 1000px;
  margin: 3em 0;
  padding: 2em;
  gap: 2em;
}

.footer {
  width: 100%;
  height: 5em;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #f2f2f2;
}
.footer .footer_content {
  width: 100%;
  height: 3em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer .footer_copyright {
  width: 100%;
  height: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

:root {
  --nbRows: 5;
  --nbColumns: 5;
  --tile-size: 30px;
}

.map {
  display: grid;
  grid-auto-flow: row dense;
  grid-template-rows: repeat(var(--nbRows), var(--tile-size));
  grid-template-columns: repeat(var(--nbColumns), var(--tile-size));
  gap: 10px;
  padding: 10px;
  background-color: #e3bb70;
  position: relative;
}

.tile {
  width: 100%;
  height: 100%;
  background-color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tile.constructible {
  cursor: pointer;
  background: url(../../../images/tileset.png) 0 0 no-repeat;
  background-size: 800% 600%;
  background-position: calc(0 / 14 * 100%) calc(4 / 10 * 100%);
  box-shadow: inset 0 0 5px black;
}
.tile.turret {
  cursor: pointer;
  background: url(../../../images/tileset.png) 0 0 no-repeat;
  background-size: 800% 600%;
  background-position: calc(6 / 14 * 100%) calc(1 / 10 * 100%);
}
.tile.decor {
  background: url(../../../images/tileset.png) 0 0 no-repeat;
  background-size: 800% 600%;
  background-position: calc(2 / 14 * 100%) calc(4 / 10 * 100%);
}
.tile.start {
  background: url(../../../images/tileset.png) 0 0 no-repeat;
  background-size: 800% 600%;
  background-position: calc(6 / 14 * 100%) calc(10 / 10 * 100%);
}
.tile.route {
  background: url(../../../images/tileset.png) 0 0 no-repeat;
  background-size: 800% 600%;
  background-position: calc(4 / 14 * 100%) calc(4 / 10 * 100%);
}
.tile.end {
  background: url(../../../images/tileset.png) 0 0 no-repeat;
  background-size: 800% 600%;
  background-position: calc(6 / 14 * 100%) calc(7 / 10 * 100%);
}

.monster {
  width: 50px;
  height: 50px;
  background-color: #80008055;
  border: 3px solid black;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
}

.bullet {
  width: 10px;
  height: 10px;
  background-color: #0238ce;
}

.turret2 {
  width: 30px;
  height: 30px;
  background-color: hotpink;
}

.player {
  position: fixed;
  inset: 5px;
  display: flex;
  gap: 15px;
  height: 20px;
  width: 300px;
}
.player__item {
  display: flex;
  align-items: center;
}
.player__item img {
  width: 20px;
  margin-right: 5px;
}
.player__item span {
  color: #f2f2f2;
  font-size: 1.1rem;
}

.wave {
  position: fixed;
  inset: 5px;
  left: auto;
  height: 60px;
  width: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.wave__item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #f2f2f2;
}
.wave__item > span {
  margin-left: 5px;
  font-weight: 400;
}
.wave button {
  display: none;
  padding: 5px 10px;
  width: 100%;
}
