:root {

  --primary: #ddd;
  --dark:#333;
  --light:#fff;
  --shadow:0 1px 5px rgba(104, 104, 104, 0.8);

}

html, body{
  overflow-x:hidden;

}

body{
  font-family:"Arial", Serif;
  background-color:#f4f4f4;

}

body{
   position: relative;
}

img{
  max-width: 100%;
  
}

i{
  text-align: center;
  padding: 10px;

}

.navbar{
  background-color:#3b5998;
  overflow:hidden;
  height:63px;
}

.navbar a{
  float:left;
  display:block;
  color:#f2f2f2;
  text-align:center;
  padding:14px 16px;
  text-decoration:none;
  font-size:17px;
}

.navbar ul{
  margin:8px 0 0 0;
  list-style:none;
}

.navbar a:hover{
  background-color:#ddd;
  color:#000;
}

.side-nav{
  height:100%;
  width:0;
  position:fixed;
  z-index:1;
  top:0;
  left:0;
  background-color:#111;
  opacity:0.9;
  overflow-x:hidden;
  padding-top:60px;
  transition:0.5s;
}

.side-nav a{
  padding:10px 10px 10px 30px;
  text-decoration:none;
  font-size:22px;
  color:#ccc;
  display:block;
  transition:0.3s;
}

.side-nav a:hover{
  color:#fff;
}

.side-nav .btn-close{
  position:absolute;
  top:0;
  right:22px;
  font-size:36px;
  margin-left:50px;
}

.top-section{
  display: grid;
  grid-gap: 15px;
  padding-bottom: 10px;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: (autofit, 1fr 1fr 1fr);
  grid-template-areas: 

  "showcase showcase top-box-a"
  "showcase showcase top-box-b"
  "description1 description2 description3";
    
}

.showcase{
  grid-area: showcase;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow);
}

.top-box-a{
  grid-area: top-box-a;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow);
}

.top-box-b{
  grid-area: top-box-b;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow)
}

.description1{
  grid-area: description1;
  display: flex;
  background-color: var(--primary);
  box-shadow: var(--shadow);
  padding: 10px;
}

.description2{
  grid-area: description2;
  display: flex;
  background-color: var(--primary);
  box-shadow: var(--shadow);
  padding: 10px;
 
}

.description3{
  grid-area: description3;
  display: flex;
  background-color: var(--primary);
  box-shadow: var(--shadow);
  padding: 10px;

}

.third-section{
  display: grid;
  box-shadow: var(--shadow);
  grid-gap: 15px;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: (autofit, 1fr 1fr);
  grid-template-areas:

  "box1 box2 box3"
  "description4 description5 description6";
}

.box1{
  grid-area: box1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary);
  box-shadow: var(--shadow);
  padding: 10px;
 
}

.box2{
  grid-area: box2;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary);
  box-shadow: var(--shadow);
  padding: 10px;
 
}

.box3{
  grid-area: box3;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary);
  box-shadow: var(--shadow);
  padding: 10px;
 
}

.description4{
  grid-area: description4;
  display: flex;
  background-color: var(--primary);
  box-shadow: var(--shadow);
  padding: 10px;
}

.description5{
  grid-area: description5;
  display: flex;
  background-color: var(--primary);
  box-shadow: var(--shadow);
  padding: 10px;
}

.description6{
  grid-area: description6;
  display: flex;
  background-color: var(--primary);
  box-shadow: var(--shadow);
  padding: 10px;
 
}

.fifth-section{
  display: grid;
  box-shadow: var(--shadow);
  margin-top: 10px;
  margin-bottom: 10px;
  grid-gap: 10px;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: (autofit, 1fr 1fr);
  grid-template-areas:

  'box4 box5'
  'description7 description8';

}

.box4{
  grid-area: box4;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary);
  box-shadow: var(--shadow);
  padding: 10px;
 
}

.box5{
  grid-area: box5;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary);
  box-shadow: var(--shadow);
  padding: 10px;

}

.description7{
  grid-area: description7;
  display: flex;
  background-color: var(--primary);
  box-shadow: var(--shadow);
  padding: 10px;
 
}

.description8{
  grid-area: description8;
  display: flex;
  background-color: var(--primary);
  box-shadow: var(--shadow);
  padding: 10px;
 
}

#main{
  transition:margin-left 0.5s;
  padding:20px;
  text-align: center;
}



#main-footer{

  background:#3b5998;
  color:white;
  padding:2px;
  text-align: center;
  margin-top: 20px;

}

/*Media Queries-->*/

@media(max-width:900px){
  .navbar-nav{display:none}
}

@media(min-width:900px){
  /*.open-slide{display:none}*/
}

@media(max-width: 900px){

.top-section{

  grid-template-rows: 6fr;
  grid-template-columns: 1fr;
  grid-template-areas: 
  'showcase'
  'description1'
  'top-box-a' 
  'description2'
  'top-box-b'
  'description3';}

.third-section {

  grid-template-rows: 6fr;
  grid-template-columns: 1fr;
  grid-template-areas: 

  'box1'
  'description4'
  'box2'
  'description5'
  'box3'
  'description6';

}

.fifth-section {

  grid-template-rows: 4fr;
  grid-template-columns: 1fr;
  grid-template-areas: 
  'box4'
  'description7'
  'box5'
  'description8';}


}








