* {
  box-sizing: border-box;
}

body {  
  font-family:sans-serif, cursive;
  background-color:#0470bf;
  margin: 0;
  padding: 0;
  line-height: 30px;
}

/* Header/Blog Title */
.header {
  padding: 20px;
  text-align:center;
  background-color:#0470bf;
  color: white;
  font-family:sans-serif, cursive;

  
} 
/* logo */
.logo{
  padding-bottom: 8px;
}
.logo img{
  display: block;
  float: left;
  text-align: left;
  width: 60px;
  padding-top: 0;
}
/* header text(welcome to hanham baptist church) */
.description{
  text-align: center;
  font-size: 30px;
  font-weight: bolder;
}

/* Style the top navigation bar */

.topnav {
  overflow: hidden;
  background-color: #333;
  list-style: none;
  padding: 0;
  margin: 0;
}

.topnav ul{
  overflow: hidden;
  margin: 0;
  padding: 0;
}

ul.topnav li{
  list-style: none;
  float: left;
}

ul.topnav li.topnav-right{
  float: right;
}

/* Style the topnav links */
.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
   padding: 14px 16px; 
   text-decoration: none;
}

/* Change color on hover */
.topnav a:hover {
  background-color: #ddd;
  color: black;
}

/* Column container */
.row {
  display: flex;
  flex-wrap: wrap;
}

/* Create two unequal columns that sits next to each other */
/* Sidebar/left column */
.side {
  flex: 30%;
  background-color: #f1f1f1;
  padding: 20px;
}

/* Main column */
.main {
  flex: 70%;
  background-color: white;
  padding: 20px;
}

/* Fake image, just for this example */
.fakeimg {
  background-color: #aaa;
  width: 100%;
  padding: 10px;
  text-align: center;
  height: fit-content;
}

.fakeimg img{
  width: 1000px;
  height: 450px;

}

/* Fake image, just for this example */
 .realimg {
  background-color: #aaa;
  height: 155px;
  padding-top: 10px;
  font-weight: bold;
  text-align: center;
  position: relative;
}

.realimg a{
  color: black;
}
.row .side .realimg img{
  padding-top: 10px;
  height: 110px;
  /* width: 200px; */
  padding-bottom: 0; 
   width: 70%;
}

.cv a{
  color: black;
  font-weight: 500;
  border: 2px solid black;
  border-radius: 20px;
  padding-top:10px ;
  padding-bottom: 10px;
  padding-left:30px ;
  padding-right: 30px;
}

.cv a:hover {
  color: #0470bf;
  background-color:beige;
}


/* Footer */
.footer {
  line-height: normal;
  padding:0;
  margin: 0;
  text-align: center;
  background: #0470bf;
  font-family: Bradley Hand, cursive;
}

/* Responsive layout - when the screen is less than 800px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 800px) {
  .leftcolumn, .rightcolumn {   
    width: 100%;
    padding: 0;
  }
}

@media screen  and (max-width: 800px) {
  .side {
    width: 100%;
    line-height: 30px;

  }
}

.topnav .dropdownicon {
  display: none;
}

/* mobile */

@media screen and (max-width: 680px) {
 
  .topnav a {
    float: none;
    width: 100%;
  }
 
  ul.topnav li:not(:nth-child(1)) {
      display:none;
}
  ul.topnav li.dropdownicon {
  display: block;
  float: right;
}

ul.topnav.responsive li.dropdownicon{
  position: absolute;
  top: 0;
  right: 0;
}



ul.topnav.responsive{
  position: relative;
}

ul.topnav.responsive li {
  display: inline;
  float: none;
}

ul.topnav.responsive li a{
  display: block;
  text-align: left;
}

}
