@import url('style.css');

.projects {
  padding: 2rem;
  text-align: center;
  padding: 12rem 0;
}

.projects-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
}

.project {
  display: flex;
  flex-direction: row;
  background-color: var(--second-bg-color);
  border-radius: 12px;
  margin: 1rem auto;
  padding: 1rem;
  width: 80%;
  max-width: 900px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.project img {
  width: 60%;
  height: auto;
  cursor: pointer;
}

.project-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.project-info ul {
  margin: 0 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.project-info ul li {
  font-size: 1.5rem;
}

.project-info h3 {
  font-size: 2rem;
  color: white;
}

.project-link a {
  font-size: 1.2rem;
  margin: 12px 0;
  color: #007bff;
  text-decoration: none;
  width: 200px;
}

.project-info .project-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

}

.project-info a:hover {
  text-decoration: underline;
}

.modal {
  display: none;
  position: fixed;
  z-index: 101;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 1000px;
}

.close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

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