body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: linear-gradient(120deg, #C2A98B 50%, #425766 50%);
  color: #2A373F;
  min-height: 100vh;
}

.container {
  max-width: 80%;
  box-shadow: 6px 6px 20px rgba(0,0,0,0.50);
  margin: 1% auto;
  background: #F1E7CC;
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
}

h1 {
  font-size: 2.5rem;
  color: #425766;
}

p {
  color: #2A373F;
  font-size: 1.2rem; 
  line-height: 1.6;
  margin: 0px;
}

.main-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 2em;
}

/* .fly-in {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s, transform 0.7s;
}

.fly-in-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s, transform 0.7s;
} */

.main-content-body {
  display: flex;
  width: 90%;
  height: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 30px;
  gap: 30px;
  margin-top: 50px;
  margin-bottom: 20px;
  border-radius: 15px;
  background: #F1E7CC;
  border: 2px solid #C2A98B;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s, transform 0.6s, background 0.3s ease, box-shadow 0.3s ease;
}

.main-content-body.visible {
  opacity: 1;
  transform: translateX(0);
}

.main-content-body:hover {
  background: #E8DDB5;
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
  transform: translateX(0) translateY(-2px);
}

.main-content-body:hover .projectimg {
  background: #E8DDB5 !important;
}

.sub-component-small{
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 35%;
  text-align: center;
  background:#425766;
  border-radius: 10px;
  padding-left:10px;
  padding-right:10px;

}

.sub-component-large {
  height: 100%;
  display: flex;
  flex-direction : column;
  justify-content: center;
  align-items: center;
  width: 65%;
  text-align: center;
  /*background:#425766;*/
  border-radius: 10px;
}
/* 
.projectimg {
  width: 40%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow:hidden;
  background:none;
  border-radius: 10px;
  transition: background 0.3s ease;
} */

.projectimg img {
  width: 100%;
  height: auto;
  overflow:hidden;
  border-radius: 10px;
  
}

#customInfoBox {
    position: fixed;
    z-index: 1000; /* Ensure it's on top of other content */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
}

.info-box-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.project_details{
    padding: 20px;
    border-radius: 10px;
  }

  .project_details > h3{
    font-weight: normal;
  }
  .captcha-container {
    margin: 1em 0;
    display: flex;
    flex-direction:row;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .captcha-label {
    font-weight: bold;
    margin-right: 0.5em;
  }

  .captcha-input {
    width: 60px;
    margin-right: 0.5em;
    padding: 8px;
    border: 1px solid #2A373F;
    border-radius: 5px;
    font-size: 1rem;
  }

  .captcha-refresh-btn {
    font-size: 0.9em;
    padding: 0.2em 0.7em;
    border-radius: 4px;
    border: none;
    background: #eee;
    cursor: pointer;
  }

  .captcha-refresh-btn:hover {
    background: #ddd;
  }

@media (max-width: 1400px) {
  .sub-component-large {
    height: 100%;
    display: flex;
    flex-direction : column;
    justify-content: center;
    align-items: center;
    width: 75%;
    text-align: center;
    /*background:#425766;*/
    border-radius: 10px;
  }

  p {
    color: #2A373F;
    font-size: 1.1rem; 
    line-height: 1.6;
    margin: 0px;
  }
  .sub-component-small{
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30%;
    text-align: center;
    background:#425766;
    border-radius: 10px;
    padding-left:10px;
    padding-right:10px;

  }
}

.course-expand-img{
  width: 20px;
  height: 20px;
  transform: rotate(180deg);
}
  
@media (max-width: 920px) {
  /* convert menu to a collabpsible menu at this width */
  .main-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2em;
  }

  .main-content-body {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 2em;
    padding: 20px;
    opacity: 0;
    gap: 30px;
    background: #F1E7CC;
    border: 2px solid #C2A98B;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  .sub-component-small {
    width: 70%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #425766;
    border-radius: 10px;
    padding-left: 10px;
    padding-right: 10px;
    box-shadow: 10px 10px 10px rgba(0,0,0,0.50);
  }
  .sub-component-large {
    width: 98%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /*background:#425766;*/
    border-radius: 10px;
  }

  .project_details{
    width:95%;
    height: 100%;
    flex:1;
    word-wrap: wrap;
    overflow-wrap: break-word;
    /*padding: 20px;*/  
    border-radius: 10px;
  }
  .projectimg {
    width: 70%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /*box-shadow: 10px 10px 10px rgba(0,0,0,0.50);*/
    overflow:hidden;
    background: none;
    border-radius: 10px;
    transition: background 0.3s ease;
  }

  .projectimg img {
    width: 100%;
    height: auto;
    overflow:hidden;
    border-radius: 10px;
  
  }

  .main-content-body:hover {
    background: #E8DDB5;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
  }

  .container {
    padding: 24px 16px;
  }
  h1 {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .main-content-body {
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 2em;
    padding: 15px;
    opacity: 0;
    gap: 30px;
    background: #F1E7CC;
    border: 2px solid #C2A98B;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }
  .sub-component-small {
    width: 70%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #425766;
    border-radius: 10px;
    padding-left: 10px;
    padding-right: 10px;
    box-shadow: 10px 10px 10px rgba(0,0,0,0.50);
  }
  .sub-component-large {
    width: 80%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /*background:#425766;*/
    border-radius: 10px;
  }

  .main-content-body:hover {
    background: #E8DDB5;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
  }

  .main-content-body:hover .projectimg {
    background: #E8DDB5 !important;
  }

  .container {
    min-width: 300px;
    padding: 24px 8px;
  }
  h1 {
    font-size: 2rem;
  }
}

.course-expand-img{
  width: 20px;
  height: 20px;
  transform: rotate(180deg);
}
