* {
  box-sizing: border-box;
}

/* Style the body */
body {
  background-color: #1c1c3f; 
  font-family: "Nunito", "Tahoma", sans-serif;
}

p, h1, h2, h3, li, ul {
  color: #65eaf4;
  padding-left: 20px;
  padding-right: 20px;
}

h1 {
 display: block;
 font-size: 2em;
 font-weight: bold;
}

/* Style the top navigation bar */
.topnav {
  display: flex;
  border-bottom: 1.5px solid #0fc9d7;
}

.topnav > div {
  display: flex;
  flex-direction: row;
  text-align: left;
  font-weight: bold;
  font-size: 2em;
  padding: 20px;
}

.nav {
  border-top: 1.5px solid #0fc9d7;
  justify-content: center;
  text-align: center;
}

/* unvisited link */
a:link {
  color: #65eaf4;
  text-decoration: none;
}

/* visited link */
a:visited {
  color: #65eaf4;
}

/* mouse over link */
a:hover {
  color: #f0feff;
  cursor: pointer;
}

a:active {
  color: #f0feff;
}

img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}

/* TEST TO KEEP PAGE FROM BEING TOO BIG - NO LONGER FITS BOX. UPDATE BOX + COLUMNS
.page {
 max-height: 750px; 
}
*/


/*.imgside {
  position: absolute;
  top: -3px;
  right: 0;
  display: block;
  max-width: 100%;
}*/

/*image is slightly lopsided so appears uncentered - fix in clip*/
.head {
  margin-left:0; 
  margin-right: auto
}

/*colours and borders for clarity*/

.flex {  
  display: flex;
  flex-wrap: wrap;
  /*background-color: dodgerblue;*/
  justify-content: center;
  max-width: 90%;
  margin: auto;
}

/* Create two unequal columns that sits next to each other */
.main {
  flex: 70%;
  /*border: 1px solid #f1f1f1;*/
}

.side {
  flex: 18%;
  /*border: 1px solid #f1f1f1;*/
  margin-right: 30px;
}

.box {
  max-width: 100%;
  flex-grow: 1;
  border: 2.5px solid #0fc9d7;
  border-radius: 15px;
  margin-top:20px;
  word-wrap: break-word;
  outline: 2px solid rgb(13, 179, 191, 0.5);
}

.autbox {
  max-width: 100%;
  flex-grow: 1;
  border: 2.5px solid #0fc9d7;
  border-radius: 15px;
  margin-top:20px;
  word-wrap: break-word;
  outline: 2px solid rgb(13, 179, 191, 0.5);
}
/* ALT:  border: 2px solid #283e5d; 
#3399ff
*/

/* Footer */
.footer {
  text-align: center;
  max-width: 90%;
  margin: auto;
}

/* Responsive layout - when the screen is less than 700px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 700px) {

body {
  margin-left: 0;
  margin-right: 0;
}
  
.head {
  /*margin-left: 5px;*/
  margin-left: auto; 
  margin-right: auto;
} 
  
.imgside {
    display: none;
  }
  
  .flex, .topnav, .nav {   
    flex-direction: column;
  }
  
  .flex {
   max-width: 100%;
   /*align-items:center;*/
  }
  
  .topnav {
    border-width: 1.5px 0 0 0;
    border-style: solid;
    border-color: #0fc9d7;
  }
  
  .topnav > div {
  justify-content: center;
  border-bottom: 1.5px solid #0fc9d7;
  font-size: 1.5em;
  padding: 10px;
  }
  
  .nav, .side {
    border-width: 1.5px 0 1.5px 0;
    border-style: solid;
    border-color: #0fc9d7;
  }
  
  .main, .side {
  width: 100%;
  }
  
  .side {
    order: 1;
    margin: 20px 0 0 0;
    padding-bottom: 20px;
  }
  
  .box {
  border: 0;
  outline: 0;
  }
  
  .autbox {
  max-width: 90%;
  outline: 0;
  align-self: center;
  box-sizing: content-box;
  }
  
}
