:root {
  --dark-background: #050517;
  --commonsGreen: #006548;
  --light-text: rgb(114, 114, 114);
  --white-text: #efefef;
  --light-background: #efefef;
  --dark-text: rgb(58, 58, 58);
  --labourRed: #e4003b;
  --labourRed30: #9f0029;
  --labourRed50: #72001d;
  --sectionHeaders: 60px;
  --sectionHeaderWeight: 400;
  --bar-width: 60px;
  --bar-height: 8px;
  --hamburger-gap: 6px;
  --hamburger-margin: 10px;
  --animation-timing: 200ms ease-in-out;
  --hamburger-height: calc(var(--bar-height) * 3 + var(--hamburger-gap) * 2);
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "poppins", sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--light-background);
  color: var(--light-text);
}

#overlay {
  background: rgba(0, 0, 0, 0.6);
  position: fixed;
  inset: 0;
  z-index: 3;
  display: none;
}

.hidden {
  opacity: 0;
  transition: all 1s;
}
.show {
  opacity: 1;
  transition: all 1s;
}

/* navigation menu */

.hamburger-menu {
  --x-width: calc(var(--hamburger-height) * 1.41421356237);
  display: none;
  flex-direction: column;
  gap: var(--hamburger-gap);
  width: max-content;
  position: fixed;
  top: var(--hamburger-margin);
  right: var(--hamburger-margin);
  z-index: 101;
  cursor: pointer;
}

.hamburger-menu::before,
.hamburger-menu::after,
.hamburger-menu input {
  content: "";
  width: var(--bar-width);
  height: var(--bar-height);
  background-color: var(--light-text);
  border-radius: 100px;
  transform-origin: left center;
  transition: opacity var(--animation-timing), width var(--animation-timing),
    rotate var(--animation-timing), translate var(--animation-timing);
}

.hamburger-menu input {
  appearance: none;
  padding: 0;
  margin: 0;
  outline: none;
  pointer-events: none;
}

.hamburger-menu:has(input:checked)::before {
  rotate: 45deg;
  width: var(--x-width);
  translate: 0 calc(var(--bar-height) / -2);
}
.hamburger-menu:has(input:checked)::after {
  rotate: -45deg;
  width: var(--x-width);
  translate: 0 calc(var(--bar-height) / 2);
}

.hamburger-menu input:checked {
  opacity: 0;
  width: 0;
}

/*Nav Bar*/

nav {
  position: fixed;
  width: 100%;
  background-color: var(--commonsGreen);
  align-content: center;
  z-index: 99;
}

nav ul {
  display: flex;
  list-style-type: none;
  font-size: 1.2rem;
  font-family: "poppins", sans-serif;
}

nav li {
  display: flex;
  justify-content: flex-end;
}

nav a {
  display: flex;
  padding: 0.5em 2em;
  text-decoration: none;
  color: var(--white-text);
  transition: background-color 150ms ease;
}

nav a:hover {
  background-color: var(--light-background);
  color: var(--dark-text);
  border-radius: 0 0 5px 5px;
}
nav a.active-link {
  background-color: var(--light-background);
  border-radius: 0 0 5px 5px;
  color: var(--dark-text);
}

@media screen and (max-width: 700px) {
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: min(15em, 100%);
    border-left: 0px solid var(--light-background); /*unsure*/
    z-index: 10;
    align-content: flex-start;
    transition: right 300ms ease-out;
  }

  .show {
    right: 0;
  }

  .show ~ #overlay {
    display: block;
  }

  nav ul {
    flex-direction: column;
    width: 100%;
  }

  nav a {
    width: 100%;
  }
  .hamburger-menu {
    display: flex;
  }
}

/* Main sections */

.home {
  height: 400px;
  background: #00523a;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 30px;
}

.hoclogo {
  position: absolute;
  left: 5%;
  top: 3%;
  z-index: 0;
}

.header-container {
  z-index: 1;
}

.home .header-container .name {
  font-size: 80px;
  color: var(--white-text);
  z-index: 3;
}
.home .header-container .title {
  font-size: 35px;
  font-weight: 500;
  color: rgb(163, 163, 163);
  z-index: 2;
}
.home .header-container .location {
  font-size: var(--sectionHeaders);
  font-weight: var(--sectionHeaderWeight);
  color: var(--white-text);
  z-index: 2;
}

@media (max-width: 700px) {
  .home .header-container .name {
    font-size: 55px;
  }
  .home .header-container .title {
    font-size: 30px;
  }
  .home .header-container .location {
    font-size: 40px;
  }
}

@media (max-width: 400px) {
  .home .header-container .name {
    font-size: 40px;
  }
  .home .header-container .title {
    font-size: 25px;
  }
  .home .header-container .location {
    font-size: 30px;
  }
}

.about {
  min-height: 100vh;
  background: #efefef;
}

.about-grid-container {
  display: grid;
  grid-template-rows: auto auto auto auto;
  overflow: hidden;
  align-content: center;
  justify-items: center;
}

.about-header {
  text-align: center;
  padding: 80px 0;
  grid-row: 1 / 2;
  color: var(--dark-text);
  font-size: var(--sectionHeaders);
  font-weight: var(--sectionHeaderWeight);
}
.about-img {
  width: 90%;
  grid-row: 2 / 3;
  margin-bottom: 20px;
}

.about-info {
  grid-row: 3 / 4;
  color: var(--light-text);
  font-size: 1.2rem;
  padding: 50px 4vw 50px 4vw;
  text-align: justify;
}

@media (max-width: 450px) {
  .about-info {
    padding: 0 4vw 30px 4vw;
    font-size: 15px;
  }
}

.pledge-img {
  grid-row: 4 /1 5;
  width: 100vw;
}

@media (max-width: 1000px) {
  .about-img {
    width: 700px;
  }
}

@media (max-width: 760px) {
  .about-img {
    width: 100%;
  }
}

.campaigns {
  background: var(--light-background);
  align-items: center;
  justify-content: center;
  justify-items: center;
  text-align: center;
  color: var(--dark-text);
}

.campaings-header h1 {
  font-size: var(--sectionHeaders);
  font-weight: var(--sectionHeaderWeight);
  padding: 4vh 4vw;
}

.campaigns-info {
  padding-top: 4vh;
  font-size: 1.2rem;
  padding: 0 4vw;
  color: var(--light-text);
  text-align: justify;
}

.campaigns-info img {
  width: 60px;
  position: relative;
  padding-left: 10px;
  padding-right: 10px;
}

.campaigns-info a {
  text-decoration: none;
  color: var(--dark-text);
}

/* slider gallery */

.arrow-icon {
  height: 90px;
  width: 90px;
  cursor: pointer;
  margin: 40px;
}

.gallery-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4% auto;
}

.gallery {
  width: 80vw;
  display: flex;
  overflow-x: scroll;
  justify-items: center;
}

.campaign-tile {
  display: inline-block;
}

.tile-text {
  position: relative;
  top: 15px;
  font-weight: 400;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery .slider-container {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(8, 700px);
  grid-gap: 40px;
  padding: 20px;
  flex: none;
}

@media (max-width: 1450px) {
  .gallery .slider-container {
    grid-template-columns: repeat(8, 400px);
  }

  .tile-text {
    font-size: 1.2rem;
  }

  .gallery {
    width: 80w;
  }

  .hoclogo {
    left: 4%;
    top: 4%;
    width: 300px;
  }

  .home {
    height: 330px;
  }

  .home .header-container .name {
    font-size: 60px;
    color: var(--white-text);
    z-index: 3;
  }
  .home .header-container .title {
    font-size: 30px;
  }
  .home .header-container .location {
    font-size: 40px;
  }
}

@media (max-width: 700px) {
  .gallery .slider-container {
    grid-template-columns: repeat(1, 300px);
    justify-content: center;
  }

  .gallery {
    width: 80vw;
    display: flex;
    overflow-x: hidden;
  }

  .arrow-icon {
    display: none;
  }
  .home .header-container .name {
    font-size: 50px;
    color: var(--white-text);
    z-index: 3;
  }
  .home .header-container .title {
    font-size: 25px;
  }
  .home .header-container .location {
    font-size: 40px;
  }
  .hoclogo {
    left: 10%;
    top: 4%;
  }
}

.gallery .slider-container img {
  width: 100%;
  filter: brightness(0.8);
  transition: transform 0.5s ease, filter 0.5s ease;
  border-radius: 10px;
  box-shadow: -8px 8px 8px rgba(0, 0, 0, 0.1);
}

.gallery .slider-container img:hover {
  filter: brightness(1.1);
  cursor: pointer;
  transform: scale(1.05);
}

.constituency {
  min-height: 100vh;
  padding-top: 30px;
  text-align: center;
}

.constituency-header h1 {
  font-size: var(--sectionHeaders);
  font-weight: var(--sectionHeaderWeight);
  color: var(--dark-text);
}

.constituency-info {
  font-size: 1.2rem;
  margin-bottom: 30px;
  padding: 30px 4vw;
}
.text-wrapper h1 {
  font-size: var(--sectionHeaders);
  font-weight: var(--sectionHeaderWeight);
  color: var(--dark-text);
}
.constituency-info p {
  text-align: justify;
  color: var(--light-text);
}

.image-wrapper {
  display: flex;
  align-items: center;
  padding: 0 4vw;
}

.text-wrapper {
  font-size: 1.2rem;
  color: var(--light-text);
}

.text-wrapper p {
  text-align: justify;
}

.text-one {
  padding-left: 4vw;
  position: relative;
  bottom: 6vh;
}
.text-two {
  padding-right: 4vw;
}
/* .text-three { 

}
.text-four { 

} */
.constituency-img {
  box-shadow: -40px 40px 40px rgba(0, 0, 0, 0.1);
  width: 40vw;
}

/* .img-one {
   
}

.img-two {
  
}
.img-three {
  
}

.img-four {

} */

@media (max-width: 1000px) {
  .image-wrapper {
    flex-direction: column;
  }
  .text-one {
    padding-left: 0;
    position: static;
    padding-top: 4vh;
    margin-bottom: 0;
  }
  .text-two {
    padding-top: 0;
    margin-top: 0;
    padding-right: 0;
  }
  .constituency-img {
    width: 80vw;
  }

  .text-wrapper {
    margin-bottom: 100px;
  }
  .constituency-header h1 {
    font-size: 3rem;
  }
  .text-wrapper h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 700px) {
  .constituency-img {
    width: 100vw;
  }
}

.contact {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  position: relative;
  align-items: center;
  margin-top: 8vh;
  padding: 50px 0;
}

.contact::before {
  content: "";
  background-image: url(assets/images/katie_dales.jpg);
  background-size: cover;
  filter: brightness(40%);
  background-position: right;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.socials {
  display: flex;
  justify-content: center;
  color: var(--white-text);
}
.socials img {
  width: 65px;
  padding-left: 1vw;
}
.socials h2 {
  align-content: center;
  padding: 0 1vw;
}
.contact-box {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  padding: 2rem;
  width: 90%;
  background-color: #006548;
  color: #ffffff;
  border-radius: 0.5rem;
}

.contact-box a {
  color: #ffffff;
}

.contact-form-container {
  grid-column: 2 / 3;
  grid-row: 1 / 3;
  width: 90%;
  position: relative;
  z-index: 1;
  color: var(--white-text);
}

.contact-form {
  background-color: var(--commonsGreen);
  padding: 1vw;
  width: 100%;
  height: auto;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.contact-form img {
  width: 12vw;
  position: absolute;
  left: 62%;
  background: transparent;
  z-index: -1;
}
.contact-form input {
  width: 50%;
  padding: 0 10px 0 10px;
  font-size: 19px;
  border-radius: 5px;
  z-index: 1;
  color: var(--white-text);
  background: none;
  border: none;
  border-bottom: 2px solid var(--white-text);
}

.contact-form textarea {
  width: 100%;
  padding: 10px;
  font-size: 19px;
  border-radius: 5px;
  margin: 10px 0;
  color: var(--dark-text);
}

button {
  width: 150px;
  font-size: 19px;
  justify-self: center;
  cursor: pointer;
}

.sent-mail {
  font-size: 1.5rem;
  padding-left: 5vw;
  font-weight: 600;
  color: red;
}

.mail-message {
  display: none;
}

@media (max-width: 1400px) {
  .contact-form input,
  label {
    font-size: 15px;
    width: 100%;
  }
  .contact-form {
    padding: 40px;
  }

  .contact-form img {
    width: 18vw;
    left: 55%;
  }
}

@media (max-width: 800px) {
  .contact {
    grid-template-columns: 1fr;
    grid-template-rows: 2fr 1fr;
  }

  .contact-form-container {
    grid-row: 1 / 2;
    grid-column: 1;
    padding: 20px;
    align-self: center;
    justify-self: center;
    width: 100%;
  }

  .contact-form {
    width: 100%;
    padding: 20px;
  }
  .contact::before {
    background-position: center;
  }
  .constituency {
    width: 100%;
    grid-row: 2 / 3;
    grid-column: 1 / 2;
  }

  .constituency a img {
    width: 92%;
  }

  .contact-form img {
    width: 35vw;
    left: 55%;
  }
  .socials {
    flex-direction: column;

    align-items: center;
  }

  .socials h2 {
    align-self: center;
  }
}
@media (max-width: 400px) {
  .contact-form-container {
    padding: 15px;
  }
  .contact-form {
    width: 100%;
    padding: 10px;
  }
  .contact-form input,
  label {
    font-size: 15px;
    width: 100%;
  }
}

footer {
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--commonsGreen);
  padding: 0 4vw;
  font-size: 0.8rem;
  color: var(--white-text);
}
footer p,
.dev-sig {
  color: rgb(152, 152, 152);
}

footer a {
  color: rgb(208, 208, 208);
}

@media (max-width: 1450px) {
  p {
    font-size: 1rem;
  }
}
@media (max-width: 800px) {
  footer {
    font-size: 0.6rem;
  }
  footer p,
  .dev-sig {
    font-size: 0.5rem;
  }
}

@media (max-width: 700px) {
  .hoclogo {
    width: 300px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  p {
    font-size: 0.9rem;
  }
}
