/* By Jerry A. Sierra for MENU3 GRID pages  */
/* -- Updated on 2/18/20 -- */

/* ============================ html ======  */

* {
  margin: 0;
  border: 0;
  padding: 0;
}

* {
	box-sizing: border-box;
}

header,
footer,
figcaption,
figure,
nav {
display: block;
}

body {
    color: black;
    background: #f8f8ff;  /* -- Ghostwhite */
    font-family: "Courier New", Palatino, "Lucida Console", Serif;
	font-size: 100%;
	font-size-adjust: .5;
}

.bod2 {
	 width: 100vw;
	 height: 100vh;
	background-color:aliceblue;
}

ul {
	list-style: none;
	padding: 5px 5px;
}
li {
	text-align: left;
	padding: 5px;
	font-size: small;
}
header {
	display: flex;
	align-items: flex-start;
	flex-basis: 90%;
	justify-content: center;
}
footer {
	border-top: 2px;
	padding: 15px;
}

/* =====================================  Fonts  ========== */

li,
ul,
.nav {
    font-family: Poppins, "Lucida Console", Palatino, Georgia, Serif;
  }

  footer,
  h1,
  h2,
  h3,
  h4,
  .elements > li {
    font-family: Sniglet, Helvetica, Tahoma, Arial, Sans-serif;
	padding-right: 14px;
 }

/* =====================================  Body Parts  ========== */

.elements {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: space-around;
	align-items: center;
	flex-flow: wrap;
	padding: 1px;
}
ul > li > .elements {
	display: flex;
	justify-content: space-around;
	align-items: stretch;
	flex-flow: wrap;
}
.wrapper {
	display: grid;
	min-width: 100%;
	min-height: 100%;
	grid-gap: 0;
	grid-template-columns: 1fr;
	grid-template-rows: 80px 100px 140px 1fr 75px 75px;
	grid-template-areas: 
	"header"
	"mainbar"
	"article"
	"article3"
	"search"
	"footer";	
    justify-content: stretch;
    align-content: stretch;
	grid-auto-flow: column;
}

.wrapper > .elements {
	justify-content: flex-start;
	padding: 2px;
}
 
.header {
	grid-area: header;
	display: flex;
    background: #f8f8ff; /* --- Ghost White ---- */
	align-content: space-around;
	align-self: stretch;
	justify-items: center;
	flex-wrap: wrap;
}

.article {            /* --- Main Offerings --- */
	grid-area: article;
	padding: 0;
	display: flex;
	justify-items: center;
	align-items: center;
	background: rgba(221,155,107,0.60);
	overflow:auto;
}
.article > li {
	font-size: small;
}
.article2 {
	grid-area: article2;
	display: flex;
    background: rgba(208,240,247,0.65);
	align-self: center;
	justify-content: center;
	padding: 4px;
}
.article3 {
	grid-area: article3;
    background: #EDC6C8;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 5px;
	padding-left: 2px;
}
.sidebar1,
.article2 {
	display: none;
}

.mainbar {           /* --- Mission Statement --- */
	grid-area: mainbar;
	display: flex;
	flex-direction: row;
    align-items: center;
	justify-content: center;
	background: rgba(225,174,192,0.60);
	padding-top: 5px;
}
.mainbar > h2 {
    font-size: medium;
	clear: both;
}
.search {
	grid-area: search;
	background: #D6F2D6;
	justify-items: center;
	align-items: center;
}
.footer {
	grid-area: footer;
    background: #D6F2D6;
	justify-items: center;
	align-items: center;
}

div {
}

/* ------------------ Headings ---------- */

h1 {
    font-size: 105%;
    font-variant: small-caps;
    color: #000;
}
.fancy {
    font-size: 105%;
    color: #191970; /* Midnight Blue*/
}

h2 {
    color: #000000;  /* ----- Drk Blue ----- */
	font-weight: 600;
}
h4 {
   color: #8B4B58;
}
h5 {
	padding: 7px 6px;
    font-size: 90%;
}


/*  ---------------- Paragraphs ----------------  */
 
.smlP {
	font-size: small;
    font-weight: 400;
	color: #A37C7C;
}

/* ---------- Linking Styles - Typical ------- */

active,
visited, 
a:hover,
a:link  {
    font-family: Poppins, "Lucida Console", Palatino, Georgia, Serif;
	font-style:normal;
    font-weight: 600;
}

a:link {
    color: #0000FF;  /* --- Blue --- */
}
a:visited {
    color: #000000;  /* -------- Black --- */
}
a:hover {
    color: red;
    background: #fffaf0; /* --- Floral White */
}
a:active {
    color: #0000DB; /* --- Blue --- */
    background: #FFF;
}

 
/* ================================ Images  ================== */

img {
  	margin: 0;
    border: 2px;
    padding: 5px;
	max-width: 100%;
    height: auto;
    visibility: visible;
	opacity: 1.0;
}

.img2 {
	border: 2px;
    border-radius: 12px;
	color: #000;    /* Blck Brdr */
}
.imgRotate {
    padding: 5px;
	-webkit-transform:rotate( 3deg);
	-moz-transform:rotate( 3deg);
	-o-transform:rotate( 3deg);
	-ms-transform:rotate( 3deg);
	transform:rotate( 3deg);
}


/* ======================= For Screens  500 Px ====== */

@media screen and (min-width: 500px) {

.article3 {
       background: rgba(237,228,242,0.45);  
	   flex-direction: column;
}

}

/* ======================= For Screens  600 Px ====== */

@media screen and (min-width: 600px) {
	
.bod2 {
	background-image: url(http://historyofcuba.com/images/New/HoC-NewCover-4.jpg);
       background-repeat: no-repeat;
       background-position: center center;
       background-attachment: fixed;
       -webkit-background-size: cover;
       -moz-background-size: cover;
       -o-background-size: cover;
       background-size: cover;
}
	
.mainbar > h2 {
	font-size: small;
}


header {
		justify-content: space-around;
	}
	
h1 {
    font-size: 115%;
	padding-left: 4px;
	padding-right: 2%;
}
.fancy {
    font-size: 120%;
}
li {
	font-size: medium;
}	
.wrapper {
	grid-template-columns: 1fr 1fr 1fr;
	grid-template-rows: 80px minmax(100px, 180px) minmax(180px, 1fr) 85px;
	grid-template-areas: 
	"header    header    header"
	"mainbar   article   article"
	"article3  article3  article3"
	"search    footer    footer";	
}	

}

/* ======================= For Screens  800 Px ====== */

@media screen and (min-width: 800px) {

div {
	width: 100%;
}

.srch {
    	display: block;
		position:absolute;
        background: D6F2D6;
		bottom: 5px;
		left: 10%;
		width: 300px;
}

.mainbar > h2 {
	font-size: medium;
    padding-left: 15px;
}
	
}

/* ====================================== For Screens 900 Px ===== */

@media screen and (min-width: 900px) {


h1 {
		font-size: 180%;
	}
.fancy {
    font-size: 200%;
}
	
li {
	padding: 5px 0 ;
}

img {
	max-width: 90%;
    height: auto;
}

 }

/* ======================================== For Screens  1200px ==== */

@media screen and (min-width: 1200px) {

.center {
	    width: 80%;
	    margin-top: 8px;
	    margin-left: 210px;
	    padding: 25px;
 }
.fancy {
    font-size: 230%;
}	

                               /* ---- GRID for 1200px --- */

.wrapper {
	grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
	grid-template-rows: 80px 180px 1fr 90px;
	grid-template-areas: 
	" .   header    header    header    header    header"
	" .   mainbar   mainbar   article   article   sidebar"
	" .   article2  article3  article3  article3  sidebar"
	" .   search    footer    footer    footer     footer";	
}

.wrapper > .elements {
	justify-content: flex-start;
	padding: 2px;
}

.header h1 {
	margin-right: 10%;
}
.article {
	padding-top: 5px;
}
.article > ul {
	justify-content: center;
}

.article2 {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
}
.article3 {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.sidebar1 {
	grid-area: sidebar;
	display: flex;
	justify-content: space-around;
	align-content: flex-end;
	background: rgba(141,238,159,0.48);
}

.mainbar {
	padding-top: 15px;
}
.mainbar > h2 {
	font-size: large;
}

.wrapper > .elements {
	padding: 0;
}
.wrapper > li {
	padding: 0;
}
	} 
