/* James Beamish s324587
 * CSS Level 3 + SVG
 */

@import url("https://fonts.googleapis.com/css2?family=Indie+Flower&family=Play&family=Prompt:wght@500&display=swap");

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

html {
  scroll-behavior: smooth;
}

header {
  background-image: url(/img/abstract.jpg);
  background-size: cover;

}

body {
  background-color: rgb(34, 38, 41);
  font-family: 'Play';
}

footer {
   margin-top: 1.5rem;
   left: 0;
   bottom: 0;
   width: 100%;
   text-align: center;
   padding: 1rem;
   color: white;
   font-family: 'Play';
   background-color: rgba(23, 97, 160, 0.8);
 }

a:link {
  color: rgb(226, 226, 226);
  text-decoration: none;
}

a:visited {
  color: rgb(226, 226, 226);
  text-decoration: none;
}

h1 {
  font-size: 2em;
}

.top-container {
  display:grid;
  grid-gap:20px;
  padding-top: 1.5rem;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows:minmax(100px, auto);
}

.banner {
  padding: 1rem 2rem;
  display: grid;
  grid-template-columns: minmax(240px, 1fr);
  align-items: center;
  grid-template-areas: 'logo title title'
}

.home {
  grid-area: home;
  min-height: 400px;
  background-image: url(/img/drives.jpg);
  background-size: cover;
  background-position: center;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  grid-column: 1/5;
  grid-row: 1;
}

.homebox {
  background: rgba(23, 97, 160, 0.8);
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 1.5rem;
  grid-column: 3/5;
  grid-row: 1;
  line-height: 1.5em;
}

.reference {
  grid-area: reference;
  min-height: 400px;
  background-image: url(/img/typing.jpg);
  background-size: cover;
  background-position: center;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  grid-column: 1/5;
  grid-row: 1;
}

.referencebox {
  background: rgba(23, 97, 160, 0.8);
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 1.5rem;
  grid-column: 2/4;
  grid-row: 1;
  line-height: 2em;
}

.challenge1 {
  grid-area: home;
  min-height: 300px;
  background-image: url(/img/security.jpg);
  background-size: cover;
  background-position: center;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  grid-column: 1/5;
  grid-row: 1;
}

.challengebox1 {
  background: rgba(23, 97, 160, 0.8);
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 1.5rem;
  grid-column: 1/3;
  grid-row: 1;
  line-height: 1.5em;
}

.container2 {
  display:grid;
  grid-gap:0px;
  padding-top: 1.5rem;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows:minmax(100px, auto);
}

.challenge2 {
  grid-area: home;
  min-height: 300px;
  background-image: url(/img/geography.jpg);
  background-size: cover;
  background-position: center;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  grid-column: 1/5;
  grid-row: 1;
}

.challengebox2 {
  background: rgba(23, 97, 160, 0.8);
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 1.5rem;
  grid-column: 3/5;
  grid-row: 1;
  line-height: 1.5em;
}

.container3 {
  display:grid;
  grid-gap:0px;
  padding-top: 1.5rem;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows:minmax(100px, auto);
}

.challenge3 {
  grid-area: home;
  min-height: 300px;
  background-image: url(/img/standards.jpeg);
  background-size: cover;
  background-position: center;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  grid-column: 1/5;
  grid-row: 1;
}

.challengebox3 {
  background: rgba(23, 97, 160, 0.8);
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 1.5rem;
  grid-column: 1/3;
  grid-row: 1;
  line-height: 1.5em;
}

.container4 {
  display:grid;
  grid-gap:0px;
  padding-top: 1.5rem;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows:minmax(100px, auto);
}

.approach1 {
  grid-area: home;
  min-height: 300px;
  background-image: url(/img/code.jpg);
  background-size: cover;
  background-position: center;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
  grid-column: 1/5;
  grid-row: 1;
}

.approachbox1 {
  background: rgba(23, 97, 160, 0.8);
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 1.5rem;
  grid-column: 3/5;
  grid-row: 1;
  line-height: 1.5em;
}

 .logo {
   margin-right: auto;
   opacity: 0.8;
 }

 .title {
  color: rgba(53, 54, 58);
  font-family: 'Play';
  margin: auto;
  background-color: #ffffff;
  border: 1px solid black;
  opacity: 0.7;
 }

 .nav {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: 'Play';
 }

.nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: rgba(23, 97, 160, 0.8);
  opacity: 0.8;
}

.nav li {
  float: left;
  padding: 0px 20px;
 }

.nav li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
 }

.nav li a:hover {
   background-color: rgb(2, 64, 109);
 }

 .refnum {
   vertical-align: super;
   font-family: 'Play';
 }
