/**
 * Theme Name: PuppyTwentyFive
 * Template:   twentytwentyfive
 * ...other header fields
 */

/* stretch main content to fill page */

body {
  display: flex;
  flex-flow: column nowrap;
  min-height: 100vh;
  /*background-image: linear-gradient(#000, #21201c);
  background-attachment: fixed;*/
  background: none;
}

/* page background */

#one, #two {background-attachment:scroll; position:fixed; width:100%;height:100%;min-height: 100%; z-index:-1; } 

#one { background:url('https://www.puppygames.net/news/wp-content/themes/puppytwentyfive/assets/images/home-top.jpg') center top no-repeat transparent; background-size:100% auto; opacity:1; }
#two { bottom:0em; background:url('https://www.puppygames.net/news/wp-content/themes/puppytwentyfive/assets/images/home-bottom.jpg') center bottom no-repeat transparent;  background-size:100% auto; opacity:0;}

/* editor */

h1.editor-post-title { 
  font-size: 2.0em;
  line-height: 0.85em;
  margin: 0 0 0.5em;
  padding: 0;
} /* post title shows as h1, rather than h2, in editor? ? */

/* set max-width and margins of main column */

div.wp-site-blocks {
  flex: 1 0;
  max-width: clamp(1000px, 60vw, 1400px); /* same width for all ? */
  margin: clamp(30px, 6vw, 50px) !important;
  margin-top: 2rem !important;
  padding:0 !important;
  align-self: center;
}

h1.wp-block-site-title {
  margin: 0 auto 0 0;
  margin-block-start: 0rem !important;
  margin-block-end: 2rem !important;
}

@keyframes headingAnim {
  from { text-shadow:0 0 0.25em hsla(22, 100%, 74%, 0.3) }
  to { text-shadow:0 0 0.2em hsla(24, 100%, 74%, 0.5) }
}

@keyframes svgAnim {
  from { filter: drop-shadow(0 0 2rem hsla(22, 100%, 74%, 0.5)) }
  to { filter: drop-shadow(0 0 1rem hsla(24, 100%, 74%, 1)) }
}

h1.wp-block-site-title a, h1.wp-block-site-title a::before {
  animation-duration: 0.5s;
  animation-direction: alternate;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
}

h1.wp-block-site-title a::before {
  content: url(https://www.puppygames.net/news/wp-content/themes/puppytwentyfive/assets/images/PBC.svg);
  display: block;
  max-width: 30rem;
  margin-bottom: -0.5rem;
  animation-name: svgAnim;
}

h1.wp-block-site-title a {
  color: #c9bfb04a !important;
  line-height:1;
  text-shadow:0 0 0.3em hsla(17, 100%, 74%, 0.3);
  animation-name: headingAnim;
}


.wp-site-blocks :focus {
  outline-style: none !important; 
}

.wp-block-group p {
  margin-block-start: 1rem;
}

.wp-block-group h3.wp-block-heading {
  margin-block-start: 1.5rem;
}


/* override main page ul and li stuff */

main ul, .wp-site-blocks ul {
  margin: 0;
}

main li, .wp-site-blocks li {
  padding: 0;
  max-width: initial;
}

li.wp-block-post {
  padding: 0;
  max-width: max-content;
}

ul.wp-block-list {
  margin: 1em 1em 1.25em;
}

ul.wp-block-list li {
  margin: 0 0 0.5em;
}

.edit-post-link {
  position: absolute;
  right: 0;
  top: 0;
  font-family: 'puppy';
  text-decoration: none;
}

ul.puppy-posts.is-layout-flow, ul.puppy-posts.columns-1 {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

ul.puppy-posts li, div.puppy-single-post {
  position: relative;
}

ul.puppy-posts li h2.wp-block-post-title.has-large-font-size, .puppy-single-post h2 {
  margin: 0 0 1.5rem;
}


.wp-block-image, .wp-block-video {
  margin: 1.25rem 0;
}

.wp-block-image img, .wp-block-video video{
  max-width: 800px
}

.wp-block-image.alignwide img, .wp-block-video.alignwide video, 
.wp-block-image.size-full img, .wp-block-video.size-full video {
  max-width: 100%;
}


/* more posts list */

#puppy-more-posts {
  margin: 2rem 0;
}

#puppy-more-posts h3 {
  margin-bottom: 1.25rem;
}

.puppy-more-posts-post {
  display: flex;
  gap:1rem;
  align-items: flex-start;
}

.puppy-more-posts-post time {
  font-family: 'puppy';
  position: relative;
  top: 0.125rem;
}

.puppy-more-posts-post h4 a {
  margin-block-start: 0;
}

.puppy-more-posts-post h4 a {
  text-shadow: none;
  text-decoration: none;
}


/* comments */

.puppy-comments {
  margin-block-start: 3rem;
}

.puppy-comments h2 {
  margin: 2rem 0;
}

.puppy-comments ol.wp-block-comment-template{
  margin:0;
}

.puppy-comments .wp-block-avatar {
  margin-right: 1rem;
}

.puppy-comments .wp-block-comment-date, .puppy-comments .wp-block-comment-author-name {
  margin-block-start: 0;
}

.puppy-comments .wp-block-comment-date a, .puppy-comments .wp-block-comment-author-name a, div.puppy-comments .button a {
  text-decoration: none;
  text-transform: uppercase;
  color: var(--wp--preset--color--contrast);
}

.puppy-comments .wp-block-comment-date a:hover, .puppy-comments .wp-block-comment-author-name a:hover, div.puppy-comments .button a:hover {
  color: white;
}

.puppy-comments textarea {
  max-width: initial;
}

.puppy-comments .wp-block-post-comments-form .comment-reply-title {
  margin: 0 0 1rem;
}

div.puppy-comments div.button {
  min-width: 0;
  padding: 0;
}

div.puppy-comments .button a {
  min-width: 0;
  padding: 0 1rem;
  background: none;
}

#cancel-comment-reply-link {
  text-decoration: none !important;
  margin-left: 0.5rem;
  text-shadow: none;
}

div.puppy-comments .comment-form label {
  min-width: 3.5rem;
  text-align: left;
}

.comment-form-cookies-consent input {
  width: 1.75rem;
  height: 1.75rem;
  margin-right: 0.75rem !important;
  border: none !important;
}

/* post footer */

.blah {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 1rem 0;
  column-gap: 2rem;
  row-gap: 0.25rem;
  align-items: flex-end;
}

#puppy-single-page nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  font-family: 'puppy';
  column-gap: 2rem;
  row-gap: 0.25rem;
  margin-block-start: 0;
  text-transform: uppercase;
}

#puppy-single-page nav .wp-block-post-navigation-link {
  margin-block-start: 0;
}

.puppy-post-footer {
  position: relative;
  margin: 1.5rem 0;
  max-width: 100%;
}

.blah .puppy-post-footer {
  margin:0;
}

.puppy-post-footer > div {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  gap: clamp(0.75rem, 1.5vw, 1rem);
  row-gap: 0.25rem;
}

.taxonomy-category a {
  text-transform: uppercase;
  text-decoration: none;
}

.wp-block-puppy-comment-counter a, button {
	font-family: 'puppy' !important;
}

.wp-block-search__input {
  border:none !important;
  margin:0;
}

/* share buttons */

ul.wp-block-outermost-social-sharing {
  gap:0.75rem;
  gap:clamp(0.5rem, 1.5vw, 0.75rem);
  flex-wrap: nowrap;
  margin: 0.25rem 0;
}

ul.wp-block-outermost-social-sharing li.outermost-social-sharing-link {
  padding: 0;
}

li.outermost-social-sharing-link svg {
  height: 1em !important;
  width: 1em !important;
}

li.outermost-social-sharing-link a:hover {
  color: #fff !important;
}


/* 404 / search */

#puppy-404-page main {
  display: flex;
  align-items: center;
  column-gap: 3rem;
  flex-wrap: wrap-reverse;
  justify-content: center;
}

#puppy-404-page main > div {
  flex: 1 0;
  min-width: 20rem;
  max-width: 30rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#puppy-404-page main > figure {
  flex: 0 1;
}

#puppy-404-page main > figure > img {
  right: -3rem;
  bottom: -1rem;
  position: relative;
}

#puppy-search {
  display: flex;
  flex-direction: column;
  gap: 1.0rem;
  margin: 2rem 0;
}

div.wp-block-search__inside-wrapper {
  align-items: center;
}

input.wp-block-search__input {
  height: 1.5em;
  border-radius: 4px;
}


/* smaller screens */

@media (max-width: 1024px) {

  div.wp-site-blocks {
    margin: auto 4vw !important;
  }

}

@media (max-width: 780px) {

  div.wp-site-blocks {
    margin: auto 3vw !important;
  }

}

