/*!
Theme Name: JohnCooking Theme
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: johncooking-theme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

JohnCooking Theme is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

:root {
  --primary-color: #003049;
  --white-color: #fff;
  --input-color: #c9c9c9;
  --nav-bottom-border: #939393;
  --accent-color: #FF884A;
}

* {
  box-sizing: content-box;
}

nav ul {
  padding-left: 0;
  display: flex;
}
nav li {
  list-style: none;
  margin-right: 1rem;
}
nav a {
  text-decoration: none;
  color: var(--primary-color);
}

img {
  max-width: 100%;
}

a {
  border-radius: 20px;
}
input[type="submit"] {
  color: var(--white-color);
}
input[type="text"] {
  border-radius: 0.9375rem;
  border: 1px solid var(--input-color);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}
.mailpoet_text {
  border-radius: 0.9375rem !important;
  border: 1px solid var(--input-color) !important;
  padding: 12px !important;
  font-size: 16px !important;
  color: var(--primary-color) !important;
}
.mailpoet-heading {
  color: var(--primary-color) !important;
}

.site-branding {
  position: relative;
}
.cycle-image {
  position: absolute;
  top: 1px;
  left: -1px;
  animation: rotation 30s infinite linear;
  z-index: -1;
}
@keyframes rotation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  margin-bottom: 5.44rem;
  border-bottom: 1px solid var(--nav-bottom-border);
}

/* Home Latest */
.list ul {
  text-decoration: none !important;
  list-style: none !important;
  padding-left: 0rem;
}
.recipe-post a {
  text-decoration: none;
  color: var(--primary-color) !important;
}
.home .recipe-post h2 {
  font-size: 1.25rem;
  font-weight: 500;
  font-family: "Work Sans", Sans-serif;
}

.home .post-thumbnail {
  display: none;
}
.home-latest {
  margin-right: 50px !important;
}
.home-latest .entry-content {
  margin-bottom: 2rem !important;
}

.home-latest .recipe-post {
  display: block;
  border-bottom: 1px solid #c1c1c1;
  margin-top: 0px !important;
  margin-bottom: 40px !important;
  width: 100%;
  padding: 0 1.25rem !important;
}
.home-3-row-recipes .recipe-post {
  margin-top: 0 !important;
  margin-bottom: 50px !important;
  padding: 40px !important;
}
.home-3-row-recipes .recipe-post .content-wrap {
  width: 70% !important;
}

.home .content-wrap {
  width: 100% !important;
  padding: 0 !important;
}
.home .floated-meta {
  display: none;
}
.home .entry-footer {
  display: none !important;
}

.home .post-cat {
  display: none !important;
}



/* Home 3 Rows Recipes */
.home-3-row-recipes .recipe-post {
  background-color: #e3ecf3 !important;
  border-radius: 25px;
  width: 100% !important;
  position: relative;
  height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home-3-row-recipes .recipe-post::after {
  content: "";
  position: absolute;
  background-image: url(./assets/images/recipe-bg.png);
  background-size: cover;
  top: 0;
  right: 0;
  width: 30%;
  height: 100%;
}
.home-3-row-recipes .recipe-post:nth-child(even)::after {
  content: "";
  position: absolute;
  background-image: url(./assets/images/recipe-bg.png);
  background-size: cover;
  top: 0;
  left: 0;
  width: 30%;
  height: 100%;
  transform: rotateY(180deg);
}

.home-3-row-recipes .recipe-post:nth-child(even) .content-wrap {
  padding-left: 5rem !important;
  transform: translateX(200px);
}

.home-3-row-recipes .post-thumbnail {
  display: none;
}
.home-3-row-recipes .post-cat {
  display: none !important;
}
.home-3-row-recipes .floated-meta {
  display: none !important;
}

.home-3-row-recipes .entry-footer {
  display: none !important;
}

/* Form */
.comment-form-comment label {
  display: none !important;
}

/* Recipes All Page */
.page-id-232 .post-thumbnail {
  display: none;
}
.page-id-232 .content-wrap {
  width: 100% !important;
  padding: 0 !important;
}
.page-id-232 .floated-meta {
  display: none;
}
.page-id-232 .entry-footer {
  display: none !important;
}
.page-id-232 .post-cat {
  display: none !important;
}
.page-id-36-latest .list {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
}

.page-id-232 .recipe-post {
  /* display: block; */
  border-bottom: 1px solid #c1c1c1;
  width: 100%;
  padding-bottom: 1.25rem;
}

.page-id-234 h2 {
  font-size: 1.25rem;
  color: var(--primary-color);
  text-decoration: none;
}
.page-id-234 a {
  color: var(--primary-color);
  text-decoration: none;
}

/* Blog */
.blog-posts-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.editor-container {
	max-width: 992px;
	margin: 0 auto;
}

.single main .entry-content p:nth-child(1) {
    display: none;
}
.single p {
	font-size: 18px !important;
	color: black !important;
}
.single h1 {
	font-size: 28px !important;
}
.single-recipe .dr-poweredby {
  display: none !important;
}
.single .post-thumbnail img {
  width: 100%;
  object-fit: cover;
  margin-bottom: 2rem;
  margin-top: 1rem;
}
.single .updated {
	display: none;
}
.single .published {
	font-style: italic;
}
.single .nav-links {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 0;
	margin: 1rem 0;
	border-bottom: 1px solid #c1c1c1;
	border-top: 1px solid #c1c1c1;
}
.single .nav-previous a {
	display: flex;
	flex-direction: column;
}
.single .nav-next a {
	display: flex;
	flex-direction: column;
}
.single .nav-subtitle {
	font-weight: bold;
}
.single .dr-summary-holder {
	padding: 0!important;
}

.single .entry-header {
	margin-bottom: 1rem;
}

.single textarea {
	width: 100%;
}

/* Footer */
.site-footer .site-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 50px;
  margin-top: 30px;
}
.site-footer .site-info a {
  color: var(--primary-color) !important;
  font-weight: 600;
}

.copyrights-disclaimer {
  display: flex;
  flex-direction: column;
  align-items: end;
}

.footer-link {
  margin-bottom: 1.5rem;
}

@media (max-width: 1280px) {
  .home-3-row-recipes article:nth-child(even) .content-wrap {
    padding-left: 13rem !important;
  }
}
@media (max-width: 992px) {
	.editor-container {
		max-width: 720px;
	}

  .subscribe-section img {
    display: none !important;
  }
  .subscribe-section .mailpoet_paragraph {
    margin-bottom: 1rem !important;
  }
  .subscribe-section .mailpoet_text {
    width: 100% !important;
  }
  .home-3-row-recipes article:nth-child(even) .content-wrap {
    padding-left: 8rem !important;
  }
  .home-3-row-recipes article {
    height: auto;
  }
}
@media (max-width: 768px) {
	.editor-container {
		max-width: 540px;
		padding: 1rem;
	}
  .home-latest {
    margin-right: 0 !important;
    margin-bottom: 40px !important;
  }
  .nav-search {
    display: none;
  }
  .site-branding {
    right: 20px;
  }
}

@media (max-width: 360px) {
  .main-nav {
    flex-direction: column;
  }
  .site-branding {
    right: 0px;
  }
}
