/* ======================
   GLOBAL DEFAULTS
====================== */

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background-image: url("../images/lifeisstrangebckground.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 7%;
  background-color: #08031A;
  color: white;
  font-family: Georgia, serif;
}


/* ======================
   FONTS
====================== */

@font-face {
  font-family: Nunito;
  src: url('https://sadhost.neocities.org/fonts/Nunito-Regular.ttf');
}

@font-face {
  font-family: Nunito;
  src: url('https://sadhost.neocities.org/fonts/Nunito-Bold.ttf');
  font-weight: bold;
}


/* ======================
   LAYOUT CONTAINER
====================== */

#container {
  max-width: 1200px;
  margin: 5vh auto;
  padding-top: 20px;
}


/* ======================
   HEADER & NAVIGATION
====================== */

#header {
  width: 100%;
  height: 120px;
  background-image: url("../images/galaxykitty.jpeg");
  background-size: cover;
}

#navbar {
  height: 40px;
  background-color: lightpink;
  margin-top: 10px; /* space below header */
}

#navbar ul {
  display: flex;
  justify-content: space-evenly;
  list-style: none;
  padding: 0;
  margin: 0;
}

#navbar li {
  padding-top: 10px;
}

#navbar a {
  color: #ED64F5;
  font-weight: 800;
  text-decoration: none;
}

#navbar a:hover {
  color: #B3436B;
  text-decoration: underline;
}


/* ======================
   MAIN LAYOUT
====================== */

#flex {
  display: flex;
  gap: 20px;
   /* let content determine height */
  max-height: calc(100vh - 200px); /* 200px = header + navbar + footer + optional padding */
  padding-bottom: 20px; /* space below boxes */
  margin-top: 20px; /* space below navbar */
}

aside {
  width: 300px;
  background-image: linear-gradient(to bottom, midnightblue, lightpink);
  padding: 20px;
  font-size: smaller;
  overflow-y: auto;
  height: 480px;
}

main {
  flex: 1;
  background-color: aqua;
  padding: 20px;
  overflow-y: auto;
  height: 480px;
}

#leftSidebar { order: 1; }
main { order: 2; }
#rightSidebar { order: 3; }


/* ======================
   COMPONENTS
====================== */

.box {
  background-image: url("../images/nostalgia.jpg");
  border: 1px solid #ED64F5;
  padding: 10px;
  max-height: 800px;
  overflow-y: auto;
  margin-bottom: 20px; /* space below each box */
}


/* ======================
   FOOTER & TEXT
====================== */

footer {
  background-color: #13092D;
  height: 40px;
  padding: 10px;
  text-align: center;
}

h1, h2, h3,
strong {
  color: white;
}

h1 {
  font-size: 25px;
}


/* ======================
   SCROLLBARS
====================== */

::-webkit-scrollbar {
  width: 16px;
}

::-webkit-scrollbar:horizontal {
  height: 17px;
}

::-webkit-scrollbar-corner {
  background: #eee;
}

::-webkit-scrollbar-track:vertical {
  background: linear-gradient(90deg, #e5e5e5, #f0f0f0 20%);
}

::-webkit-scrollbar-track:horizontal {
  background: linear-gradient(180deg, #e5e5e5, #f0f0f0 20%);
}

::-webkit-scrollbar-thumb {
  border: 1.5px solid #888;
  border-radius: 3px;
  box-shadow: inset 0 -1px 1px #fff, inset 0 1px 1px #fff;
  background-color: #eee;
}

::-webkit-scrollbar-thumb:vertical {
  background:
    url("https://i.imgur.com/bfyvjnx.png") no-repeat 50%,
    linear-gradient(90deg, #eee 45%, #ddd 0, #bbb);
}

::-webkit-scrollbar-thumb:horizontal {
  background:
    url("https://i.imgur.com/tqe4SxM.png") no-repeat 50%,
    linear-gradient(180deg, #eee 45%, #ddd 0, #bbb);
}

::-webkit-scrollbar-button:horizontal:end:increment,
::-webkit-scrollbar-button:horizontal:start:decrement,
::-webkit-scrollbar-button:vertical:end:increment,
::-webkit-scrollbar-button:vertical:start:decrement {
  display: block;
}

::-webkit-scrollbar-button:vertical {
  height: 17px;
}

::-webkit-scrollbar-button:vertical:start:decrement {
  background: white url("https://i.imgur.com/EFnEMEb.png") no-repeat center / cover;
}

::-webkit-scrollbar-button:vertical:end:increment {
  background: white url("https://i.imgur.com/xuIt6Lc.png") no-repeat center / cover;
}


/* ======================
   IMAGES
====================== */

#headerArea {
  position: relative; /* container for absolute positioning */
}

.glitter-text {
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translate(-50%); /* center exactly */
  width: 17vw; /* adjust size */
  height: auto;
  pointer-events: none; /* click through */
  z-index: 10; /* above header */
}

/* ======================
   RESPONSIVE
====================== */

@media (max-width: 1100px) {
  #flex {
    flex-wrap: wrap;
  }

  aside {
    width: 100%;
  }

  main { order: 1; }
  #leftSidebar { order: 2; }
  #rightSidebar { order: 3; }

  #navbar ul {
    flex-wrap: wrap;
  }
}
