/**
  *   Title: Lab 4 - CIS 195 - Fall 2025
  *  Author: Bobby Harper
  *
  *    File: css/styles.css
  * Version: 1.2
  *    Date: 10/24/2025
  *
  * This CSS file contains the main styles for the web project, including layout,
  * color schemes, typography, and component styling to ensure a cohesive and
  * visually appealing design throughout the site.
*/



:root {
  /* Colors */
  --color-primary: #f5f5f5;
  --color-secondary: #a9dbd3;
  --color-tertiary: #879ace;
  --color-dark-bg: rgba(0, 0, 0, 0.3);
  --color-main-bg: rgba(0, 0, 0, 0.2);
  --color-bubble-bg: rgba(0, 0, 0, 0.4);
  --color-hover: #88c9be;

  /* Typography */
  --font-stack: Arial, sans-serif;

  /* Layout */
  --container-width: 90%;
  --border-radius: 15px;

  /* Shadows & Z-index */
  --shadow-main: 0 4px 10px rgba(0, 0, 0, 0.3);
  --shadow-text: 1px 1px 2px rgba(0, 0, 0, 0.5);
  --shadow-box-light: 0 0 10px rgba(0, 0, 0, 0.2);
  --z-index-header-footer: 1000;
  --z-index-main: 500;
  --z-index-footer-bot: 1001;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-stack);
  background: var(--color-primary) url("../images/background.png") center/cover no-repeat;
  color: #333;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Grid Containers */
.grid-container-reviews,
.grid-container-index {
  width: var(--container-width);
  min-height: 100%;
  max-height:  100%;
  padding: 160px 1rem 160px; 
  display: grid;
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-main);
}

.grid-container-reviews {
  grid-template-areas:
    "sidebar-a main"
    "sidebar-b main"
    "sidebar-c main";
  grid-template-columns: 250px 1fr;
  grid-template-rows: 25% 35% 40%;
}

.grid-container-index {
  grid-template-areas:
    "main main";
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

/* Fixed Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background-color: var(--color-dark-bg);
  color: var(--color-primary);
  padding: 1rem;
  display: flex;
  align-items: center;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-main);
  z-index: var(--z-index-header-footer);
}

/* Sidebars */
.sidebar-a,
.sidebar-b,
.sidebar-c {
  background-color: var(--color-main-bg);
  padding: 1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-box-light);
  color: white;
  overflow: auto; 
}

.sidebar-a {
  min-height: 25%;
  grid-area: sidebar-a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow: hidden
}

.sidebar-a-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-box-light);
  background-color: transparent;
}

.sidebar-b {
  min-height: 35%;
  grid-area: sidebar-b;
}

.sidebar-c {
  min-height: 35%;
  grid-area: sidebar-c;
  
}

.sidebar-c h3, .sidebar-b h3{
    color: rgb(148, 147, 140);
}
.sidebar-c hr, .sidebar-b hr{
    border: 1px solid rgb(0, 0, 0);
    margin-bottom: 10px;
}

/* Main Content */
.main {
  grid-area: main;
  background-color: var(--color-main-bg);
  padding: 1rem;
  color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-main);
  overflow-y: hidden;
  z-index: var(--z-index-main);
}

.main-img-404 {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--border-radius);
  display: block;
}
/* Fixed Footer */
.footer-container {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 150px;
  background-color: var(--color-dark-bg);
  color: var(--color-primary);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-main);
  z-index: var(--z-index-footer-bot);
}

/* Footer Image */
.footer-img {
  height: 145px;
  width: auto;
  transform-origin: bottom center;
  /* Added bg-color, color, border, padding and margins to fit Lab 5. */
  background-color: rgb(51, 83, 150);       
  color: white;                    
  border: 1px solid #2980b9;       
  padding: 10px 15px;              
  margin: 5px;                     
  border-radius: 5px;             
}

/* Footer Navigation */
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 100px;
  align-items: center;
  flex-grow: 1;
}
.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.footer-nav a {
  text-decoration: none;
  color: var(--color-tertiary);
  font-weight: bold;
  text-shadow: var(--shadow-text);
}


.footer-img:hover {
  transform: scale(1.50);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* The Scrollbar Styling as default didn't look quite right */

.main::-webkit-scrollbar, .sidebar-a::-webkit-scrollbar, .sidebar-b::-webkit-scrollbar, .sidebar-c::-webkit-scrollbar, .review-iframe::-webkit-scrollbar {
    width: 10px;
}

.main::-webkit-scrollbar-track, .sidebar-a::-webkit-scrollbar-track, .sidebar-b::-webkit-scrollbar-track, .sidebar-c::-webkit-scrollbar-track, .review-iframe::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.main::-webkit-scrollbar-thumb, .sidebar-a::-webkit-scrollbar-thumb, .sidebar-b::-webkit-scrollbar-thumb, .sidebar-c::-webkit-scrollbar-thumb, .review-iframe::-webkit-scrollbar-thumb {
    background-color: #a9dbd3;
    border-radius: 10px;
    border: 2px solid rgba(0, 0, 0, 0.2);
}

.main::-webkit-scrollbar-thumb:hover, .sidebar-a::-webkit-scrollbar-thumb:hover, .sidebar-b::-webkit-scrollbar-thumb:hover, .sidebar-c::-webkit-scrollbar-thumb:hover, .review-iframe::-webkit-scrollbar-thumb:hover {
    background-color: #88c9be;
}

/* Iframe Styles */

.review-iframe {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-main);
  width: 100%;
  height: 100%;
}

/* ID Selector for Assignment */
#sitemap-title {
  font-size: 2rem;
  color: var(--color-tertiary);
  text-align: center;
  text-shadow: var(--shadow-text);
  margin-bottom: 1rem;
}

/* Adding a new nav-link to meet Lab 5 requirements */
/* Block focuses on text links; not our Robots      */

.nav-link {
  background-color: rgb(51, 83, 150);      
  color: rgb(255, 255, 255);                   
  border: 1px solid #ffffff;      
  padding: 10px 15px;              
  margin: 0px;                     
  border-radius: 5px;              
  text-decoration: none;
  width: 275px;          
  float: left;                     
}



/* Adding a after to clear to meet Lab 5 requirements */

/* Clear float after navigation links */
.nav-container::after {
  content: "";
  display: block;
  clear: both;
}
