body {
  background-color: #242234;
  background-repeat: repeat;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#game-title {
  width: 1280px;
  padding: 20px;
  margin-top: 20px;
  background-color: #242234;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

#game-title img {
  max-width: 100%;
  height: auto;
  display: block;
}

#unity-container {
  width: auto;
  height: auto;
  margin: 0 auto;
  background-color: #242234;
  position: relative;
  flex-shrink: 0;
}

#game-description {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

#game-return {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.return-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  max-width: 260px;
  width: auto;
  padding: 10px 20px;
  border-radius: 8px;
  border: 1px solid #5a5a6a;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: white;
  background: #242234;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s, border-color 0.15s;
  margin-top: 16px;
}

.return-btn:hover {
  background: #3a3a4a;
  border-color: #ffd541;
  transform: translateY(-1px);
}

#game-controls {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
  align-items: center;
}

#unity-canvas {
  background: #242234;
  width: 100%;
  height: 100%;
  display: block;
}

#unity-loading-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
}

#unity-logo {
  width: 154px;
  height: 130px;
  background: url('unity-logo-dark.png') no-repeat center;
}

#unity-progress-bar-empty {
  width: 141px;
  height: 18px;
  margin-top: 10px;
  margin-left: 6.5px;
  background: url('progress-bar-empty-dark.png') no-repeat center;
}

#unity-progress-bar-full {
  width: 0%;
  height: 18px;
  margin-top: 10px;
  background: url('progress-bar-full-dark.png') no-repeat center;
}

#unity-warning {
  position: absolute;
  left: 50%;
  top: 5%;
  transform: translate(-50%);
  background: white;
  padding: 10px;
  display: none;
}

#description {
  max-width: 800px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 20px;
  border: 0.5px solid #ffffff;
  background-color: #242234;
  color: #ffffff;
  text-align: center;
  font-size: 14px;
  min-height: 60px;
  box-sizing: border-box;
}

#control-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}

#title-box {
  background-color: #242234;
  color: #ffffff;
  padding: 20px;
  text-align: center;
  font-size: 14px;
}

#title-box p {
  margin: 5px 0;
}

.GDD-button {
  width: 64px;
  height: 64px;
  border: 1px solid #5a5a6a;
  background-color: #242234;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.2s, border-color 0.2s;
  border-radius: 8px;
}

.GDD-button:hover {
  background-color: #3a3a4a;
  border-color: #ffd541;
}

.foot {
  margin-top: 40px;
}

.foot button{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    max-width: 260px;
    width: auto;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid #5a5a6a;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: white;
    background: #242234;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s, border-color 0.15s;
    margin-top: 16px;
}

.foot button:hover {
    background: #3a3a4a;
    border-color: #ffd541;
    transform: translateY(-1px);
}
input[type="file"] {
    padding: 5px;
}

#scroll-button:hover
{
  background-color: #3a3a4a;
}

#scroll-button:active,
#undo-button:active {
  background-color: #1a1a2a;
}

#scroll-button img,
#undo-button img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 1320px) {
  #game-description,
  #game-controls {
    width: calc(100vw - 40px);
    max-width: 1280px;
  }

  #description {
    width: 100%;
  }

  #unity-container {
    width: calc(100vw - 40px);
    max-width: 1280px;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  #unity-canvas {
    width: 100%;
    height: 100%;
  }
}
