@import url(var.css);

#projects {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  margin: 15px;
  padding: 20px 0px;
  flex-wrap: wrap;
}
#projects .project-card {
  background-color: var(--object-bg);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  max-height: 9999px;
  max-width: 500px;
  transition: ease-in-out 0.2s;
  margin: 0 auto;
  position: relative;
}
#projects .project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(100, 139, 247, 0.432);
}

#projects .project-card i {
  color: var(--text-color);
  font-size: 20px;
}

.i-div {
  position: absolute;
  bottom: 2%;
}

#projects div i:hover {
  color: var(--link-color);
}

#projects div p {
  margin-top: 7px;
  margin-bottom: 2rem;
}

#projects div h4 {
  font-size: 20px;
  color: var(--primary-color);
}

#projects-section {
  font-size: 40px;
  margin-bottom: 10px;
  color: var(--accent-color);
}

.project-img {
  width: 100%;
  border-radius: 10px;
  aspect-ratio: 16/9.5;
  object-fit: cover;
}

.project-card {
  flex: 1 1 21rem;
}

#screenshot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 20px;
}

#screenshot img {
  max-width: 90%;
  width: auto;
  height: auto;
  max-height: 600px;
  border-radius: 10px;
  margin: 10px 20px;
  border: 2pt solid #ffffff;
}
#screenshot hr {
  display: none; /*i'm too lazy to remove all this <hr> :) */
}

ul {
  list-style: inside;
  font-size: 18px;
  margin: 0px 20px;
  width: 90;
}

.p-h3 {
  font-size: 22px;
  margin: 10px 10px;
  color: var(--accent-color);
  text-align: left;
  width: 90%;
}
.sub-text {
  text-align: center;
}

.main {
  width: 100%;
  max-width: 800px;
}
hr {
  margin-bottom: 7px;
}
.heading {
  text-align: center;
  font-size: 30px;
  margin: 20px 0;
  color: var(--link-color);
}

.popup-image {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.9);
  width: 100%;
  height: 100%;
  z-index: 9900 !important;
  display: none;
}

.popup-image span {
  position: absolute;
  top: 5px;
  right: 20px;
  font-size: 50px;
  font-weight: bolder;
  z-index: 9900 !important;
}

.popup-image img {
  position: absolute;
  max-width: 90%;
  width: auto;
  max-height: 90%;
  height: auto;
  top: 50% !important;
  left: 50% !important;
  border-radius: 10px;
  transform: translate(-50%, -50%) !important;
}

.img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
#tip {
  position: fixed;
  bottom: 5px;
  right: 20px;
  font-size: 15px;
  color: #c9c8c8;
}
