:root {
  /* Colors */
  --beige: #C4BDB2;
  --white: #fffaf2;
  --black: #1C1C1A;
  --orange: #B23D10;
  --green: #2A7F62;
  --blue: #2b59a7;

  /* Typography */
  --unifraktur: "UnifrakturCook", cursive;
  --antic: "Antic Didone", serif;
  --prata: "Prata", serif;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--beige);
  color: var(--black);
}

#main-grain {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  pointer-events: none;
}

#main-grain::before {
  z-index: 9999 !important;
  mix-blend-mode: multiply;
}

h1 {
  font-weight: 1000;
  font-size: 3rem;
  line-height: 1.2;
  overflow: hidden;
  white-space: pre-wrap;
  letter-spacing: 0.05em;
}

h2 {
  font-size: 1.5rem !important;
  line-height: 1.4;
}

.title {
  background-color: var(--black);
  color: var(--beige);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  width: auto;
}

.title>h1 {
  visibility: hidden;
}

.section,
h1,
h2,
#dropdown button {
  font-family: var(--antic);
}

.section,
h2,
#dropdown button {
  font-weight: 600 !important;
}

h3 {
  font-family: var(--prata);
  font-size: 1.3rem;
  font-weight: normal;
  line-height: 1.5;
}

.md-label,
p,
.team-title,
.student-card,
ul,
ol {
  font-family: var(--prata);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: var(--black);
}

/* -------- Icons -------- */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-variation-settings:
    'FILL' 0,
    'wght' 600,
    'GRAD' 0,
    'opsz' 48;
  width: 2rem;
  height: 2rem;
}

.md-icon {
  font-size: 1.5rem;
}

#prev_page,
#next_page {
  margin: 5rem 5rem 2rem 5rem;
  font-size: 2rem;
  cursor: pointer;
  text-decoration: none;
}

#prev_page {
  transform: rotate(-90deg);
}

#next_page {
  transform: rotate(90deg);
}

#prev_page:hover,
#next_page:hover {
  color: var(--orange);
  transition: all 0.2s ease;
}

/* -------- Columns -------- */
.grid,
.grid2 {
  margin-top: 4rem;
  display: grid;
  width: 100%;
}

.grid {
  grid-template-columns: 1.2fr 1.6fr 1.2fr;
}

.grid2 {
  display: grid;
  grid-template-columns: 50vw auto;
}

.column-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin-top: 4rem;
}

.column {
  padding: 2rem;
}

.left_column,
.right_column,
.second_column,
.pages {
  display: flex;
  align-items: center;
  justify-content: center;
}

.middle_column,
.first_column {
  border-right: 1px solid var(--black);
}

.middle_column {
  border-left: 1px solid var(--black);
  padding: 2rem;
}

.middle_column>p {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.first_column {
  padding: 2rem;
}

.single_column {
  width: 70%;
  height: 70rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

img {
  width: 100%;
}

.card {
  width: 55%;
  background: var(--beige);
  padding: 2rem;
  border-radius: 0;
  border: none;
}

.plot {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.pages {
  margin-left: 0.4rem;
  border: none;
}

/* -------- Chart container -------- */
#chart-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.btn {
  display: flex;
  flex-direction: column;
  position: absolute;
  left: 0;
  transform: translateX(-100%);
  border-right: none !important;
}

#dropdown,
.btn {
  border: 0.1px solid var(--black);
  overflow: hidden;
  width: max-content;
}

#dropdown {
  margin-left: 0.4rem;
}

#dropdown button,
.btn button {
  padding: 0.5rem;
  background-color: var(--beige);
  color: var(--black);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn button {
  height: 2.5rem;
}

#dropdown button.active,
#dropdown button:hover,
.btn button:hover {
  background-color: var(--orange);
  color: var(--beige);
}

/* -------- Responsive -------- */
@media (max-width: 981px) and (max-height: 437px){
  .grid,
  .grid2 {
    margin-top: 2rem !important;
  }

  .single_column {
    margin-top: -2rem !important;
  }

  #pieta,
  #general {
    width: 10rem !important;
  }

  .title {
    height: auto !important;
  }

  h1 {
    font-size: 1.5rem !important;
    line-height: 1.4;
  }

  h2 {
    font-size: 1.2rem !important;
    line-height: 1.5;
  }

  h3 {
    font-size: 1rem !important;
    line-height: 1.6;
  }

  .md-label,
  p,
  .team-title,
  .student-card,
  ul,
  ol {
    font-size: 0.8rem !important;
    line-height: 1.7;
  }
}