/* Global styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

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

/* Jumbutron styles */
.jumbotron {
  background-color: #f0f0f0;
  padding: 20px 0;
  text-align: center;
}

.website-info {
  display: inline-block;
  float: left;
  margin-left: 20px;
}

.website-info img {
  width: 50px;
  height: 50px;
  margin-right: 10px;
}

.website-name {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
  line-height: 50px;
}

.search-container {
  display: inline-block;
  margin-left: 20px;
}

.search-input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-right: 10px;
  margin-left: -210px;
  width: 200px;
}

.search-btn {
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  margin-left: -10px;
  cursor: pointer;
}

.search-btn:hover {
  background-color: #0056b3;
}

.my-fav-btn {
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  float: right;
  margin-right: 30px;
  margin-top: -85px;
}

.my-fav-btn:hover {
  background-color: #0056b3;
}

.buttons {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.category-btn {
  display: inline-block;
  padding: 5px 10px;
  border: none;
  cursor: pointer;
}

.category-btn {
  display: inline-block;
  padding: 5px 10px;
  border: none;
  cursor: pointer;
}

.category-text {
  cursor: pointer;
  color: #007bff;
  text-decoration: underline;
  font-size: 14px;
}

.category-text:hover {
  text-decoration: none;
}

@media screen and (max-width: 768px) {
  .content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .search-container {
    margin-bottom: 1px;
    text-align: right;
  }

  .buttons {
    margin-bottom: 20px;
  }

  .search-container,
  .buttons {
    width: 100%;
  }

  .category-btn {
    margin-right: 0;
    margin-bottom: 5px;
  }

  .my-fav-btn {
    margin-top: -20px;
    margin-right: 100px;
  }
}

/* Images styles */
.images {
  padding: 20px 0;
}

.subtitle {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 20px;
  text-transform: capitalize;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

/*  CSS for image hover effect */
.image {
  position: relative;
  overflow: hidden;
  height: 300px;
}

.image:hover img {
  transform: scale(1.1);
  transition: transform 0.3s ease-in-out;
}

.image:hover::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
  z-index: 1;
}

/*  CSS for profile pic and name */
#profile-info {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  z-index: 2;
}

#profile-info img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
}

#artist-name {
  color: #fff;
  font-size: 14px;
}

.image:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  padding: 10px;
  color: #fff;
}

/* Inline SVG for the heart shape */
.image:hover::after {
  content: "";
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 15px;
  height: 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
}

/*  CSS for profile pic and name */
.image:hover::before,
.image:hover #profile-info,
.image:hover::after {
  z-index: 1;
}

.image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.image p {
  margin-top: 10px;
  text-align: center;
}

.load-more {
  text-align: center;
  margin-top: 20px;
}

#load-more-btn {
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: none; /* Initially hide the button */
  margin: 0 auto;
}

#load-more-btn:hover {
  background-color: #0056b3;
}

/* Update button styles */
.btn {
  background-color: #4caf50;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #45a049;
}

/* Font styles */
body {
  font-family: Arial, sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bold;
}

p,
span {
  font-size: 16px;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

/* Add CSS for the modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

/* Add CSS for the modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

/* Modal content */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 70%; /* Set a default width */
}

/* Close button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Responsive layout - adjust modal width for small screens */
@media screen and (max-width: 600px) {
  .modal-content {
    width: 90%;
  }
}

#artwork-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
}

.image-container {
  text-align: center;
  margin-bottom: 20px;
  cursor: zoom-in;
}

.details-container {
  margin-bottom: 20px;
  text-align: center;
}

#artist-info {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

#profile-pic {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

#social-links {
  text-align: center;
}

#instagram-btn,
#portfolio-btn,
#twitter-btn,
.favorite-btn-modal {
  padding: 10px 20px;
  margin: 5px 5px;
  background-color: #405de6;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#instagram-btn:hover,
#portfolio-btn:hover,
#twitter-btn:hover,
.favorite-btn-modal:hover {
  background-color: #182c99;
}

/* CSS for favorite button */
.favorite-btn {
  display: inline-block;
  padding: 5px 10px;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.favorite-btn:hover {
  background-color: #0056b3;
}

/* Website info styles */
.website-info {
  display: flex;
  align-items: center;
}

.footer {
  background-color: #f0f0f0;
  color: #000;
  padding: 10px 0;
  text-align: center;
  font-size: 12px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-text {
  font-size: 10px;
}

.social-links {
  list-style-type: none;
  padding: 0;
}

.social-links li {
  display: inline;
  text-decoration: underline;
}

.social-links li:not(:last-child) {
  margin-right: 10px;
}

.social-links a {
  color: #000;
  text-decoration: none;
  font-size: 14px;
}
