* {
  box-sizing: border-box;
}

/* Set semi-transparent white background for navbar */
.topnav {
  overflow: hidden;
  background: rgba(255, 247, 249, 0.7);  
}

/* Style featured project links */
.featured a {
  text-decoration: none;
  color: #585153
}

/* Style links in the navbar */
.topnav a {
  float: left;
  color: black;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  font-family: Fredoka, Helvetica, sans-serif;
}

/* Right-aligned section inside the top navigation */
.topnav-right {
  float: right;
}

/* Change the link color on hover */
.topnav a:hover, .active {
  background-color: rgba(255, 153, 180, 0.7);
}

body {
  padding: 10px;
}

/* Set body background color */
body, html {
  background-color: #FFE1E9;
  padding: 0;
  margin: 0;
}

/* set font */
h1, h2, h3, h4, a, ul, p {
  font-family: Fredoka, Helvetica, sans-serif;
}

/* Background image for header */
.bg-img {
  min-height: 380px;
  background-color: #263051;
  /* Center and scale the image nicely */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;

  /* Needed to position the navbar */
  position: relative;
}

/* image used for home and contact */
.defaultimg {
  /* The image used */
  background-image: url("https://i.imgur.com/r6kTug1.png");
}

/* image used on Nutcracker page */
.nutcracker2024 {
  /* The image used */
  background-image: url("https://i.imgur.com/8qP9gdq.png");
}

/* image used on banner page */
.emcbanners {
  /* The image used */
  background-image: url("https://i.imgur.com/K9kOxa0.png");
}

/* image used on Aqua Quest page */
.aquaquest {
  /* The image used */
  background-image: url("https://i.imgur.com/mEk6e1v.png");
}

/* image used on Simon Says page */
.simonsays {
  /* The image used */
  background-image: url("https://i.imgur.com/cUIt2SZ.png");
}

/* image used on DungeonSmith page */
.dungeonsmith {
  /* The image used */
  background-image: url("https://i.imgur.com/Az7cw2U.png");
}

/* image used on Pebble Paradise page */
.pebbleparadise {
  /* The image used */
  background-image: url("https://i.imgur.com/eM5fLhl.png");
}

/* image used on hobbies page */
.hobbies {
  /* The image used */
  background-image: url("https://i.imgur.com/nRP3NCR.jpeg");
}

/* Position the navbar container inside the image */
.container {
  position: sticky;
  top: 0;
  margin: 0;
  width: 100%;
}

/* Create two unequal columns that floats next to each other */
/* Left column */
.leftcolumn {   
  float: left;
  width: 75%;
}

/* Right column */
.rightcolumn {
  float: right;
  width: 25%;
  padding-left: 20px;
}

/* create a row for content */
.row {
  margin: 20px;
}

/* Clear floats after the columns */
.row::after {
  content: "";
  display: table;
  clear: both;
}

/* Add a card effect */
.card {
  background-color: #FFF7F9;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/* make picture on home page a circle */
#emmapic {
  float: left;
  margin: 0px 15px 15px 0px;
  width: 50%;
  border-radius: 50%;
}

/* keeps grahpics in cards inside their column */
.graphics {
  float: left;
  margin: 0px 15px 15px 0px;
  width: 100%;
}

/* gives featured project images rounded edges */
.featured {
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  transition: 0.3s;
  border-radius: 5px; /* 5px rounded corners */
  margin-bottom: 10px;
}

/* puts a border around featured images */
.featured img {
  border-radius: 5px 5px 0 0;
  max-width: 100%;
}

/* add extra shadow when featured image hovered */
.featured:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

/* add padding to featured image container */
.ftContainer {
  padding: 2px 16px;
}

/* Hide the link that should open and close the topnav on small screens */
.topnav .icon {
  display: none;
}

/* create dropdown */
.dropdown {
  float: left;
  overflow: hidden;
}

/* style dropdown button in navbar */
.dropdown .dropbtn {
  font-size: 17px;  
  border: none;
  outline: none;
  color: black;
  padding: 14px 16px;
  background-color: inherit;
  font-family: Fredoka, Helvetica, sans-serif;
  margin: 0;
}

/* style dropdown content */
.dropdown-content {
  display: none;
  position: absolute;
  background: rgba(255, 247, 249, 0.7); 
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

/* style links in dropdown content */
.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* change color of dropdown content when hovered */
.dropdown-content a:hover {
  background-color: rgba(255, 189, 207, 0.7);
  color: black;
}

.navbar a:hover, .dropdown:hover .dropbtn {
  background-color: rgba(255, 153, 180, 0.7);
}

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

/* 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;
  }
}

/* Responsive layout - when the screen is less than 400px wide, make the navigation links stack on top of each other instead of next to each other */
@media screen and (max-width: 400px) {
  .topnav a {
    float: none;
    width: 100%;
  }
}

/* When the screen is less than 600 pixels wide, hide all links, except for the first one ("Home"). Show the link that contains should open and close the topnav (.icon) */
@media screen and (max-width: 600px) {
  .topnav a:not(:first-child), .dropdown .dropbtn {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
}
  
@media screen and (max-width: 600px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
  
  .topnav.responsive .dropdown {float: none;}
  .topnav.responsive .dropdown-content {position: relative;}
  .topnav.responsive .dropdown .dropbtn {
    display: block;
    width: 100%;
    text-align: left;
    }
}

/* Footer */
.footer {
  padding: 20px;
  text-align: center;
  background: #FFF7F9;
  margin-top: 20px;
}
