:root {
  --text-color-black: black;
  --text-color-white: white;
  --text-color-red: red;
  --background-color-black: black;
  --background-color-white: white;
  --background-color-yellow: #ffc107;
  --background-color-black-opacity: rgba(0, 0, 0, 0.756);
  --background-color-grey: #f0f0f0;
  --font-size-h1: 2.5rem;
  --font-size-h2: 1.5rem;
  --font-size-h3: 1rem;
  --icon-youtube-color: #ff0000;
  --icon-linkedin-color: #0077b5;
  --icon-instagram-color: #e4405f;
  --font-family: "area-normal", sans-serif;
}

.p--red{
  color: var(--text-color-red);
}

.controls a,
.controls button {
  cursor: pointer;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-family);
  font-weight: lighter;
  font-style: normal;
}
body.modal-open {
  overflow: hidden;
}
h1 {
  font-size: var(--font-size-h1);
  font-weight: lighter;
}
h2 {
  font-size: var(--font-size-h2);
  font-weight: lighter;
}
h3 {
  font-size: var(--font-size-h3);
  font-weight: lighter;
}

main {
  flex: 1;
  display: flex;
}

.main-nav {
  display: none;
}

nav {
  display: flex;
  padding: 1rem;
}

nav h1 {
  width: 100%;
  align-content: center;
  padding: 0.5rem;
  text-align: start;
  margin: 0;
  flex: 1;
  white-space: nowrap;
}

nav h1 a {
  padding: 0.5rem;
  color: var(--text-color-black);
  text-decoration: none;
  display: inline-block;
}

nav h1 a:hover {
  font-weight: 900;
  transform: translateY(-4px);
}

nav h1 a:hover {
  color: var(--background-color-black);
}

.nav-center {
  flex: 2;
}

nav ul {
  display: flex;
  justify-content: end;
  width: 100%;
  margin: 0;
  flex: 1;
}

nav ul li {
  flex: 1;
  list-style: none;
  align-content: center;
  text-align: end;
  padding: 0.5rem;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-color-black);
  display: inline-block;
  font-weight: lighter;
  font-size: var(--font-size-h2);
}

.main-nav ul li a:hover {
  text-decoration: underline;
}

.main-nav ul li a.active {
  text-decoration: underline;
}

.video-wrapper {
  flex: 1;
  padding: 1rem;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  border-radius: 0.5rem;
}

.projects__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.project {
  padding: 0;
  position: relative;
  overflow: hidden;
}

.overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.361);
}

.overlay,
.project a h1 {
  transition: opacity 0.2s ease;
}

.project a:hover .overlay,
.project a:hover h1 {
  opacity: 0;
}

.project a h1 {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: white;
  z-index: 1;
}

.projects__container img {
  width: 100%;
  aspect-ratio: 4/3;
  display: block;
}

.projects__container a {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  text-align: center;
  color: var(--text-color-black);
}

.links {
  display: flex;
  flex-direction: column;
  margin: auto;
}

.links a {
  text-decoration: none;
  color: var(--text-color-black);
  padding: 1rem;
  font-size: var(--font-size-h1);
  text-align: center;
}

.link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.links .link a:hover {
  transform: translateX(4px);
}

.fa-brands {
  font-size: 2rem;
  width: 50px;
  text-align: center;
}

.link:hover .fa-youtube {
  color: var(--icon-youtube-color);
}

.link:hover .fa-instagram {
  color: var(--icon-instagram-color);
}

.link:hover .fa-linkedin {
  color: var(--icon-linkedin-color);
}

/* MOBILE NAV */

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  padding: 0.75rem;
}

.mobile-nav h2 a {
  text-decoration: none;
  color: var(--text-color-black);
}

.mobile-nav ul {
  padding: 0;
  background: #e5e4e2;
  border-radius: 0.75rem;
  min-height: 45px;
}

.mobile-nav ul .active {
  background-color: white;
  border-radius: 0.75rem;
}

.mobile-nav li {
  text-align: center;
}

.mobile-nav ul li a {
  width: 100%;
  font-size: 0.75rem;
  padding: 0.5rem;
}

@media (min-width: 758px) {
  .main-nav {
    display: flex;
  }
  .mobile-nav {
    display: none;
  }
}

.sketches {
  column-width: 280px;
  column-gap: 1rem;
  padding: 1rem;
}

.sketch {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

.sketch img {
  width: 100%;
  display: block;
}

/* .project-contents__container {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  align-items: center;
  width: 100%;
}

.project-content {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
}

.project-content p {
  text-align: center;
  font-size: var(--font-size-h3);
  width: 100%;
}

.project-content img {
  max-width: 100%;
}

.project-content a{
  text-decoration: none;
  color: var(--text-color-black)
} */
.divider-bottom {
  margin: auto;
  width: 80%;
  border-top: 1px solid black;
  height: 1px;
  padding: 0.5rem;
}

.divider-top {
  margin: auto;
  width: 80%;
  border-bottom: 1px solid black;
  height: 1px;
  padding: 0.5rem;
}

/* CONTACT & AUTH FORM  */

.contact-form,
.auth-form {
  display: flex;
  flex-direction: column;
  margin: auto;
  padding: 1rem;
}

.contact-title,
.auth-form-title,
.projects-form-title,
.sketches-form-title {
  text-align: center;
  margin: 1rem;
}
.contact-title .text,
.auth-form .text,
.projects-form .text,
.sketches-form .text,
.submitted-form__container .text {
  display: inline-block;
}

.contact-title .emoji,
.auth-form-title .emoji,
.projects-form-title .emoji,
.sketches-form-title .emoji,
.submitted-form__container .emoji {
  margin-left: 0.25rem;
}

.contact-form form,
.auth-form form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: auto;
}

.contact-form form label,
.auth-form form label,
.projects-form form label,
.sketches-form form label {
  font-size: var(--font-size-h3);
}

.contact-form form button,
.auth-form form button,
.projects-form form button,
.sketches-form form button {
  border-radius: 0.75rem;
  color: var(--text-color-black);
  background-color: var(--background-color-white);
  width: 200px;
  height: 50px;
  font-size: var(--font-size-h3);
}

.contact-form form button:hover,
.auth-form form button:hover,
.projects-form form button:hover,
.sketches-form form button:hover {
  background-color: var(--background-color-black);
  color: var(--text-color-white);
}

.contact-form input,
.auth-form input,
.projects-form input,
.sketches-form input {
  height: 50px;
}
.contact-form textarea,
.contact-form input,
.auth-form input,
.projects-form input,
.sketches-form input {
  min-width: 300px;
  border-radius: 0.75rem;
  border: solid 0.1rem var(--text-color-black);
  padding: 1rem;
  font-family: inherit;
  font-size: inherit;
}

.contact-form textarea::placeholder,
.contact-form input::placeholder,
.auth-form input::placeholder,
.projects-form input::placeholder,
.sketches-form input::placeholder {
  padding: 0 0.5rem;
  align-content: center;
}

/* PROJECTS FORM  */

.projects-form form,
.sketches-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.projects-form p{
  text-align: center;
}

/* MODAL */

.modal {
  position: fixed;
  inset: 0;
  background-color: var(--background-color-black-opacity);
  z-index: 999;

  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-card {
  width: min(90%, 420px);
  background-color: var(--background-color-white);
  padding: 2rem;
  border-radius: 1rem;
}

.x-icon {
  display: flex;
  justify-content: flex-end;
}

.x-icon img {
  color: var(--background-color-black);
  width: 15px;
  height: 15px;
}

.pipe-icon {
  display: flex;
  align-items: center;
}
.pipe-icon img {
  width: 20px;
  height: 20px;
}

.plus-icon {
  border: solid 0.1rem var(--background-color-black);
}

.plus-icon:hover {
  background-color: var(--background-color-grey);
}

.modal-card button {
  margin: auto;
}

.controls {
  display: flex;
  justify-content: space-around;
  padding: 1rem;
}

.controls span {
  padding: 0.5rem;
  font-family: var(--font-family);
  font-size: var(--font-size-h3);
}

.controls button {
  background: transparent;
  border: none;
}

/* PROJECT CONTENT */

.project-content__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  padding: 1rem;
  margin: 0 auto;
}

.project-contents__container {
  display: flex;
  flex-direction: column;
  max-width: 100%;
}

.project-content {
  aspect-ratio: 16/9;
  padding: 1rem;
}

.project-content a {
  text-decoration: none;
  color: var(--text-color-black);
}

.project-content p{
  text-align: center;
}

.project-content img:not(.pipe-icon img) {
  display: block;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
}


.project-content .controls{
  max-width: 300px;
  margin: 0 auto;
}

.project-contents-title{
  margin: 0;
  text-align: center;
  padding: 1rem;
}



.plus-icon__container{
  min-width: 300px;
  max-width: 100px;
  margin: auto;
  padding: 1rem;
}


/* ERROR STYLE */
.flash-container {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.flash-error {
  background-color: #ffe5e5;
  color: #900;
}

.flash-success {
  background-color: #e6ffea;
  color: #0a5;
}

.flash-info {
  background-color: #eef3ff;
  color: #234;
}


/* SUBMITTED FORM */
.submitted-form__container{
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  text-align: center;
}


/* favicon icon */
.ik-icon{
    width: 48px;
  height: 48px;
}