@import url('https://fonts.googleapis.com/css?family=Bungee+Shade');

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

html{
    font-size: 20px;
    font-family: sans-serif;
    
}

.grid{
    height: 100vh;
    display:grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 2fr 2fr 8fr 1fr;
    grid-template-areas: 
        "nav nav nav"
        "header header header"
        "sidebar content content"
        "sidebar content content"
        "footer footer footer";
    grid-gap: 2px;
}


.grid div:nth-child(even){
    background-color:#D6A2E8;
}


.grid div:nth-child(odd){
    background-color:#55E6C1;
}

.nav{
   grid-area: nav;
   display:flex;
   flex-direction: row;
   align-items: center;
   justify-content: center;
    font-size: 100%;
    text-align: center;
    color:#fff;
    background-color:#B33771;

}

.nav p{
    padding: 0.3em;

}
.nav p a{
  text-decoration: none;
  color: #fff;
}
#logo{
    font-family: 'Bungee Shade', cursive;
    font-size: 200%;
    text-align: center;
}
.header{
   grid-area: header;
   display: flex;
   flex-direction: row;
   font-family: 'Bungee Shade', cursive;
    font-size: 200%;
    text-align: center;
    color: #fff;
    
  
}

.header ul{
    display: flex;
    flex-direction: row;
    list-style: none;
    align-items:center;
    justify-content: flex-end;
   
}
.header ul li{
    padding:5px;
}

.sidebar{
   grid-area: sidebar;
   display:flex;
   flex-direction: column;
    justify-content: center;
    

}

.content{
   grid-area: content;
   overflow: auto;
}
.content p{
    margin: 100px;
    text-align: center;
    font-size: 200%;
}
.footer{
   grid-area: footer;
}

.btn{
  
  height: 40px;
  border: #fff 2px solid;
  border-radius: 7px;
  align-self: center;
  background-color: transparent;
  outline: none;

}
.btn a{
    text-decoration: none;
    padding: 5px;
    color: #fff;
}

.btn:hover{
   background-color: rgba(77, 68, 68, 0.747)
}
.desktop{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.mobile{
    display: none;
}
@media only screen and (max-width:970px){
    .desktop p{
        font-size: 150%;
    }
}
@media only screen and (max-width:500px){
    .grid{
        height: auto;
        display:grid;
        grid-template-columns: 1fr;
        grid-template-rows: 2fr 2fr 1fr 8fr 1fr;
        grid-template-areas: 
            "nav"
            "header"
            "sidebar"
            "content"
            "footer";
        grid-gap: 2px;
    }
    .header{
        overflow-x: auto;
        font-size: 140%;
        justify-self: center;
        padding: 20px;
        margin:0;
    }
    .sidebar{
        justify-content: center;
    }
    .content{
        display:flex;
        flex-direction: column;
        margin-left: 4%;
        text-align: center;
    }

    .desktop{
        display: none;

    }

    .mobile{
        display: inline-flex;
    }

    
}