/*style di elementi fissi*/

body {
  box-sizing: border-box;
  width: 100vw;
  /*height: calc(var(--vh, 1vh) * 100);*/
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: var(--primary-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.divide {
  border-bottom: 1px solid var(--secondary-color-opacity);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: auto;
  min-height: 15vh;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  background: var(--primary-color);
  z-index: 11;
}

header .page-head {
  width: calc(100% - 40px);
  height: 7vh;
  padding: 0px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

header .page-head .id-space {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  background: none;
  border: none;
  font-size: 0.8rem;
}

header .page-head .id-space svg {
  height: 17px;
  width: 13px;
}

header .page-head .timer-space {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

#timer {
  font-size: 1.2rem;
  font-weight: bold;
}

header nav {
  width: calc(100% - 40px);
  height: 8vh;
  padding: 0px 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

nav button {
  text-transform: uppercase;
  font-size: 1rem;
  border-radius: 0;
  padding: 8px;
  width: 7rem;
  color: var(--secondary-color);
  border: none;
  background: none;
}

/*==========================================
==========================================*/

main {
  width: 100%;
  margin-top: calc(7vh + 8vh);
  height: calc(var(--vh, 1vh) * 100 - 15vh);
  position: relative;
}

/*==========================================
==========================================*/

.view {
  /*display: none;
  width: 100%;
  height: 100%;*/

  display: none;
  position: fixed;
  top: 15vh; /* header height */
  left: 0;
  width: 100vw;
  height: calc(var(--vh, 1vh) * 100 - 15vh);
  overflow: scroll;
  pointer-events: auto;
}

/* Alignment section specific - allows scrolling for more content */
#alignment {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#alignment .content {
  height: auto;
  min-height: auto;
  overflow: visible;
  flex-shrink: 0;
}

.view.active {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

nav button.active {
  color: var(--primary-color);
  background: var(--secondary-color);
}

.active .content {
  width: 100%;
  height: 92%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#recap-lock.view.active .content {
  height: 100% !important;
}

footer {
  width: 100%;
  height: 52px;
  /*border-top: var(--border);*/
  border: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
}

footer button {
  background: none;
  border: none;
  text-decoration: none;
  color: var(--secondary-color);
  -webkit-tap-highlight-color: transparent; /* iOS / Safari */
  -webkit-touch-callout: none; /* menu copia/incolla */
  user-select: none; /* niente selezione testo */
  touch-action: manipulation;
}

footer button:focus {
  outline: none;
}
footer button:active {
  background: none;
}

main {
  position: fixed;
  inset: 0;
  margin-top: 0;
  pointer-events: none;
}

.section-heading {
  font-weight: 500;
  font-family: "helvetica-neue-lt-pro", sans-serif;
  font-size: 1.4rem;
  margin: 0;
}

.body-text {
  font-size: 1rem;
  font-weight: 300;
  text-align: left;
  font-family: "helvetica-neue-lt-pro", sans-serif;
}
