* {
  box-sizing: border-box;
}

@media screen and (max-width:600px) {
  div.grid-container {
    flex-direction: column
  }
  ul.topnav li.right, 
  ul.topnav li {float: none;}
}   


header {
  background-image: url(../../images/header.jpg);
  background-color: #ffffff;
  border: 2px solid #542179; 
  font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  text-align: center;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 25px;
  max-width: 900px;
}

#header {
  font-family:'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
  text-align: center;
  position: relative;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 25px;
  max-width: 900px;
}

a {
  color: rgb(95, 63, 121);
  font-weight: bold;
}


li{
margin: 20px;

}


ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

ul li {
  float: left;
  margin: 0px;
}

ul li a{
  display: block;
  color: #8041ac;
  padding: 14px 16px;
  text-decoration: none;
}

ul li a:hover {
  background-color: #c5acff;
  border-radius: 10px;
}

li {
text-decoration: none;
padding: 10;  
}

body{
  background-image: url(../../images/background.jpg);
background-color: #c5acff;
color: #542179;
font-family: Arial;

}

.box {
  background-color: #ffffff;
  border: 2px solid #542179;
  border-style:solid;
  border-radius: 10px;
  padding: 5px;
  margin: 1px;
  height: fit-content;
  text-align: center;
  
  ;
}

.box2 {
  background-color: #ffffff;
  border: 2px solid rgb(84, 33, 121);
  border-style:solid;
  border-radius: 10px;
  position: relative;
  padding: 5px;
  margin: 1px;
  height: fit-content;
  width: 900px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  ;
}


.footer {
  background-color: #ffffff;
  border: 2px solid rgb(84, 33, 121);
  border-style:solid;
  border-radius: 10px;
  padding: 0px;
  margin: 1px;
  margin-top: 10px;
  height: fit-content;
  width: 900px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  ;
}

.grid-container {
  display: grid;
  flex-direction: row;
  grid-template-areas: "col1 col2 col3"; 
   grid-template-columns: 200px 450px 250px;
 justify-content: center;
 display: flexbox;
}



#g1 {
  grid-area: col1;
  overflow-y: scroll;
  height: 430px;
}

#g2 {
  grid-area: col2;
  text-align: left;
}

#g3 {
  grid-area: col3;
  overflow-y: scroll;
  height: 430px;
}

#g4 {
  overflow-y: scroll;
  max-height: 200px;
}

#g5 {
  overflow-y: scroll;
  max-height: 200px;
}

#g6 {
  overflow-y: scroll;
  max-height: 200px;
}

/*BLOG*/
.grid-containerblog {
  display: grid;
  grid-template-areas: "col1"; 
   grid-template-columns: 900px;
   justify-content: center; 
   display: flexbox;
}

.boxblog {
  background-color: #ffffff;
  border: 2px solid #542179;
  border-style:solid;
  border-radius: 10px;
  padding: 10px;
  margin: 1px;
  height: fit-content;
  margin-bottom: 10px;
  ;
}

header ul li {
list-style:none;
text-align: left;  
}

header  li {
text-align: left; 
}

ul li {
list-style:disc;
list-style-position: inside;
padding: 10px;
text-align: left;  
}

/*This makes images shrink when their container becomes too small (responsive design)*/
img{
  max-width: 100%;
  height: auto;
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}
.right {
  float: right;
  margin-left: 1em;
}
.left {
  float: left;
  margin-right: 1em;
}
.center {
  display: block;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

/*POST LIST STYLE*/
#postlistdiv ul {
  font-size: 1.2em;
  padding: 0;
  list-style-type: none;
  display: flex;
  flex-direction: column;
}
#recentpostlistdiv ul {
  font-size: 1.2em;
  padding: 0;
  list-style-type: none;
  display: flex;
  flex-direction: column;
}
.moreposts {
  font-size: 0.8em;
  margin-top: 0.2em;
}

/*NEXT AND PREVIOUS LINKS STYLE*/
#nextprev {
  text-align: center;
  margin-top: 1.4em;
}

/*DISQUS STYLE*/
#disqus_thread {
  margin-top: 1.6em;
}

/*FOOTER STYLE*/
#footer {
  font-size: 0.8em;
  background-color: #ffffff;
  border: 2px solid #542179;
  border-style:solid;
  border-radius: 10px;
  padding: 5px;
  margin: 1px;
  height: fit-content;
  width: 900px;
  margin: auto;
  text-align: center
  ;
}

 
@media only screen and (max-width: 600px){
  
.grid-containerblog{
    size: 100%;
    size-adjust: 100%;
    display: flex;
    flex-direction: column;
  }
  
   .boxblog {
  width: 100%; 
  }

  .box2{
  width: 100%;  
  }

  .footer {
  width: 100%;
  }
   
  .grid-container{
  width:100%}

   .small {
  max-width: 60%;
  height: auto;
  }
}

