body {
  font-family: "Fira Code", "Consolas", "Menlo", monospace;
  font-size: 16px;
  font-weight: 400;
  margin: 0px;
  padding-top: 40px;
  color: #444;
}

.main-container {
  display: grid;
  height: 100vh;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 0.1fr 1fr 0.05fr;
  grid-template-areas:
    "header header header"
    "sidebar main main"
    "sidebar footer footer";
}

/* ... (remaining styles) ... */

.header {
  grid-area: header;
  min-width: 375px;
}
.main {
  grid-area: main;
  text-align: center;
  overflow: scroll;
  min-width: 375px;
  min-height: calc(100vh - 40px); /* Adjust ~40px navbar height */
}
.sidebar {
  grid-area: sidebar;
  min-width: 375px;
  max-width: 100vh;

  overflow: scroll;
  background-color: #eee;
  min-height: calc(85vh - 40px); /* Adjust 40px based on the navbar height */
}

/* footer */

.footer {
  grid-area: footer;
  background-color: rgb(167, 167, 167);
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
}

.footer a {
  color: white;
  display: flex;
  align-items: center;
  transition: color 0.4s ease;
}

.footer a:hover {
  color: rgb(255, 245, 98);
}

.email {
  margin-left: 10px;
  margin-right: 10px;
}

.fa-envelope {
  font-size: 25px;
}

.logo {
  width: 30px;
  height: auto;
}

/* end of the footer elements */
/* typewriting style below */

#code {
  white-space: pre;
  font-family: "Fira Code", "Consolas", "Menlo", monospace;
  color: #f08dd2;
  font-weight: bold;
  background: #eee;
  padding: 20px;
  padding-top: 10px;
  border: solid 0px;
  box-sizing: border-box;
  margin: 0 auto;
  min-height: fit-content;
  max-height: fit-content;
}

.AI-text {
  display: flex;
  justify-content: center;
}

.keyword {
  color: #666;
  /* AI text */
  font-weight: bold;
}

.comment {
  color: green;
  font-style: italic;
}

.string {
  color: brown;
}

.number {
  color: #6fb2d9;
  font-weight: bold;
}

.face {
  color: black;
}

/* end of typewriten text style */

/* Avatar */

.avatar-video {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  padding: 0%;
  margin-top: 0px;
}

.avatar-box {
  align-items: center;
  display: flex;
  justify-content: center;
  background-color: #eee;
  padding-bottom: 0px;
  padding-top: 20px;
}

/* Desk */

.desk-video {
  width: 800px;
  height: auto;
  object-fit: cover;
  border-radius: 0%;
  padding: 0%;
  margin-top: 0px;
}

.desk-box {
  align-items: center;
  display: flex;
  justify-content: center;
  padding-bottom: 0px;
}

/* navigation bar */

.navbar {
  font-family: "Fira Code", "Consolas", "Menlo", monospace;
  font-weight: 400;
  font-size: 1rem;
  overflow: hidden;
  background-color: #333;
  position: fixed;
  top: 0;
  padding-left: 25px;
  width: 100%;
  opacity: 0.7;
  z-index: 2;
}

.navbar a {
  float: left;
  display: block;
  color: white;
  text-align: center;
  padding: 10px 16px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.navbar a:hover {
  background-color: #ddd;
  color: black;
}

.navbar a.active {
  background-color: rgb(255, 230, 0);
  color: black;
}

/* text in about */

.about-maintext,
h2,
h3 {
  text-align: center;
  font-weight: 900;
  color: #777;
  font-size: 1rem;
}

.redi-logo img {
  margin: 0 auto;
  width: 200px;
  height: auto;
}

.redi-logo {
  position: relative;
  display: inline-block;
}

.redi-logo::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(52, 152, 219, 0);
  transition: background 0.3s ease;
}

.redi-logo:hover::after {
  background: rgba(255, 255, 255, 0.5);
}

.about-maintext a {
  display: inline-block;
  color: #59adc5;
}

.about-maintext a:hover {
  color: rgb(167, 201, 219);
  transition: color 0.3s ease-in-out;
}

/* end of text in about*/
/* photos in about */

.image-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Three columns */
  gap: 0px; /* Space between images */
  padding: 20px;
  justify-items: center;
}

.image-wrapper {
  width: 100%;
  max-width: 300px;
}

.demo-img-1,
.demo-img-2,
.demo-img-3,
.demo-img-4,
.demo-img-5,
.demo-img-6,
.demo-img-7,
.demo-img-8,
.demo-img-9 {
  width: 100%;
  height: auto;
  border-radius: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.image-wrapper:hover .demo-img-1,
.image-wrapper:hover .demo-img-2,
.image-wrapper:hover .demo-img-3,
.image-wrapper:hover .demo-img-4,
.image-wrapper:hover .demo-img-5,
.image-wrapper:hover .demo-img-6,
.image-wrapper:hover .demo-img-7,
.image-wrapper:hover .demo-img-8,
.image-wrapper:hover .demo-img-9 {
  transform: scale(1.03);
  box-shadow: 11px 11px 20px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.demo-img-1,
.demo-img-2,
.demo-img-3,
.demo-img-4,
.demo-img-5,
.demo-img-6,
.demo-img-7,
.demo-img-8,
.demo-img-9 {
  width: 80%;
  height: auto;
  min-width: 250px;
  border-radius: 10px;
  margin: 15px;
}

/* lightbox */

.lightbox {
  display: none;
  position: fixed;
  z-index: 3;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.lightbox-content {
  max-width: 80%;
  max-height: 80%;
  transition: transform 0.8s ease;
}

.close {
  position: absolute;
  top: 5px;
  right: 15px;
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  z-index: 3;
}

.close {
  font-size: 50px;
  top: 45px;
  right: 30px;
}

.nav-btn {
  position: absolute;
  top: 50%;
  width: 50px;
  font-size: 50px;
  cursor: pointer;
  color: #fff;
  user-select: none;
  transition: color 0.5s ease;
}

.nav-btn.left {
  left: 1px;
}

.nav-btn.right {
  right: 1px;
}

/* end of lightbox */

/* arrow keyframe animation */

@keyframes expandArrow {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

/* Apply the animation to an element */

.arrow-container {
  width: 0;
  overflow: hidden;
  background: linear-gradient(to right, #abfcff, #ffb994);
  height: 20px;
  animation: expandArrow 2s ease forwards;
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  margin-bottom: 20px;
  margin-top: 20px;
  color: #5a5a5a;
  box-sizing: border-box;
  padding-left: 10px;
  padding-right: 10px;
}

/* arrow end */

/* end of photos in about */

/* Google Fonts */

h1 {
  font-family: "Libre Barcode 39 Extended Text";
  text-align: center;
  font-weight: 100;
}

.hello {
  font-size: 40px;
}

/* contact boxes (icons + text-link)  */

.typing {
  width: 46px;
  height: 46px;
  margin-bottom: 5px;
  margin-top: 5px;
  overflow: hidden;
  opacity: 0;
  transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
  display: flex;
  align-items: center;
  border-radius: 0px;
  padding: 10px;
}

.typing i {
  font-size: 50px;
  color: #5a5a5a;
  transition: opacity 0.5s ease;
  padding-right: 5px;
  padding-left: 1px;
}

.typing .fa-soundcloud {
  font-size: 2.4rem;
}

.typing .fa-spotify {
  font-size: 2.7rem;
  padding-left: 1.7px;
}

.typing:hover {
  width: 220px; /* thats the total width on hover */
  height: 45px; /* and total height for the expanded state */
  opacity: 1;
}

.container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  padding: 15px;
  margin-top: 20px;
}

.box-pink {
  background-color: pink;
}

.box-blue {
  background-color: #6fb2d9;
}

.box-green {
  background-color: #b0bbf5;
}

/* icons and links */

a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  text-decoration: none;
}

.link-text {
  margin-left: 5px;
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;
  color: #5a5a5a;
  opacity: 0;
  transition: opacity 0.6s ease;
  font-weight: 500;
}

.typing:hover .link-text {
  opacity: 1;
}

/* contact form style */

.contact-form-container {
  max-width: 400px;
  margin: 0 auto;
}

#contact-form {
  background-color: #f5f5f5;
  padding: 3px 15px 15px 15px;

  margin-top: 15px;
  margin-bottom: 10px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.form-group {
  margin-bottom: 0px;
}

label {
  display: block;
  margin-bottom: 5px;
  color: #777;
  font-weight: 500;
  font-size: 0.9rem;
}

input,
textarea {
  width: 100%;
  padding: 10px;
  margin-top: 9px;
  margin-bottom: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

button {
  background-color: #c0a3bf;
  color: white;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background-color: rgb(138, 96, 148);
}

/* end of the contact form style */

/*  mobile media query */

@media screen and (max-width: 430px) {
  .main-container {
    grid-template-columns: 1fr;
    grid-template-rows: 0.1fr 1fr 0.1fr;
    grid-template-areas:
      "header"
      "sidebar"
      "main"
      "footer";
  }

  body {
    font-size: 16px;
    font-weight: 200;
  }

  .image-container {
    display: grid; /* Change display to grid to maintain grid layout */
    grid-template-columns: 1fr; /* Ensure single column layout */
    gap: 10px; /* Space between images */
    justify-items: center;
    align-items: center;
    margin: 20px;
  }

  .image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure images are responsive */
    display: flex; /* Use flexbox to center image within its wrapper */
    justify-content: center; /* Center image horizontally */
    align-items: center; /* Center image vertically */
  }

  .demo-img-1,
  .demo-img-2,
  .demo-img-3,
  .demo-img-4,
  .demo-img-5,
  .demo-img-6,
  .demo-img-7,
  .demo-img-8,
  .demo-img-9 {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
  }

  .image-wrapper:hover .demo-img-1,
  .image-wrapper:hover .demo-img-2,
  .image-wrapper:hover .demo-img-3,
  .image-wrapper:hover .demo-img-4,
  .image-wrapper:hover .demo-img-5,
  .image-wrapper:hover .demo-img-6,
  .image-wrapper:hover .demo-img-7,
  .image-wrapper:hover .demo-img-8,
  .image-wrapper:hover .demo-img-9 {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  }
}
/* end of media query */
