/* ===========================
   Global Styles
   =========================== */
html, body {
  height: 100%;
  margin: 0;
  font-family: 'Fira Code', monospace;
  background: black;
  color: #ffffff;
}

body {
  overflow: hidden;
}

/* ===========================
   Header
   =========================== */
header {
  height: 10vh;                       /* Takes up top 10% of viewport */
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background-color: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid #444;
}

.header-details {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  text-align: right;
  font-size: 0.9rem;
  color: #ccc;
  line-height: 1.4;
}

/* ===========================
   Scrollable Section Layout
   =========================== */
.all-sections {
  margin-top: 10vh;                   /* To offset the fixed header */
  height: 90vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.section {
  height: 90vh;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  scroll-snap-align: start;
}

/* ===========================
   Section Layout: Content
   =========================== */
.content {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  border: 3px dashed #444;
  box-sizing: border-box;
}

/* ===========================
   Text Box
   =========================== */
.text-box {
  flex: 1;
  margin: 20px;
  color: white;
  height: calc(100% - 40px);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  box-sizing: border-box;
}

.section-heading {
  width: 100%;
  text-align: left;
  padding: 0.5em 1em;
  font-size: 1rem;
  font-weight: bold;
  box-sizing: border-box;
}

.text-content {
  width: 100%;
  text-align: left;
  padding: 1em;
  margin-bottom: 20px;
  font-size: 1.5rem;
  box-sizing: border-box;
}

.text-box .text-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

.text-content ul li {
  margin-bottom: 1em;
  font-size: 1.2rem;
}

/* ===========================
   Media Box (Left or Right)
   =========================== */
.media {
  height: calc(100% - 40px);
  width: auto;
  max-width: 75%;
  margin: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.media img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* Square media aspect ratio and centering */
.square-media {
  height: 100%;
  aspect-ratio: 1.2 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===========================
   Toolbar Buttons
   =========================== */
.toolbar {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 10;
  height: 80vh;
}

.toolbar button.active {
  background-color: #007bff;
  color: white;
}

/* ===========================
   Canvas Layer
   =========================== */
#sketchCanvas {
  z-index: 0;
}

/* ===========================
   Floating Sticker Button
   =========================== */
.sticker-button {
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.4);
  color: #222;
  font-weight: bold;
  padding: 0.4em 1em;
  border-radius: 8px;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sticker-button:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: translateY(-50%) scale(1.05);
}

.sticker-button:active {
  transform: translateY(-50%) scale(0.98);
}
