@import url('https://fonts.googleapis.com/css2?family=Alata&family=Cardo:ital,wght@0,400;0,700;1,400&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');


* {
  box-sizing: border-box;
}

/* background color */
body {
  background-color: #F7EED3;
}

h1 {
    font-family: "Alata", serif;
    font-weight: 400;
    font-style: normal;
    color: #DEAA79;
    background-color: white;
    padding:15px;
    border: 5px dotted #AAB396;
    text-align: center;
    text-decoration: underline;
    font-size: 40px; 
}

h2 {
    font-family: "Alata", serif;
    font-weight: 400;
    font-style: normal;
    color: #AAB396;
    text-align:center;
    background-color: white;
    padding:15px;
    border-radius: 20px;
    border: 2px solid #3D8D7A;
    font-size: 25px;
}

h3 {
    font-family: "Alata", serif;
    font-weight: 400;
    font-style: normal;
    color: white;
    background-color: #AAB396;
    padding:15px;
    border: 5px solid white;
    text-align: center;
    border-radius: 20px;
    
}


.topnav {
  background-color: #674636;
  overflow: hidden;
  border-radius: 20px;
  border: 5px solid #DEAA79;
  
}

/* links inside the navigation bar */
.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
  font-family: "Alata", serif;
  font-weight: 400;
  font-style: normal;
}


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

/* Dropdown container - needed to position the dropdown content */
.dropdown {
  float: left;
  overflow: hidden;
}

/* Style the dropdown button to fit inside the topnav */
.dropdown .dropbtn {
  font-size: 17px;
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
  font-family: "Alata", serif;
  font-weight: 400;
  font-style: normal;
}

/* Style the dropdown content (hidden by default) */
.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;
}

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

/* Add a dark background on topnav links and the dropdown button on hover */
.topnav a:hover, .dropdown:hover .dropbtn {
  background-color: #F7EED3;
  color: #B17457;
}

/* Add a grey background to dropdown links on hover */
.dropdown-content a:hover {
  background-color: #F7EED3;
  color: black;
}

/* Show the dropdown menu when the user moves the mouse over the dropdown button */
.dropdown:hover .dropdown-content {
  display: block;
}







/* Home page ----------*/
.Nanny {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    border: 8px solid #AAB396;
}

.homecap {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    font-family: "Cardo", serif;
    font-weight: 400;
    font-style: normal;
    text-align:center;
}

.homepara {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    font-family: "Cardo", serif;
    font-weight: 400;
    font-style: normal;
    text-align:center;
    background-color: #DEAA79;
    padding: 10px 30px;
    color: white;
    border-radius: 20px;
    border: 12px solid white;
}

/*Nanny Page ------*/

.nannysub {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    font-family: "Cardo", serif;
    font-weight: 400;
    font-style: normal;
    text-align:center;
}

.nannypara {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    font-family: "Cardo", serif;
    font-weight: 400;
    font-style: normal;
    text-align:center;
    background-color: #AAB396;
    padding: 10px 30px;
    color: white;
    border-radius: 20px;
    border: 12px solid white;
}

.statue {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
    border: 8px dotted #674636;
}

/* THE TIMELINE ----*/
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}




/*------------------------------------------------*/

/* The timeline (the vertical ruler) */
.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: white;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

/* Container around content */
.container {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

/* The circles on the timeline */
.container::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: white;
  border: 4px solid black;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.first {
  left: 0;
  background-color: #5F6F65; /* Darkest green */
  padding: 20px 30px;
  position: relative;
  border-radius: 6px;
}

.second {
  left: 50%;
  background-color: #708871; /* lighter green */
  padding: 20px 30px;
  position: relative;
  border-radius: 6px;
}

.third {
  left: 0;
  background-color: #808D7C; /* swamp green */
  padding: 20px 30px;
  position: relative;
  border-radius: 6px;
}

.fourth {
  left: 50%;
  background-color: #A5B68D; /* grass green */
  padding: 20px 30px;
  position: relative;
  border-radius: 6px;
}

.fifth {
  left: 0;
  background-color: #CADABF; /* light green */
  padding: 20px 30px;
  position: relative;
  border-radius: 6px;
}

.sixth {
  left: 50%;
  background-color: #ECDFCC; /*  light beige */
  padding: 20px 30px;
  position: relative;
  border-radius: 6px;
}
.seventh {
    left: 0;
    background-color: #BC9F8B; /* beige */
    padding: 20px 30px;
    position: relative;
    border-radius: 6px;
}

/* Fix the circle for containers on the right side */
.second::after,
.fourth::after,
.sixth::after {
  left: -16px;
}

/* The actual content */
.content {
    padding: 20px 30px;
    background-color: white;
    position: relative;
    border-radius: 6px;
    font-family: "Cardo", serif;
    font-weight: 400;
    font-style: normal;
    text-align:center;
  
}

.sources ul{
    position: relative;
    list-style-type: none;
    background-color: #3F4F44;
    font-family: "Alata", serif;
    font-weight: 400;
    font-style: normal;
    list-style-type: none;
    border-radius: 20px;
    color: #DCD7C9;
    padding: 20px;
}

.sources li::before {
    content: '→';
    position: absolute;
    left: 0;
}