/**********************************
 * TITLE: Technology Solutions Stylesheet  * 
 * URI  : techsolutions/techs-screen.css *
 * MODIF: 2024-Aug-24 *
 **********************************/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* Color Variables */
:root {
  --primary-color: #003366;
  --secondary-color: #0099CC;
  --accent-color: #FF6600;
  --background-color: #F4F4F4;
  --text-color: #333333;
  --light-text-color: #FFFFFF;
}

/* ##### Common Styles ##### */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: var(--text-color);
  background-color: var(--background-color);
  line-height: 1.6;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover,
a:focus {
  color: var(--accent-color);
  outline: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* ##### Header ##### */

#header {
  background-color: var(--primary-color);
  padding: 1rem 0;
  color: var(--light-text-color);
}

.headerTitle a {
  color: var(--light-text-color);
  font-size: 2rem;
  font-weight: 700;
}

.subHeader {
  background-color: var(--secondary-color);
  text-align: center;
  padding: 0.5rem 0;
}

.subHeader a {
  color: var(--light-text-color);
  margin: 0 1rem;
  font-weight: 500;
  position: relative;
}

.subHeader a::after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s;
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
}

.subHeader a:hover::after,
.subHeader a:focus::after {
  width: 50%;
}

/* ##### Side Bars ##### */

#side-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 2rem 0;
}

.leftSideBar,
.rightSideBar {
  flex: 1 1 300px;
  background-color: var(--light-text-color);
  padding: 1.5rem;
  margin: 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sideBarTitle {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 0.5rem;
}

.leftSideBar ul,
.rightSideBar ul {
  list-style: none;
}

.leftSideBar li,
.rightSideBar li {
  margin-bottom: 0.75rem;
}

.leftSideBar a,
.rightSideBar a {
  color: var(--text-color);
  font-weight: 500;
}

.leftSideBar a:hover,
.rightSideBar a:hover {
  color: var(--accent-color);
}

.sideBarText {
  color: var(--text-color);
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* ##### Main Copy ##### */

#main-copy {
  background-color: var(--light-text-color);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#main-copy h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

#main-copy p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

#main-copy a {
  color: var(--secondary-color);
}

#main-copy a:hover {
  color: var(--accent-color);
}

/* ##### Footer ##### */

#footer {
  background-color: var(--primary-color);
  color: var(--light-text-color);
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 2rem;
}

#footer a {
  color: var(--light-text-color);
  margin: 0 0.5rem;
  font-weight: 500;
}

#footer a:hover {
  color: var(--accent-color);
}

@media (max-width: 768px) {
  .subHeader a {
    display: block;
    margin: 0.5rem 0;
  }
  
  #side-bar {
    flex-direction: column;
    align-items: center;
  }

  .leftSideBar,
  .rightSideBar {
    width: 100%;
    margin: 1rem 0;
  }
  
  #main-copy {
    padding: 1.5rem;
  }
}
