/* =========================
   HOME
   ========================= */

.file {
  display: flex;
  width: 100%;
  padding: 0.5rem 0.6rem;
  box-sizing: border-box;
  background: white;
  overflow: hidden;
  flex-direction: column-reverse;
}

.sheet {
  display: inline-block;
  flex-direction: column;
  border: 1px solid #111;
  background-color: #FFFDF4;
  overflow: hidden;
  border-top-left-radius: 0.2rem;
  border-top-right-radius: 0.2rem;
  place-items: center;
  padding: 0 1.5rem;

  /* From navbar.css */
  scroll-margin-top: var(--nav-h);
  justify-content: center;
}

.sheet-active {
  flex: 1 1 0;
  border: 1px solid #111;
  background-color: #FFFDF4;
  border-bottom: 1px solid #FFFDF4;
  border-top-left-radius: 0.2rem;
  border-top-right-radius: 0.2rem;
}

.sheet:not(.sheet-active) {
  flex: 0 0 auto;
  max-height: 5px;
  border: 1px solid #111;
  overflow: hidden;
  border-bottom-color: transparent;
}

hr {
  border: none;
  border-top: 1px solid #111;
  margin: 0 0;
  width: 100%;
}

/* --- Stilig for Sheet Content --- */

.sheet h2 {
  text-align: center;
  margin: 0;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  border: none;
}

.sheet h3 {
  text-align: center;
  margin: 0;
  margin-top: 1rem;
  margin-bottom: 1rem;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  border: none;
}

.sheet img {
  max-width: 400px;
  max-height: 300px;
  padding-top: 2rem;
  padding-bottom: 1rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  width: auto;
  height: auto;
}

.sheet p {
  margin-top: 2rem;
  margin-bottom: 2rem;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

/* --- Stiling for Horizontal Phone --- */
@media screen and (max-width: 920px) and (orientation: landscape) {
  .sheet {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin: 0;
  }
}

@media screen and (max-width: 920px) and (orientation: landscape) {
  .sheet:not(.sheet-active) > * {
    display: none;
  }
}