/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* FULL PAGE */
html,
body {
  width: 100%;
  height: 100%;
  font-family: "Inter", sans-serif;
  overflow: hidden;
  /* background: #f4f4f4; */
  color: #202020;
}

/* APP */
.app {
  width: 100%;
  height: 100%;
}

/* PANEL */
.viewer-panel {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.viewer-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}


/* VIEWER */
.viewer {
  width: 100%;
  max-width: 560px;
  height: 100%;
  max-height: 520px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.viewer:active {
  cursor: grabbing;
}

/* IMAGE BOX */
.image-box {
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  /* background: #efefef; */
  touch-action: none;
  cursor: grab;
  /* border: 1px solid #e7e7e7; */
}

#frame {
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

.file-size-bubble {
  position: absolute;
  top: 2.5%;
  left: 50%;
  transform: translateX(-50%);
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(245, 245, 245, 0.9);
  color: #262626;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #ececec;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  user-select: none;
  pointer-events: none;
  z-index: 3;
}

.file-size-bubble span {
  font-size: 10px;
  line-height: 1.1;
}

.file-size-bubble strong {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
}

/* Drag indicator */
.drag-indicator {
  position: absolute;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: #2f2f2f;
  padding: 0;
  border-radius: 0;
  font-size: 14px;
  font-weight: 400;
  pointer-events: none;
  user-select: none;
  z-index: 3;
}

.hand-icon {
  width: 30px;
  height: 30px;
  display: block;
  object-fit: contain;
  opacity: 0.92;
}

.drag-indicator span:last-child {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

/* PLACEHOLDER */
.viewer-placeholder {
  position: absolute;
  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  color: #ccc;
  font-size: 14px;

  background: #f4f4f4;
  z-index: 10;
}

/* CAPTION */
.viewer-caption {
  position: absolute;
  bottom: 180px;
  width: 100%;

  text-align: center;
  font-size: 14px;
  color: rgba(48, 47, 47, 0.6);

  pointer-events: none;
}

/* MOBILE */
@media (max-width: 768px) {
  .viewer {
    max-height: 500px;
  }

  .file-size-bubble {
    top: 2%;
    width: 56px;
    height: 56px;
  }

  .file-size-bubble span {
    font-size: 9px;
  }

  .file-size-bubble strong {
    font-size: 11px;
  }

  .hand-icon {
    width: 52px;
    height: 52px;
  }

  .drag-indicator span:last-child {
    font-size: 12px;
  }
}