body {
    background-color: white;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
}


h1, h2, h3 {
    /* grey colour */
    color: #00839A; /*#CB5B5B;*/
    margin-left: 20px;
    margin-top:0px;
    margin-bottom:0px;
}



/*-- Top Navigation Bar -- */
.activetag {
  /* Navigation bar Home Button background colour */
  background-color: #AFC2E7;
  color: red;
}

.navbar {
    top: 3px;
    overflow: hidden;
    /* Navigation bar background colour */
    background-color: #e2cfff;
    letter-spacing: 2px;
}

/* Align menu items to the right of nav bar */
.navbar-right {
    float: right;
    padding-right:20px
}

.navbar a {
    float: left;
    font-size: 14px;
    color: black;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.dropdown {
    float: left;
    overflow: hidden;
}

.dropdown .dropbtn {
    font-size: 16px;    
    border: none;
    outline: none;
    color: black;
    padding: 14px 16px;
    background-color: inherit;
    font: inherit;
    margin: 0;
}

.navbar a:hover, .dropdown:hover .dropbtn {
    /* Mouse over menu text*/
    background-color: #d7cec7;
    color: black;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    float: none;
    color: #5F6166; 
    /* Dropdown content with top bottom spacing of
       8px and left right spacing of 16px          */
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

/* Hover over dropdown selection */
.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: black;
}

.dropdown:hover .dropdown-content {
    display: block;
}


/* Remove bullet from li and set padding */
.dropdown-menu {
  list-style-type: none;
 
}




.color-box {
    display: inline-block;
    border: none;
    margin-left : 20px;
    width: 60px; 
    height: 30px;
}



/* for all title text at top, below nav. bar
   responsible font size with stroke outline
   and using view-width unit */
.homepg-title{
    font-size: 2.2vw;
    text-align: left;
    color: #c09f80;
    -webkit-text-stroke-width: 0.2px;
    -webkit-text-stroke-color: #333333;
}

/* left column, use in title block below nav bar */
div.column1 {
    display: inline-block;
    width: 25%;
    height: auto:
    padding: 10px 10px;
    vertical-align: top;
}

/* right column, use in title block below nav bar*/
div.column2 {
    display: inline-block;
    width: 70%;
    padding-left: 10px;
    height: auto;
    /* verical align to 'top' of previous neighbour object */
    vertical-align: top;
    text-align: left;
}

/* boxed div to contain text and image, used in week 9 */
div.boxed_orange {
    display: inline-block;
    width: 93%;
    margin-left: 20px;
    padding-left: 20px;
    height: auto;
    /* verical align to 'top' of previous neighbour object */
    vertical-align: top;
    text-align: left;
    border: 5px solid orange;
    background-color:#fff5e6;
}

/* boxed div to contain text and image, used in week 9 */
div.boxed_green {
    display: inline-block;
    width: 93%;
    margin-left: 20px;
    padding-left: 20px;
    height: auto;
    /* verical align to 'top' of previous neighbour object */
    vertical-align: top;
    text-align: left;
    border: 5px solid #4dff85;
    background-color:#e6ffee;
}

/* boxed div to contain text and image, used in week 9 */
div.boxed_blue {
    display: inline-block;
    width: 93%;
    margin-left: 20px;
    padding-left: 20px;
    height: auto;
    /* verical align to 'top' of previous neighbour object */
    vertical-align: top;
    text-align: left;
    border: 5px solid #809fff;
    background-color:#e6ecff;
}





/* used at home page body for sidebar & content section */
#container {
  width: 100%;
  padding-left: 20px;
}

/* used at home page body for sidebar */
#left {
  float: left;
  width: 40%;
}

/* used at home page body for content on the right */
#right {
  float: right;
  width: 56%;
  padding-right: 20px;
}


/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 800px) {
  #left, #right {
    width: 100%;
  }
}



/* used at home page for photo and self intro */
div.round_border_box {
  /*display: inline-block;*/
  width: 90%;
  /*height: auto; */
  border-radius: 25px;
  border: 1px solid grey;
  padding: 15px; 
 }


/* header3 is used only in Home Page body to replace h3 html tag for title */
p.titletext_h3 {
    color: #00839A; 
    display: block;
    font-size: 1.5em;
    margin-top: 0em;
    margin-bottom: 0em;
    margin-left: 0;
    margin-right: 0;
    font-weight: bold;
}


p.padding1 {
    padding-left: 20px;
}

/* padding2 for images alignment*/
p.padding2 {
    padding-left: 40px;
}

/* for title below navigation bar */
div.padding3 {
    padding-top: 18px;
    padding-bottom: 18px;
    padding-left: 20px;
}




/* for round-corner boxes in flow chart used in Week5, week7 */
.floating-box {
    display: inline-block;
    border-radius: 8px;
    border: 2px solid #73AD21;
    padding: 5px; 
    width: /*150px;*/
    height: 20px; 
    text-align: center;
}
/* dummy first floating box for margin */
.floating-box1 {
    display: inline-block;
    border: none;
    margin-left : 20px;
}


/* Table for listing parts in Week7 EAGLE design, etc */
table {
    width:70%;
    margin-left: 20px;
    font-size: 80%;
    border-collapse: collapse; /* IE7 and lower (do not show gap in border) */
    border-spacing: 0; 
}

table, th, td {
    border: 1px solid grey;
    border-collapse: collapse;
}
th, td {
    padding: 5px;
    text-align: left;
}
table#t01 tr:nth-child(even) {
    background-color: #fbf8e9;
}
table#t01 tr:nth-child(odd) {
   background-color:white;
}
table#t01 th {
    background-color: #e6e6ff; /* table header background colour  */
    color: black;
}




/* For problem and solution section */
div.problem_box {
    margin-right: 100px;
    margin-left: 40px;
    padding-left: 30px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-style: italic;
    /* 25% lighter of Black color */
    color: #404040;
    border-style: groove;
    border-color: #d9d9d9;
    border-width: 1px;
    border-radius: 8px;
    /* peach color */
    background-color: #EFF3EF;
}



/* For codes section */
p.code1 {
	margin-right: 80px;
    margin-left: 40px;
    padding-left: 20px;
    padding-top: 5px;
    padding-bottom: 5px;
    /* font-style: normal; */
    /* font-family: Verdana, Tahoma; */
    line-height: 1.5;
    /* 15% lighter of Black color */
    color: #262626;
    border-style: groove;
    border-color: #CB5B5B; /*#d9d9d9;*/
    border-width: 1.5px;
    border-left: 6px solid #CB5B5B;
    /* light yellow background color */
    background-color: #ffffe6;
    width: 85%;
    height: auto;
}




/*-- Photo Gallery -- */
/*-- Use of div and float method of arranging thumbnails over 
     table/grid to allow a more reponsible website 
     used in week 7 */
div.gallery {
  /*margin: 5px;*/
  margin-left: 20px;
  /*border: 1px solid #ccc;*/
  float: left;
  width: 40%;
}

div.gallery:hover {
  border: 1px solid #777;
}

div.gallery img {
  width: 100%;
  height: auto;
}

div.desc {
  padding: 5px;
  text-align: left;
}

/* Final Project Navigation buttons at top of page, below header section */
.proj_button {
  background-color: #4CAF50;
  border: none;
  border-radius: 8px;
  color: white;
  padding: 10px 5px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 13px;
  font-weight: bold;
  margin-right: 10px;
  margin-top: 4px;
  margin-bottom: 4px;
  cursor: pointer;
}


/* Google map of office location*/
 #contact {
    float: left;
    padding-left: 20px;
    padding-right: 40px;
 }


/* Embed Google map of office*/
 #map {
    float: left;
    padding-left: 20px;
    width: 40%
 }



/* Back to top button (source: w3school)*/
#myBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;

    background-color: #e1ffc5;
    color: #3c3c3c;
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 6px 15px;
    border-radius: 8px; /* Rounded corners */
    border-style: solid;
    border-color: #808080;
    border-width: thin;
}

#myBtn:hover {
    background-color: #a1ff67;
    color: black;
}


/* Buttons on main page - index.html*/
#myBtn2 {
    background-color: white;
    /* 30% lighter of Black color */
    color: #4d4d4d;
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 6px 15px;
    border-radius: 8px; /* Rounded corners */
    border-style: solid;
    border-color: #808080;
    border-width: thin;
}

#myBtn2:hover {
    background-color: #d7cec7;
    color: black;
}



/* Footer info */
div.footer1 {
    margin: 0px 0px;
    padding: 10px 10px 5px; /* padding for top leftandright bottom */
    text-align: center;
    letter-spacing:2px;
    /* 95% lighter of Black color */
    background-color: #f2f2f2;
    /* 35% lighter of Black color */
    color: #595959;
    border-radius: 8px;
}
