body {
    background-color: #191919;
    margin: 0;
    padding: 0 5%;
    box-sizing: border-box;
}

main {
    padding: 2em 26%;
}

.image-container {
    display: flex;
    align-items: center;
    margin-bottom: 1em; /* Adds some space below the container */
}

.small-image {
    width: 100px; /* Adjust the size as needed */
    height: 100px; /* Adjust the size as needed */
    border-radius: 2px; /* Optional: adds rounded corners */
    margin-right: 1em; /* Space between the image and the text */
    margin-top: 1em;
    margin-left: 0.5em;
}

.back-button {
    padding-top: 2em;
    height: 20px; /* Adjust the size as needed */
}


#about {
    padding: 1em 1%;
    text-align: left;
    color: white;
}

.about p {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
}


.about h1 {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 2em;
}

#portfolio {
    padding: 0em 0;
    text-align: left;
}

.portfolio h2 {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    padding: 0 1%;
    color: white;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-item {
    flex: 1 1 calc(33.333% - 1em);
    margin: 0.5em;
    background: #2f2f2f;
    border: 1px solid #191919;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: auto;
}

.gallery-item a {
    text-decoration: none;
}

.card-description {
    padding: 1em;
    text-align: left;
    color: white;
}

.card-description h3 {
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-style: normal;
    margin-top: 0;
}

.display {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    flex-direction: column;
}

.display-item {
    flex: 1 1 100%;
    margin: 0.5em 0;
    background: #2f2f2f;
    border: 1px solid #191919;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.display-item img {
    width: 100%;
    height: auto;
}

.display-card-description {
    padding: 1em;
    text-align: left;
    color: white;
}

.display-card-description h3 {
    margin-top: 0;
    font-family: "Poppins", sans-serif;
    font-weight: 350;
    font-style: normal;
    font-size: 1.3em;
}

.display-card-description p {
    margin-top: 0;
    font-family: "Poppins", sans-serif;
    font-weight:300;
    font-style: normal;
}

.showcase h1 {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-style: normal;
    padding: 1em 0%;
    padding-top: 0.5em;
    font-size: 2em;
    color: white;
    
}

/* * {box-sizing:border-box} */

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Next & previous buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: rgb(212, 212, 212);
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

.active, .dot:hover {
  background-color: #717171;
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

.mySlides::-webkit-scrollbar {
    display: none;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}

/* Media Query for Mobile Devices */
@media (max-width: 768px) {

    .image-container {
        flex-direction: column; /* Stack the image and text vertically */
        align-items: flex-start; /* Align items to the start */
    }

    .small-image {
        margin-right: 0; /* Remove the right margin */
        margin-top: 2em;
        margin-left: 0.5em;
    }
    .gallery {
        flex-direction: column;
    }

    .gallery-item {
        flex: 1 1 100%;
        margin: 0.5em 0;
    }

    body {
        padding: 0 2%;
    }

    main {
        padding: 2em 5%;
    }
}


/* Media Query for Tablet Devices */
@media (min-width: 769px) and (max-width: 1024px) {
    body {
        padding: 0 3%; /* Reduce side padding */
    }

    main {
        padding: 2em 15%; /* Reduce main padding */
    }

    .about p {
        margin-top: 0em; /* Reduce the gap between h1 and p */
    }

    .about h1 {
        margin-bottom: 0.5em;
    }
}