* {
 	box-sizing: border-box;
 	margin: 0;
 	padding: 0;
 }

 body {
 	background-color: rgb(255, 254, 249);
 	color: aliceblue;
 	font-family: 'Courier New', Courier, monospace monospace;
 }

 .main{
  margin-bottom: 2rem;
 }

.portfolio-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: auto;
  margin-top: 2rem;
  transition: 0.2s ease all;  
}

.card-link {
  text-decoration: none;
}


.portfolio-card {
  background: rgb(24, 105, 255);
  color: white;
  border-radius: 1rem;
  /* padding: 1.5rem; */
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  font-family:  'Courier New', monospace, monospace;
  position: relative;
  transition: 0.2s ease all;
}

.portfolio-card--dev {
  background: linear-gradient(135deg, #6f8f7b 0%, #8fae95 100%);
  box-shadow: 0 10px 25px rgba(72, 96, 79, 0.2);
}

.portfolio-card--dev .portfolio-desc,
.portfolio-card--dev .tech-stack {
  background: transparent;
}

.portfolio-card--dev .tech {
  background: rgba(47, 69, 54, 0.7);
}

.portfolio-card--dev .portfolio-title {
  color: #2d4034;
}

.portfolio-card::before {
  content: "";
  height: 0.6rem;
  background: transparent;
  border-radius: 0.75rem 0.75rem 0 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.portfolio-card:hover {
  cursor:pointer;
  transform: scale(1.02, 1.03);
}


.portfolio-title {
  font-size: 1.055rem;
  margin-bottom: 0.8rem;
  color: #551A8B;
  font-weight: 550;
  background-color: rgb(255, 255, 255);
  border-radius: 0.3rem;
  margin-top: -1rem;
  margin-left: 0;
  margin-right: 0;
  padding: 0.4rem 1rem;
  display: inline-block;
  position: relative;
  z-index: 2;
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 16px;
  display: inline-block;
  margin: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  color: #f8fff9;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 6;
  pointer-events: none;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

.portfolio-card--dev .card-badge {
  background: rgba(36,58,47,0.9);
  color: #f1f7f2;
}

.portfolio-desc {
  font-size: 1.075rem;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 1rem;
  background-color: rgb(24, 105, 255);
}

.tech-stack {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  background-color: rgb(24, 105, 255);
}

.tech {
  background: rgb(0, 4, 218);
  padding: 0.3rem 0.7rem;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  font-family: Arial, Helvetica, sans-serif;
}

.gap1{
    height: 4rem;
}

#endtitle{
    text-align: center;
    color: black;
    font-size: 1rem;
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 10rem;
   
}

/* Container needed to position the dropdown content */
.dropdown {
    position: relative;
    display: inline-block;
}

.more-btn {
    font-family: monospace;
    background-color: transparent;
    color: rgb(0, 0, 0);
    border: 0;
    padding: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.more-btn:hover {
    background-color: blue;
    color: aliceblue;
    cursor: pointer;
}

/* Hide the dropdown menu by default and position it */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 4px;
}

/* Style the links inside the dropdown */
.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

/* Change color of dropdown links on hover */
.dropdown-content a:hover {
    background-color: #ddd;
}

/* Show class to be toggled via JavaScript */
.show {
    display: block;
}

@media (max-width: 768px) {
    .dropdown-content{
        margin-left: -2.3rem;
        padding: 1px 1px; 
        min-width: 80px;
        margin-top: 0.5rem;
    }
}
@media (max-width: 400px) {
    .dropdown-content{
        margin-left: -2.3rem;
        padding: 1px 1px; 
        min-width: 80px;
        margin-top: 0.5rem;
    }
}