/* CSS for NEW (test) version of ATKHR */


/* Set page height */
html {
	height: 100%;
    overflow-x: hidden;
}

/* Get non-system fonts */
@font-face {
  font-family: "BoltonLight";
  src:
      local("BoltonLight")
      url("fonts.BoltonLight.woff") format("woff");
}

/* Set basic body features */
body {
    display: flex;
    flex-direction: column;
	min-height: 100%;
    margin: 0;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 1rem;
	line-height: 1rem;
	background-color: #000;
	color: #FFF;
}

/* MAJOR PAGE ELEMENTS: header, nav, main, article, footer */

.headerbox {                /* Header image & text overlay */
    display: inline-block;
    position: relative;
    margin: 0;
    padding: 0;
    border: none;
    background-color: #F5F2E3;
    color: #FFF;
    text-align: center;
    font: 7vw BoltonLight, sans-serif;
}

.centertext {            /* For header image superimposed text */
    position: absolute;
    top: 75%;            /* Set UL corner of block a bit below and right of center of parent. */
    left: 50%;
    transform: translate(-50%, -50%); /* = transform: translateX(-50%) translateY(-50%) [move UL corner left and up] */
    width: 90%;            /* Allow for enough text. */
    color: #F5F2E3;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: auto;
    background-color: #F5F2E3;
    color: #000;
    font-size: 1.6rem;
}

article {
    display: flex;
    flex-direction: column;
    width: 80%;
    line-height: 1.2em;
}

article.allcentered {
    width: 95%;
    align-items: center;
}

article > p {
    max-width: 65ch;
}

footer {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: #181818;
    color: #FFF;
    font-size: 0.9rem;
    margin: 0;
    padding-left: 8vw;
    padding-right: 4vw;
}

.footlinks {
    width: auto;
    padding-right: 2rem;
}

.copyright {
    display: flex;
    align-items: flex-end;
	background-color: transparent;
	color: #FFF;
	font-style: italic;
}

/* Begin hamburger menu styles */
    /* Positioning */
header button {
    position: absolute;
    top: 3%;            /* Set UL corner of block near upper left of parent. */
    left: 3%;
}

    /* Base nav styles */
.hamnav {
    display: none;
    flex-direction: column;
    background: #433D2F;
    padding: 1rem 2rem 1rem 1rem;
    font-size: 1.5rem;
    text-align: left;
    position: absolute;
    top: 0;
    left: 12%;
}

.hamnav a {
    z-index: 1;
    color: #AAA;
    text-decoration: none;
    padding-top: 1rem;
}

    /* Hamburger button */
.menu-toggle {
    width: 30px;
    height: 22px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: #FFF;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

    /* Animate into "X" */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

    /* Show menu when active */
.hamnav.active {
    display: flex;
}
/* End hamburger menu styles */

/* Images */
img {
    max-width: 100%;
    height: auto;
}

/* Text */
h1 {
    font-size: 2rem;
}

/* Lists */
article > ul {
	list-style-image: url("../images/Bullet-Logo-ATKH-Tiny.png");
	margin-left: 3rem;
}

/* Links */
a:link    { color: #390; text-decoration: none;}
a:visited { color: #990; text-decoration: none;}
a:active  { color: #0000CC; text-decoration: none;}
a:hover   { color: #CC0000; text-decoration: underline;}

footer a:link { color: #F5F2E3; text-decoration: none;}
footer a:visited { color: #F5F2E3; text-decoration: none;}

/* Contact Form */
div.contact {
    display: flex;
	flex-direction: column;
	width: 50%;
    @media screen and (width < 400px){
        width: 80%;
    }
	height: auto;
	background: #433D2F;
	color: #FFF;
	margin: 0 auto;
	padding: 1.5rem;
}

div.contact div {
	margin: 0 auto;    /* Center the text */
    max-width: 95%;
}

div.contact div p {
    font-size: 0.5em;
}

div.contact p {
    font-size: 0.5em;
}

/* GRID */
.meet-grid {
	display: inline-grid;
	width: 95%;
	height: auto;
	grid-template-rows: repeat(3, 1fr);
	grid-template-columns: repeat(2, 1fr);
	grid-auto-flow: row;
	grid-auto-rows: auto;  /* Row height adjust to tallest content. */
	grid-auto-columns: 1fr;
	grid-gap: 0.5rem;
	justify-content: space-evenly;
	padding: 0.5rem;
    margin: 1rem;
	background-color: #5C5248;
	color: black;
    word-break: normal; /* Word wrap long lines in grid items */
}

/*	With grid-auto-flow, need only to define one row. */
.meet-grid-item-1 {
	grid-row: 1;
	grid-column: 1;
}

.meet-grid-item-2 {
	grid-row: 1;
	grid-column: 2;
}

/* USE FLEX in MEET GRID ITEMS: */
[class^='meet-grid-item'] {
	display: flex;
	flex-direction: row;
	padding: 0.5rem;
	outline: 2px solid #000064;
	background-color: #CCC;
	font-size: 1.4rem;
	line-height: 1.4rem;
	color: black;
	overflow: hidden;
}

div.horseheadpic {
	display: flex;
	height: 100%;
	width: auto;
	flex: 0 0 15%;
}

div.horseheadtext {
	display: flex;
	flex-direction: column;
	padding-top: 0.5rem;
}

div.horseheadname {
	display: flex;
	Flex-wrap: nowrap;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 1.75rem;
	font-weight: bold;
	line-height: 2rem;
	color: #000064;
	align-items: flex-start;
	padding: 0.5rem;
}

div.horseheadinfo {
	display: flex;
	flex: 0 1 100%;
	align-items: center;
	padding-left: 0.5rem;
}