/*
	Charls Sebastian
	ITWP 1050
	Homework 7 - CSS File
*/
/* Class that styles paragragphs */
.chocolate-background-text {
    color:chocolate;
  }
html,body{margin:0;padding:0}
/* Styles the background */
body{font: 76% arial,sans-serif;text-align:center;background-color: rgb(188, 184, 179);}
/* ID that styles Orgins Heading */
#Origins {
    color: blueviolet;
}
/* ID that styles Family Heading */
#Family {
    color: rgb(214, 96, 214)
}
/* ID that styles Time Passing By Heading */
#Time {
    color: rgb(119, 30, 119)
}
/* ID that styles Religion Heading */
#Religion {
    color: palevioletred
}
/* Setting page margin */
p{margin:0 10px 10px}
/* Class that styles contact info */
.midnightblue-background-text {
    color:midnightblue
} 
/*ID that aligns left class homepage */
#container {
    float: left;
}

/* Setting spacing of letters for headers */
h1 {
    letter-spacing: 3px;
    word-spacing: 1px;
    line-height: normal;
    text-transform: uppercase;
    text-shadow: 2px 2px;
  }
  
  h2 {
    letter-spacing: 2px;
    word-spacing: 1px;
    line-height: normal;
    text-transform: uppercase;
  }
  
  div{line-height: 15px
    ;}
  
  p{line-height: 15px;
  }
/* Set the width and height of the HTML element to the size of one of the images in the sprite */
.image {
  width: 500px;
  height: 500px;
  display: inline-block;
  /* Set the sprite image as the background image */
  background-image: url('spritesheet.png');
  /* Set the initial background position to show the first image in the sprite */
  background-position: 0 0;
  /* Add a smooth transition effect when changing the background position */
  transition: background-position 0.3s ease-in-out;
}
/* Set the background position to display the second image in the sprite on hover */
.image:hover {
  /* Shift the background position to show the second image in the sprite on hover */
  background-position: 1020px 0;
}
/* Style the container for the drop-down menu */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Style the clickable button that shows the menu */
.dropdown-button {
  background-color: #fff;
  color: #333;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
}

/* Style the drop-down menu itself */
.dropdown-menu {
  position: absolute;
  z-index: 1;
  display: none;
  background-color: #fff;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  float: right;
}

/* Style the links within the drop-down menu */
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: #333;
  text-decoration: none;
}

/* Change the link color on hover */
.dropdown-menu a:hover {
  background-color: #f1f1f1;
}

/* Show the drop-down menu on hover of the clickable button */
.dropdown:hover .dropdown-menu {
  display: block;
}

