/* CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

/* CSS Custom Properties (Variables) */
:root {
  /* Menu and Navigation */
  --menu-bg: #004f51;
  --menu-bg-hover: #003435;
  --menu-text: white;
  
  /* Buttons */
  --button-bg: #598212;
  --button-bg-hover: #21690f;
  --button-bg-active: #ff9924;
  --button-text: white;
  
  /* Focus States */
  --focus-outline: #ff9924;
  
  /* Backgrounds */
  --bg-panel: #ebebeb;
  --bg-embed: #1a1a1a;
  
  /* Text */
  --text-dark: #333;
  --text-light: white;
  
  /* Scrollbar */
  --scrollbar-thumb: #638c1c;
  --scrollbar-thumb-hover: #496e0f;
  --scrollbar-track: transparent;
  
  /* Borders */
  --border-color: #ddd;
  
  /* Accents */
  --accent-header: #638c1c;
}

/* Base Styles */
html,
body {
  width: 100%;
  height: 100%;
  font-family: "Poppins", sans-serif;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

section {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.embed-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-embed);
  position: relative;
  overflow: hidden;
}

.iframe-container {
  flex: 1;
  display: flex;
  width: 100%;
  height: 100%;
}

iframe {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.snap-embed {
  display: flex;
  flex: 1;
  width: 100%;
  height: 100%;
}

.tab-button {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--menu-bg);
  border: none;
  color: var(--menu-text);
  padding: 20px 12px;
  cursor: pointer;
  font-size: 20px;
  font-weight: 600;
  z-index: 100;
  border-radius: 0 8px 8px 0;
  transition: background-color 0.4s ease, left 0.4s ease, bottom 0.4s ease;
  /* below is important for Firefox */
  display: flex;
  width: auto;
}

.tab-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.tab-button.open {
  left: 25%;
}

.tab-button:hover {
  background: var(--menu-bg-hover);
}

.side-panel {
  position: fixed;
  left: -25%;
  width: 25%;
  top: 0%;
  height: 100vh;
  background: var(--bg-panel);
  z-index: 99;
  transition: left 0.4s ease;
  display: flex;
  flex-direction: column;
}

.side-panel.open {
  left: 0;
}

/* Header logo */
.panel-header {
  flex-shrink: 0;
  padding: 25px;
  background: var(--bg-panel);
}

.panel-logo {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Scrollable content area */
.panel-content {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 25px;
}

.side-panel h2 {
  margin-bottom: 15px;
  color: var(--text-dark);
}

.side-panel p {
  line-height: 1.6;
}

.main-menu-title {
  color: var(--text-light);
  width: 95%;
  background-color: var(--menu-bg);
  font-size: 22px;
  padding: 25px;
  margin-bottom: 25px;
  border-radius: 0 5px 5px 0;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

.button-container {
  display: flex;
  flex-direction: column;
  padding: 0px 25px;
  gap: 15px;
  width: 100%;
}

.menu-svg {
  height: 35px;
  margin-right: 10px;
}

details summary {
  cursor: pointer;
  width: 95%;
  color: var(--menu-text);
  background-color: var(--menu-bg);
  font-size: 22px;
  padding: 25px;
  margin: 25px 0;
  border-radius: 0 5px 5px 0;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

details summary:focus {
  outline: 3px solid var(--focus-outline); 
  outline-offset: 4px;
}

details summary:hover {
  background-color: var(--menu-bg-hover);
}

button {
  display: flex;
  align-items: center;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
  padding: 12px 25px;
  font-size: 16px;
  max-width: 512px;
  background-color: var(--button-bg);
  text-align: left;
  color: var(--button-text);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
}

button:hover {
  background-color: var(--button-bg-hover);
}

button:focus {
  outline: 3px solid var(--focus-outline);
  outline-offset: 2px;
}

button:active {
  background-color: var(--button-bg-active);
}

/* Scrollbar Styles */
/* width */
::-webkit-scrollbar {
  width: 25px;
}

/* Track */
::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border: 7px solid transparent;
  border-radius: 50px;
  background-clip: content-box;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
  border: 7px solid transparent;
  border-radius: 50px;
  background-clip: content-box;
}

/* Disclaimer & Help Page */
.aux1-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 5%;
}

.disclaimer-header {
  color: var(--accent-header);
  font-size: 50px;
  font-weight: 900;
}

.disclaimer-body {
  padding-bottom: 25px;
}

.help-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 25px;
  margin-bottom: 25px;
  height: 60vh;
  padding: 25px;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 5px;
  background-color: var(--bg-panel);
}

.help-text:focus {
  outline: 3px solid var(--focus-outline);
  outline-offset: 2px;
}

.bullet-list {
  width: 100%;
  max-width: 700px;  /* central column */
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.bullet-list li {
  margin-bottom: 20px;
}

.tutorial-images {
  width: 100%;
  height: auto;       /* preserves aspect ratio */
  border-radius: 5px;
  margin: 15px 15px 75px;
  display: block;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .tab-button {
    left: 50%;
    top: auto;
    bottom: 0;
    transform: translateX(-50%);
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
  }

  .tab-label {
    writing-mode: horizontal-tb;
  }

  .tab-button.open {
    left: 50%;
    bottom: 50vh;
  }

  .side-panel {
    left: 0;
    top: 100vh;
    width: 100%;
    height: 50vh;
    border-right: none;
    border-top: 2px solid var(--border-color);
    transition: top 0.4s ease;
  }

  .side-panel.open {
    top: 50vh;
  }
}