@charset "UTF-8";

:root {
    --primary-a0: hsl(163, 29%, 74%);
    --primary-a30: hsl(165, 10%, 47%);
    --primary-a50: hsl(163, 9%, 31%);
    --primary-a70: hsl(160, 7%, 16%);
  
    --primary-a0-lighter: hsl(162, 53%, 93%);
    --primary-a0-darker: hsl(161, 30%, 68%);

    --white-a0: hsl(0, 0%, 100%);
    --light-gray-a10: hsl(0, 0%, 94%);
    --black-a0: hsl(0, 0%, 0%);
  
    --accent-a10: hsl(41, 71%, 57%);
    --accent-a20: hsl(41, 72%, 72%);

    --visited: hsl(146, 100%, 16%);
}

html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    font-family: "Outfit", Arial, sans-serif;
    line-height: 1.5;
    font: 1.2em;
    margin: 0;
    background: url("images/body-background.webp") center / cover no-repeat fixed;
    padding-bottom: 192px;
}

main {
    outline: 2px solid blue;
    padding: 1em;
    margin: 1em 0;
}

.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    background-color: var(--white-a0);
}

img {
    max-width: 100%;
}

/* Main Navigation CSS */
.nav-main ul {
    display: flex;
    flex-direction: column;
    gap: 0.25em;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.nav-main a {
    display: block;
    width: auto;
    background-color: var(--accent-a20);
    border: 2px solid var(--accent-a10);
    border-radius: 6px;
    padding: .5em;
    margin: .5em;
    text-decoration: none;
}
/* End of Main Navigation CSS */


.card {
    outline: 2px red solid;
    padding: 1em;
}


/*Aside CSS*/
aside {
    background: var(--primary-a0);
    padding: 1em;
    margin: 1em 0;
    border-radius: 5px;
    transition: background 0.3s ease, box-shadow 0.3s ease, outline 0.3s ease;
}

aside ul li {
    list-style: square;
    font-size: 1.2em;
}

.resource-heading {
    color: var(--primary-a70);
    text-transform: uppercase;
    text-align: center;
    font-size: 2em;
    margin: 0;
}

.resource-list-item {
    padding: .5em;
}

.resource-list-item:last-of-type {
    margin-bottom: 0;
}

.resource-list-item {
    transition: background 0.3s ease;
    border-radius: 5px;
}

.resource-heading, aside a {
    transition: text-shadow 0.3s ease;
}
/*End of Aside CSS*/



.footer-secondary {
    background: lightblue;
}

.footer-main {
    display: flex;
    justify-content:flex-end;
    background:lightblue;
    bottom: 0;
    /* margin: 0 auto; */
    padding: 10px;
}



/* Card and grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.team-card {
    background: #005fa3;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card img {
    width: 100%;
    max-width: 200px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.team-card h2 {
    margin: 0.5rem 0;
}

.team-card p {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.team-card .card-link {
    background: #0077cc;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
}

.team-card .card-link:hover {
    background: #005fa3;
}



/*LOVEHATE CSS*/
a:link {
    color: var(--primary-a70);
    transition: color 0.3s ease;
}

a:visited {
    color: var(--visited);
}

aside a {
    color: var(--primary-a70);
}

aside:hover {
    background: var(--primary-a0-darker);
    box-shadow: var(--primary-a70) 4px 4px 4px;
    outline: 2px solid var(--primary-a50);

    & .resource-heading, a {
        text-shadow: var(--white-a0) 0px 2px 2px;
    }
}

a:hover {
    color: var(--primary-a30);
    text-decoration: underline;
}

a:active {
    color: green;
}

.resource-list-item:hover {
    background: var(--primary-a0-lighter);
}
/*End of LOVEHATE CSS*/



/*Tablet CSS*/
@media (min-width: 768px) {
main {
    margin: 1em;
    margin-left: 0;
}

/* Main Navigation CSS */
.nav-main ul {
    flex-direction: row;
    justify-content: space-around;
}
/* End of Main Navigation CSS */

/*Aside CSS*/
.resource-heading {
    font-size: 1.5em;
}

aside ul li {
    font-size: 1em;
}

.wrapper {
    display: grid;
    grid-template-columns: 3fr 1fr;
}

header, nav, footer {
    grid-column: 1 / -1;
}
/*End of Aside CSS*/
}


/*Desktop CSS*/
@media (min-width: 1025px) {
main {
    margin: 1em;
    margin-left: 0;
}

/*Aside CSS*/
.resource-heading {
    font-size: 1.7em;
}

aside ul li {
    font-size: 1em;
}

.wrapper {
    display: grid;
    grid-template-columns: 3fr 1fr;
}

header, nav, footer {
    grid-column: 1 / -1;
}
/*End of Aside CSS*/
}

/* Footer Shell - Robert */
footer:has(.terminal) {
  flex-wrap: wrap;
}

.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  vertical-align: middle;
}

.terminal {
  min-width: 1000px;
  flex: 0 0 100%;
  font-family: "Courier Prime", monospace;
  background: hsl(240, 1%, 21%);
  color: hsla(101, 45%, 47%, 1);
  line-height: 2;
  padding: 1em;
}

.terminal code {
  display: block;
}

.terminal code {
  color: white;
}

.terminal > span {
  display: block;
}

.terminal > .terminal-prompt {
  color: hsla(214, 75%, 57%, 1);
  font-weight: bold;
}

.terminal .terminal-command {
  color: white;
}

.terminal .terminal-caret-shape-block::before {
  content: " ";
  animation: blink 1s step-end infinite;
  border-left: 1ch solid white;
  margin-left: 1ch;
}

footer.shell {
  display: grid;
  justify-content: center;
  gap: 20px;
  clear: both;
  position: fixed;
  z-index: -1;
  /* right: 0; */
  bottom: 0;
  width: 100%;
  /* left: 0; */
}

footer.shell svg {
  margin-left: 5px;
  transform: translateY(1px);
}

footer.shell a {
  text-decoration: none;
  color: var(--color-link-secondary);
}

footer.shell :first-child {
  margin-right: auto;
}

footer.shell :last-child:not(.terminal-prompt) {
  margin-left: var(--gap);
}

footer:not(.shell) {
  display: flex;
  grid-column: -1/1;
}

footer:not(.shell) :first-child {
  margin-right: auto;
}

footer:not(.shell) a {
  margin-left: 5px;
}
/* END footer.shell */