/* ---------------------------------------------------------------------------
- Fonts
--------------------------------------------------------------------------- */

@font-face {
  font-family: 'Zin Display';
  src: url('/static/website/fonts/zin-display.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

/* ---------------------------------------------------------------------------
- Page layout
--------------------------------------------------------------------------- */

body {
  margin-bottom: 0;
  background-color: #254336;
}

.page-layout {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  flex-wrap: nowrap;
}

/* ---------------------------------------------------------------------------
- Intro section
--------------------------------------------------------------------------- */

.intro-section {
  max-width: 60rem;
  margin: 0 auto;
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 6rem;
}

.intro-title {
  font-family: 'Zin Display', serif;
  font-size: 4rem;
  color: #c99a4f;
  text-align: center;
}

.intro-box {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
}

.intro-text {
  color: #ddd;
  flex: 1 1 35%;
  max-width: 40%;
}

.intro-image {
  flex: 2 1 65%;
  max-width: 60%;
}

.intro-image img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.enter-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #c99a4f;
  color: #111;
  text-decoration: none;
  font-weight: bold;
  border-radius: 0.5rem;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.4),  /* light from above */
    inset 0 -2px 4px rgba(0, 0, 0, 0.25);       /* shadow at bottom */
}

.enter-button:hover,
.enter-button:active,
.enter-button:visited,
.enter-button:focus {
  color: black;
  text-decoration: none;
}

/* ---------------------------------------------------------------------------
- Sidebar
--------------------------------------------------------------------------- */

.sidebar-toggle {
  position: fixed;
  top: 1rem;
  left: 1rem;
  background: none;
  border: none;
  z-index: 2000;
  cursor: pointer;
  padding: 0;
}

.sidebar {
  flex: 0 0 12rem;
  min-height: 100vh;
  z-index: 1000;
  background-color: #c99a4f;
}

.sidebar-menu {
  padding-top: 5rem;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  margin: 0;
}

.sidebar-menu a {
  display: block;
  padding: 15px 20px;
  color: #111;
  text-decoration: none;
  font-weight: bold;
}

.sidebar-menu a:hover {
  background-color: #333;
  color: white;
}

.sidebar-menu form {
  margin: 0;
}

.profile-menu {
  display: none;
  list-style: none;
  padding-left: 1rem;
  margin: 0.5rem 0;
}

.profile.open .profile-menu {
  display: block;
}

.profile-toggle {
  cursor: pointer;
  font-weight: bold;
  display: block;
  text-decoration: none;
  padding: 0.5rem 1rem;
  color: inherit;
}

.sidebar-menu button {
  all: unset;
  display: block;
  width: 100%;
  font-size: 1rem;
  font-weight: bold;
  padding: 15px 20px 15px;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.sidebar-menu button:hover {
  background-color: #333;
  color: white;
}

.profile-menu a {
  display: block;
  font-weight: normal;
  padding-left: 2rem;
  color: #111;
  text-decoration: none;
}

.profile-menu a:hover {
  background-color: #333;
  color: white;
}

.profile-menu button {
  font-weight: normal;
  padding: 15px 20px 15px 2rem;
}

/* ---------------------------------------------------------------------------
- Desktop only
--------------------------------------------------------------------------- */

/* Hide the menu button. */
@media (min-width: 769px) {
  .sidebar-toggle {
    display: none;
  }
}

/* ---------------------------------------------------------------------------
- Mobile only
--------------------------------------------------------------------------- */

@media (max-width: 768px) {

  /* Make the sidebar toggable. */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    padding-top: 3.5rem;
    background-color: #d6b06c;
  }

  .sidebar.show {
    transform: translateX(0);
  }

  /* Make sure everything fits on a small screen neatly. */
  .page-layout {
    flex-direction: column;
    align-items: stretch;
  }

  .page_layout,
  .intro-section,
  .intro-box,
  .intro-text {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .intro-image img {
    max-width: 100%;
    height: auto;
    display: block;
  }
}