/* You can either copy the below and paste it between style tags on your HTML page, OR you can copy this to a file and name it .css and link it from your HTML page. */
:root {
  --bg-color:#d7f8e5;
  --border-color:#7c9b89;
  --subtitle-color:#35a363;
  --link-color:#18bc5a;
}

html, body {
  margin-top: 15px;
  padding:0;
  background-color:#a7efb8;
  background-attachment:fixed;
  background-image:url('https://i.imgur.com/4x108uF.png');

  font-size:18px;
}
body a {
  color:var(--link-color);
}
header {
  width:400px;
  height:400px;
  background-image:url('https://i.imgur.com/lZZP1Md.png');
  background-size:103%;
}

.flex {
  display:flex;
  justify-content: center;
}

.grid{
  display:grid;
}

#interests{
  font-size:14px;
  grid-template-columns: 120px 120px 120px 120px;
  column-gap:10px;
  text-indent:0px;
  align-self:center;
}

.sidebar {
  background-color:var(--bg-color);
  max-width:350px;
  width:325px;
  height:fit-content;
  border:1px solid var(--border-color);
}

article {
  background-color:var(--bg-color);
  border:1px solid var(--border-color);

  margin-top:20px;
  margin-left:10px;
  margin-right:10px;

  max-width:500px;

  text-indent:30px;
}

article > p {
  padding:10px;
  padding-left:20px;
}

article > ul{
  text-indent:0px;
}

.subtitle {
  color:var(--subtitle-color);
  font-size:24px;
  font-weight:bold;
  border-bottom:2px solid var(--subtitle-color);
  margin-left:10px;
  margin-right:10px;
  text-align:right;
  padding-top:20px;
}

main {
  margin-top:-21px;
}

section > p {
  padding:10px;
}

footer {
  position:fixed;
  bottom:0;
  width:100%;

  text-align:center;
  font-size:14px;
}

 @media only screen and (max-width: 630px) {
   .sidebar {
     position:relative;
     max-width:100%;
     width:100%;
     height:150px;
     display:flex;
     flex-direction:row;
     flex-wrap:wrap;
     overflow:hidden;
   }

   .flex {
     flex-wrap:wrap;
     flex-direction:row;
   }
   .right {
     order:1;
   }
   .center{
    order:2;
   }
   .left {
     order:3;
   }
   .section {
     display:flex;
     flex-wrap:wrap;
     width:120px;
   }
}