* {
  font-family: sans-serif;
}
body {
  margin: 0;
  background-color: grey;
}

main {
  display: flex;
  flex-wrap: wrap;
}

/* common styling  for all blog tiles */

fieldset {
  width: 0;
  flex-grow: 1;
  margin: 20px 20px;
  border-style: double;
  border-color: #111;
  border-radius: 17px;
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.5);
  font-family: "Gill Sans", "Gill Sans MT", "Trebuchet MS";
}
.blog {
  font-family: "Gill Sans", "Gill Sans MT", "Trebuchet MS";
  margin-bottom: 8%;
  margin-left: 4%;
}

/* blog tiles styling ends */


label,
input {
  font-weight: 500;
  font-style: oblique;
  display: block;
  padding-right: 85%;
  border-radius: 12px;
}

textarea {
  display: block;
  padding-right: 86%;
  border-radius: 12px;
  border-style: solid;
  border-color: #050000;
  resize: none;
}

footer {
  display: flex;
  flex-direction: column;
  background-color: #333;

  align-items: center;
}

fieldset:hover {
  box-shadow: 20px 20px;
}

/* image styling and interaction */
img {
  border-radius: 8%;
  border-style: solid;
  border-left: none;
  border-top: none;
  border-color: #111;
  box-shadow: -10px -10px 10px rgba(0, 0, 0, 0.5);
  text-align: center;
}
img:hover {
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.5);
}

/*  */


video {
  display: block;
  border-color: #111;
  border-style: solid;
  border-radius: 3%;
  margin-bottom: 2%;
}

.video {
  margin-left: 4%;
  padding: 10px;
  padding-top: none;
  border-color: #111;
  border-style: hidden;
  border-radius: 2%;
}
.video:hover {
  transform: scale(1.06);
}

/* common class for all title interactions */
.title {
  padding-bottom: 10px;
  text-decoration: underline;
}
.title:hover {
  text-shadow: -3px -3px #a6a2a2;
}




/* Responsive nav bar  */

nav {
  border-style: solid;
}
ul.nav {
  background-color: #333;
  margin: 0;
  padding: 1px;
  overflow: hidden; 
}
ul.nav li a {
  text-decoration: none;
  display: block;
  padding: 14px 16px;
  text-align: center;
  color: white;
}
ul.nav li a:hover:not(.active) {
  background-color: #111;
}
ul.nav li {
  float: left;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: rgb(57, 54, 54);
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}
.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}
.dropdown-content a:hover {
  background-color: #f1f1f1;
}
.dropdown:hover .dropdown-content {
  display: block;
}

/* responsive nav bar ends */

#header {
  margin-left: 10px;
  text-align: center;
}


#about {
  margin-top: 2%;
  margin-right: 2%;
  margin-left: 1%;
  border-style: solid;
  border-radius: 10px;
  padding-left: 2%;
  box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.5);
}

#contact {
  margin-left: 1%;
  padding-bottom: 1%;
}


/* submit button */
#button {
  margin-top: 1%;
  margin-bottom: 1%;
  border-radius: 12px;
  box-shadow: 0 4px #999;
}
#button:hover,
#topbtn button:hover {
  box-shadow: 0 12px 16px 0 rgba(26, 25, 25, 0.24);
}
#button:active,
#topbtn button:active {
  box-shadow: 0 5px #666;
  transform: translateY(4px);
}
/* submit button ends */


#social {
  margin-left: 1%;
  padding-bottom: 2%;
}

#bottom {
  margin: 0;
  padding-bottom: 0.3%;
}

/* Top scrolling button */
#topbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1%;
}
#topbtn button {
  border-radius: 12px;
  box-shadow: 0 4px #999;
}
/* top scrolling button ends */



/* media query for responsive nav bar and about me section */

@media screen and (max-width: 768px) {
  ul.nav li {
    float: none;
  }
  label,
  textarea,
  input {
    padding-right: 50%;
  }
}
