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

body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.app-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.canvas-container {
  flex: 1;
  position: relative;
  border: 1px solid #ccc;
  overflow: hidden;
  background: #f5f5f5;
}

.canvas-wrapper {
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
  transition: transform 0.1s ease;
}

#backgroundCanvas,
#drawingCanvas {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
}

.controls, .image-loader {
  padding: 10px 20px;
  background: white;
  border-top: 1px solid #ccc;
  font-family: sans-serif;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.button {
  display: inline-block;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: bold;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.button:hover {
  background-color: #45a049;
}

.button:active {
  background-color: #3e8e41;
}

.home-button {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #007acc;
  color: white;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 999;
}

.home-button:hover {
  background-color: #005c99;
}