@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap');

*{
  margin:0;
}

:root{
  --green:#f7fff7;
  --blue:#02239a;
  --yellow:#ffe66d;
  --white:#f1f3f9; 
  --black:#180126;
  --grey:#7E7A8F;
  --navtext:#C3C7D2;
  --dmsans:'DM Sans', sans-serif; 
  --aqua:#4bb8d8;
  --teal:#2c8daa;
}

body{

  background-color:var(--green);
  box-sizing:absolute; 
}

.header{
  background-color:var(--blue);
  height:75px;
}

.header h1{
  color:var(--white);
  font-family:var(--dmsans);
  font-weight: bold;
  margin-left:43%;
  padding-top:10px
}

.header .navlinks{
  color:var(--white);
  list-style-type: none;
  text-decoration:none;  
  font-size:18px;
  margin-left:65%;
  display:flex;
  justify-content: space-evenly;
  margin-top: -1%;
}

.header .navlinks a{
  
  font-family:var(--dmsans);
  text-decoration:none;
  color:var(--white);
}



.navlinks li:hover, .navlinks li:focus{
  background-color:var(--yellow);
  border-radius: 4px;
   border-color:var(--yellow);
   padding:5px;
   color:var(--black);
   font-weight:bold;
 }

#layer1{
  position: relative;
  z-index: 0;
}

.triangles{
display:flex; 
justify-content:center;
overflow:hidden;
position: static;
}

.triangle1{
width: 0;
height: 0;
border-style: solid;
border-width: 30vh 114vh 0 0;
border-color: var(--teal) transparent transparent transparent;
}


.triangle2{
width: 0;
height: 0;
border-style: solid;
border-width: 0 113vh 30vh 0;
border-color: transparent var(--aqua) transparent transparent;
overflow:hidden;
}

#layer2{
  position: relative;
  z-index: 1;
  margin-top:-12%;
}

.info{
  display:flex;
  flex-direction: row;
  justify-content: space-evenly;
  width: 100%;
  height: auto;
  flex-flow: wrap;
}

.aboutus{
  background-color:var(--yellow);
  font-family:var(--dmsans);
  font-size:16px;
  line-height:20px;
  font-kerning:-0.2;
  width:400px;
  padding: 1em;
  box-sizing: border-box;
  border-radius:25px;
  box-shadow: 11px 9px 9px 8px rgba(206,212,206,0.88);
}

.aboutus h2{
  font-size:28px;
  padding-top:8%;
  margin-left: 27%;
}

.aboutus p{
  padding-top:4%;
  font-size:18px;
  padding-left:5%;
  padding-right:5%;
  margin-top: 2%;
  text-align: inherit;
}

.howitworks{
  background-color:var(--yellow);
  font-family:var(--dmsans);
  line-height:20px;
  font-kerning:-0.2;
  width:400px;
  padding: 1em;
  box-sizing: border-box;
  border-radius:25px;
  text-align: left;
  box-shadow: -5px 9px 9px 8px rgba(206,212,206,0.88);
}

.howitworks h2{
  font-size:28px;  
  margin-left:25%;
  padding-top:5%;
  padding-bottom: 4%;
  margin-left: 31%;
}

.howitworks p{
 font-size:18px;
 padding-top: 2%;
 padding-left:8%;
  padding-right:8%;
  
}

section{  
  margin-bottom: 7%;
  margin-top: 7%;
}

section h2{
display:flex;
justify-content:center;
font-size:28px;
margin-bottom: 45px;
}

section .container{
display:flex;
justify-content:center;  
margin-left:3% ;
font-size: 18px; 
}

.accordian-link{
  color:var(--black);
  font-family:var(--dmsans);
  text-decoration:none; 
  font-style: italic;
}

.answer{
  max-height:0;
  overflow:hidden;
  position:relative;
  font-family:var(--dmsans);
}

.accordian-item:target .answer{
  max-height:20rem;
}

footer{
  background-color:var(--blue); 
  bottom: 0;
  width: 100%;
  height: 2.5rem;
  overflow:hidden;  
}

footer .icons{
  padding-top:1%;
  margin-left: 45%;
}

footer a{
  padding:1em;
}


.fa-facebook-square:hover, .fa-linkedin:hover, .fa-instagram-square:hover, .fa-twitter-square:hover{
  background-color:var(--white);
  border-color:var(--yellow);
}




@media only screen and (max-width: 600px) {
  .header h1{
     margin-left:37%;
     font-size: 28px;
  }

  .header .navlinks{
    font-size:13px;
    margin-top: -9%;
    margin-left:68%;
    display: block;
  }

  .navlinks li:hover, .navlinks li:focus{
    background-color:var(--white);
    border-radius: 5px;
     border-color:var(--yellow);
     padding:1px;
     color:var(--yellow);
     font-weight:bold;
  } 



  #layer2 {
    margin-top: -42%;
    position: relative;
    z-index: 1;
  }

  .info{
    margin-left: 0%;
  }

  .aboutus{
    width: 90%;
    padding: 2em;
    margin:2em 0em; 
  }

  .aboutus h2{
    font-size:20px;
    padding-top:0%;
    margin-left: 26%;
    padding-top: -3%;
  }

  .aboutus p{
    font-size: 16px;
    padding:12px;
    margin-top: -2%;
  }

  .howitworks{
    width: 90%;
    padding: 2em;
  }
  
  .howitworks h2{
    font-size:20px;  
    margin-left:34%;
    padding-top:0%;
    margin-top:-3%;
  }
  
  .howitworks p{
   font-size:16px;
   padding:1%;
  }

  section{
    margin-top:14%;
    margin-bottom: 10%;
  }


  section h2{
  display:flex;
  justify-content:center;
  font-size:18px;
  margin-bottom: 15px;
  margin-top: 10px;
  }

  section .container{
  display:flex;
  justify-content:center;  
  margin-left:3% ;
  font-size: 13px; 
  }

  footer .icons{
    margin-left: 28%;
    padding-top:1%;
  }

}