﻿:root {
  --other: #B8DBD9;  
  --light: #F4F4F9;
  --vlight: #FFFFFF;
  --text:  #3a4042 ;
  --background: #cdd0ee;
}

*, *::before, *::after {
  box-sizing: border-box;
}
html{
   height: 100%;
 }
body {
	margin: 0;
	font-family: 'Work Sans', sans-serif;
	font-weight: 400;
  background-color: var(--light);
}

.content {
  font-size: 100%;
  margin-top:1em;
  margin-left:1em;
  margin-right:1em;
  padding:1em;
  color: var(--text);
  background-size: cover;
}

/* navigation styles start here */

header {
  background: var(--background);
  text-align: center;
  position: fixed;
  z-index: 999;
  width: 100%;
  color: var(--text);
}

.toplogo{
  height: 3.5em;
  margin-top:1em;
  margin-bottom: 1em;
}

/* changed this from the tutorial video to
   allow it to gain focus, making it tabbable */
.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: 5em;
  left: 0;
  margin-left: 0.3em;
  height: 100%;
  display: flex;
  align-items: right;
}

.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: 5px;
}

.nav-toggle-label span::after {
  top: 5px;
}

nav {
  position: absolute;
  text-align: left;
  top: 100%;
  left: 0;
  background: var(--background);
  width: 100%;
  transform: scale(1, 0);
  transform-origin: top;
  /*transition: transform 200ms ease-in-out;*/
}

nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

nav li {
  margin-bottom: 1.5em;
  margin-left: 1em;
}

nav a {
  color: black;
  text-decoration: none;
  font-size: 1.2rem;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 150ms ease-in-out;
}

nav a:hover {
  color: #95a852;
}

.nav-toggle:checked ~ nav {
  transform: scale(1,1);
}

.nav-toggle:checked ~ nav a {
  opacity: 1;
  transition: opacity 250ms ease-in-out 250ms;
}

@media screen and (min-width: 1200px) {
  .nav-toggle-label {
    display: none;
  }
  .toplogo {
  height: 5em;
  margin:1em;
}
  .content{
  font-size: 120%;
  margin-left:4em;
  margin-right:4em;
}
  header {
    display: grid;
    grid-template-columns: auto auto minmax(600px, 3fr) 1fr;
  } 
  .logo {
    grid-column: 2 / 3;
  }
  
  nav {
     all: unset; /* this causes issues with Edge, since it's unsupported */
    /* the following lines add Edge support */
    position: relative;
    text-align: left;
    transition: none;
    transform: scale(1,1);
    background: none;
    top: initial;
    left: 0px;
    /* end Edge support stuff */
    
    grid-column: 3 / 3;
    display: flex;
    justify-content: center; 
    align-items: center;
  }
  
  nav ul {
    display: flex;
  }
  
  nav li {
    margin-left: 2.5em;
    margin-bottom: 0;
  }
  
  nav a {
    opacity: 1;
    position: relative;
  }
  
  nav a::before {
    content: '';
    display: block;
    height: 5px;
    background:rgb(250, 250, 250);
    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);
  }
}
.page-footer{
  padding:0.2em;
  background: var(--background);
  color:#95a852;
  font-size: 1.5em;
  width: 100%;
}

.topplaceholder{
  height:4em;
}

.thema {
  text-align: center;
}

.myname {
  color: #95a852;
  font-size: 1rem;
  margin-bottom: 0em;
  margin-right: 1em;
}

h2 {
  font-size:2.5em;
}


.page-footer a {margin:3em;}
.page-footer a:link {color:#95a852;text-decoration:none;}
.page-footer a:visited {color:var(--vlight);text-decoration:none;}
.page-footer a:hover {color:var(--vlight);text-decoration:none;}


.accordion-button {
  width: 100%; 
  text-align: left;
}
