* {
  box-sizing: border-box;
}

body {
  margin: 0;
   background-color: #ffffff;
}

h1 {
	font-family: "Cormorant Garamond";
	font-size: 16px;
	
	}

h2 { 
	color: #064867;
	font-family: "Cormorant Garamond";
	font-size: 14px;
	
	}
	

/* Style the top navigation bar */
.topnav {
  overflow: hidden;
  background-color: #091534;
}

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

/* Add an active class to highlight the current page */
.active {
  background-color: #064867;
  color: black;
}


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

/* 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: #555;
  color: white;
}

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

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

/* When the screen is less than 500 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: 500px) {
  .topnav a:not(:first-child), .dropdown .dropbtn {
    display: none;
  }
  .topnav a.icon {
    float: right;
    display: block;
  }
}
/* Style the header */
.header {
  padding: 10px;
  height: 80px;
  text-align: center;
  background: linear-gradient(to bottom, #EFF4EC 0%, #CAD9BF 100%);
  color: #091534
}

/* Style the text inside image*/
.contain {
  position: relative;
}

.center {
  position: absolute;
  top: 30%;
  left: 30%;
  transform: translate(-50%, -50%);
  font-size: 30px;
  color: lightgrey;
}






 /* Create three unequal columns that floats next to each other */
.column {
  float: left;
  padding: 6px;
}

.column a {
   color: #000000;
}

.column a:hover {
     color: #064867;
}



/* Left and right column */
.column.side {
	margin: 1%;
	border-radius: 25px;
	background-color: #f0f5f5;
	width: 16%;
	Color:#000000;
	font-size: 90%;
}
 .column.side p {
    font-family: "Cormorant Garamond";
    }

/* Middle column */
.column.middle {
  margin: auto;
  width: 80%;
  background-color: #ffffff;
  color: #091D34;
  float: left;
}
  .column.middle p {
    font-family: "Cormorant Garamond";
    }

/*center main image*/
  .center {
margin-left: auto;
  margin-right: auto;
  width: 100%;
}

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

.p01 {
	color:#fc600a; 
	font-size:110%;
}

.pagination {
	font-size:140%;
	display: inline-block;
   }
   
.pagination a {
	color: black;
   	float:left;
   	padding: 4px 8px;
   	text-decoration: none;
   	transition: background-color .3s;
   	border: 1px solid #ddd;
   	margin: 0 3px;
   	}
   	
.pagination a.active {
   	background-color: #064867;
   	color: white;
   	border: 1px solid #66b032;
   	}
   	
   	.pagination a:hover:not(.active) {background-color: #ddd;
   	}
   	.pagination a:first-child {
   	border-top-left-radius: 5px;
   	border-bottom-left-radius: 5px;
   	}
   	.pagination a:last-child {
   	border-top-right-radius: 5px;
   	border-bottom-left-radius: 5px;
   	}

.grid-container {
      grid-template-columns:auto auto auto auto;
       display: grid;
      grid-gap: 10px 10px;
     background-color: #ffffff;
      padding: 5px;
      
}
      .grid-item {
      background-color:#ffffff ;
      box-shadow: 2px 5px 5px #ededee;
     font-size: 90%;
      text-align:center;
}
  .item1 { grid-area: 1 / 1 / 2 / 2;}
  .item2 { grid-area: 1 / 2 / 2 / 3;}
  .item3 { grid-area: 1 / 3 / 2 / 4;}
  .item4 { grid-area: 2 /  1 / 3 / 2;}
  .item5 { grid-area: 2 /  2 / 3 / 3;}
  .item6 { grid-area: 2 /  3 / 3 / 4;}
  .item7 { grid-area: 3 /  1 / 4 / 2;}
  .item8 { grid-area: 3 /  2 / 4 / 3;}
  .item9 { grid-area: 3 /  3 / 4 / 4;}
  .item10 { grid-area: 4 /  1 / 5 / 2;}
  .item11 { grid-area: 4 /  2 / 5 / 3;}
  .item12 { grid-area: 4 /  3 / 5 / 4;}



/* Style the footer */
.footer {
  color: white;
  background-color: black;
  padding: 10px;
  font-size: 84%;
  text-align: center;
  }
.footer a {
	color: white;
  text-align: center;
  padding: 1px 20px;
  text-decoration: none;
}

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

.clearfix::after {
content:"";
clear: both;
display: table;
}

.notice {
	font-family: "Comic Sans MS", cursive;
	font-size: 20px;
	font-weight: bold;
	color: #FFF;
	padding: 10px;
	background-color: #C00;
	display: block;
	margin: 5px;
}

.tainer {
  position: relative;
  width: 100%;
}

.age {
  opacity: 1;
  display: block;
  width: 100%;
  height: auto;
  transition: .5s ease;
  backface-visibility: hidden;
}

.mid {
  transition: .5s ease;
  opacity: 0;
  position: absolute;
  top: 80%;
  left: 50%;
  transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  text-align: center;
}

.tainer:hover .age {
  opacity: 0.3;
}

.tainer:hover .mid {
  opacity: 1;
}



/* Responsive layout - makes the three columns stack on top of each other instead of next to each other */

@media only screen and (max-width: 500px) {
  .column.side, .column.middle {
    width: 100%;
  }
 @media only screen and (max-width: 500px) {
  .item1 { grid-area: 1 / 1 / 2 / 2;}
  .item2 { grid-area: 1 / 2 / 2 / 3;}
  .item3 { grid-area: 2 / 1 / 3 / 2;}
  .item4 { grid-area: 2 /  2 / 3 / 3;}
  .item5 { grid-area: 3 /  1 / 4 / 2;}
  .item6 { grid-area: 3 /  2 / 4 / 3;}
  .item7 { grid-area: 4 /  1 / 5 / 2;}
  .item8 { grid-area: 4 /  2 / 5 / 3;}
  .item9 { grid-area: 5 /  1 / 6 / 2;}
  .item10 { grid-area: 5 /  2 / 6 / 3;}
  .item11 { grid-area: 6 /  1 / 7 / 2;}
  .item12 { grid-area: 6 /  2 / 7 / 3;}
  }
} 


/* The "responsive" class is added to the ; with JavaScript when the user clicks on the icon. This class makes the topnav look good on small screens (display the links vertically instead of horizontally) */
@media screen and (max-width: 500px) {
  .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;
  }
  }

/* all copyright Jeffrey Hall, Plymouth, Pl1 1LE */
