@import url('https://fonts.googleapis.com/css?family=Work+Sans:300,600');

:root {
  --background: rgba(114, 159, 205);
  --foreground: #2c3e50;
}

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

body {
    margin: 5px;
    background: var(--background);
    font-family: 'Work Sans', sans-serif;
    font-weight: 400;
    color: white;
}

.centre {
  display: block;
  margin-left: auto;
  margin-right: auto;
  /*width: 50%;*/
  }
.fadeImage {
    -webkit-animation: fadein 4s; /* Safari, Chrome and Opera > 12.1 */
       -moz-animation: fadein 4s; /* Firefox < 16 */
        -ms-animation: fadein 4s; /* Internet Explorer */
         -o-animation: fadein 4s; /* Opera < 12.1 */
            animation: fadein 4s;
    display: block;
    margin: 25px auto 0 auto;
    width: 100% \9; /* IE hack */
    max-width: 100%;
}

@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.content {
  background-color: var(--background);
}

/* navigation styles start here */

header {
    text-align: center;
    background: black;
    z-index: 999;
    width: 100%;
    position: sticky;
    margin-top: -8px;
    margin-left: -8px;
    margin-right: -8px;
}
h1,h3 {
    margin: 0;
}

h2 {
    text-align: center;
}


hr.star-light,
hr.star-primary {
    margin: 30px auto 10px;
    padding: 0;
    max-width: 250px;
    border: 0;
    border-top: solid 5px;
    text-align: center;
}
/***
hr.star-light:after,
hr.star-primary:after {
    content: "\f005";
    display: inline-block;
    position: relative;
    top: -.5em;
    overflow: visible;
    z-index:100;
    padding: 0 .25em;
    font-family: FontAwesome;
    font-size: 2em;
}
*/
hr.star-light {
    border-color: #fff;
}

hr.star-light:after {
    color: #fff;
    background-color: var(--background);;
}

hr.star-primary {
    border-color: var(--foreground);
}

hr.star-primary:after {
    color: var(--foreground);
    background-color: #fff;
}

canvas{
    margin-right: auto;
    margin-left: auto;
    display: block;
}

.logo {
    align-items: left;
    color: white;
}

  .page-title {
	  display:none;
  }
 .main-ul{
     margin-top: 10px;
     margin-bottom: 5px;
     display: block;
     text-align: center;
 }
.main-ul > h3 {
    text-decoration: underline;
}
.text-center {
  text-align: center;
}
.list-inline {
  padding-left: 0;
  list-style: none;
  margin-left: -5px;
}
.list-inline > li {
  display: inline-block;
  padding-left: 5px;
  padding-right: 5px;
}
 .ul-toggle{
     display:none;
     list-style-type:none;
     margin:0;
 }
 .list-toggle{
     display:none;
 }

.list-toggle:checked + label{
    color: red;
}
.list-toggle:checked + label + ul{
  display:block;
}


.nav-toggle {
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
}

.nav-toggle:focus ~ .nav-toggle-label {
  outline: 3px solid rgba(lightblue, .75);
}

.nav-toggle-label {
  position: absolute;
  top: 0;
  left: 0;
  margin-left: 1em;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: white;
  height: 2px;
  width: 2em;
  border-radius: 2px;
  position: relative;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  position: absolute;
}

.nav-toggle-label span::before {
  bottom: 7px;
}

.nav-toggle-label span::after {
  top: 7px;
}

nav {
  position: absolute;
  text-align: left;
  top: 100%;
  left: 0;
  background: var(--background);
  /*width: 100%;*/
  transform: scale(1, 0);
  transform-origin: top;
  transition: transform 400ms ease-in-out;
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

nav li {
  margin-bottom: 1em;
  margin-right: 1em;
  margin-left: 1em;
}

nav a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 150ms ease-in-out;
}

nav a:hover {
  color: #7f7f7f;
}

.nav-toggle:checked ~ nav {
  transform: scale(1,1);
}

.nav-toggle:checked ~ label > span{
  height:0;
}
.nav-toggle:checked ~ label > span::before{
  transform: rotate(45deg) translateY(-5px);
  transform-origin: left bottom;
}
.nav-toggle:checked ~ label > span::after{
  transform: rotate(-45deg) translateY(7px);
  transform-origin: left bottom;
}
.nav-toggle:checked ~ nav a {
  opacity: 1;
  transition: opacity 250ms ease-in-out 250ms;
}

details {
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: .5em .5em 0;
}

summary {
    font-weight: bold;
    margin: -.5em -.5em 0;
    padding: .5em;
}

details[open] {
    padding: .5em;
}

.mySlides img {
  max-width: 100%; /* Ensures the image doesn't exceed the column width */
  height: auto;    /* Maintains the original aspect ratio */
  display: block;  /* Helps with centering or layout issues if any */
}

details[open] summary {
    border-bottom: 1px solid #aaa;
    margin-bottom: .5em;
}
summary{
	color:orange;
}
figcaption{
  font-size: small;
}
.main-items > h1 {
   color: blue;
   position: relative;
   top: 4 rem;
   font-size: 4 rem ;
   text-align: center;
}

@media screen and (min-width: 940px) {
  .nav-toggle-label {
    display: none;
  }
  .two-columns{
      display: grid;
      grid-template-columns: 1fr 1fr;
  }
  .left-item{
      grid-column: 1/2;
      margin-right: 5px;
      font-size: 1.25em;
  }
  .right-item{
      grid-column: 2/3;
      margin-left: 5px;
      font-size: 1.25em;
  }
  .intro-text{
    grid-column: 2 / 3;
  }
.skills {
    text-align: center;
    font-size: 1.25em;
    font-weight: 300;
}
  main {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    position: relative;
  }
 .main-items{
   grid-column: 2/3;
   margin: 5px;
 }
  aside {
      grid-column: 1/2;
      margin-left: 50px;
      margin-right: 50px;
      padding: 10px;
      position: absolute;
      top: 10rem;
  }
  
  header {
    display: grid;
    grid-template-columns: 1fr minmax(600px, 3fr) 1fr;
  }
  .logo {
	  display: none;
  }
  .page-title {
    grid-column: 2 / 3;
    color: white;
    display: block;
    margin-top: 5px;
    margin-bottom: 5px;
  }
  .right-side{
    grid-column : 3/4;
    margin-left: 4rem;
      position: absolute;
      top: 10rem;
  }
  .right-side p{
    font-weight: bold;
  }
  .answer{
  display:none;
  color: orange;
  }
  .nav-toggle:checked ~ .answer {
	  display: block;
  }
  nav {
     all: unset; /* this causes issues with Edge, since it's unsupported */
    
    /* the following lines are not from my video, but add Edge support 
    position: relative;
    text-align: left;
    transition: none;
    transform: scale(1,1);
    background: none;
    top: initial;
    left: initial;
     end Edge support stuff */
    
    margin-top: 5px;
    margin-bottom: 5px;
    grid-column: 3 / 4;
    display: flex;
    justify-content: flex-end;
    align-items: right;
  }
  
  nav ul {
    display: flex;
  }
  
  nav li {
    margin-left: 0.5em;
    margin-bottom: 0;
  }
main li{
    font-size: 20px;
}
  nav a {
    opacity: 1;
    position: relative;
  }
  
  nav a::before {
    content: '';
    display: block;
    height: 5px;
    background: black;
    position: absolute;
    top: -.75em;
    left: 0;
    right: 0;
    transform: scale(0, 1);
    transition: transform ease-in-out 250ms;
  }
  
  nav a:hover::before {
    transform: scale(1,1);
  }
}

