*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Custom Properties */

:root {
  --ff-primary: "Lilita One";
  --ff-secondary: "Nunito";

  --fw-reg: 400;
  --fw-bold: 900;

  --clr-light: #f8f9fa;
  --clr-dark: #303030;
  --clr-accent: #118ebf;
  --clr-accent2: #1bafbf;
  --clr-accent3: #f2bb13;
  --clr-accent4: #d97c0b;
  --clr-accent5: #f26457;

  --fs-h1: 3rem;
  --fs-h2: 2.25rem;
  --fs-h3: 1.25rem;
  --fs-body: 1rem;

  --bs: 0.25em 0.25em 0.75em rgba(0, 0, 0, 0.25),
    0.125em 0.125em 0.25em rgba(0, 0, 0, 0.15);
}

@media (min-width: 755px) {
  :root {
    --fs-h1: 3.5rem;
    --fs-h2: 3.5rem;
    --fs-h3: 1.35rem;
    --fs-body: 1.125rem;
  }
}

@media (min-width: 954px) {
  :root {
    --fs-h1: 4.5rem;
    --fs-h2: 3.75rem;
    --fs-h3: 1.5rem;
    --fs-body: 1.125rem;
  }
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--ff-primary);
  font-weight: var(--fw-reg);
  line-height: 1;
  margin: 0;
}

h1 {
  font-size: var(--fs-h1);
  color: var(--clr-light);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

.main-quote {
  font-family: var(--ff-primary);
  font-size: var(--fs-h3);
}

/* General Styling */

body {
  background: var(--clr-light);
  color: var(--clr-dark);
  font-family: var(--ff-secondary);
  font-size: var(--fs-body);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Navigation */

nav {
  background-color: var(--clr-accent);
  width: 100%;
}

nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}

nav li {
  list-style: none;
  transition: all 200ms ease-in-out;
}

nav li:hover {
  background-color: var(--clr-accent3);
}

nav a {
  display: block; /*makes whole element clickable*/
  padding: 1rem;
  color: var(--clr-light);
  text-decoration: none;
  transition: all 200ms ease-in-out;
}

nav a:hover {
  color: var(--clr-accent);
  transition: all 0.3s ease 0s;
}

/* Mobile Menu */

.open .bar1 {
  -webkit-transform: rotate(-45deg) translate(-6px, 6px);
  transform: rotate(-45deg) translate(-6px, 6px);
}

.open .bar2 {
  opacity: 0;
}

.open .bar3 {
  -webkit-transform: rotate(45deg) translate(-6px, -8px);
  transform: rotate(45deg) translate(-6px, -8px);
}

.open .mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.mobile-menu {
  display: none;
  font-size: 1.5rem;
}

.mobile-menu li {
  margin-bottom: 10px;
  display: block;
  width: 100%;
  padding: 10px;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--clr-light);
}

.mobile-menu li:hover {
  background-color: var(--clr-accent3);
}

/* Hero */
header {
  height: 75vh;

  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(assets/paint-brushes.jpg);
  background-size: cover;
  background-position: bottom;
  background-repeat: no-repeat;
  background-attachment: scroll;

  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 0 2rem;
}

.hero-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 27% 73% 29% 71% / 22% 29% 71% 78%;
  background-color: var(--clr-accent3);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7), 0 10px 30px rgba(0, 0, 0, 0.4);
}

.logo {
  width: 100%;
  height: auto;
  max-width: 400px;
}

/* Content Area */

.main-title {
  text-align: center;
  margin: 2rem 0;
}

.main {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  border-radius: 27% 73% 29% 71% / 22% 29% 71% 78%;
  background-color: var(--clr-accent2);
}

.text1 {
  grid-area: 1/2/2/6;
}

.main-art1 {
  grid-area: 1/8/2/12;
  width: 100%;
  height: auto;
  max-width: 600px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7), 0 10px 30px rgba(0, 0, 0, 0.4);
}

.main-art2 {
  grid-area: 2/2/3/6;
  width: 100%;
  height: auto;
  max-width: 600px;
  box-shadow: 13px 14px 42px 2px rgba(0, 0, 0, 0.7);
}

.text2 {
  grid-area: 2/8/3/12;
}

/* Footer */

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5rem;
  background-color: var(--clr-accent3);
  height: 3rem;
}

.footer__a {
  padding: 0 1rem;
  text-decoration: none;
  color: var(--clr-light);
}

.footer__a:hover {
  color: var(--clr-accent);
}

/* Responsive */
@media only screen and (max-width: 700px) {
  nav {
    display: none;
  }

  #hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 1rem;
    background-color: var(--clr-accent);
    width: 100%;
  }

  #hamburger-icon div {
    width: 44px;
    height: 4px;
    background-color: var(--clr-light);
    margin-bottom: 10px;
    transition: 0.4s;
  }
  #hamburger-icon {
    display: block;
  }
  .mobile-menu {
    text-align: center;
    margin: 0;
    padding: 0;
  }

  header {
    background-attachment: scroll;
  }
  .main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    min-height: 100vh;
    border-radius: 27% 73% 29% 71% / 22% 29% 71% 78%;
    background-color: var(--clr-accent2);
    padding: 0 3rem;
  }

  .text1 {
    order: 1;
  }

  .main-art1 {
    width: 100%;
    height: auto;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7), 0 10px 30px rgba(0, 0, 0, 0.4);
    order: 2;
  }

  .main-art2 {
    width: 100%;
    height: auto;
    max-width: 600px;
    box-shadow: 13px 14px 42px 2px rgba(0, 0, 0, 0.7);
    order: 4;
  }

  .text2 {
    order: 3;
  }

  footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin-top: 5rem;
    border-top: solid 1px var(--clr-dark);
  }

  footer p {
    padding: 10px;
  }
}

/*

Projects Page

*/
.project-intro {
  padding: 0 4.5rem;
  margin-bottom: 2rem;
}

.projects {
  position: relative;
  overflow: hidden;
}

.project-container {
  padding: 0 10vw;
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.project-container::-webkit-scrollbar {
  display: none;
}

.project-card {
  flex: 0 0 auto;
  width: 350px;
  height: 450px;
  margin-right: 40px;
}

.project-image {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.project-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-btn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px;
  width: 90%;
  text-transform: capitalize;
  border: none;
  outline: none;
  background: var(--clr-light);
  border-radius: 5px;
  transition: 0.5s;
  cursor: pointer;
  opacity: 0;
  text-decoration: none;
  text-align: center;
}

.project-image a {
  color: #f26457;
}

.project-card:hover .card-btn {
  opacity: 1;
}

.card-btn:hover {
  background: var(--clr-accent5);
  color: var(--clr-light);
}

.project-info {
  width: 100%;
  height: 100px;
  padding-top: 10px;
}

.project-grade {
  text-transform: uppercase;
}

.project-description {
  width: 100%;
  height: 20px;
  line-height: 20px;
  overflow: hidden;
  opacity: 0.5;
  text-transform: capitalize;
  margin: 5px 0;
}

.pre-btn,
.nxt-btn {
  border: none;
  width: 10vw;
  height: 100%;
  position: absolute;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(
    90deg,
    rgba(248, 249, 250, 0) 0%,
    var(--clr-light) 100%
  );
  cursor: pointer;
  z-index: 8;
}

.pre-btn {
  left: 0;
  transform: rotate(180deg);
}

.nxt-btn {
  right: 0;
}

.pre-btn img,
.nxt-btn img {
  opacity: 0.2;
}

.pre-btn:hover img,
.nxt-btn:hover img {
  opacity: 1;
}

/* Responsive */

@media only screen and (max-width: 700px) {
  .project-card {
    width: 20rem;
    height: 450px;
    margin-right: 5rem;
  }

  .card-btn {
    opacity: 1;
  }
}

/*

Project Gallery Pages

*/

.container {
  max-width: 1600px;
  padding: 50px 20px;
  margin: 0 auto;
}

#gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 20px;
  align-items: center;
  justify-items: center;
}

.galleryImg {
  max-width: 100%;
  width: 400px;
  height: 400px;
  border-radius: 10px;
  position: relative;
  transition: transform 250ms;
  cursor: pointer;
}

.galleryImg:hover {
  transform: translateY(-2px);
  box-shadow: 3px 3px 10px var(--clr-dark);
}

#popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(-100%);
  transition: 250ms transform;
  padding: 1rem;
  cursor: pointer;
}

#popup img {
  max-width: 100%;
}

#selectedImage {
  max-height: 100%;
}

/*

Art Show Page

*/

.artshow-t1 {
  grid-area: 1/8/2/12;
}

.artshow-a1 {
  grid-area: 1/2/2/6;
  width: 100%;
  height: auto;
  max-width: 600px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7), 0 10px 30px rgba(0, 0, 0, 0.4);
}

.artshow-a2 {
  grid-area: 2/8/3/12;
  width: 100%;
  height: auto;
  max-width: 600px;
  box-shadow: 13px 14px 42px 2px rgba(0, 0, 0, 0.7);
}

.artshow-t2 {
  grid-area: 2/2/3/6;
}

/*

Artsonia Page

*/

.main-artsonia {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  row-gap: 5rem;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  border-radius: 27% 73% 29% 71% / 22% 29% 71% 78%;
  background-color: var(--clr-accent2);
}

.artsonia-t1 {
  grid-area: 1/2/2/6;
}

.artsonia-link {
  color: var(--clr-accent3);
}

.artsonia-link:hover {
  color: var(--clr-accent5);
  transition: all 0.3s ease 0s;
}

.main-art1 {
  grid-area: 1/8/2/12;
  width: 100%;
  height: auto;
  max-width: 600px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7), 0 10px 30px rgba(0, 0, 0, 0.4);
}

.main-art2 {
  grid-area: 2/2/3/6;
  width: 100%;
  height: auto;
  max-width: 600px;
  box-shadow: 13px 14px 42px 2px rgba(0, 0, 0, 0.7);
}

.artsonia-t2 {
  grid-area: 2/4/3/10;
}

.artsonia-t2 h3 {
  text-align: center;
}

h4 {
  margin: 0;
  padding: 0;
}

/*

Volunteer Page

*/
.main-vol {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  border-radius: 27% 73% 29% 71% / 22% 29% 71% 78%;
  background-color: var(--clr-accent2);
}

.vol-a1 {
  grid-column: 3 /11;
  width: 100%;
  height: auto;
  max-width: 600px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7), 0 10px 30px rgba(0, 0, 0, 0.4);
  justify-self: center;
  align-self: center;
  margin-bottom: 3rem;
}

.vol-t1 {
  grid-column: 3/11;
}

.vol-t1 p {
  padding: 0;
  margin: 0;
}

/*

About Page

*/
.main h3 {
  text-align: center;
}

.about-title {
  grid-area: auto/5/auto/9;
  margin: 3rem 0 01rem 0;
}

.about-image {
  grid-area: auto/5/auto/9;
  margin: 0 auto;
  width: 100%;
  height: auto;
  max-width: 400px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7), 0 10px 30px rgba(0, 0, 0, 0.4);
}

.about-text {
  grid-area: auto/3/auto/11;
  margin-top: 2rem;
}

/*

Contact Page

*/
.main-contact {
  display: grid;
  grid-template-columns: repeat(12, 1fr);

  justify-content: center;
  align-items: center;
  min-height: 50vh;
  border-radius: 27% 73% 29% 71% / 22% 29% 71% 78%;
  background-color: var(--clr-accent2);
}

.contact {
  grid-area: 1/7/2/11;
}

.input {
  color: var(--clr-dark);
  border-radius: 5px;
  border: 2px solid var(--clr-dark);
  transition: all 0.3s;
  padding: 15px;
  margin-bottom: 15px;
  width: 100%;
  box-sizing: border-box;
  outline: 0;
}

.input:focus {
  border: 2px solid var(--clr-accent5);
}

textarea {
  height: 150px;
  line-height: 150%;
  resize: vertical;
}

[type="submit"] {
  font-family: var(--ff-secondary);
  width: 100%;
  background-color: var(--clr-accent3);
  border-radius: 5px;
  font-size: 2rem;
  padding: 10px 0 10px 0;
  transition: all 0.3s;
  margin-top: -4px;
  font-weight: 700;
}

[type="submit"]:hover {
  background: var(--clr-accent5);
}

.contact-image {
  grid-area: 1/2/2/6;
  margin: 0 auto;
  width: 100%;
  height: auto;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.7), 0 10px 30px rgba(0, 0, 0, 0.4);
}

.about-text {
  grid-area: auto/3/auto/11;
}

@media only screen and (max-width: 900px) {
  .contact {
    grid-area: 2/2/3/12;
  }

  .contact-image {
    grid-area: 1/2/2/12;
    margin-bottom: 5rem;
  }
}

/*

Thank you Page

*/

.main-thx {
  display: grid;
  grid-template-columns: repeat(12, 1fr);

  justify-content: center;
  align-items: center;
  min-height: 100vh;
  border-radius: 27% 73% 29% 71% / 22% 29% 71% 78%;
  background-color: var(--clr-accent2);
  margin-top: 5rem;
  text-align: center;
}

.h2-thx {
  grid-area: 1/3/2/11;
}

.h3-thx {
  grid-area: 2/3/2/11;
}

.thx-a {
  text-decoration: none;
  color: var(--clr-dark);
}

.thx-a:hover {
  color: var(--clr-accent5);
}
