/*!
Theme Name: dhomeimprovement
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: dhomeimprovement
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.

dhomeimprovement 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/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */












* {
  box-sizing: border-box;
}
body {
  background: #ededed;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
}
main {
  flex: 1 0 auto;
  padding: 1rem 2rem;
}
p {
  margin: 1em 0;
}
header {
  background: #333;
  color: #fff;
  display: flex;
  line-height: 3rem;
  flex-direction: row;
  justify-content: space-between;
  padding: 0 2rem;
  width: 100%;
}
header a,
header a:active,
header a:visited {
  color: #fff;
  text-decoration: none;
}
/**********************/
/* Full screen search */
/**********************/
#search {
  align-items: center;
  background: rgba(0, 0, 0, 0.975);
  height: 0;
  display: flex;
  justify-content: center;
  opacity: 0;
  position: fixed;
  transition: all 0.5s;
  width: 100vw;
  will-change: transform, opacity;
  z-index: -1;
}
#search:target {
  height: 100vh !important;
  opacity: 1;
  width: 100vw !important;
  z-index: 2;
}
#search:target .close-btn {
  display: block;
}
#searchbox {
  background: transparent;
  border: solid #fff;
  border-width: 0 0 1px 0;
  color: #fff;
  flex: 1 0 auto;
  font-size: 2rem;
  height: 2rem;
  max-width: 50%;
  outline: 0;
  padding: 2rem 1rem;
}
.close-btn {
  display: none;
  color: #fff;
  font-size: 2rem;
  position: absolute;
  top: 0.5rem;
  right: 2rem;
}
/**********************/
/*   Responsive Menu  */
/*   (mobile first)   */
/**********************/
#nav {
  position: relative;
}
#nav ul {
  align-items: center;
  background: rgba(0, 0, 0, 0.95);
  color: #fff;
  display: flex;
  flex-direction: column;
  font-size: 2rem;
  height: 0;
  justify-content: center;
  left: 0;
  margin: 0;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  position: fixed;
  transition: all 0.5s;
  top: 0;
  will-change: opacity;
  width: 100vw;
}
#nav ul li {
  list-style: none;
  padding: 1rem 0;
}
#nav:target ul {
  height: 100vh !important;
  left: 0;
  opacity: 1;
  top: 0;
  width: 100vw !important;
}
#nav:target .close-btn {
  display: block;
  position: fixed;
}
@media screen and (min-width: 768px) {
  #responsive-menu-trigger,
  #close-menu {
    display: none;
  }
  #nav ul,
  #nav:target ul {
    background: none;
    display: inline-flex;
    flex-direction: row;
    font-size: 1rem;
    height: auto !important;
    opacity: 1;
    padding: 0;
    pointer-events: initial;
    position: static;
    transition: none;
    width: auto !important;
  }
  #nav ul li,
  #nav:target ul li {
    padding: 0;
  }
  #nav ul li a,
  #nav:target ul li a {
    text-decoration: none;
    font-size: 1rem;
    margin-right: 1rem;
  }
  #nav .close-btn,
  #nav:target .close-btn {
    display: none;
  }
}
/**********************/
/* fly in directions  */
/**********************/
#search.left,
#nav ul.left {
  left: 0;
  height: 100vh;
  width: 0;
}
#search.right,
#nav ul.right {
  height: 100vh;
  width: 0;
  right: 0;
  left: auto !important;
}
#search.bottom.left,
#nav ul.bottom.left,
#search.bottom.right,
#nav ul.bottom.right,
#search.top.left,
#nav ul.top.left,
#search.top.right,
#nav ul.top.right {
  height: 0;
}
#search.bottom,
#nav ul.bottom {
  bottom: 0;
  top: auto !important;
}
#search.fade,
#nav ul.fade {
  height: 100vh;
  width: 100vw;
  transition: opacity 0.5s;
}
