/* Font from project assets */
@font-face {
  font-family: 'League Spartan';
  src: url('../assets/fonts/LeagueSpartan-VariableFont_wght.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Exercise Wrapper */
.exercise-wrapper {
  width: fit-content;
  margin: 0;
  padding: 1rem 0 1rem 1rem;
  position: relative;
}

/* Grid: photo top-left, note top-right, photo bottom-left, bulb bottom-right */
.content-row {
  display: grid;
  grid-template-columns: 19rem 27rem;
  grid-template-rows: auto auto;
  gap: 1rem 2rem;
  justify-content: start;
  width: fit-content;
  margin: 0;
}

.teacher-photo-top {
  grid-column: 1;
  grid-row: 1;
}

.teacher-note {
  grid-column: 2;
  grid-row: 1;
  font-family: 'League Spartan', sans-serif;
  background-color: #f5f8fa;
  border: 0.2rem solid #00699F;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem 1.1rem;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: start;
}

.teacher-photo-bottom {
  grid-column: 1;
  grid-row: 2;
}

.help-bulb-wrap {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 0.25rem;
}

.bulb-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  transition: transform 0.2s ease;
}

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

.bulb-icon {
  width: 2.2rem;
  height: 2.2rem;
  opacity: 0.85;
  display: block;
}

.note-line {
  font-family: 'League Spartan', sans-serif;
  font-size: 1.1rem;
  color: #00699F;
  line-height: 1.45;
  margin: 0.2rem 0;
}

.note-line:first-child {
  margin-top: 0;
}

.note-line:last-child {
  margin-bottom: 0;
}

.teacher-photo {
  width: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0.5rem;
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Popup z Redemitteln – odpre se ob kliku na žarnico */
.help-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  pointer-events: none;
}

.help-popup.is-open {
  pointer-events: auto;
}

.help-popup .popup-content {
  position: fixed;
  background-color: #fff;
  padding: 0.75rem 1.25rem 1rem;
  padding-top: 2.25rem;
  border-radius: 0.5rem;
  box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.3);
  pointer-events: auto;
  box-sizing: border-box;
  overflow: visible;
}

.speech-bubbles {
  font-family: 'League Spartan', sans-serif;
  background-color: #f5f8fa;
  border: 0.2rem solid #00699F;
  border-radius: 0.5rem;
  padding: 1rem 1.25rem 1.1rem;
  box-shadow: none;
  width: 100%;
  box-sizing: border-box;
}

.bubble-line {
  font-family: 'League Spartan', sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: #333;
  line-height: 1.45;
  margin: 0.2rem 0;
}

.bubble-line:first-child {
  margin-top: 0;
}

.bubble-line:last-child {
  margin-bottom: 0;
}

.close-popup {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 20;
  background: #fff;
  border: 0.1rem solid #ccc;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  font-size: 1.2rem;
  cursor: pointer;
  color: #333;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.2);
}

/* Hide */
.hidden {
  display: none;
}

/* Hide footer */
footer {
  display: none;
}
