* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
  overflow: hidden;
  background-color: #fff;
}

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #ccc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.header form {
  margin: 0;
}

button {
  padding: 10px 20px;
  font-size: 1em;
  line-height: 1.4;
  cursor: pointer;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

button:hover {
  background-color: #0056b3;
}

.viewer {
  height: 100vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background-color: #fff;
  padding-top: 60px;
}

.viewer-inner {
  width: 200%;
  height: auto;
  overflow: hidden;
}

.viewer-inner img {
  width: 100%;
  height: auto;
  display: block;
  transform: scaleX(1.075) translateX(0%);
  transform-origin: center;
}

.center-content {
  height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.content-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  min-height: 220px;
}

.info {
  font-size: 1.4em;
  line-height: 1.4;
}

.spinner {
  margin-top: 20px;
  width: 40px;
  height: 40px;
  border: 5px solid #ccc;
  border-top: 5px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
