* {
  padding:0;
  margin:0;
}
body {
  font-family: cursive, sans-serif;
  text-align: center;
  background-color: #170d3b;
  margin: 0;
  padding: 20px;
}

.ads{
  width:728px;
  height:90px;
  border:0px;
  padding:0;
  overflow:hidden;
  background-color: transparent;
  position:fixed;
  bottom:0;
  left:0;
}

.title{
  font-size:24px;
  font-weight:bold;
  margin-bottom:10px;
  color: #b2eafc;
}
.subtitle{
  font-size:18px;
  margin-top:0;
  margin-bottom:30px;
  color: #bef0ff;
}

#game-container {
  margin: 20px auto;
  position: relative;
  border: 5px solid #1a0231;
  border-radius:5px;
  box-shadow: 0 0 10px rgba(255,255,255,0.7);
  overflow: hidden;
  background-color: #13033d;
  max-width: 100%;
}

#map {
  position: absolute;
  transition: transform 1s ease;
}

.tile {
  position: absolute;
  box-sizing: border-box;
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.3);
  border:2px solid #13033d;
  border-radius:1px;
}

.grass {
  background-color:rgb(78, 154, 60);
}

.water {
  background-color:rgb(64, 128, 192);
}

.stone {
  background-color:rgb(100, 100, 120);
}

.dirt {
  background-color:rgb(120, 78, 56);
}

#character {
  position: absolute;
  font-size:0;
  text-align: center;
  z-index: 10;
  transition: transform 0.2s ease;
  pointer-events: none;
}

#controls {
  margin: 25px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.control-row {
  display: flex;
  gap: 10px;
}

button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  background-color: #1fc7f1;
  color: white;
  border: 2px solid darkslateblue;
  border-radius: 5px;
}

button:hover {
  background-color: #1cb2d8;
}

button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

#coordinates {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 5px 10px;
  border-radius: 5px;
  font-family: monospace;
}

@media (max-width:480px){
  #controls{
    margin-top:100px;
  }
  .control-row {
    margin:5px;
    gap: 60px;
  }
  #right-btn{
    margin-left:30px;
  }
}
