:root {
  --header-height: 100px;
  --outer-padding: 8px;
  --section-gap: 1vw;
  --text-color: var(--palette-offWhite);
  --alert-color: (--palette-alertTeal);
  --border-color: rgba(255, 255, 255, 0.14);
  --banner-height: 68px;
  --section-gap: 1vw;
  --card-gap: 8px;
  --card-padding: clamp(1.25rem, 2vw, 1.85rem);
  --card-max-height: clamp(160px, 22vh, 240px);
  --bg-color:  var(--palette-darkBlue);
  --card-bg:   var(--palette-midLblue);
  --secondary-color: var(--palette-liteBlue);



  /* Color Palette */
  --palette-darkBlue:   #1d2a2e; 
  --palette-midDblue:   #2f3c40; 
  --palette-midLblue:   #4e6068;
  --palette-liteBlue:   #b8c4c2; 
  
  --palette-darkBrown:  #3f2f27; 
  --palette-midDbrown:  #59483f; 
  --palette-midLbrown: #c8b79e;
  --palette-liteBrown: #ece5d1;

  --palette-darkGreen:  #2E4834; 
  --palette-midDgreen:  #52805D; 
  --palette-midLgreen: #94BB9E;
  --palette-liteGreen: #D3E3D7;

  --palette-offBlack:   #151414;
  --palette-offWhite:   #ece8e4;
  --palette-darkGrey:   #55585a;
  --palette-midGrey:    #888c8a; 
  --palette-liteGrey:   #c9c6c0;
  
  --palette-alertTeal:  #4ee3c1;
  --palette-alertLav:  #B987f5; 
  --palette-accentTeal: #9fc7c0;
  --palette-accentLav: #CBB4D5;
  --palette-accentGreen: #9fe3b2;

/* Header */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: var(--bg-color);
  color: var(--text-color);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  overflow-y: scroll;
}

.page-container {
  min-height: 99vh;
  display: flex;
  flex-direction: column;
}

.header {
  height: var(--header-height);
  background: var(--palette-midDblue);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex: initial;
  padding: 2rem;
  margin-bottom: 16px;
  position: relative;
}

.user-title {
  height: 70px; 
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.user-title img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

.header-content {
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

/* Side Navigation */
#navBtn {
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#navBtn .bar1,
#navBtn .bar2,
#navBtn .bar3 {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  transition: 0.3s;
}

#navBtn.change .bar1 {
  transform: rotate(-45deg) translate(-5px, 5px);
}

#navBtn.change .bar2 {
  opacity: 0;
}

#navBtn.change .bar3 {
  transform: rotate(45deg) translate(-5px, -5px);
}
.navigation {
  display: none;
}

.navigation.visible {
  display: grid;
  height: 100%;
  width: 300px;
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  background-color: var(--palette-midLbrown);
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 100px;
}

.navigation.visible a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 26px;
  font-weight: bold;
  color: var(--palette-darkBlue);
  display: block;
  transition: 0.3s;
}

.navigation.visible a:hover {
  color: var(--palette-darkGrey);
}

.navigation.visible .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
  margin-left: 50px;
}

#toolbar {
  display: grid;
  grid-template-columns: repeat(1, auto);
  grid-template-row: repeat(auto, 1fr);
  gap: 0;
  justify-items: center;
  align-items:end;
  padding-bottom: 32px;
}
#toolbar button {
  width: 68px;
  height: 68px;
  cursor: pointer;
  background-color: var(--palette-midLblue);
  color: white;
  font-size: 20px;
  border-radius: 16px;
  border: none;
}
#toolbar img {
  width: 68px;
  height: 68px;
  cursor: pointer;
  padding: 8px;
  background-color: var(--palette-midLblue);
  border-radius: 16px;
}
  
/* Modal Apps */
.app-overlay{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(0,0,0,.35);z-index:2000}
.app-overlay.show{display:flex}
.app-modal{width:500px;height:600px;background:var(--card-bg);border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,.35);display:flex;flex-direction:column;overflow:hidden}
.app-bar{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;background:var(--palette-midDblue);color:var(--palette-offWhite)}
.app-close{background:transparent;border:none;color:inherit;font-size:22px;cursor:pointer}
.app-frame{border:0;width:100%;height:100%;background:var(--bg-color)}
  
/* Responsive Views */
@media screen and (max-height: 450px) {
  .navigation.visible {padding-top: 15px;}
  .navigation.visible a {font-size: 18px;}
}

/* Responsive views */
@media (max-width: 600px) {
  .page-container { overflow-x:hidden; }
}

@media screen and (min-width: 800px) {
  * { font-size: 1.05em; }
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 3px;
}
