:root {
  --yellow: #FFC600;
  --orange: #FF6635;
  --blue: #9CD8FF;
  --green: #C6C835;
  --gray-bg: #f0f0f0;
  --dark-text: #333;
}

@font-face {
  font-family: "OPS Favorite";
  src: url("/fonts/ops-favorite.woff2") format("woff2"),
       url("/fonts/ops-favorite.woff") format("woff");
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  font-family: sans-serif;
  overflow-x: hidden;
}

.tab-container {
  position: fixed;
  bottom: 0;
  height: 80vh;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  transition: transform 0.4s ease, z-index 0.2s ease;
  transform: translateY(calc(100% - 6vh));
  z-index: 1000;
}

.tab-container.open {
  transform: translateY(0);
  z-index: 2000;
}

.tab-handle {
  height: 6vh;
  display: flex;
  align-items: center;
  width: 60%;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
  border-radius: 0rem 1rem 0rem 0rem;
  background-color: var(--yellow);
}

.tab-handle h2 {
  font-family: "OPS Favorite", "Courier", "Lucida Console", "Arial", monospace;
  font-size: 1.8rem;
}

.tab-content {
  padding: 1rem;
  height: calc(80vh - 6vh);
  overflow-y: auto;
  background-color: var(--yellow);
}

.tab-left {
  position: fixed;
  top: 10vh;
  left: 0;
  width: 45vw;
  height: 70vh;
  background-color: var(--gray-bg);
  border-top-right-radius: 1rem;
  border-bottom-right-radius: 1rem;
  transform: translateX(-100%);
  transition: transform 0.4s ease, z-index 0.2s ease;
  z-index: 1000;
}

.tab-left.open {
  transform: translateX(0);
}

.tab-left .tab-content {
  height: calc(100vh - 10vh);
  background-color: var(--green);
}

.tab-left .tab-handle {
  position: absolute;
  right: -60px;
  width: 60px;
  height: 215px;
  background-color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-weight: bold;
  font-family: "OPS Favorite", "Courier", monospace;
  border-radius: 0rem 0rem 1rem 0rem;
  cursor: pointer;
}

.tab-right {
  width: 60vw;
  max-width: 60vw;
  right: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Patrick+Hand&display=swap');

.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  padding: 1rem;
  overflow-y: auto;
  box-sizing: border-box;
}

.note {
  position: relative;
  background-color: var(--orange);
  border-radius: 1rem;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.note-text {
  font-family: 'Patrick Hand', cursive;
  font-size: 2rem;
  color: var(--dark-text);
  text-align: center;
  word-wrap: break-word;
}

.text-body {
  font-size: 1.2rem;
  line-height: 1.6;
}

.tab-icon {
  margin-left: 0.5rem;
  font-size: 2rem;
  display: inline-block;
  transition: transform 0.3s ease;
  transform: rotate(-90deg) !important;
}

.tab-icon::after {
  content: "➤";
  display: inline-block;
  transform: rotate(0deg);
  transition: transform 0.4s ease;
}

.tab-container.open .tab-icon::after {
  transform: rotate(180deg);
}

.tab-left-secondary {
  position: fixed;
  top: calc(10vh + 220px);
  left: 0;
  width: 45vw;
  height: 70vh;
  border-top-right-radius: 1rem;
  border-bottom-right-radius: 1rem;
  transform: translateX(-100%);
  transition: transform 0.4s ease, z-index 0.2s ease;
  z-index: 999;
}

.tab-left-secondary .tab-content {
  background-color: var(--blue);
}

.tab-left-secondary.open {
  transform: translateX(0);
}

.tab-left-secondary .tab-handle {
  position: absolute;
  right: -60px;
  width: 60px;
  height: 185px;
  background-color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-weight: bold;
  font-family: "OPS Favorite", "Courier", monospace;
  border-radius: 0rem 0rem 1rem 0rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .tab-container {
    width: 100vw;
    left: 0 !important;
    right: auto;
  }

  .tab-right {
    bottom: 0;
    max-width: 100vw;
  }

  .tab-left {
    bottom: 6vh;
    max-width: 80vw;
  }

  .tab-left-secondary {
    max-width: 80vw;
	  top: calc(3vh + 220px); 
  }

  .tab-left .tab-handle {
    width: 35px;
    height: 150px;
    right: -35px;
  }

  .tab-left-secondary .tab-handle {
    width: 35px;
    height: 125px;
    right: -35px;
  }

  .tab-handle h2 {
    font-size: 1.2rem;
  }

  .tab-icon {
    font-size: 1.2rem;
  }

  .notes-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 2fr));
  }

  .note-text {
    font-size: 1.5rem;
  }
}
