
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html,
body {
  width: 100%;
  height: 100%;
}


body {
  background: #292828;
  overflow: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}


#homeBtn {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
}

#homeBtn img {
  width: 260px;
}

@media (min-width: 1200px) {
  #homeBtn {
    left: 20px;
    transform: none;
  }
}


.container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: calc(120svh - 120px);
  padding: 10px;
}


.flipbook {
  width: 900px;
  height: 600px;
  background: transparent !important;
  box-shadow: none !important;
}

.flipbook .page,
.flipbook .hard {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

.flipbook img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  display: block;
}

.flipbook .even,
.flipbook .odd {
  background: transparent !important;
}


.controls {
  position: fixed;
  bottom: 14px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 14px;
  z-index: 1000;
}

.controls button {
  border: none;
  padding: 12px 14px;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  color: #ffffff;
  background: linear-gradient(135deg, #1e029b, #234d96);
  transition: transform 0.2s, background 0.3s;
}

.controls button:hover {
  transform: scale(1.1);
}

#soundBtn {
  background: linear-gradient(135deg, #03803d, #03a14d);
}


.controls-toggle {
  position: fixed;
  top: 14px;
  right: 20px;
  padding: 10px 14px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: linear-gradient(135deg, #1e029b, #234d96);
  color: #fff;
  z-index: 1000;
  transition: background 0.3s;
}

.controls-toggle:hover {
  background: linear-gradient(135deg, #234d96, #1e029b);
}


@media (max-width: 768px) {
  .controls-toggle {
    padding: 10px;
    font-size: 20px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e029b, #234d96);
  }

  .controls-toggle i {
    font-size: 22px;
  }


  .controls-toggle::after {
    content: "";
  }
}


@media (max-width: 1024px) {
  .flipbook {
    width: 90vw;
    height: calc(90vw * 1.4);
  }
}


@media (max-width: 768px) {
  .flipbook {
    width: 95vw;
    height: calc(95vw * 1.4);
  }

  .controls button {
    padding: 12px 14px;
    font-size: 18px;
  }

  #homeBtn img {
    width: clamp(170px, 40vw, 240px);
  }
}


@media (max-width: 480px) {
  .controls button {
    padding: 10px 12px;
    font-size: 16px;
  }
}

@media (max-width: 360px) {
  .controls button {
    padding: 8px 10px;
    font-size: 14px;
  }
}
