:root {
  --clr-green-pal: #1b531c;
  --clr-white-pal: #fff;
  --clr-brown-pal: #594236;
  --clr-grey-pal: #5d576b;
  --clr-lavender: #d8d4f2;

  --ff-primary: "Roboto", sans-serif;
  --ff-accent: "Playfair Display", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--ff-accent);
  font-weight: 400;
  font-size: 1.3125rem;
  line-height: 1.6;
}

body,
h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--ff-accent);
  font-weight: 900;
  line-height: 1;
}

img {
  max-width: 100%;
}

/*.top-strap {
  background-image: url(./DCWebsitePhotos/misc/pexels-black-leather-texture-cropped-b.jpg);
  background-position: 70% 50%;
  color: var(--clr-white-pal);
  padding: 0.5rem;
}
.top-container {
  display: flex;
  justify-content: space-between;
  height: 2rem;
}
@media screen and (max-width: 1200px) {
  .top-strap {
    display: none;
  }
}*/

header {
  background-image: url(pexels-black-leather-texture-cropped-b.jpg);
  background-position: 30% 50%;
  text-align: center;
  position: fixed;
  width: 100%;
  z-index: 999;
}
.logo-writ-div {
  padding-top: 6rem;
}
.logo {
  width: 60%;
  padding: 0.2em;
}
.nav-toggle {
  display: none;
}
.nav-toggle-label {
  position: absolute;
  top: 0;
  left: 0;
  margin-left: 1em;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-toggle-label span {
  color: white;
  font-size: 1.5em;
  position: relative;
}
nav {
  position: absolute;
  text-align: left;
  top: 100%;
  left: 0;
  background-image: url(pexels-black-leather-texture-cropped-b.jpg);
  background-position: 30% 90%;
  width: 100%;
  transform: scale(1, 0);
  transform-origin: top;
  transition: transform 400ms ease-in-out;
}
nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
nav li {
  margin-bottom: 1em;
  margin-left: 1em;
}
nav a {
  color: red;
  text-decoration: none;
  font-size: 1em;
  text-transform: uppercase;
  opacity: 0;
  background: linear-gradient(
    to bottom,
    var(--clr-green-pal) 0%,
    var(--clr-green-pal) 100%
  );
  background-position: 0 100%;
  background-repeat: repeat-x;
  background-size: 4px 4px;
  color: #fff;
  text-decoration: none;
  transition: background-size 0.6s;
}
nav a:hover {
  background-size: 4px 50px;
}
.nav-toggle:checked ~ nav {
  transform: scale(1, 1);
}
.nav-toggle:checked ~ nav a {
  opacity: 1;
  transition: opacity 250ms ease-in-out 250ms;
}

@media screen and (min-width: 800px) {
  .nav-toggle-label {
    display: none;
  }
  header {
    display: grid;
    grid-template-columns: 0.3fr auto minmax(600px, 3fr) 0.3fr;
  }
  .logo {
    grid-column: 2/3;
  }
  nav {
    all: unset;
    grid-column: 3/4;
    display: flex;
    justify-content: flex-end;
    align-items: center;
  }
  nav ul {
    display: flex;
    justify-content: flex-end;
  }
  nav li {
    margin-left: 3em;
    margin-bottom: 0;
  }
  nav a {
    opacity: 1;
  }
}

@media screen and (max-width: 800px) {
  .logo {
    width: 20%;
  }
  nav a {
    background: none;
  }
}

.logo-writ {
  width: min(90%, 30.5rem); /* This means min-with 80%, max-width 40.5rem*/
  display: block;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem 0;
}

section {
  padding: 3rem;
  display: block;
}

@media (min-width: 40em) {
  section {
    padding: 2rem 0;
  }
}

.end {
  color: var(--clr-green-pal);
  text-align: center;
  font-size: 0.8em;
}

.sidebar div {
  background-color: var(--clr-white-pal);
  background-position: 0% 80%;
  width: 10rem;
  padding-left: 0rem;
  position: absolute;
  top: 17.5rem;
  border-radius: 1.5rem;
  height: 45rem;
  background-color: white;
}
.sidebar a {
  color: white;
  display: block;
  padding: 0.5rem;
  text-decoration: none;
  transition: 0.2s ease-in-out;
  border-color: transparent;
  border-width: 0.01rem;
  border-style: solid;
  border-radius: 1rem;
  background-image: url(pexels-black-leather-texture-cropped-b.jpg);
  background-position: 55% 50%;
  width: 90%;
  position: relative;
  top: -6.85rem;
}
.linkp {
  margin-top: 0.6rem;
  margin-bottom: 1rem;
}
.sidebar a:hover {
  transform: translateX(1rem);
}
@media screen and (max-width: 1090px) {
  .sidebar {
    display: none;
  }
}

.container {
  display: flex;
  flex-direction: column-reverse;
  position: relative;
  top: -4rem;
}
.image {
  padding-bottom: 2rem;
}
.click {
  position: relative;
  width: auto;
}
.info {
  position: relative;
  text-align: center;
  padding: 0 2rem;
}

.click a {
  color: white;
  text-decoration: none;
  border: 2px solid #1b531c;
  border-radius: 10px;
  padding: 0.75rem;
  font-size: larger;
  background-color: #1b531c;
}

@media screen and (min-width: 1090px) {
  .container {
    flex-direction: row;
    margin-left: 11rem;
  }
  .info {
    padding: 6%;
    flex-basis: 80%;
  }
  .image {
    position: relative;
    top: -5rem;
    height: 80%;
  }
  .image img {
    border-radius: 2rem;
    height: 80%;
  }
}
