/*
Theme Name: Mary H. Weir Public Library

Author: Naedia McCann
Description: Custom WordPress theme converted from the original Mary H. Weir Library HTML site.
Version: 1.0
*/

:root {
  --title-font: "Playfair Display", 'Times New Roman', Times, serif;
  --heading-font: "Work Sans", Arial, Helvetica, sans-serif;
  --body-font: "Hind Madurai", Arial, Helvetica, sans-serif;
  --body-size: 1.1em;
  --jet: rgba(53, 53, 53, 1);
  --silver: rgba(206, 206, 206, 1);
  --gray: rgba(166, 166, 168, 1);
  --indigo: #004629;
  --sea: rgba(10, 135, 84, 1);
}
body {
  font-size: 1.1rem;
}

* {
  font-size: inherit;
}

body {
  font-family: var(--body-font);
  margin: 0;
  padding: 0;
  background: #f8f8f8 url("/wp-content/themes/mhw-theme/images/backgroundsecond.png");
  background: #f8f8f8 image-set(
    url("/wp-content/themes/mhw-theme/images/backgroundsecond.png") type("image/png")
  );
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
	font-size: 1.2rem;
}
main div{
  font-size: 1.1rem;
}

h3 {
  font-size: 1.2em;
  color: var(--indigo);
  font-style: italic;
}


main {
  width: 80%;
  margin: 0 auto;
	padding: 0;
}
main section p {
  margin-inline: auto;
}

main section:has(h1) {
  font-size: 1.2rem;
}
#history img{
  margin: 10px;
  box-sizing: border-box;
 
  border: 1px solid var(--indigo);
  border-radius: 10px;
  padding: 0;
  box-shadow: 0px 0px 4px var(--indigo);
}
#history .row div{
  padding-left: 1em;
  padding-right: 1em;
}
main > section{
	width: 100%;
  padding: 1em;
  background-color: #f8f8f8;
  border: 1px solid black;
  box-shadow: 0px 0px 3px black;
  border-radius: 5px;
  margin-top: 2em;
  margin-bottom: 1em;

}

main h1,main h2,main section h2 {
  font-family: var(--heading-font);
  text-align: center;
  font-weight: bold;
  color: var(--indigo);
  text-shadow: 1px 1px 1px black;
}

main h1 {
  font-size: 2.3em;
  margin-top: 0;
  padding: 0;
}

main h2 {
  margin: 0;
  font-size: 2em;
  text-shadow: 2px 2px 4px white;
}

main section h2 {
  font-size: 2em;
  margin: 0;
  margin-bottom: 7px;
  height: 100%;
  width: 100%;
}

section {
  margin: auto;
}

table {
  table-layout: fixed;
}

main section table {
  width: 30%;
  margin: auto;
  padding: 1em;
  text-align: center;
}

header {
  margin: 0;
  padding: 0;
  width: 100%;
  background-color: #f8f8f8;
}

header p#title {
  font-size: 3em;
  font-family: var(--title-font);
  color: black;
  font-weight: bold;
  width: 100%;
  text-shadow: 1px 1px 2px var(--indigo);
  margin-bottom: 0.5rem;
}

header img {
  height: 125px;
  display: inline;
}

header nav {
  background-color: var(--indigo);
}

header nav ul {
  display: flex;
  flex-direction: row;
}
header nav ul > * {
  flex-basis: 100%;
}

header,.link-box:hover,footer {
  border: 1px solid black;
  box-shadow: 0px 0px 3px black;
}
.btn:hover, .btn:focus{
    background-color: black;
    color: white;
    box-shadow: 0px 0px 7px var(--indigo);
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
strong{
  color: var(--indigo);
  font-weight: bold;
}
nav a, nav button {
  display: block;
  color: white;
  padding: 14px;
  text-align: center;
  text-decoration-color: transparent; 
} nav > ul > li > a, nav > ul > li > button {
    text-shadow: 0px 0px 3px black;

}

nav ul li a, nav ul li button {
  width: 100%;
  font-size: 1.2em;
  font-family: var(--heading-font);
  text-align: center;
}
nav ul li{
    box-sizing: border-box;
}

a:focus,
a:active,
button:focus,
button:active {
  background: none;
  color: inherit;
  outline: none;
  box-shadow: none;
}
li a:focus, li button:focus{
  text-shadow: none;
  color: black;
  background-color: #dbdbdb;
  font-weight: bold;

}
nav ul li:focus-visible, *[aria-current] {
    color: black;
    font-weight: bold;
    background-color: #dbdbdb;
    text-shadow: none;
    
    a, button {
        color: black;
        text-shadow:none;
    }
}input:focus{
  border: 2px solid black;
}

*[aria-current] {
  background: #cfded7;
}


.dropdown-menu li {
  text-shadow: none;
}

.dropdown-menu li a:hover, .dropdown-menu li a:focus, #library-links a:focus{
  background-color: var(--indigo);
  color: white;
  font-weight: normal;
}
#childrens main h1 img, #childrens main h2 img, #childrens main h3 img{
  display:inline;
  height: 2em;
}#childrens main h3 img{
  height: 2.5em;
}#childrens main > section{
  border-radius: 35px;
  border: 3px solid var(--indigo);
}

#contact,#email-list,.hour-items {
  text-align: center;
}
iframe {
  width: 100%;
}

.link-box {
  border: 1px solid white;
  box-shadow: 0px 0px 3px white;
}

.link-box:focus{
  outline: 4px solid var(--indigo);
}

.btn {
  background-color: var(--indigo);
  color: white;
  margin-left: 10px;
  margin-right: 10px;
}

footer {
  background-color: var(--indigo);
  color: white;
  text-align: center;
  padding: 0.5em;
  border-top: 1px solid black;
  margin: 0;
  width: 100%;
}

#library-links p {
  list-style-type: none;
  width: 100%;
  text-align: center;
}

.header-w-img{
    display: flex;
    justify-content: center;
}.header-w-img img{
    height: 5.5em;
    width: 5.5em;
    padding: 8px;
    margin-top: 2px;
}

#library-links p a {
  font-size: 1.2em;
  color: var(--indigo);
  padding: 5px;
  text-decoration:underline;
  
}

#library-links p a:hover {
  border: 1px solid black;
  box-shadow: 0px 0px 2px var(--indigo);
}

.in-main {
  border: 3px solid var(--indigo);
  border-radius: 10px;
  width: 40%;
  display: block;
  margin: 1em auto;
  box-shadow: 0px 0px 4px var(--indigo);
}



#resources a {
  padding: 1em;
  text-decoration: none;
  color: var(--indigo);
  font-weight: bold;
  background: #eee;
  border: 1px solid #aaa;
  border-radius: 1rem;
}

#borrowing-fine ul {
  list-style-type: circle;
}

.flex-container,
.flex-contain {
  display: flex;
  align-items: center;
  background-color: #f8f8f8;
}

.flex-container {
  height: 12.5rem;
}

.flex-container img {
  width: 60%;
  height: auto;
  object-fit: contain;
  max-height: 11.25rem;
}


.flex-container p {
  text-align: right;
  width: 38%;
  margin-top: auto;
  margin-bottom: auto;
  padding: 3px;
}

.vertical-line {
  width: 2%;
  height: 50%;
  margin-top: auto;
  margin-bottom: auto;
  border-right: 2px solid var(--indigo);
}

.resource-container, .form-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding: 20px;
  max-width: 75rem;
  margin-inline: auto;
}#childrens main h1, #childrens main h2, #childrens main h3{
  font-family: "Mouse Memoirs";
  font-weight:300;
  text-shadow: none;
  letter-spacing: 3px;

}#childrens main h1{
  font-size: 3.1em;
}
#childrens main h2{
  font-size: 2.7em;
  width: auto;
}#childrens main h3{
  font-size: 2.2em;
  font-style:normal;
}
#childrens .link-box{
}#childrens main section p{

}
input{
  border: 1px solid var(--indigo);
}

.two-column {
  display: flex;
  flex-direction: row;
  max-width: 75rem;
  margin-inline: auto;
}

/* MEDIA QUERIES */

@media (max-width: 80rem) {

  .two-column {
    display: block;
  }
  .in-main {
    width: 70%;
  }
}

@media (max-width: 62rem) {
  header nav {
    background-color: #f8f8f8;
  }

  header nav ul li a, header nav ul li button {
    color: var(--indigo);
    font-weight: bold;
    text-shadow: none;
  }

  header > nav > ul > li a:hover, header > nav > ul > li button:hover {      
    color: white;
    
    background-color: var(--indigo);
  }

  .link-box {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }


  #about{
    padding: 0;
    margin: 0;
  }

  main{
		width: 90%;
  }

  header nav ul {
    flex-direction: column;
  }

}

.construction{
    color:orange;
}

svg.social-button {
  display: inline-block;
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  padding: 0.25em;
  font-size: 1.5rem;
  line-height: 1em;
  fill: currentColor;
}

a:focus, a:hover, #library-links a:focus, #library-links a:hover {
  text-decoration-color: currentColor;
}

@media (max-width: 48rem) {
  .resource-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 40rem) {
  

  
  .form-columns{
    grid-template-columns: 1fr;
  }
  header {
    background-color: #f8f8f8;
  }

  header img {
    display: none;
  }#title{
    text-align: center;
  }

  .flex-container {
    flex-direction: column;
    height: auto;
    align-items: flex-start;
  }

  .vertical-line {
    display: none;
  }

  .flex-container img,
  .flex-container p {
    width: 100%;
    text-align: center;
  }

  .in-main {
    width: 100%;
  }
}

@media (max-width: 33.125rem) {
  main{
    width: 100%;
  }
}

@media (max-width: 25rem) {
  main > section {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    border: 3px solid white;
  }
}@media (max-width: 21.875rem){
  #childrens main >section{
    border: none;
    border-radius: 10px;
  }
}@media (max-width: 20rem){
  #childrens main > section > div > img{
    visibility:hidden;
    width: 0;
  }
}




.flex-container {
    flex-direction: column;
    height: auto;
    align-items: flex-start;
  }

  .vertical-line {
    display: none;
  }

  .flex-container img,
  .flex-container p {
    width: 100%;
    text-align: center;
  }
/*testing:*/
.post-main {
  margin: 2em auto;
  padding: 1em;
  background: white;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border-radius: 10px;
}

.single-post {
  font-family: var(--body-font);
  color: var(--jet);
}

.post-title {
  font-family: var(--heading-font);
  color: var(--indigo);
  font-weight: 700;
  margin-bottom: 0.5em;
}

.post-meta {
  font-size: 0.9em;
  color: var(--gray);
  margin-bottom: 1.5em;
}

.post-content {
  line-height: 1.6;
}

.post-tags {
  font-size: 0.9em;
  color: var(--sea);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 10px;
  align-items: stretch; /* ensures all grid items stretch to equal height */
}

.post {
  width: 100%;
  display: flex;
  flex-direction: column; /* helps internal layout flow vertically */
  justify-content: space-between; /* keeps read more link at bottom */
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #eeeeee;
  transition: box-shadow 0.3s;
  padding: 1em;
  box-sizing: border-box;
  height: 100%; /* ensures equal height cards */
}




.header {
  text-align: center;
  padding: 10px;
  
}
.post-title{
	color: var(--indigo)!important;
  font-family: var(--heading-font);
}

.post-content table{
	width: 70%;
}
.post-content h3{
	font-size: 1.5rem;
}.post-content h4{
	font-size: 1.2rem;
}
.post-tags a{
	color: var(--indigo);
	font-size: 1.3rem;
	font-weight: bold;
}
.post-tags{
	text-align: center;
	border-top: 3px solid #F2f0ef;
	margin-top: 2rem;
	padding: 1em;
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
@media(max-width: 950px){
	.hidden {
  display: none !important;
}

}