:root {
  --light-grey: #999;
  --dark-grey: #555;
  --plum: #7d3a67;
  --plum-hover: #814b65;
  --rose: #ab305f;
  --rose-hover: #8e2a4f;
  --error-bg: #ffdddd;
  --error-text: #8e2a4f;
  --success-bg: #e6f3e6;
  --success-text: #2e8b57;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Makes the jump links smooth */
html {
  scroll-behavior: smooth;
}

body {
  font-family: josefin-sans, sans-serif;
  font-weight: 300;
  font-style: normal;
  text-align: center;
  line-height: 1.6;
}

.wrapper {
  background-color: white;
  /* margin-top: 2em; */
  max-width: 90vw; /* Changed this from 80vw to 90vw, is this OK? */
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 6em;

  @media (min-width: 40em) {
    max-width: 80vw;
    margin-bottom: 8em;
    margin-left: auto;
    margin-right: auto;
  }

  @media (min-width: 80em) {
    max-width: 1000px;
  }
}

header {
  background-color: white;
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  height: 100px; /* I've set header height, this relates to position of nav-list*/

  @media (min-width: 40em) {
    /* height: 150px; */
    flex-direction: column;
    border-bottom: none;
  }
}

/* Position relative for positioning of Jo's name!!! */
.add-name {
  @media (min-width: 40em) {
    position:relative;
    width: 100%;
    border-bottom: 1px solid #ddd;
    padding: 1em;
    background-color: white;
  }
}

.logo {
  background-color: white;
  display: flex;
  gap: 0.5em;
  align-items: end;
  justify-content: center;
  padding-right: 0.2em; /*This is to create the triangular formation with 'Plum Birdy' text*/
}

.logo img {
  @media (max-width: 40em) {
    width: 40px;
  }
}

h1 {
  font-family: chauncy-pro, sans-serif;
  font-weight: normal;
  font-weight: 400;
  font-size: 1.2rem;

  @media (min-width: 40em) {
    font-size: 1.5rem;
    padding-right: 1.5em; /*This is adjusting the centering of the heading text*/
  }
}

/* Version 2 h3 */

h3 {
  font-weight: 400;
  font-size: 0.6rem;
  text-align: right;

  @media (min-width: 40em) {
    font-size: 1rem;
    text-align:center;
    position: absolute;
    bottom: 8px;
    left: 0;
    
  }
}

p {
  display: block;
  margin-top: 1em;
  margin-bottom: 1em;
  margin-left: 0;
  margin-right: 0;
}

.aoc,
.cta {
  margin-bottom: 2em;
}

nav {
  @media (min-width: 40em) {
    width: 100%;
  }
}

.nav-list {
  background-color: white;
  list-style-type: none;
  display: flex;
  gap: 1.5em;
  align-items: center;
  justify-content: center;
  padding: 0.5em;
}

h2,
nav a {
  text-transform: uppercase;
  font-family: amatic-sc, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.3rem;
}

a {
  color: black;
  text-decoration: none;
}

/* .nav-item a:hover {
  color: #666;
} */

.hamburger {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
  width: 2.5rem; /* Adjust total width */
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--plum);
  margin: 6px 0;
}

@media (max-width: 40em) {
  .nav-list {
    overflow: hidden;
    height: 0;
    visibility: hidden;
    opacity: 0;
    /* transform: translateY(-20px); */
    transition: all 0.5s ease;
    position: absolute;
    background-color: white;
    top: 100px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0em;
    border-top: 2px solid var(--plum);
    padding: 0;
  }

  .nav-item {
    margin: 0.5rem 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  .hamburger {
    display: block;
  }

  .nav-list.show {
    height: auto;
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    padding: 1.5em;
  }

  .nav-list.show .nav-item {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s; /* Delay items until menu is open */
  }
}

main {
  margin-top: 6em;

  @media (max-width: 40em) {
    margin-top: 4em;
  }
}

.main-about {
  @media (max-width: 40em) {
    margin-top: 2.5em;
  }
}

.home,
.contact-img {
  margin-left: auto;
  margin-right: auto;
  width: 65vw;
  max-width: 400px;
}

/* ART page styling */

.grid-gallery {
  display: grid;
  gap: 1em;
  grid-template-columns: 1fr 1fr 1fr;
  width: 100%;
}

/* Custom GLightbox caption styles */
.glightbox-container .gslide-description {
  background: transparent !important;
  color: white !important;
  text-align: left !important;
}

.glightbox-container .gslide-desc {
  font-family: inherit !important;
}

i {
  font-style: italic;
}

@media (max-width: 40em) {
  .glightbox-clean .gdesc-inner {
    padding: 0 !important;
  }
}

@media (max-height: 700px) {
  .glightbox-container .ginner-container {
    justify-content: start !important;
  }
}

/* CONTACT page styling */

.contact-img {
  max-width: 200px;
}

section {
  width: 80%;
  margin: auto;
  @media (max-width: 40em) {
    width: 100%;
  }
}

.form-item {
  width: 100%;
  position: relative;
  margin-bottom: 1em;
  margin-left: auto;
  margin-right: auto;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--light-grey);
  border-radius: 4px;
  font-size: 1rem;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Get elements to inherit font from body */
textarea,
input,
button {
  font-family: inherit;
  font-size: inherit;
}

.form-input:focus {
  outline: none;
  border-color: var(--plum);
}

.form-label {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  color: var(--dark-grey);
  transition: 0.2s ease all;
  pointer-events: none;
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -0.5rem;
  left: 0.5rem;
  font-size: 0.75rem;
  color: var(--plum);
  background-color: white;
  padding: 0 0.25rem;
  text-transform: uppercase;
}

.btn {
  background-color: var(--rose);
  color: white;
  border: none;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  cursor: pointer;
  text-transform: uppercase;
}

.btn:hover {
  background-color: var(--rose-hover);
}

.hello {
  margin-top: 2em;
  margin-bottom: 2em;
}

.hello a {
  color: var(--plum);
}

.contact-us {
  margin-top: 3em;
}

.hr-section {
  width: 20%;
  border: 1px solid var(--light-grey);
  margin: auto;
}

.hr-heading {
  width: 3rem;
  border: 1px solid var(--light-grey);
  margin: auto;
  margin-bottom: 1em;
}

/* Contact form, error, success styling */

.error {
  background: var(--error-bg);
  color: var(--error-text);
  padding: 15px 10px;
  border-radius: 5px;
}
.success {
  background: var(--success-bg);
  color: var(--success-text);
  padding: 15px 10px;
  border-radius: 5px;
}

/* ABOUT page styling */

summary,
.about h2 {
  font-weight: 700;
}

/* Footer styling option */

footer {
  margin-top: 6em;

  @media (max-width: 40em) {
    margin-top: 4em;
  }
}

.socials {
  display: flex;
  gap: 1.5em;
  justify-content: center;
}

/* .footer-bottom {
  font-size: 0.8rem;
  border-top: 1px solid var(--rose);
  margin-top: 4em;
  padding-top: 2em;
  padding-bottom: 4em;
  @media (min-width: 40em) {
    display: flex;
    justify-content: space-between;
  }
} */

/* FOUC fix!!! */
html {
  visibility: visible;
  opacity: 1;
}
