/*
    My entire CSS stylesheet is very confusing and messed up.
    Between assignments 2 and 3, I will work to clean up what I have here.
    Most of this was found in the zybooks e-book, just surfing the pages as well as
    what I remembered from the assigned readings (with a refresher from the book).
    One major example is the entire grid-template. This helped me setup the header
    and footer properly with a centered body. The left and right sides are left empty just as whitespace.
*/

:root {
    --accent-color: lightblue;
    --font-color: rgb(75, 75, 75);
    --bg-color: #8E8D8A;
}

html {
    background-color: #b1b1b1;
    font-family: verdana;
}

body {
    text-align: center;
    display: grid;
    grid-template-columns: 350px auto 350px;
    grid-template-rows: 300px auto 40px;
    grid-template-areas:
        "head head head"
        "left mid right"
        "foot foot foot";
}

header {
    grid-area: head;
    background-color: rgb(88, 88, 88);
    padding: 30px 0;
}

header h1 {
    font-size: 60px;
}

nav ul {
    text-align: center;
    list-style-type: none;
    padding: 15px 0;
}

nav li {
    display: inline;
    padding: 8px 16px;
}

nav ul li {
    font-size: 20px;
}

nav li a {
    text-decoration: none;  
    padding: 10px 20px;
    border-radius: 12px;
    color: black;
}

nav li a:hover {
    background-color: var(--accent-color);
}

main {
    grid-area: mid;
    background-color:#8E8D8A
}

#home-image {
    width: 300px;
    height: 300px;
}

main h1 {
    font-size: 40px;
}

main h2 {
    padding: 10px 0;
    font-size: 30px;
}

main p {
    padding: 10px 80px;
    font-size: 20px;
}

p a {
    color: black;
    font-weight: bold;
    padding: 2px 2px;
}

p a:hover {
    background-color: var(--accent-color);
    border-radius: 12px;
}

#sect1 {
    padding: 20px 0 20px 0;
}

#sect2 {
    padding: 60px 0 80px 0;
}

main p #image-source {
    font-size: 8pt;
}

.unordered-list {
    display: inline-block;
    text-align: left;
}

footer {
    grid-area: foot;
}



/* This CSS is for Tabs. */
#tabs {
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
}

/* #tabs > ul {
    display: flex;
    padding: 0;
    margin: 0 0 10px 0;
    border-radius: 5px 5px 0 0;
    border-bottom: none;
} */

#tabs > ul > li {
    display: inline-block;
    padding: 0.5em 1.0em;
    background: #EEE;
    border: none;
    border-radius: 7px;
    background-image: linear-gradient( to bottom, hsla(0, 0%, 0%, 0), hsla(0, 0%, 0%, 0.2) );
    color: #222;
    font-family: sans-serif;
    font-size: 16px;
    text-shadow: 0 1px white;
    cursor: pointer;
}

#tabs > ul > li:last-child {
    border-right: none;
}

#tabs > ul > li > a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #333;

}

#tabs > ul > li.active > a {
    background-color: #007bff;
    font-weight: bold;
}

#tabs > div {
    padding: 15px;
    border: 5px solid #222;
    border-radius: 0 0 5px 5px;
}



/* This CSS is for Isotope. */
#filters {
    padding-bottom: 50px;
}

.button {
    display: inline-block;
    padding: 0.5em 1.0em;
    background: #EEE;
    border: none;
    border-radius: 7px;
    background-image: linear-gradient( to bottom, hsla(0, 0%, 0%, 0), hsla(0, 0%, 0%, 0.2) );
    color: #222;
    font-family: sans-serif;
    font-size: 16px;
    text-shadow: 0 1px white;
    cursor: pointer;
}

.button:hover {
    background-color: var(--accent-color);
    text-shadow: 0 1px hsla(0, 0%, 100%, 0.5);
    color: #222;
}

.button:active,.button.pressed {
    background-color: #28F;
}

.button.pressed {
    color: white;
    text-shadow: 0 -1px hsla(0, 0%, 0%, 0.8);
}

.button:active {
    box-shadow: inset 0 1px 10px hsla(0, 0%, 0%, 0.8);
}

.button-group {
    margin-bottom: 20px;
}

.button-group:after {
    content: '';
    display: block;
    clear: both;
}

.button-group .button {
    float: left;
    border-radius: 0;
    margin-left: 0;
    margin-right: 1px;
}

.button-group .button:first-child { 
    border-radius: 0.5em 0 0 0.5em; 
}
.button-group .button:last-child { 
    border-radius: 0 0.5em 0.5em 0; 
}

.grid {
    border: 5px solid #333;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: rgb(88, 88, 88);
}

.grid:after {
    content: '';
    display: block;
    clear: both;
}

.grid-item {
    position: relative;
    float: left;
    width: 150px;
    height: 75px;
    margin: 5px;
    padding: 10px;
    background: #888;
    color: #262524;
    border: 2px solid #333;
}

.grid-item > * {
    margin: 0;
    padding: 0;
}

.grid-item .name {
    position: relative;
    top: 15px;
    font-size: 12px;
    font-weight: normal;
}

.grid-item .price {
    position: relative;
    top: 30px;
    font-size: 12px;
}

.grid-item.managed { 
    background-color:  #663399;
    color: black;
}
.grid-item.cybersecurity { 
    background-color: #1E90FF;
    color: black;
}
.grid-item.comms {
    background-color: #F4A460;
    color: black;
}