/* ================= DESKTOP LAYOUT (Global Layout Properties) ================= */



/* ===== MAIN AREA ===== */

/* Displays as Three Column Grid */
.layout {
  display: grid;
  
/* Left Nav | Welcome | Right Sidebar */
  grid-template-columns: 225px 1fr 247px;
  gap: 20px;
  max-width: 1200px;
  margin: auto;
  padding: 10px 20px 0 20px;
}

/* Background Color/Image & Font Color/Size/Family */
body {
  background-color: #FFFFFF;
  background-image: url('images/background3.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-attachment: fixed;
  color: #000000;
  font-family: 'Courier New', monospace; /* retro aesthetic */
  font-size: 12px;
  letter-spacing: .5px;
}

/* Paragraph Line Height */
p {
  line-height: 18px;
}

/* Bolded Words */
.accent {
  color: #888beb;
  font-weight: bold;
}



/* ===== HEADER AREA ===== */
.site-header {
  text-align: center;
  margin-top: 25px;
  margin-bottom: 35px;
  position: relative;
}

/* Site Logo */
.logo {
  display: block;
  margin: auto;
  max-width: 450px;
}

/* Tagline (Text Below Logo) */
.tagline {
  margin-top: 10px;
  margin-bottom: -20px;
  font-size: 12px;
  letter-spacing: .8px;
  opacity: .85;
  font-weight: bold;
}



/* ===== NAVIGATION PANEL PROPERTIES ===== */
.nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background-color: #fcfcfc;
  border: 2px solid #000000;
  position: relative;
  padding: 20px;
  width: 100%;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Nav Header */
.nav h2 {
  display: inline-flex;
  background: #000000;
  color: #FFFFFF;
  padding: 4px 10px;
  font-size: 10px;
  font-family: Verdana;
  position: absolute;
  top: -22px;
  left: 18px;
  align-items: center;
  justify-content: center;
  font-weight: normal;
  letter-spacing: 2px;
  border-radius: 4px;
  width: fit-content;
}

/* Nav Items (Icons/Link Group Positioning) */
.nav-item {
  display: flex;
  align-items: center;
  gap: 8px; /* Space Between Nav Icons and Links */
  position: relative;
  margin-bottom: 12px;
  padding-left: 15px;
  top: 10px;
}

/* Arrow Before Active Nav Item */
.nav-item.active::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url("images/playIcon.png");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Nav Icons */
.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  /* position: relative; */
  margin-top: -4px; /* Moves Navigation Icons Up or Down */
}

/* Nav Link Wrapper (Link Border/Border Width) */
.nav-link-wrap {
  display: inline-block;
}

/* Normal Links */
.nav a:link {
  color: #000000;
  text-decoration: none;
  font-weight: bold;
}

/* Hovered Link Color */
.nav a:hover {
  color: #c0a1fb;
  border-bottom: 2px dashed #000000;
}

/* Clicked Links */
.nav a:visited {
  color: #888beb;
}

/* Active Links */
.nav a:active {
  color: #888beb;
}
 
 
  
/* ===== PANELS (Welcome & Right Sidebar) ===== */
.panel, .welcome {
  background-color: #fcfcfc;
  border: 2px solid #000000;
  position: relative;
  padding: 18px;
  width: 100%;
  border-radius: 4px;
  box-sizing: border-box;
}

/* Panel headers */
.panel h2, .welcome h2 {
  display: inline-flex;
  background: #000000;
  color: #FFFFFF;
  padding: 4px 10px;
  font-size: 10px;
  font-family: Verdana;
  position: absolute;
  top: -22px;
  left: 18px;
  align-items: center;
  justify-content: center;
  font-weight: normal;
  letter-spacing: 2px;
  border-radius: 4px;
  width: fit-content;
}

/* Panel Header Icons (Including Nav) */
.header-icon {
  width: 20px;
  height: auto;
  margin-left: 5px;
}

/* Panel Links */
.welcome a:link, .panel a:link {
  color: #888beb;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #000000;
  display: inline-block;
}

/* Panel Visited Links */
.welcome a:visited, .panel a:visited {
  color: #888beb;
}

/* Panel Hovered Links */
.welcome a:hover, .panel a:hover {
  color: #c0a1fb;
  border-bottom: 2px dashed #000000;
}

/* Panel Active Links */
.welcome a:active, .panel a:active {
  color: #888beb;
}

/* Right Sidebar Spacing */
.sidebar .panel {
  margin-bottom: 22px; /* Space Between Right Panels */
  padding: 16px;
}

/* Behind Right Panel Invisible Background */
.sidebar {
  background: transparent;
  border: none;
}

/* Nav & Right Panel Widget Images */
.sidebar .widget-img, .nav .widget-img {
  width: 128px;
  height: auto;
  margin-top: 18px;
}

.welcome-img {
  width: 350px;
  border: 2px solid black;
}


/* ===== FOOTER =====*/
footer {
  background: #000000;
  color: #FFFFFF;
  text-align: center;
  display: block;
  padding: 6px;
  margin: 20px auto;
  letter-spacing: 1px;
  line-height: 1;
  font-size: 12px;
  max-width: 900px;
  border: none;
  border-radius: 4px;
  box-shadow: none;
}

/* Removes Extra Space in Footer */
footer p {
  margin: 0;
}

/* ================= END DESKTOP LAYOUT PROPERTIES ================= */



/* ================= TABLET LAYOUT ================= */
@media (max-width: 1100px) {

/* Reduce Colums to 1; Add Padding to Sides */
.layout {
  grid-template-columns: 1fr;
  padding-left: 10px;
  padding-right: 10px;
}

/* ===== PANEL PROPERTIES ===== */
.nav {
  order: 1;
  display: grid;
  grid-template-columns: repeat(2, 2fr);
}

/* Align Nav Header */
.nav h2 {
  position: absolute;
  top: -15px;
  left: -2px;
  display: inline-flex;
  margin: 0;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
}

.nav-icon {
  top: 5px;
}

/* Space Between Nav Items/Top of Nav */
.nav-item {
  top: 8px;
}

/* Two Columns for Nav Links */
.nav a {
  display: block;
  text-decoration: none;
}

.welcome {
  order: 2;
}

.sidebar {
  order: 3;
}

/* Move Footer Up */
footer {
  margin-top: -2px;
  margin-bottom: 20px;
}
}  



/* ================= MOBILE LAYOUT VIEW ================= */ 
@media (max-width: 700px) {

/* Reduce columns to 1 */
.layout {
  grid-template-columns: 1fr;
}

/* ===== REORDER PANELS ===== */
.nav {
  order: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.nav h2 {
  position: relative;
  top: -35px;
  left: -2px;
  display: inline-flex;
  margin: 0;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: center;
}

/* Space Between Nav Items/Top of Nav */
.nav-item {
  top: -20px;
}

.nav .widget-img {
  margin-top: -10px;
}

.nav a {
  display: block;
  text-decoration: none;
  top: -22.5px;
}

.welcome {
  order: 2;
}

.sidebar {
  order: 3;
}
}  